diff --git a/.gitignore b/.gitignore index e0b9729..907788d 100644 --- a/.gitignore +++ b/.gitignore @@ -32,8 +32,12 @@ node_modules dist/ +system-dist/ + +web-dist/ + tmp/ .VSCodeCounter/ -electron-dist/ \ No newline at end of file +.idea/ \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 03ca2f8..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 tl-open-source - -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/README.md b/README.md index 1b3eec1..a42d986 100644 --- a/README.md +++ b/README.md @@ -1,62 +1,80 @@

- TL-RTC-APP Logo + TL-RTC-APP Logo

-### Preview +

+ TL-RTC-APP Channel Chat +

-homepage - -## Prerequisites - -1. Install Node.js environment - -2. Install MySQL environment - -3. Install Redis environment - -## Installation Steps +### Installation Steps 1. Clone the repository: ```bash git clone https://github.com/tl-open-source/tl-rtc-app.git ``` -2. Navigate to the project directory: + +2. Navigate into the project directory: ```bash cd tl-rtc-app ``` + 3. Install dependencies: ```bash npm install ``` -## Usage Instructions -1. Start the application - Api +4. Install pm2 globally: ```bash - npm run http-api - - or - - npm run https-api + npm install pm2 -g ``` -2. Start the application - Socket +5. Start the super admin API service: ```bash - npm run http-socket - + pm2 start npm --name=tl-rtc-app-super-api -- run http-super-api + ``` or - npm run https-socket + ```bash + pm2 start npm --name=tl-rtc-app-super-api -- run https-super-api ``` -3. Open your browser and visit `http://localhost:9096`. +6. Start the API service: -## License -This project is licensed under the MIT License. For more details, please refer to the [LICENSE](LICENSE) file. + ```bash + pm2 start npm --name=tl-rtc-app-api -- run http-api + ``` + or + + ```bash + pm2 start npm --name=tl-rtc-app-api -- run https-api + ``` + +7. Start the Socket service: + + ```bash + pm2 start npm --name=tl-rtc-app-socket -- run http-socket + ``` + or + + ```bash + pm2 start npm --name=tl-rtc-app-socket -- run https-socket + ``` + +### Usage + +1. Open your browser and visit `http://localhost:9096` (default). + +2. Use the admin panel for managing the IM application at `http://localhost:9098` (default). + +### License + +This project is licensed under the MIT License. For more information, please refer to the [LICENSE](LICENSE) file. + +### Disclaimer -## Disclaimer For more details, please refer to the [DISCLAIMER](DISCLAIMER) file. diff --git a/README_ZH.md b/README_ZH.md index 7593f58..94c3bea 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -1,18 +1,11 @@

- TL-RTC-APP Logo + TL-RTC-APP Logo

-### 预览 +

+ TL-RTC-APP Channel Chat +

-homepage - -### 准备 - -1. 安装nodejs环境 - -2. 安装mysql环境 - -3. 安装redis环境 ### 安装步骤 @@ -34,28 +27,50 @@ npm install ``` +4. 安装pm2: + + ```bash + npm install pm2 -g + ``` + +5. 启动后台管理服务: + + ```bash + pm2 start npm --name=tl-rtc-app-super-api -- run http-super-api + ``` + 或者 + + ```bash + pm2 start npm --name=tl-rtc-app-super-api -- run https-super-api + ``` + +6. 启动Api服务: + + ```bash + pm2 start npm --name=tl-rtc-app-api -- run http-api + ``` + 或者 + + ```bash + pm2 start npm --name=tl-rtc-app-api -- run https-api + ``` + +7. 启动Socket服务: + + ```bash + pm2 start npm --name=tl-rtc-app-socket -- run http-socket + ``` + 或者 + + ```bash + pm2 start npm --name=tl-rtc-app-socket -- run https-socket + ``` + ### 使用说明 -1. 启动应用 - Api - ```bash - npm run http-api +1. 打开浏览器并访问 `http://localhost:9096` (默认)。 - 或者 - - npm run https-api - ``` - -2. 启动应用 - Socket - - ```bash - npm run http-socket - - 或者 - - npm run https-socket - ``` - -3. 打开浏览器并访问 `http://localhost:9096`。 +2. 通过管理端应用进行IM应用管理 `http://localhost:9098` (默认)。 ### 许可证 diff --git a/conf/env_config.js b/conf/env_config.js index 7979ef0..afee616 100644 --- a/conf/env_config.js +++ b/conf/env_config.js @@ -1,5 +1,7 @@ const path = require("path"); const dotEnv = require("dotenv"); +const fs = require("fs"); +const { exec } = require("child_process"); /** * 从.env文件中加载环境变量 @@ -44,23 +46,68 @@ const get_env_config = function () { value = value === 'true' } - //openai keys转换为数组 - if(key === 'openai_keys'){ - value = value.split(',') - } - - //企业微信通知 keys转换为数组 - if(key === 'notify_qiwei_normal' || key === 'notify_qiwei_error'){ - value = value.split(',') - } - defaultConfJson[key] = value }) return defaultConfJson } +/** + * 设置环境变量 + * @param {*} key 配置项的键名(不含 tl_rtc_app_ 前缀) + * @param {*} value 配置项的新值 + */ +const set_env_config = function (key, value) { + // 构建完整的环境变量名 + const fullKey = `tl_rtc_app_${key}`; + + // 获取 .env 文件路径 + const envFilePath = path.resolve(__dirname, "../tlrtcapp.env"); + + try { + // 读取 .env 文件内容 + let envContent = fs.readFileSync(envFilePath, 'utf8'); + + // 准备正则表达式,匹配键值对 + const regex = new RegExp(`^${fullKey}=.*$`, 'm'); + + // 检查键是否存在 + if (regex.test(envContent)) { + // 如果键存在,则替换其值 + envContent = envContent.replace(regex, `${fullKey}=${value}`); + } else { + // 如果键不存在,则在文件末尾添加 + console.error(`Config not found: ${fullKey}`); + return { + success: false, + message: `Config not found: ${fullKey}` + } + } + + // 写入更新后的内容 + fs.writeFileSync(envFilePath, envContent, 'utf8'); + + // 更新当前进程中的环境变量 + process.env[fullKey] = value; + + console.log(`Config updated: ${fullKey}=${value}`); + + return { + success: true, + message: `Config updated: ${fullKey}=${value}` + } + } catch (error) { + console.error(`Failed to update config ${fullKey}:`, error) + return { + success: false, + message: `Failed to update config ${fullKey}: ${error}` + } + } +} + + module.exports = { get_env_config, - load_env_config + load_env_config, + set_env_config, } diff --git a/conf/skin/dark.js b/conf/skin/dark.js new file mode 100644 index 0000000..344dd15 --- /dev/null +++ b/conf/skin/dark.js @@ -0,0 +1 @@ +module.exports = `eyJjb21tU2tpbk1hcCI6eyJza2luVG9wSGVhZGVyVG9vbEJhY2tncm91bmQiOiIjZmZmZmZmIiwic2tpblRvcEhlYWRlclRpdGxlQ29sb3IiOiIjZmZmZmZmIiwic2tpblRvcEhlYWRlclRvb2xGaWxsQ29sb3IiOiIjOTU5NTk1Iiwic2tpblRvcEhlYWRlclRvb2xIb3ZlckZpbGxDb2xvciI6IiMzMzMzMzMiLCJza2luQm9keUNvbG9yIjoiI2ZmZmZmZiIsInNraW5Cb2R5QmFja2dyb3VuZCI6IiMxZjFlMWUiLCJza2luQm9keUJvcmRlckNvbG9yIjoiIzJkMmIyYiJ9LCJzaWRlYmFyU2tpbk1hcCI6eyJza2luU2lkZWJhclRvb2xCYWNrZ3JvdW5kIjoiIzExMTExMSIsInNraW5TaWRlYmFyVG9vbEhvdmVyQmFja2dyb3VuZCI6IiNhN2E0YTQzNSIsInNraW5TaWRlYmFyVG9vbENvbG9yIjoiI2ZmZmZmZiIsInNraW5TaWRlYmFyVG9vbEhvdmVyQ29sb3IiOiIjZmZmZmZmIiwic2tpblNpZGViYXJUb29sRmlsbENvbG9yIjoiI2ZmZmZmZiIsInNraW5TaWRlYmFyVG9vbEhvdmVyRmlsbENvbG9yIjoiI2JmY2JmOSIsInNraW5TaWRlYmFyVG9vbE1vcmVCb3JkZXJDb2xvciI6IiMzYjM5MzkifSwiY2hhbm5lbFNraW5NYXAiOnsic2tpbkNoYW5uZWxMaXN0Tm9DaGFubmVsQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxMaXN0SXRlbVRvcEJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbkNoYW5uZWxUb3BTZWFyY2hJQ29sb3IiOiIjYmViMGIwIiwic2tpbkNoYW5uZWxUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbkNoYW5uZWxUb3BTZWFyY2hJbnB1dENvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsQ29udGVudFRvcE1vcmVGaWxsQ29sb3IiOiIjNEE0QkRCIiwic2tpbkNoYW5uZWxMaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiM0YjQ4NDgiLCJza2luQ2hhbm5lbExpc3RJdGVtTWVzc2FnZUNvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsTGlzdEl0ZW1NZXNzYWdlQXRVc2VyVGV4dENvbG9yIjoiI2ZmMDAwMCIsInNraW5DaGFubmVsTGlzdEl0ZW1NZXNzYWdlQXRNZVRleHRDb2xvciI6IiNmZjAwMDAiLCJza2luQ2hhbm5lbExpc3RJdGVtVGltZUNvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsTGlzdEl0ZW1RdWlja01hcmtVbnJlYWRCYWNrZ3JvdW5kIjoiIzZiOTViZSIsInNraW5DaGFubmVsTGlzdEl0ZW1RdWlja01hcmtVbnJlYWRDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbExpc3RJdGVtUXVpY2tUb3BCYWNrZ3JvdW5kIjoiIzc1Yjk2MyIsInNraW5DaGFubmVsTGlzdEl0ZW1RdWlja1RvcENvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsTGlzdEl0ZW1RdWlja0RlbGV0ZUJhY2tncm91bmQiOiIjYmE2ZjZmIiwic2tpbkNoYW5uZWxMaXN0SXRlbVF1aWNrRGVsZXRlQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxMaXN0SXRlbVF1aWNrSGlkZGVuQmFja2dyb3VuZCI6IiM4OGFkYWMiLCJza2luQ2hhbm5lbExpc3RJdGVtUXVpY2tIaWRkZW5Db2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbExpc3RJdGVtUXVpY2tVbk5vdGlmeUJhY2tncm91bmQiOiIjYzJiODYyIiwic2tpbkNoYW5uZWxMaXN0SXRlbVF1aWNrVW5Ob3RpZnlDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZUJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZVN5c3RlbUNvbG9yIjoiI2I3YmJjNyIsInNraW5DaGFubmVsQ29udGVudEJvZHlNZXNzYWdlVGltZUNvbG9yIjoiI2I3YmJjNyIsInNraW5DaGFubmVsQ29udGVudEJvZHlNZXNzYWdlTG9hZE1vcmVDb2xvciI6IiNiN2JiYzciLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZUxvYWRNb3JlSG92ZXJDb2xvciI6IiMzYjg1ZGYiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZU5hbWVDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZU5hbWVIb3ZlckNvbG9yIjoiIzRBNEJEQiIsInNraW5DaGFubmVsQ29udGVudEJvZHlJdGVtTWVzc2FnZUF0VXNlclRleHRDb2xvciI6IiM0QTRCREIiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZU1lbnVJY29uQmFja2dyb3VuZCI6IiMyZjJlMmUiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZU1lbnVJY29uQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VNZW51SWNvbkhvdmVyQmFja2dyb3VuZCI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZU1lbnVJY29uSG92ZXJDb2xvciI6IiMwMDAwMDAiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5UmVwbHlDb250ZW50QmxvY2tDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5UmVwbHlDb250ZW50QmxvY2tCYWNrZ3JvdW5kIjoiI2RiZTZlMzc4In0sImNvbnRhY3RTa2luTWFwIjp7InNraW5Db250YWN0SGVhZGVyVG9vbFN2Z0ZpbGxDb2xvciI6IiM5NTk1OTUiLCJza2luQ29udGFjdEhlYWRlclRvb2xTdmdIb3ZlckZpbGxDb2xvciI6IiMzMzMzMzMiLCJza2luQ29udGFjdFRvcFNlYXJjaElDb2xvciI6IiNiZWIwYjAiLCJza2luQ29udGFjdFRvcFNlYXJjaElucHV0QmFja2dyb3VuZCI6IiMwMDAwMDAiLCJza2luQ29udGFjdFRvcFNlYXJjaElucHV0Q29sb3IiOiIjZmZmZmZmIiwic2tpbkNvbnRhY3RMaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiM0YjQ4NDgiLCJza2luQ29udGFjdENvbnRlbnRUb29sSXRlbUhvdmVyQmFja2dyb3VuZCI6IiM2MjYzRkIiLCJza2luQ29udGFjdENvbnRlbnRPdGhlckl0ZW1CYWRnZUJhY2tncm91bmQiOiIjMWU5ZmZmIiwic2tpbkNvbnRhY3RDb250ZW50SXRlbU1lc3NhZ2VDb2xvciI6IiM3Nzc3NzciLCJza2luQ29udGFjdENvbnRlbnRJdGVtT3RoZXJTdGF0dXNDb2xvciI6IiNiOGI4YjgifSwiY2xvdWRTa2luTWFwIjp7InNraW5DbG91ZFRvcFNlYXJjaElDb2xvciI6IiM5NTk1OTUiLCJza2luQ2xvdWRUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbkNsb3VkVG9wU2VhcmNoSW5wdXRDb2xvciI6IiNmZmZmZmYiLCJza2luQ2xvdWRUb3BUb29sSXRlbUhvdmVyQmFja2dyb3VuZCI6IiM0YjQ4NDgiLCJza2luQ2xvdWRUb3BUb29sSXRlbUFjdGl2ZUJhY2tncm91bmQiOiIjMzkzNjM2Iiwic2tpbkNsb3VkVG9wVG9vbEl0ZW1TdmdIb3ZlckZpbGxDb2xvciI6IiM0ZTlhZDkiLCJza2luQ2xvdWRDb250ZW50U2VhcmNoUGFyYW1CYWRnZUNvbG9yIjoiI2ZmZmZmZiIsInNraW5DbG91ZENvbnRlbnRTZWFyY2hQYXJhbUJhZGdlSG92ZXJCYWNrZ3JvdW5kIjoiIzZlOGZlNCIsInNraW5DbG91ZENvbnRlbnRTZWFyY2hQYXJhbUJhZGdlSG92ZXJDb2xvciI6IiNmZmZmZmYiLCJza2luQ2xvdWRMaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiM0YjQ4NDgiLCJza2luQ2xvdWRMaXN0SXRlbUFjdGl2ZUJhY2tncm91bmQiOiIjNDQ0MjQyIiwic2tpbkNsb3VkTGlzdEl0ZW1Ub29sSXRlbUJhY2tncm91bmQiOiIjMjMyMDIwIiwic2tpbkNsb3VkTGlzdEl0ZW1Ub29sSXRlbUhvdmVyQmFja2dyb3VuZCI6IiNhNDlmOWYiLCJza2luQ2xvdWRMaXN0SXRlbVRvb2xJdGVtU3ZnRmlsbENvbG9yIjoiI2ZmZmZmZiIsInNraW5DbG91ZExpc3RJdGVtVG9vbEl0ZW1TdmdIb3ZlckZpbGxDb2xvciI6IiMwMDAwMDAiLCJza2luQ2xvdWRMaXN0SXRlbVRpbWVDb2xvciI6IiNkOGM2YzYiLCJza2luQ2xvdWRTaGFyZVBvcHVwRGV0YWlsSXRlbUJhY2tncm91bmQiOiIjMzgzNTM1Iiwic2tpbkNsb3VkU3BhY2VJdGVtQmFja2dyb3VuZCI6IiMyODI3MjciLCJza2luQ2xvdWRTcGFjZUl0ZW1Qcm9jZXNzQmFyQmFja2dyb3VuZCI6IiNmMmYyZjIiLCJza2luQ2xvdWRTcGFjZUl0ZW1Qcm9jZXNzQmFja2dyb3VuZCI6IiM0ZTZlZjIiLCJza2luQ2xvdWRTcGFjZUl0ZW1QQ29sb3IiOiIjYWFhNmE2Iiwic2tpbkNsb3VkU3BhY2VJdGVtQ2xlYW51cEJhY2tncm91bmQiOiIjMmYzMDMwIiwic2tpbkNsb3VkU3BhY2VJdGVtQ2xlYW51cEhvdmVyQmFja2dyb3VuZCI6IiMzOTNhM2EiLCJza2luQ2xvdWRTcGFjZUl0ZW1DbGVhbnVwSWNvbkJhY2tncm91bmQiOiIjNTI1MjUyIiwic2tpbkNsb3VkU3BhY2VJdGVtQ2xlYW5CdG5CYWNrZ3JvdW5kIjoiIzY0YWNmMyIsInNraW5DbG91ZFNwYWNlSXRlbUNsZWFuQnRuQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNsb3VkU3BhY2VJdGVtQ2xlYW5CdG5Ib3ZlckJhY2tncm91bmQiOiIjMzA5MWYzIiwic2tpbkNsb3VkU3BhY2VJdGVtQ2xlYW5CdG5Ib3ZlckNvbG9yIjoiI2ZmZmZmZiIsInNraW5DbG91ZFNwYWNlSXRlbU1hbmFnZUJ0bkJhY2tncm91bmQiOiIjNGJhODZkIiwic2tpbkNsb3VkU3BhY2VJdGVtTWFuYWdlQnRuQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNsb3VkU3BhY2VJdGVtTWFuYWdlQnRuSG92ZXJCYWNrZ3JvdW5kIjoiIzM5OTM1YSIsInNraW5DbG91ZFNwYWNlSXRlbU1hbmFnZUJ0bkhvdmVyQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNsb3VkU3BhY2VJdGVtRGVsZXRlQnRuQmFja2dyb3VuZCI6IiNmNDVkNWQiLCJza2luQ2xvdWRTcGFjZUl0ZW1EZWxldGVCdG5Db2xvciI6IiNmZmZmZmYiLCJza2luQ2xvdWRTcGFjZUl0ZW1EZWxldGVCdG5Ib3ZlckJhY2tncm91bmQiOiIjZGE0ZDRkIiwic2tpbkNsb3VkU3BhY2VJdGVtRGVsZXRlQnRuSG92ZXJDb2xvciI6IiNmZmZmZmYiLCJza2luQ2xvdWRTcGFjZUl0ZW1UeXBlSW1hZ2VCYWNrZ3JvdW5kIjoiIzBjZDhmZiIsInNraW5DbG91ZFNwYWNlSXRlbVR5cGVWaWRlb0JhY2tncm91bmQiOiIjNGU2ZWYyIiwic2tpbkNsb3VkU3BhY2VJdGVtVHlwZU11c2ljQmFja2dyb3VuZCI6IiNmMmExNGUiLCJza2luQ2xvdWRTcGFjZUl0ZW1UeXBlRG9jQmFja2dyb3VuZCI6IiMwMGI4OTQiLCJza2luQ2xvdWRTcGFjZUl0ZW1UeXBlWmlwQmFja2dyb3VuZCI6IiNiM2M3MjciLCJza2luQ2xvdWRTcGFjZUl0ZW1UeXBlT3RoZXJCYWNrZ3JvdW5kIjoiI2IyYmVjMyIsInNraW5DbG91ZFNwYWNlSXRlbVNjYW5Ib3ZlckJhY2tncm91bmQiOiIjMzkzYTNhIn0sInAycENoYW5uZWxTa2luTWFwIjp7InNraW5QMnBDaGFubmVsVG9wU2VhcmNoSUNvbG9yIjoiI2M4YzhjOCIsInNraW5QMnBDaGFubmVsVG9wU2VhcmNoSW5wdXRCYWNrZ3JvdW5kIjoiI0Y4RjlGQiIsInNraW5QMnBDaGFubmVsVG9wU2VhcmNoSW5wdXRDb2xvciI6IiMzMzMzMzM5ZSIsInNraW5QMnBDaGFubmVsVG9wVG9vbEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjNjA1ZDVkIiwic2tpblAycENoYW5uZWxUb3BUb29sSXRlbUFjdGl2ZUJhY2tncm91bmQiOiIjNDEzZjNmIiwic2tpblAycENoYW5uZWxUb3BUb29sSXRlbVN2Z0hvdmVyRmlsbENvbG9yIjoiI2ZmZmZmZiIsInNraW5QMnBDaGFubmVsQ2VudGVyU3ZnRmlsbENvbG9yIjoiI2ZmZmZmZiIsInNraW5QMnBDaGFubmVsTGlzdEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjNTg1NTU1Iiwic2tpblAycENoYW5uZWxMaXN0SXRlbVRpbWVDb2xvciI6IiNmZmZmZmYiLCJza2luUDJwQ2hhbm5lbExpc3RJdGVtVG9vbEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjNjY2MTYxIiwic2tpblAycENoYW5uZWxMaXN0SXRlbVRvb2xJdGVtQmFja2dyb3VuZCI6IiNmNmY2ZjYiLCJza2luUDJwQ2hhbm5lbExpc3RJdGVtVG9vbEl0ZW1TdmdGaWxsQ29sb3IiOiIjZmZmZmZmIiwic2tpblAycENoYW5uZWxMaXN0SXRlbVRvb2xJdGVtU3ZnSG92ZXJGaWxsQ29sb3IiOiIjZmZmZmZmIiwic2tpblAycENoYW5uZWxTaGFyZVRvb2xJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiIzAwYzNmZjFlIn0sIm1lZXRpbmdTa2luTWFwIjp7InNraW5NZWV0aW5nTGlzdEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjNjI1YTVhIiwic2tpbk1lZXRpbmdMaXN0SXRlbUFjdGl2ZUJhY2tncm91bmQiOiIjNjI1YTVhIiwic2tpbk1lZXRpbmdUb3BTZWFyY2hJQ29sb3IiOiIjOTU5NTk1Iiwic2tpbk1lZXRpbmdUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbk1lZXRpbmdUb3BTZWFyY2hJbnB1dENvbG9yIjoiI2ZmZmZmZiIsInNraW5NZWV0aW5nQ29udGVudEhlYWRlclRpdGxlQmFja2dyb3VuZCI6IiMzNTM1MzYiLCJza2luTWVldGluZ0NvbnRlbnRIaXN0b3J5SXRlbUJhY2tncm91bmQiOiIjMjIyNDI0Iiwic2tpbk1lZXRpbmdDb250ZW50SGlzdG9yeUl0ZW1UaXRsZUNvbG9yIjoiI2MyYmNiYyIsInNraW5NZWV0aW5nQ29udGVudEhpc3RvcnlJdGVtU3RhdHVzQ3JlYXRlQ29sb3IiOiIjZmZmZmZmIiwic2tpbk1lZXRpbmdDb250ZW50SGlzdG9yeUl0ZW1TdGF0dXNDcmVhdGVCYWNrZ3JvdW5kIjoiIzFlOWZmZiIsInNraW5NZWV0aW5nQ29udGVudEhpc3RvcnlJdGVtU3RhdHVzQ3JlYXRlQm9kZXJDb2xvciI6IiMxZTlmZmYiLCJza2luTWVldGluZ0NvbnRlbnRIaXN0b3J5SXRlbVN0YXR1c1N0YXJ0Q29sb3IiOiIjZmZmZmZmIiwic2tpbk1lZXRpbmdDb250ZW50SGlzdG9yeUl0ZW1TdGF0dXNTdGFydEJhY2tncm91bmQiOiIjNWRjNjY0Iiwic2tpbk1lZXRpbmdDb250ZW50SGlzdG9yeUl0ZW1TdGF0dXNTdGFydEJvZGVyQ29sb3IiOiIjNWRjNjY0Iiwic2tpbk1lZXRpbmdDb250ZW50SGlzdG9yeUl0ZW1TdGF0dXNFbmRDb2xvciI6IiNmZmZmZmYiLCJza2luTWVldGluZ0NvbnRlbnRIaXN0b3J5SXRlbVN0YXR1c0VuZEJhY2tncm91bmQiOiIjZGM2OTVmIiwic2tpbk1lZXRpbmdDb250ZW50SGlzdG9yeUl0ZW1TdGF0dXNFbmRCb2RlckNvbG9yIjoiI2RjNjk1ZiJ9LCJsb2dpblNraW5NYXAiOnsic2tpbkxvZ2luQnV0dG9uQmFja2dyb3VuZCI6IiM2MjYzRkIiLCJza2luTG9naW5MaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiNkMmRlZmY5NiIsInNraW5Mb2dpbkxpc3RJdGVtSG92ZXJDb2xvciI6IiMxZTcxZWUiLCJza2luTG9naW5Db250ZW50Rm9ybUlucHV0Q29sb3IiOiIjMzMzMzMzOWUiLCJza2luTG9naW5Db250ZW50Qm9keUJvdHRvbUNvbG9yIjoiIzVjOGRkNyIsInNraW5Mb2dpbkNvbnRlbnRCb2R5Qm90dG9tSG92ZXJDb2xvciI6IiMxZTcxZWUiLCJza2luTG9naW5Db250ZW50Qm9keVNjYW5UaXRsZUNvbG9yIjoiIzkzOWVhNiIsInNraW5Mb2dpbkNvbnRlbnRCb2R5U2NhblRpdGxlQmFja2dyb3VuZCI6ImF6dXJlIiwic2tpbkxvZ2luQ29udGVudEJvZHlTY2FuQ29kZUl0ZW1EaXNhYmxlZEJhY2tncm91bmQiOiIjZTZlOGVhN2EiLCJza2luTG9naW5Db250ZW50Qm9keVNjYW5Db2RlSXRlbUZvY3VzQm9yZGVyQ29sb3IiOiIjMDA3YmZmIiwic2tpbkxvZ2luRW1haWxDb2RlQnRuQ29sb3IiOiIjZmZmZmZmIiwic2tpbkxvZ2luRW1haWxDb2RlQnRuRGlzYWJsZWRCYWNrZ3JvdW5kIjoiI2NjYyIsInNraW5Mb2dpbkhlbHBNb2JpbGVDb2xvciI6IiM4YjhiOWUiLCJza2luTG9naW5IZWxwTW9iaWxlSG92ZXJDb2xvciI6IiMxZTcxZWUiLCJza2luTG9naW5Cb2R5Q2xlYW5Db2xvciI6IiMxZTcxZWUiLCJza2luTG9naW5Cb2R5Q2xlYW5Ib3ZlckNvbG9yIjoiIzFlNzFlZSIsInNraW5Mb2dpbkl0ZW1Nb2JpbGVJY29uQmFja2dyb3VuZCI6IiNiZGRjZmY0NyJ9LCJzZXR0aW5nU2tpbk1hcCI6eyJza2luU2V0dGluZ0xpc3RJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiIzYyNWE1YSIsInNraW5TZXR0aW5nTGlzdEl0ZW1BY3RpdmVCYWNrZ3JvdW5kIjoiIzRiNDg0OCIsInNraW5TZXR0aW5nVG9wU2VhcmNoSUNvbG9yIjoiI2JlYjBiMCIsInNraW5TZXR0aW5nVG9wU2VhcmNoSW5wdXRCYWNrZ3JvdW5kIjoiIzAwMDAwMCIsInNraW5TZXR0aW5nVG9wU2VhcmNoSW5wdXRDb2xvciI6IiNmZmZmZmYiLCJza2luU2V0dGluZ0NvbnRlbnRUb3BFeHBvcnRCYWNrZ3JvdW5kIjoiIzJmMmQyZCIsInNraW5TZXR0aW5nQ29udGVudFRvcEV4cG9ydEZpbGxDb2xvciI6IiNmZmZmZmYiLCJza2luU2V0dGluZ0NvbnRlbnRCbG9ja0JhY2tncm91bmQiOiIjMjIyMTIxIiwic2tpblNldHRpbmdDb250ZW50QmxvY2tCYWRnZUJhY2tncm91bmQiOiIjNGU0YzRjIiwic2tpblNldHRpbmdDb250ZW50QmxvY2tCYWRnZUNvbG9yIjoiYmxhY2siLCJza2luU2V0dGluZ0NvbnRlbnRCbG9ja0JhZGdlSG92ZXJCYWNrZ3JvdW5kIjoiIzYyNjNGQiIsInNraW5TZXR0aW5nQ29udGVudEJsb2NrQmFkZ2VIb3ZlckNvbG9yIjoiI2ZmZmZmZiIsInNraW5TZXR0aW5nQ29udGVudEJsb2NrSXRlbUhvdmVyQmFja2dyb3VuZCI6IiM0YTQ4NDgiLCJza2luU2V0dGluZ0NvbnRlbnRCaW5kSWNvbkhvdmVyQ29sb3IiOiIjNTE3ZGUxIiwic2tpblNldHRpbmdDb250ZW50QmluZEljb25UaXBGaWxsQ29sb3IiOiIjZWRiYTEyIiwic2tpblNldHRpbmdDb250ZW50UHJldmlld0l0ZW1TdmdCYWNrZ3JvdW5kIjoiI2YyZWRlZCIsInNraW5TZXR0aW5nQ29udGVudFByZXZpZXdJdGVtU3ZnSG92ZXJCYWNrZ3JvdW5kIjoiI2VhZGZkZiIsInNraW5TZXR0aW5nQ29udGVudEFjY291bnRCaW5kRW1haWxCdG5CYWNrZ3JvdW5kIjoiIzc4NzhjNSIsInNraW5TZXR0aW5nQ29udGVudEFjY291bnRCaW5kRW1haWxCdG5Db2xvciI6IiNmZmZmZmYiLCJza2luU2V0dGluZ0NvbnRlbnRBY2NvdW50QmluZEVtYWlsSW5wdXRCYWNrZ3JvdW5kIjoiIzAwMDAwMCIsInNraW5TZXR0aW5nQ29udGVudEFjY291bnRCaW5kRW1haWxJbnB1dENvbG9yIjoiI2ZmZmZmZiIsInNraW5TZXR0aW5nQ29udGVudEFjY291bnRCaW5kRW1haWxCdG5EaXNhYmxlZEJhY2tncm91bmQiOiIjY2NjIiwic2tpblNldHRpbmdDb250ZW50QWNjb3VudEJpbmRFbWFpbEJ0bkRpc2FibGVkQ29sb3IiOiIjZmZmZmZmIn0sImN1dFBhc3RlU2tpbk1hcCI6eyJza2luQ3V0UGFzdGVUb3BTZWFyY2hJQ29sb3IiOiIjYmViMGIwIiwic2tpbkN1dFBhc3RlVG9wU2VhcmNoSW5wdXRCYWNrZ3JvdW5kIjoiIzAwMDAwMCIsInNraW5DdXRQYXN0ZVRvcFNlYXJjaElucHV0Q29sb3IiOiIjZmZmZmZmIiwic2tpbkN1dFBhc3RlTGlzdEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjNGI0ODQ4Iiwic2tpbkN1dFBhc3RlTGlzdEl0ZW1Ub3BCYWNrZ3JvdW5kIjoiI2U1ZWJmYzk2Iiwic2tpbkN1dFBhc3RlTGlzdEl0ZW1NZXNzYWdlQ29sb3IiOiIjNzc3Nzc3Iiwic2tpbkN1dFBhc3RlTGlzdEl0ZW1UaW1lQ29sb3IiOiIjYjhiOGI4In0sImRhdGVzU2tpbk1hcCI6eyJza2luRGF0ZXNMaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiM0YjQ4NDgiLCJza2luRGF0ZXNMaXN0SXRlbUFjdGl2ZUJhY2tncm91bmQiOiIjNGI0ODQ4Iiwic2tpbkRhdGVzVG9wU2VhcmNoSUNvbG9yIjoiIzk1OTU5NSIsInNraW5EYXRlc1RvcFNlYXJjaElucHV0QmFja2dyb3VuZCI6IiMwMDAwMDAiLCJza2luRGF0ZXNUb3BTZWFyY2hJbnB1dENvbG9yIjoiI2ZmZmZmZiIsInNraW5EYXRlc0l0ZW1TZWxlY3RCYWNrZ3JvdW5kIjoiIzQ0NTM3YSIsInNraW5EYXRlc0l0ZW1Ib3ZlckJhY2tncm91bmQiOiIjYmZiZmJmIiwic2tpbkRhdGVzSXRlbU5leHRQcmV2QmFja2dyb3VuZCI6IiM2NDYxNjEifSwiZG9jdW1lbnRTa2luTWFwIjp7InNraW5Eb2N1bWVudFRvcFNlYXJjaElDb2xvciI6IiM5NTk1OTUiLCJza2luRG9jdW1lbnRUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbkRvY3VtZW50VG9wU2VhcmNoSW5wdXRDb2xvciI6IiNmZmZmZmYiLCJza2luRG9jdW1lbnRMaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiM0YjQ4NDgiLCJza2luRG9jdW1lbnRMaXN0SXRlbUFjdGl2ZUJhY2tncm91bmQiOiIjNGI0ODQ4Iiwic2tpbkRvY3VtZW50TGlzdEl0ZW1OYW1lVGV4dEhvdmVyQ29sb3IiOiIjZmZmZmZmIiwic2tpbkRvY3VtZW50TGlzdEl0ZW1TaXplQ29sb3IiOiIjZmZmZmZmIiwic2tpbkRvY3VtZW50TGlzdEVtcHR5Q29sb3IiOiIjYzFiYWM3Iiwic2tpbkRvY3VtZW50TGlzdEl0ZW1UYWdDb2xvciI6IiNmZmZmZmYifSwiYWlBc3Npc3RhbnRTa2luTWFwIjp7InNraW5BaUFzc2lzdGFudFRvcFNlYXJjaElDb2xvciI6IiM5NTk1OTUiLCJza2luQWlBc3Npc3RhbnRUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbkFpQXNzaXN0YW50VG9wU2VhcmNoSW5wdXRDb2xvciI6IiNmZmZmZmYiLCJza2luQWlBc3Npc3RhbnRMaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiM0YjQ4NDgiLCJza2luQWlBc3Npc3RhbnRMaXN0SXRlbUFjdGl2ZUJhY2tncm91bmQiOiIjNGI0ODQ4Iiwic2tpbkFpQXNzaXN0YW50TGlzdEl0ZW1UYWdDb2xvciI6IiNmZmZmZmYiLCJza2luQWlBc3Npc3RhbnRMaXN0SXRlbU5hbWVUZXh0SG92ZXJDb2xvciI6IiNmZmZmZmYiLCJza2luQWlBc3Npc3RhbnRMaXN0SXRlbVNpemVDb2xvciI6IiNmZmZmZmYiLCJza2luQWlBc3Npc3RhbnRDb250ZW50T3RoZXJJdGVtQmFkZ2VCYWNrZ3JvdW5kIjoiIzFlOWZmZiIsInNraW5BaUFzc2lzdGFudENvbnRlbnRUb29sSXRlbUhvdmVyQmFja2dyb3VuZCI6IiM2MjYzRkIifSwiY2hhbm5lbE1vcmVTa2luTWFwIjp7InNraW5DaGFubmVsQ29udGVudE1vcmVCYWNrZ3JvdW5kIjoiIzEzMTMxMyIsInNraW5DaGFubmVsQ29udGVudE1vcmVMaXN0SXRlbUhvdmVyQ29sb3IiOiIjNjA5NmQ4Iiwic2tpbkNoYW5uZWxDb250ZW50TW9yZUxpc3RJdGVtT3BlckNoYW5uZWxOYW1lQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxDb250ZW50TW9yZVNoYXJlVG9vbEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjYWVhZWFlIiwic2tpbkNoYW5uZWxDb250ZW50TW9yZUxpc3RJdGVtQm9yZGVyQ29sb3IiOiIjMWQxYzFjIiwic2tpbkNoYW5uZWxDb250ZW50TW9yZUxpc3RVc2VySXRlbU9wZXJIb3ZlckJhY2tncm91bmQiOiIjMjgyNjI2Iiwic2tpbkNoYW5uZWxDb250ZW50TW9yZUxpc3RVc2VySXRlbU9wZXJIb3ZlckZpbGxDb2xvciI6IiM1NTcxODkifSwiY2hhbm5lbEludml0ZVNraW5NYXAiOnsic2tpbkNoYW5uZWxDb250ZW50SW52aXRlU2VhcmNoSUNvbG9yIjoiI2JlYjBiMCIsInNraW5DaGFubmVsQ29udGVudEludml0ZVNlYXJjaElucHV0QmFja2dyb3VuZCI6IiMwMDAwMDAiLCJza2luQ2hhbm5lbENvbnRlbnRJbnZpdGVTZWFyY2hJbnB1dENvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsQ29udGVudEludml0ZUNob29zZUxpc3RJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiIzQ0NDQ0NCIsInNraW5DaGFubmVsQ29udGVudEludml0ZUNob29zZUxpc3RFbXB0eUNvbG9yIjoiI2IzYWFhYSJ9LCJjaGFubmVsTm90aWNlU2tpbk1hcCI6eyJza2luQ2hhbm5lbENvbnRlbnROb3RpY2VFbXB0eUNvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsQ29udGVudE5vdGljZUl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjMzIyZTJlIiwic2tpbkNoYW5uZWxDb250ZW50Tm90aWNlSXRlbVRpbWVDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbENvbnRlbnROb3RpY2VJdGVtVGl0bGVDb2xvciI6IiNmZmZmZmYifSwicXVpY2tPcGVyU2tpbk1hcCI6eyJza2luUXVpY2tPcGVyUGFuZWxCYWNrZ3JvdW5kIjoiIzQ5NDM0MyIsInNraW5RdWlja09wZXJQYW5lbEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjOGQ3ZjdmIiwic2tpblF1aWNrT3BlclBhbmVsSXRlbUNvbG9yIjoiI2QwZDBkMCIsInNraW5RdWlja09wZXJQYW5lbEl0ZW1Ib3ZlckNvbG9yIjoiI2ZmZmZmZiJ9LCJtZWRpYVNraW5NYXAiOnsic2tpbk1lZGlhVmlkZW9Ub29sTGlzdFN2Z0ZpbGxDb2xvciI6IiNmZmZmZmYiLCJza2luTWVkaWFWaWRlb1Rvb2xMaXN0U3ZnQmFja2dyb3VuZCI6IiMwMDAwMDA2OSIsInNraW5NZWRpYVZpZGVvVG9vbExpc3RTdmdIb3ZlckJhY2tncm91bmQiOiIjMDAwMDAwZGIiLCJza2luTWVkaWFWaWRlb1Rvb2xMaXN0U3ZnSG92ZXJGaWxsQ29sb3IiOiIjZmZmZmZmIiwic2tpbk1lZGlhVmlkZW9Ub29sTGlzdFlzcUNsb3NlQmFja2dyb3VuZCI6IiM5YmE0OThjNyIsInNraW5NZWRpYVNjcmVlbk90aGVySXRlbUJvcmRlckNvbG9yIjoiI2ZmZjgwMCIsInNraW5NZWRpYVNjcmVlblRvb2xMaXN0U3ZnRmlsbENvbG9yIjoiI2ZmZmZmZiIsInNraW5NZWRpYVNjcmVlblRvb2xMaXN0U3ZnQmFja2dyb3VuZCI6IiMwMDAwMDA2OSIsInNraW5NZWRpYVNjcmVlblRvb2xMaXN0U3ZnSG92ZXJGaWxsQ29sb3IiOiIjZmZmZmZmIiwic2tpbk1lZGlhU2NyZWVuVG9vbExpc3RTdmdIb3ZlckJhY2tncm91bmQiOiIjMDAwMDAwZGIifSwiZmFjZVNraW5NYXAiOnsic2tpbkZhY2VJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiIzhiODg4OCIsInNraW5GYWNlSXRlbUhvdmVyQ29sb3IiOiIjMDAwMDAwIiwic2tpbkZhY2VUYWJCYWNrZ3JvdW5kIjoiIzFlMWUxZSIsInNraW5GYWNlVGFiQ29sb3IiOiIjNzM2ZDZkIiwic2tpbkZhY2VUYWJIb3ZlckJhY2tncm91bmQiOiIjNTI1MzU1OTYiLCJza2luRmFjZVRhYkhvdmVyQ29sb3IiOiIjYjFhY2FjIiwic2tpbkZhY2VTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbkZhY2VTZWFyY2hJbnB1dENvbG9yIjoiI2ZmZmZmZiIsInNraW5GYWNlQ29udGVudFRpdGxlQ29sb3IiOiIjZDBjYmNiIn0sImxheWVyTXNnU2tpbk1hcCI6eyJza2luTGF5ZXJNc2dCYWNrZ3JvdW5kIjoiI2Y2ZjZmNiIsInNraW5MYXllck1zZ0NvbG9yIjoiIzAwMDAwMCIsInNraW5MYXllck1zZ1N1Y2Nlc3NDb2xvciI6IiMwNGRkMDQiLCJza2luTGF5ZXJNc2dXYXJuaW5nQ29sb3IiOiIjYmZiZjVkIiwic2tpbkxheWVyTXNnRXJyb3JDb2xvciI6IiNmZjAwMDAifSwiY2hhbm5lbEhpc3RvcnlNZXNzYWdlU2tpbk1hcCI6eyJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlVG9wU2VhcmNoSUNvbG9yIjoiI2JlYjBiMCIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbkNoYW5uZWxIaXN0b3J5TWVzc2FnZVRvcFNlYXJjaElucHV0Q29sb3IiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxIaXN0b3J5TWVzc2FnZUhlYWRlclRvb2xJdGVtVGl0bGVDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlU2VhcmNoUGFyYW1CYWRnZUNvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VTZWFyY2hQYXJhbUJhZGdlSG92ZXJCYWNrZ3JvdW5kIjoiIzVjODRlOSIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VTZWFyY2hQYXJhbUJhZGdlSG92ZXJDb2xvciI6IiNmZmYzZjMiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlU2VhcmNoUGFyYW1CYWRnZUFjdGl2ZUJhY2tncm91bmQiOiIjNmU4ZmU0Iiwic2tpbkNoYW5uZWxIaXN0b3J5TWVzc2FnZVNlYXJjaFBhcmFtQmFkZ2VBY3RpdmVDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlTGlzdEl0ZW1UaW1lQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxIaXN0b3J5TWVzc2FnZUNvbnRlbnRCb2R5TWVzc2FnZUJhY2tncm91bmQiOiIjMDAwMDAwIiwic2tpbkNoYW5uZWxIaXN0b3J5TWVzc2FnZUNvbnRlbnRCb2R5TWVzc2FnZUNvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VGb290ZXJUb3RhbENvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VGb290ZXJMb2FkTW9yZUNvbG9yIjoiI2FkYWNhYyIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VGb290ZXJMb2FkTW9yZUhvdmVyQ29sb3IiOiIjN2I4NWRmIn19` \ No newline at end of file diff --git a/conf/skin/light.js b/conf/skin/light.js new file mode 100644 index 0000000..e94c38c --- /dev/null +++ b/conf/skin/light.js @@ -0,0 +1 @@ +module.exports = `eyJjb21tU2tpbk1hcCI6eyJza2luVG9wSGVhZGVyVG9vbEJhY2tncm91bmQiOiIjZmZmZmZmIiwic2tpblRvcEhlYWRlclRpdGxlQ29sb3IiOiIjMzMzMzMzIiwic2tpblRvcEhlYWRlclRvb2xGaWxsQ29sb3IiOiIjOTU5NTk1Iiwic2tpblRvcEhlYWRlclRvb2xIb3ZlckZpbGxDb2xvciI6IiMzMzMzMzMiLCJza2luQm9keUNvbG9yIjoiIzAwMDAwMCIsInNraW5Cb2R5QmFja2dyb3VuZCI6IiNmNmY2ZjYiLCJza2luQm9keUJvcmRlckNvbG9yIjoiI2VhZTJlMjhmIn0sInNpZGViYXJTa2luTWFwIjp7InNraW5TaWRlYmFyVG9vbEJhY2tncm91bmQiOiIjZjRmNGY0Iiwic2tpblNpZGViYXJUb29sSG92ZXJCYWNrZ3JvdW5kIjoiI2E3YTRhNDM1Iiwic2tpblNpZGViYXJUb29sQ29sb3IiOiIjN2M3YjdiIiwic2tpblNpZGViYXJUb29sSG92ZXJDb2xvciI6IiMwMDAwMDAiLCJza2luU2lkZWJhclRvb2xGaWxsQ29sb3IiOiIjMDAwMDAwIiwic2tpblNpZGViYXJUb29sSG92ZXJGaWxsQ29sb3IiOiIjMDAwMDAwIiwic2tpblNpZGViYXJUb29sTW9yZUJvcmRlckNvbG9yIjoiI2ZiZTZlNiJ9LCJjaGFubmVsU2tpbk1hcCI6eyJza2luQ2hhbm5lbExpc3ROb0NoYW5uZWxDb2xvciI6IiMwMDAwMDA0NyIsInNraW5DaGFubmVsTGlzdEl0ZW1Ub3BCYWNrZ3JvdW5kIjoiI2U1ZWJmYzk2Iiwic2tpbkNoYW5uZWxUb3BTZWFyY2hJQ29sb3IiOiIjYzhjOGM4Iiwic2tpbkNoYW5uZWxUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjRjhGOUZCIiwic2tpbkNoYW5uZWxUb3BTZWFyY2hJbnB1dENvbG9yIjoiIzMzMzMzMzllIiwic2tpbkNoYW5uZWxDb250ZW50VG9wTW9yZUZpbGxDb2xvciI6IiM0QTRCREIiLCJza2luQ2hhbm5lbExpc3RJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiI2QyZGVmZjk2Iiwic2tpbkNoYW5uZWxMaXN0SXRlbU1lc3NhZ2VDb2xvciI6IiM3Nzc3NzciLCJza2luQ2hhbm5lbExpc3RJdGVtTWVzc2FnZUF0VXNlclRleHRDb2xvciI6IiNmZjAwMDAiLCJza2luQ2hhbm5lbExpc3RJdGVtTWVzc2FnZUF0TWVUZXh0Q29sb3IiOiIjZmYwMDAwIiwic2tpbkNoYW5uZWxMaXN0SXRlbVRpbWVDb2xvciI6IiNiOGI4YjgiLCJza2luQ2hhbm5lbExpc3RJdGVtUXVpY2tNYXJrVW5yZWFkQmFja2dyb3VuZCI6IiM2Yjk1YmUiLCJza2luQ2hhbm5lbExpc3RJdGVtUXVpY2tNYXJrVW5yZWFkQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxMaXN0SXRlbVF1aWNrVG9wQmFja2dyb3VuZCI6IiM3NWI5NjMiLCJza2luQ2hhbm5lbExpc3RJdGVtUXVpY2tUb3BDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbExpc3RJdGVtUXVpY2tEZWxldGVCYWNrZ3JvdW5kIjoiI2JhNmY2ZiIsInNraW5DaGFubmVsTGlzdEl0ZW1RdWlja0RlbGV0ZUNvbG9yIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsTGlzdEl0ZW1RdWlja0hpZGRlbkJhY2tncm91bmQiOiIjODhhZGFjIiwic2tpbkNoYW5uZWxMaXN0SXRlbVF1aWNrSGlkZGVuQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxMaXN0SXRlbVF1aWNrVW5Ob3RpZnlCYWNrZ3JvdW5kIjoiI2MyYjg2MiIsInNraW5DaGFubmVsTGlzdEl0ZW1RdWlja1VuTm90aWZ5Q29sb3IiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VCYWNrZ3JvdW5kIjoiI2Q5ZGVmZiIsInNraW5DaGFubmVsQ29udGVudEJvZHlNZXNzYWdlQ29sb3IiOiIjMDAwMDAwIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VTeXN0ZW1Db2xvciI6IiNiN2JiYzciLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZVRpbWVDb2xvciI6IiNiN2JiYzciLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5TWVzc2FnZUxvYWRNb3JlQ29sb3IiOiIjYjdiYmM3Iiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VMb2FkTW9yZUhvdmVyQ29sb3IiOiIjNEE0QkRCIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VOYW1lQ29sb3IiOiIjN2E3Nzc3Iiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VOYW1lSG92ZXJDb2xvciI6IiM0QTRCREIiLCJza2luQ2hhbm5lbENvbnRlbnRCb2R5SXRlbU1lc3NhZ2VBdFVzZXJUZXh0Q29sb3IiOiIjNEE0QkRCIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VNZW51SWNvbkJhY2tncm91bmQiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VNZW51SWNvbkNvbG9yIjoiIzAwMDAwMCIsInNraW5DaGFubmVsQ29udGVudEJvZHlNZXNzYWdlTWVudUljb25Ib3ZlckJhY2tncm91bmQiOiIjZmZmZmZmIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keU1lc3NhZ2VNZW51SWNvbkhvdmVyQ29sb3IiOiIjMDAwMDAwIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keVJlcGx5Q29udGVudEJsb2NrQ29sb3IiOiIjOTM5MzkyIiwic2tpbkNoYW5uZWxDb250ZW50Qm9keVJlcGx5Q29udGVudEJsb2NrQmFja2dyb3VuZCI6IiNkYmU2ZTM3OCJ9LCJjb250YWN0U2tpbk1hcCI6eyJza2luQ29udGFjdEhlYWRlclRvb2xTdmdGaWxsQ29sb3IiOiIjOTU5NTk1Iiwic2tpbkNvbnRhY3RIZWFkZXJUb29sU3ZnSG92ZXJGaWxsQ29sb3IiOiIjMzMzMzMzIiwic2tpbkNvbnRhY3RUb3BTZWFyY2hJQ29sb3IiOiIjYzhjOGM4Iiwic2tpbkNvbnRhY3RUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjRjhGOUZCIiwic2tpbkNvbnRhY3RUb3BTZWFyY2hJbnB1dENvbG9yIjoiIzMzMzMzMzllIiwic2tpbkNvbnRhY3RMaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiNkMmRlZmY5NiIsInNraW5Db250YWN0Q29udGVudFRvb2xJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiIzYyNjNGQiIsInNraW5Db250YWN0Q29udGVudE90aGVySXRlbUJhZGdlQmFja2dyb3VuZCI6IiMxZTlmZmYiLCJza2luQ29udGFjdENvbnRlbnRJdGVtTWVzc2FnZUNvbG9yIjoiIzc3Nzc3NyIsInNraW5Db250YWN0Q29udGVudEl0ZW1PdGhlclN0YXR1c0NvbG9yIjoiI2I4YjhiOCJ9LCJjbG91ZFNraW5NYXAiOnsic2tpbkNsb3VkVG9wU2VhcmNoSUNvbG9yIjoiI2M4YzhjOCIsInNraW5DbG91ZFRvcFNlYXJjaElucHV0QmFja2dyb3VuZCI6IiNGOEY5RkIiLCJza2luQ2xvdWRUb3BTZWFyY2hJbnB1dENvbG9yIjoiIzMzMzMzMzllIiwic2tpbkNsb3VkVG9wVG9vbEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjZmZmZmZmIiwic2tpbkNsb3VkVG9wVG9vbEl0ZW1BY3RpdmVCYWNrZ3JvdW5kIjoiI2ZmZmZmZiIsInNraW5DbG91ZFRvcFRvb2xJdGVtU3ZnSG92ZXJGaWxsQ29sb3IiOiIjNjI2M0ZCIiwic2tpbkNsb3VkQ29udGVudFNlYXJjaFBhcmFtQmFkZ2VDb2xvciI6IiMwMDAwMDAiLCJza2luQ2xvdWRDb250ZW50U2VhcmNoUGFyYW1CYWRnZUhvdmVyQmFja2dyb3VuZCI6IiM2ZThmZTQiLCJza2luQ2xvdWRDb250ZW50U2VhcmNoUGFyYW1CYWRnZUhvdmVyQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNsb3VkTGlzdEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjZDJkZWZmOTYiLCJza2luQ2xvdWRMaXN0SXRlbUFjdGl2ZUJhY2tncm91bmQiOiIjZDJkZWZmOTYiLCJza2luQ2xvdWRMaXN0SXRlbVRvb2xJdGVtQmFja2dyb3VuZCI6InJnYigyNDYsIDI0NiwgMjQ2KSIsInNraW5DbG91ZExpc3RJdGVtVG9vbEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjZmZmZmZmIiwic2tpbkNsb3VkTGlzdEl0ZW1Ub29sSXRlbVN2Z0ZpbGxDb2xvciI6IiMwMDAwMDA5NiIsInNraW5DbG91ZExpc3RJdGVtVG9vbEl0ZW1TdmdIb3ZlckZpbGxDb2xvciI6IiM2MjYzRkIiLCJza2luQ2xvdWRMaXN0SXRlbVRpbWVDb2xvciI6IiMwMDAwMDA0ZCIsInNraW5DbG91ZFNoYXJlUG9wdXBEZXRhaWxJdGVtQmFja2dyb3VuZCI6IiNmZmZmZmYiLCJza2luQ2xvdWRTcGFjZUl0ZW1CYWNrZ3JvdW5kIjoiI2Y4ZjlmYSIsInNraW5DbG91ZFNwYWNlSXRlbVByb2Nlc3NCYXJCYWNrZ3JvdW5kIjoiI2YyZjJmMiIsInNraW5DbG91ZFNwYWNlSXRlbVByb2Nlc3NCYWNrZ3JvdW5kIjoiIzRlNmVmMiIsInNraW5DbG91ZFNwYWNlSXRlbVBDb2xvciI6IiM2NjY2NjYiLCJza2luQ2xvdWRTcGFjZUl0ZW1DbGVhbnVwQmFja2dyb3VuZCI6IiNmOGY5ZmEiLCJza2luQ2xvdWRTcGFjZUl0ZW1DbGVhbnVwSG92ZXJCYWNrZ3JvdW5kIjoiI2YxZjNmNSIsInNraW5DbG91ZFNwYWNlSXRlbUNsZWFudXBJY29uQmFja2dyb3VuZCI6IiNlOWVjZWYiLCJza2luQ2xvdWRTcGFjZUl0ZW1DbGVhbkJ0bkJhY2tncm91bmQiOiIjNjRhY2YzIiwic2tpbkNsb3VkU3BhY2VJdGVtQ2xlYW5CdG5Db2xvciI6IiNmZmZmZmYiLCJza2luQ2xvdWRTcGFjZUl0ZW1DbGVhbkJ0bkhvdmVyQmFja2dyb3VuZCI6IiMzMDkxZjMiLCJza2luQ2xvdWRTcGFjZUl0ZW1DbGVhbkJ0bkhvdmVyQ29sb3IiOiIjZmZmZmZmIiwic2tpbkNsb3VkU3BhY2VJdGVtTWFuYWdlQnRuQmFja2dyb3VuZCI6IiM0YmE4NmQiLCJza2luQ2xvdWRTcGFjZUl0ZW1NYW5hZ2VCdG5Db2xvciI6IiNmZmZmZmYiLCJza2luQ2xvdWRTcGFjZUl0ZW1NYW5hZ2VCdG5Ib3ZlckJhY2tncm91bmQiOiIjMzk5MzVhIiwic2tpbkNsb3VkU3BhY2VJdGVtTWFuYWdlQnRuSG92ZXJDb2xvciI6IiNmZmZmZmYiLCJza2luQ2xvdWRTcGFjZUl0ZW1EZWxldGVCdG5CYWNrZ3JvdW5kIjoiI2Y0NWQ1ZCIsInNraW5DbG91ZFNwYWNlSXRlbURlbGV0ZUJ0bkNvbG9yIjoiI2ZmZmZmZiIsInNraW5DbG91ZFNwYWNlSXRlbURlbGV0ZUJ0bkhvdmVyQmFja2dyb3VuZCI6IiNkYTRkNGQiLCJza2luQ2xvdWRTcGFjZUl0ZW1EZWxldGVCdG5Ib3ZlckNvbG9yIjoiI2ZmZmZmZiIsInNraW5DbG91ZFNwYWNlSXRlbVR5cGVJbWFnZUJhY2tncm91bmQiOiIjMGNkOGZmIiwic2tpbkNsb3VkU3BhY2VJdGVtVHlwZVZpZGVvQmFja2dyb3VuZCI6IiM0ZTZlZjIiLCJza2luQ2xvdWRTcGFjZUl0ZW1UeXBlTXVzaWNCYWNrZ3JvdW5kIjoiI2YyYTE0ZSIsInNraW5DbG91ZFNwYWNlSXRlbVR5cGVEb2NCYWNrZ3JvdW5kIjoiIzAwYjg5NCIsInNraW5DbG91ZFNwYWNlSXRlbVR5cGVaaXBCYWNrZ3JvdW5kIjoiI2IzYzcyNyIsInNraW5DbG91ZFNwYWNlSXRlbVR5cGVPdGhlckJhY2tncm91bmQiOiIjYjJiZWMzIiwic2tpbkNsb3VkU3BhY2VJdGVtU2NhbkhvdmVyQmFja2dyb3VuZCI6IiNmMWYzZjUifSwicDJwQ2hhbm5lbFNraW5NYXAiOnsic2tpblAycENoYW5uZWxUb3BTZWFyY2hJQ29sb3IiOiIjYzhjOGM4Iiwic2tpblAycENoYW5uZWxUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjRjhGOUZCIiwic2tpblAycENoYW5uZWxUb3BTZWFyY2hJbnB1dENvbG9yIjoiIzMzMzMzMzllIiwic2tpblAycENoYW5uZWxUb3BUb29sSXRlbUhvdmVyQmFja2dyb3VuZCI6IiNmZmZmZmYiLCJza2luUDJwQ2hhbm5lbFRvcFRvb2xJdGVtQWN0aXZlQmFja2dyb3VuZCI6IiNmZmZmZmYiLCJza2luUDJwQ2hhbm5lbFRvcFRvb2xJdGVtU3ZnSG92ZXJGaWxsQ29sb3IiOiIjMDAwMDAwIiwic2tpblAycENoYW5uZWxDZW50ZXJTdmdGaWxsQ29sb3IiOiIjYzBjNGM4Iiwic2tpblAycENoYW5uZWxMaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiNkMmRlZmY5NiIsInNraW5QMnBDaGFubmVsTGlzdEl0ZW1UaW1lQ29sb3IiOiIjMDAwMDAwNGQiLCJza2luUDJwQ2hhbm5lbExpc3RJdGVtVG9vbEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjZWZlM2UzIiwic2tpblAycENoYW5uZWxMaXN0SXRlbVRvb2xJdGVtQmFja2dyb3VuZCI6IiNmNmY2ZjYiLCJza2luUDJwQ2hhbm5lbExpc3RJdGVtVG9vbEl0ZW1TdmdGaWxsQ29sb3IiOiIjMDAwMDAwOTYiLCJza2luUDJwQ2hhbm5lbExpc3RJdGVtVG9vbEl0ZW1TdmdIb3ZlckZpbGxDb2xvciI6IiM2MjYzRkIiLCJza2luUDJwQ2hhbm5lbFNoYXJlVG9vbEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjMDBjM2ZmMWUifSwibWVldGluZ1NraW5NYXAiOnsic2tpbk1lZXRpbmdMaXN0SXRlbUhvdmVyQmFja2dyb3VuZCI6IiNkMmRlZmY5NiIsInNraW5NZWV0aW5nTGlzdEl0ZW1BY3RpdmVCYWNrZ3JvdW5kIjoiI2QyZGVmZjk2Iiwic2tpbk1lZXRpbmdUb3BTZWFyY2hJQ29sb3IiOiIjYzhjOGM4Iiwic2tpbk1lZXRpbmdUb3BTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjRjhGOUZCIiwic2tpbk1lZXRpbmdUb3BTZWFyY2hJbnB1dENvbG9yIjoiIzMzMzMzMzllIiwic2tpbk1lZXRpbmdDb250ZW50SGVhZGVyVGl0bGVCYWNrZ3JvdW5kIjoiI2VhZWFlYSIsInNraW5NZWV0aW5nQ29udGVudEhpc3RvcnlJdGVtQmFja2dyb3VuZCI6IiNmMWYzZjQiLCJza2luTWVldGluZ0NvbnRlbnRIaXN0b3J5SXRlbVRpdGxlQ29sb3IiOiIjOTA4MjgyIiwic2tpbk1lZXRpbmdDb250ZW50SGlzdG9yeUl0ZW1TdGF0dXNDcmVhdGVDb2xvciI6IiNmZmZmZmYiLCJza2luTWVldGluZ0NvbnRlbnRIaXN0b3J5SXRlbVN0YXR1c0NyZWF0ZUJhY2tncm91bmQiOiIjMWU5ZmZmIiwic2tpbk1lZXRpbmdDb250ZW50SGlzdG9yeUl0ZW1TdGF0dXNDcmVhdGVCb2RlckNvbG9yIjoiIzFlOWZmZiIsInNraW5NZWV0aW5nQ29udGVudEhpc3RvcnlJdGVtU3RhdHVzU3RhcnRDb2xvciI6IiNmZmZmZmYiLCJza2luTWVldGluZ0NvbnRlbnRIaXN0b3J5SXRlbVN0YXR1c1N0YXJ0QmFja2dyb3VuZCI6IiM1ZGM2NjQiLCJza2luTWVldGluZ0NvbnRlbnRIaXN0b3J5SXRlbVN0YXR1c1N0YXJ0Qm9kZXJDb2xvciI6IiM1ZGM2NjQiLCJza2luTWVldGluZ0NvbnRlbnRIaXN0b3J5SXRlbVN0YXR1c0VuZENvbG9yIjoiI2ZmZmZmZiIsInNraW5NZWV0aW5nQ29udGVudEhpc3RvcnlJdGVtU3RhdHVzRW5kQmFja2dyb3VuZCI6IiNkYzY5NWYiLCJza2luTWVldGluZ0NvbnRlbnRIaXN0b3J5SXRlbVN0YXR1c0VuZEJvZGVyQ29sb3IiOiIjZGM2OTVmIn0sImxvZ2luU2tpbk1hcCI6eyJza2luTG9naW5CdXR0b25CYWNrZ3JvdW5kIjoiIzYyNjNGQiIsInNraW5Mb2dpbkxpc3RJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiI2QyZGVmZjk2Iiwic2tpbkxvZ2luTGlzdEl0ZW1Ib3ZlckNvbG9yIjoiIzFlNzFlZSIsInNraW5Mb2dpbkNvbnRlbnRGb3JtSW5wdXRDb2xvciI6IiMzMzMzMzM5ZSIsInNraW5Mb2dpbkNvbnRlbnRCb2R5Qm90dG9tQ29sb3IiOiIjNWM4ZGQ3Iiwic2tpbkxvZ2luQ29udGVudEJvZHlCb3R0b21Ib3ZlckNvbG9yIjoiIzFlNzFlZSIsInNraW5Mb2dpbkNvbnRlbnRCb2R5U2NhblRpdGxlQ29sb3IiOiIjOTM5ZWE2Iiwic2tpbkxvZ2luQ29udGVudEJvZHlTY2FuVGl0bGVCYWNrZ3JvdW5kIjoiYXp1cmUiLCJza2luTG9naW5Db250ZW50Qm9keVNjYW5Db2RlSXRlbURpc2FibGVkQmFja2dyb3VuZCI6IiNlNmU4ZWE3YSIsInNraW5Mb2dpbkNvbnRlbnRCb2R5U2NhbkNvZGVJdGVtRm9jdXNCb3JkZXJDb2xvciI6IiMwMDdiZmYiLCJza2luTG9naW5FbWFpbENvZGVCdG5Db2xvciI6IiNmZmZmZmYiLCJza2luTG9naW5FbWFpbENvZGVCdG5EaXNhYmxlZEJhY2tncm91bmQiOiIjY2NjIiwic2tpbkxvZ2luSGVscE1vYmlsZUNvbG9yIjoiIzhiOGI5ZSIsInNraW5Mb2dpbkhlbHBNb2JpbGVIb3ZlckNvbG9yIjoiIzFlNzFlZSIsInNraW5Mb2dpbkJvZHlDbGVhbkNvbG9yIjoiIzFlNzFlZSIsInNraW5Mb2dpbkJvZHlDbGVhbkhvdmVyQ29sb3IiOiIjMWU3MWVlIiwic2tpbkxvZ2luSXRlbU1vYmlsZUljb25CYWNrZ3JvdW5kIjoiI2JkZGNmZjQ3In0sInNldHRpbmdTa2luTWFwIjp7InNraW5TZXR0aW5nTGlzdEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjZDJkZWZmOTYiLCJza2luU2V0dGluZ0xpc3RJdGVtQWN0aXZlQmFja2dyb3VuZCI6IiNkMmRlZmY5NiIsInNraW5TZXR0aW5nVG9wU2VhcmNoSUNvbG9yIjoiI2M4YzhjOCIsInNraW5TZXR0aW5nVG9wU2VhcmNoSW5wdXRCYWNrZ3JvdW5kIjoiI0Y4RjlGQiIsInNraW5TZXR0aW5nVG9wU2VhcmNoSW5wdXRDb2xvciI6IiMzMzMzMzM5ZSIsInNraW5TZXR0aW5nQ29udGVudFRvcEV4cG9ydEJhY2tncm91bmQiOiIjZmZmZmZmIiwic2tpblNldHRpbmdDb250ZW50VG9wRXhwb3J0RmlsbENvbG9yIjoiIzAwMDAwMCIsInNraW5TZXR0aW5nQ29udGVudEJsb2NrQmFja2dyb3VuZCI6IiNmZmZmZmY2OSIsInNraW5TZXR0aW5nQ29udGVudEJsb2NrQmFkZ2VCYWNrZ3JvdW5kIjoid2hpdGUiLCJza2luU2V0dGluZ0NvbnRlbnRCbG9ja0JhZGdlQ29sb3IiOiJibGFjayIsInNraW5TZXR0aW5nQ29udGVudEJsb2NrQmFkZ2VIb3ZlckJhY2tncm91bmQiOiIjNjI2M0ZCIiwic2tpblNldHRpbmdDb250ZW50QmxvY2tCYWRnZUhvdmVyQ29sb3IiOiIjZmZmZmZmIiwic2tpblNldHRpbmdDb250ZW50QmxvY2tJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiI2U2ZjRmZiIsInNraW5TZXR0aW5nQ29udGVudEJpbmRJY29uSG92ZXJDb2xvciI6IiMxZTcxZWUiLCJza2luU2V0dGluZ0NvbnRlbnRCaW5kSWNvblRpcEZpbGxDb2xvciI6IiNjNGM0ZjQiLCJza2luU2V0dGluZ0NvbnRlbnRQcmV2aWV3SXRlbVN2Z0JhY2tncm91bmQiOiIjZmZmZmZmIiwic2tpblNldHRpbmdDb250ZW50UHJldmlld0l0ZW1TdmdIb3ZlckJhY2tncm91bmQiOiIjZTFmM2ZmIiwic2tpblNldHRpbmdDb250ZW50QWNjb3VudEJpbmRFbWFpbEJ0bkJhY2tncm91bmQiOiIjNzg3OGM1Iiwic2tpblNldHRpbmdDb250ZW50QWNjb3VudEJpbmRFbWFpbEJ0bkNvbG9yIjoiI2ZmZmZmZiIsInNraW5TZXR0aW5nQ29udGVudEFjY291bnRCaW5kRW1haWxJbnB1dEJhY2tncm91bmQiOiIjRjhGOUZCIiwic2tpblNldHRpbmdDb250ZW50QWNjb3VudEJpbmRFbWFpbElucHV0Q29sb3IiOiIjMzMzMzMzOWUiLCJza2luU2V0dGluZ0NvbnRlbnRBY2NvdW50QmluZEVtYWlsQnRuRGlzYWJsZWRCYWNrZ3JvdW5kIjoiI2NjYyIsInNraW5TZXR0aW5nQ29udGVudEFjY291bnRCaW5kRW1haWxCdG5EaXNhYmxlZENvbG9yIjoiI2ZmZmZmZiJ9LCJjdXRQYXN0ZVNraW5NYXAiOnsic2tpbkN1dFBhc3RlVG9wU2VhcmNoSUNvbG9yIjoiI2M4YzhjOCIsInNraW5DdXRQYXN0ZVRvcFNlYXJjaElucHV0QmFja2dyb3VuZCI6IiNGOEY5RkIiLCJza2luQ3V0UGFzdGVUb3BTZWFyY2hJbnB1dENvbG9yIjoiIzMzMzMzMzllIiwic2tpbkN1dFBhc3RlTGlzdEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjZDJkZWZmOTYiLCJza2luQ3V0UGFzdGVMaXN0SXRlbVRvcEJhY2tncm91bmQiOiIjZTVlYmZjOTYiLCJza2luQ3V0UGFzdGVMaXN0SXRlbU1lc3NhZ2VDb2xvciI6IiM3Nzc3NzciLCJza2luQ3V0UGFzdGVMaXN0SXRlbVRpbWVDb2xvciI6IiNiOGI4YjgifSwiZGF0ZXNTa2luTWFwIjp7InNraW5EYXRlc0xpc3RJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiI2QyZGVmZjk2Iiwic2tpbkRhdGVzTGlzdEl0ZW1BY3RpdmVCYWNrZ3JvdW5kIjoiI2QyZGVmZjk2Iiwic2tpbkRhdGVzVG9wU2VhcmNoSUNvbG9yIjoiI2M4YzhjOCIsInNraW5EYXRlc1RvcFNlYXJjaElucHV0QmFja2dyb3VuZCI6IiNGOEY5RkIiLCJza2luRGF0ZXNUb3BTZWFyY2hJbnB1dENvbG9yIjoiIzMzMzMzMzllIiwic2tpbkRhdGVzSXRlbVNlbGVjdEJhY2tncm91bmQiOiIjNTk3MmFmIiwic2tpbkRhdGVzSXRlbUhvdmVyQmFja2dyb3VuZCI6IiNlZWVlZWUiLCJza2luRGF0ZXNJdGVtTmV4dFByZXZCYWNrZ3JvdW5kIjoiI2NiY2JjYiJ9LCJkb2N1bWVudFNraW5NYXAiOnsic2tpbkRvY3VtZW50VG9wU2VhcmNoSUNvbG9yIjoiI2M4YzhjOCIsInNraW5Eb2N1bWVudFRvcFNlYXJjaElucHV0QmFja2dyb3VuZCI6IiNmOGY5ZmIiLCJza2luRG9jdW1lbnRUb3BTZWFyY2hJbnB1dENvbG9yIjoiIzMzMzMzMzllIiwic2tpbkRvY3VtZW50TGlzdEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjZDJkZWZmIiwic2tpbkRvY3VtZW50TGlzdEl0ZW1BY3RpdmVCYWNrZ3JvdW5kIjoiI2QyZGVmZiIsInNraW5Eb2N1bWVudExpc3RJdGVtTmFtZVRleHRIb3ZlckNvbG9yIjoiIzFlNzFlZSIsInNraW5Eb2N1bWVudExpc3RJdGVtU2l6ZUNvbG9yIjoiIzAwMDAwMCIsInNraW5Eb2N1bWVudExpc3RFbXB0eUNvbG9yIjoiI2MxYmFjNyIsInNraW5Eb2N1bWVudExpc3RJdGVtVGFnQ29sb3IiOiIjMDAwMDAwIn0sImFpQXNzaXN0YW50U2tpbk1hcCI6eyJza2luQWlBc3Npc3RhbnRUb3BTZWFyY2hJQ29sb3IiOiIjYzhjOGM4Iiwic2tpbkFpQXNzaXN0YW50VG9wU2VhcmNoSW5wdXRCYWNrZ3JvdW5kIjoiI0Y4RjlGQiIsInNraW5BaUFzc2lzdGFudFRvcFNlYXJjaElucHV0Q29sb3IiOiIjNTM1NzY3Iiwic2tpbkFpQXNzaXN0YW50TGlzdEl0ZW1Ib3ZlckJhY2tncm91bmQiOiIjZDJkZWZmOTYiLCJza2luQWlBc3Npc3RhbnRMaXN0SXRlbUFjdGl2ZUJhY2tncm91bmQiOiIjMWE4OGZmMGQiLCJza2luQWlBc3Npc3RhbnRMaXN0SXRlbVRhZ0NvbG9yIjoiIzAwMDAwMDk2Iiwic2tpbkFpQXNzaXN0YW50TGlzdEl0ZW1OYW1lVGV4dEhvdmVyQ29sb3IiOiIjMDAwMDAwIiwic2tpbkFpQXNzaXN0YW50TGlzdEl0ZW1TaXplQ29sb3IiOiIjMDAwMDAwNGQiLCJza2luQWlBc3Npc3RhbnRDb250ZW50T3RoZXJJdGVtQmFkZ2VCYWNrZ3JvdW5kIjoiIzFlOWZmZiIsInNraW5BaUFzc2lzdGFudENvbnRlbnRUb29sSXRlbUhvdmVyQmFja2dyb3VuZCI6IiM2MjYzRkIifSwiY2hhbm5lbE1vcmVTa2luTWFwIjp7InNraW5DaGFubmVsQ29udGVudE1vcmVCYWNrZ3JvdW5kIjoiI2ZmZmZmZiIsInNraW5DaGFubmVsQ29udGVudE1vcmVMaXN0SXRlbUhvdmVyQ29sb3IiOiIjNzU3NWJkIiwic2tpbkNoYW5uZWxDb250ZW50TW9yZUxpc3RJdGVtT3BlckNoYW5uZWxOYW1lQ29sb3IiOiIjMDAwMDAwOGEiLCJza2luQ2hhbm5lbENvbnRlbnRNb3JlU2hhcmVUb29sSXRlbUhvdmVyQmFja2dyb3VuZCI6IiMwMGMzZmYxZSIsInNraW5DaGFubmVsQ29udGVudE1vcmVMaXN0SXRlbUJvcmRlckNvbG9yIjoiI2Y5ZjlmOSIsInNraW5DaGFubmVsQ29udGVudE1vcmVMaXN0VXNlckl0ZW1PcGVySG92ZXJCYWNrZ3JvdW5kIjoiI2VlZWVlZSIsInNraW5DaGFubmVsQ29udGVudE1vcmVMaXN0VXNlckl0ZW1PcGVySG92ZXJGaWxsQ29sb3IiOiIjNTU3MTg5In0sImNoYW5uZWxJbnZpdGVTa2luTWFwIjp7InNraW5DaGFubmVsQ29udGVudEludml0ZVNlYXJjaElDb2xvciI6IiNjOGM4YzgiLCJza2luQ2hhbm5lbENvbnRlbnRJbnZpdGVTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjRjhGOUZCIiwic2tpbkNoYW5uZWxDb250ZW50SW52aXRlU2VhcmNoSW5wdXRDb2xvciI6IiMzMzMzMzM5ZSIsInNraW5DaGFubmVsQ29udGVudEludml0ZUNob29zZUxpc3RJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiI2QyZGVmZjk2Iiwic2tpbkNoYW5uZWxDb250ZW50SW52aXRlQ2hvb3NlTGlzdEVtcHR5Q29sb3IiOiIjYjNhYWFhIn0sImNoYW5uZWxOb3RpY2VTa2luTWFwIjp7InNraW5DaGFubmVsQ29udGVudE5vdGljZUVtcHR5Q29sb3IiOiIjMDAwMDAwNDciLCJza2luQ2hhbm5lbENvbnRlbnROb3RpY2VJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiI2Y3ZjZmNiIsInNraW5DaGFubmVsQ29udGVudE5vdGljZUl0ZW1UaW1lQ29sb3IiOiIjYjdiYmM3Iiwic2tpbkNoYW5uZWxDb250ZW50Tm90aWNlSXRlbVRpdGxlQ29sb3IiOiIjYjZjMWJiIn0sInF1aWNrT3BlclNraW5NYXAiOnsic2tpblF1aWNrT3BlclBhbmVsQmFja2dyb3VuZCI6IiNmNmY2ZjYiLCJza2luUXVpY2tPcGVyUGFuZWxJdGVtSG92ZXJCYWNrZ3JvdW5kIjoiI2VhZTZlMSIsInNraW5RdWlja09wZXJQYW5lbEl0ZW1Db2xvciI6IiM3OTdlN2UiLCJza2luUXVpY2tPcGVyUGFuZWxJdGVtSG92ZXJDb2xvciI6IiMwMDAwMDAifSwibWVkaWFTa2luTWFwIjp7InNraW5NZWRpYVZpZGVvVG9vbExpc3RTdmdGaWxsQ29sb3IiOiIjZmZmZmZmIiwic2tpbk1lZGlhVmlkZW9Ub29sTGlzdFN2Z0JhY2tncm91bmQiOiIjMDAwMDAwNjkiLCJza2luTWVkaWFWaWRlb1Rvb2xMaXN0U3ZnSG92ZXJCYWNrZ3JvdW5kIjoiIzAwMDAwMGRiIiwic2tpbk1lZGlhVmlkZW9Ub29sTGlzdFN2Z0hvdmVyRmlsbENvbG9yIjoiI2ZmZmZmZiIsInNraW5NZWRpYVZpZGVvVG9vbExpc3RZc3FDbG9zZUJhY2tncm91bmQiOiIjOWJhNDk4YzciLCJza2luTWVkaWFTY3JlZW5PdGhlckl0ZW1Cb3JkZXJDb2xvciI6IiNmZmY4MDAiLCJza2luTWVkaWFTY3JlZW5Ub29sTGlzdFN2Z0ZpbGxDb2xvciI6IiNmZmZmZmYiLCJza2luTWVkaWFTY3JlZW5Ub29sTGlzdFN2Z0JhY2tncm91bmQiOiIjMDAwMDAwNjkiLCJza2luTWVkaWFTY3JlZW5Ub29sTGlzdFN2Z0hvdmVyRmlsbENvbG9yIjoiI2ZmZmZmZiIsInNraW5NZWRpYVNjcmVlblRvb2xMaXN0U3ZnSG92ZXJCYWNrZ3JvdW5kIjoiIzAwMDAwMGRiIn0sImZhY2VTa2luTWFwIjp7InNraW5GYWNlSXRlbUhvdmVyQmFja2dyb3VuZCI6IiNkMmRlZmY5NiIsInNraW5GYWNlSXRlbUhvdmVyQ29sb3IiOiIjMDAwMDAwIiwic2tpbkZhY2VUYWJCYWNrZ3JvdW5kIjoiI2Y2ZjZmNiIsInNraW5GYWNlVGFiQ29sb3IiOiIjNzM2ZDZkIiwic2tpbkZhY2VUYWJIb3ZlckJhY2tncm91bmQiOiIjZDJkZWZmOTYiLCJza2luRmFjZVRhYkhvdmVyQ29sb3IiOiIjMDAwMDAwIiwic2tpbkZhY2VTZWFyY2hJbnB1dEJhY2tncm91bmQiOiIjRjhGOUZCIiwic2tpbkZhY2VTZWFyY2hJbnB1dENvbG9yIjoiIzMzMzMzMzllIiwic2tpbkZhY2VDb250ZW50VGl0bGVDb2xvciI6IiM5OTkifSwibGF5ZXJNc2dTa2luTWFwIjp7InNraW5MYXllck1zZ0JhY2tncm91bmQiOiIjZjZmNmY2Iiwic2tpbkxheWVyTXNnQ29sb3IiOiIjMDAwMDAwIiwic2tpbkxheWVyTXNnU3VjY2Vzc0NvbG9yIjoiIzA0ZGQwNCIsInNraW5MYXllck1zZ1dhcm5pbmdDb2xvciI6IiNiZmJmNWQiLCJza2luTGF5ZXJNc2dFcnJvckNvbG9yIjoiI2ZmMDAwMCJ9LCJjaGFubmVsSGlzdG9yeU1lc3NhZ2VTa2luTWFwIjp7InNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VUb3BTZWFyY2hJQ29sb3IiOiIjYzhjOGM4Iiwic2tpbkNoYW5uZWxIaXN0b3J5TWVzc2FnZVRvcFNlYXJjaElucHV0QmFja2dyb3VuZCI6IiNGOEY5RkIiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlVG9wU2VhcmNoSW5wdXRDb2xvciI6IiMzMzMzMzM5ZSIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VIZWFkZXJUb29sSXRlbVRpdGxlQ29sb3IiOiIjMDAwMDAwNGQiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlU2VhcmNoUGFyYW1CYWRnZUNvbG9yIjoiIzAwMDAwMCIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VTZWFyY2hQYXJhbUJhZGdlSG92ZXJCYWNrZ3JvdW5kIjoiIzZlOGZlNCIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VTZWFyY2hQYXJhbUJhZGdlSG92ZXJDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlU2VhcmNoUGFyYW1CYWRnZUFjdGl2ZUJhY2tncm91bmQiOiIjNmU4ZmU0Iiwic2tpbkNoYW5uZWxIaXN0b3J5TWVzc2FnZVNlYXJjaFBhcmFtQmFkZ2VBY3RpdmVDb2xvciI6IiNmZmZmZmYiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlTGlzdEl0ZW1UaW1lQ29sb3IiOiIjMDAwMDAwNGQiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlQ29udGVudEJvZHlNZXNzYWdlQmFja2dyb3VuZCI6IiNkOWRlZmYiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlQ29udGVudEJvZHlNZXNzYWdlQ29sb3IiOiIjMDAwMDAwIiwic2tpbkNoYW5uZWxIaXN0b3J5TWVzc2FnZUZvb3RlclRvdGFsQ29sb3IiOiIjMDAwMDAwOTEiLCJza2luQ2hhbm5lbEhpc3RvcnlNZXNzYWdlRm9vdGVyTG9hZE1vcmVDb2xvciI6IiMwMDAwMDA4MCIsInNraW5DaGFubmVsSGlzdG9yeU1lc3NhZ2VGb290ZXJMb2FkTW9yZUhvdmVyQ29sb3IiOiIjN2I4NWRmIn19` \ No newline at end of file diff --git a/gulp-obfuscator.js b/gulp-obfuscator.js new file mode 100644 index 0000000..9eaf8c8 --- /dev/null +++ b/gulp-obfuscator.js @@ -0,0 +1,5 @@ +module.exports = { + replaceVarsMap: { + "tl-rtc-app-": "TL-RTC-APP-SDK-", + }, +}; \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index ef23051..a32e2b0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,5 +1,8 @@ 'use strict'; +const { + replaceVarsMap +} = require('./gulp-obfuscator'); const pkg = require('./package.json'); const gulp = require('gulp'); @@ -43,15 +46,19 @@ const argv = minimist(process.argv.slice(2), { }); // 输出目录 -const dest = ({ - dist: './dist' +const web_dest = ({ + dist: './web-dist' }[argv.dest || 'dist'] || argv.dest) + (argv.vs ? '/' + pkg.version : ''); +const system_dest = ({ + dist: './system-dist' +}[argv.dist || 'dist'] || argv.dist) + (argv.vs ? '/' + pkg.version : ''); + // lib-entry-sdk.min.js -const entry_js = () => { +const web_entry_js = () => { return gulp.src([ - './web-v2-res/js/tl_rtc_entry.js', + './web-res/js/tl_rtc_entry.js', ]) .pipe(babel()) .pipe(uglifyEs({ @@ -63,6 +70,12 @@ const entry_js = () => { })) .pipe(replace(' ', '')) .pipe(replace('\n', '')) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) .pipe(replace( 'lib-basic-sdk.min.js', 'lib-basic-sdk.min.' + fileVersion + '.js' )) @@ -74,7 +87,7 @@ const entry_js = () => { )) .pipe(concat('lib-entry-sdk.min.' + fileVersion + '.js', { newLine: ' ' })) .pipe(header.apply(null, config.comment)) - .pipe(gulp.dest(dest)) + .pipe(gulp.dest(web_dest)) .pipe(gzip({ append: true, gzipOptions: { @@ -82,14 +95,13 @@ const entry_js = () => { memLevel: 9 } })) - .pipe(gulp.dest(dest)); + .pipe(gulp.dest(web_dest)); }; - // lib-basic-sdk.min.js -const basic_js = () => { +const web_basic_js = () => { return gulp.src([ - './web-v2-res/js/basic/*.js', + './web-res/js/basic/*.js', ]) .pipe(babel()) .pipe(uglifyEs({ @@ -101,9 +113,15 @@ const basic_js = () => { })) .pipe(replace(' ', '')) .pipe(replace('\n', '')) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) .pipe(concat('lib-basic-sdk.min.' + fileVersion + '.js', { newLine: ';' })) .pipe(header.apply(null, config.comment)) - .pipe(gulp.dest(dest)) + .pipe(gulp.dest(web_dest)) .pipe(gzip({ append: true, gzipOptions: { @@ -111,14 +129,13 @@ const basic_js = () => { memLevel: 9 } })) - .pipe(gulp.dest(dest)); + .pipe(gulp.dest(web_dest)); }; - // lib-component-sdk.min.js -const component_js = () => { +const web_component_js = () => { return gulp.src([ - './web-v2-res/js/component/*.js', + './web-res/js/component/*.js', ]) .pipe(babel()) .pipe(uglifyEs({ @@ -130,9 +147,15 @@ const component_js = () => { })) .pipe(replace(' ', '')) .pipe(replace('\n', '')) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) .pipe(concat('lib-component-sdk.min.' + fileVersion + '.js', { newLine: ' ' })) .pipe(header.apply(null, config.comment)) - .pipe(gulp.dest(dest)) + .pipe(gulp.dest(web_dest)) .pipe(gzip({ append: true, gzipOptions: { @@ -140,64 +163,70 @@ const component_js = () => { memLevel: 9 } })) - .pipe(gulp.dest(dest)); + .pipe(gulp.dest(web_dest)); }; // lib-module-sdk.min.js -const module_js = () => { +const web_module_js = () => { return gulp.src([ // sidebar模块 - './web-v2-res/js/module/sidebar/logo.js', - './web-v2-res/js/module/sidebar/tool.js', - './web-v2-res/js/module/sidebar/bottom.js', - './web-v2-res/js/module/sidebar/sidebar.js', + './web-res/js/module/sidebar/hovertips.js', + './web-res/js/module/sidebar/logo.js', + './web-res/js/module/sidebar/tool.js', + './web-res/js/module/sidebar/bottom.js', + './web-res/js/module/sidebar/sidebar.js', // channel模块 - './web-v2-res/js/module/channel/top.js', - './web-v2-res/js/module/channel/list.js', - './web-v2-res/js/module/channel/channel.js', + './web-res/js/module/channel/top.js', + './web-res/js/module/channel/list.js', + './web-res/js/module/channel/channel.js', // channel-content模块 - './web-v2-res/js/module/channel/content/body.js', - './web-v2-res/js/module/channel/content/more.js', - './web-v2-res/js/module/channel/content/invite.js', - './web-v2-res/js/module/channel/content/tool.js', - './web-v2-res/js/module/channel/content/textarea.js', - './web-v2-res/js/module/channel/content.js', + './web-res/js/module/channel/content/search.js', + './web-res/js/module/channel/content/body.js', + './web-res/js/module/channel/content/more.js', + './web-res/js/module/channel/content/invite.js', + './web-res/js/module/channel/content/tool.js', + './web-res/js/module/channel/content/textarea.js', + './web-res/js/module/channel/content.js', // login模块 - './web-v2-res/js/module/login/mobile.js', - './web-v2-res/js/module/login/list.js', - './web-v2-res/js/module/login/login.js', + './web-res/js/module/login/mobile.js', + './web-res/js/module/login/list.js', + './web-res/js/module/login/login.js', // login-content模块 - './web-v2-res/js/module/login/content/mobile.js', - './web-v2-res/js/module/login/content/account.js', - './web-v2-res/js/module/login/content/email.js', - './web-v2-res/js/module/login/content.js', + './web-res/js/module/login/content/account.js', + './web-res/js/module/login/content/email.js', + './web-res/js/module/login/content.js', // contact模块 - './web-v2-res/js/module/contact/list.js', - './web-v2-res/js/module/contact/top.js', - './web-v2-res/js/module/contact/contact.js', + './web-res/js/module/contact/list.js', + './web-res/js/module/contact/top.js', + './web-res/js/module/contact/contact.js', // contact-content模块 - './web-v2-res/js/module/contact/content/group.js', - './web-v2-res/js/module/contact/content/apply.js', - './web-v2-res/js/module/contact/content/friend.js', - './web-v2-res/js/module/contact/content/search.js', - './web-v2-res/js/module/contact/content.js', + './web-res/js/module/contact/content/group.js', + './web-res/js/module/contact/content/apply_user.js', + './web-res/js/module/contact/content/apply_group.js', + './web-res/js/module/contact/content/friend.js', + './web-res/js/module/contact/content/search_user.js', + './web-res/js/module/contact/content/search_group.js', + './web-res/js/module/contact/content.js', //setting模块 - './web-v2-res/js/module/setting/list.js', - './web-v2-res/js/module/setting/setting.js', + './web-res/js/module/setting/list.js', + './web-res/js/module/setting/setting.js', //setting-content模块 - './web-v2-res/js/module/setting/content/account.js', - './web-v2-res/js/module/setting/content/other.js', - './web-v2-res/js/module/setting/content.js', + './web-res/js/module/setting/content/normal.js', + './web-res/js/module/setting/content/account.js', + './web-res/js/module/setting/content/message.js', + './web-res/js/module/setting/content/skin.js', + './web-res/js/module/setting/content/other.js', + './web-res/js/module/setting/content.js', //blank模块 - './web-v2-res/js/module/blank/content.js', + './web-res/js/module/blank/content.js', //主模块 - './web-v2-res/js/tl_rtc_app.js', + './web-res/js/tl_rtc_app.js', ]) .pipe(babel()) .pipe(uglifyEs({ @@ -209,9 +238,15 @@ const module_js = () => { })) .pipe(replace(' ', '')) .pipe(replace('\n', '')) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) .pipe(concat('lib-module-sdk.min.' + fileVersion + '.js', { newLine: ' ' })) .pipe(header.apply(null, config.comment)) - .pipe(gulp.dest(dest)) + .pipe(gulp.dest(web_dest)) .pipe(gzip({ append: true, gzipOptions: { @@ -219,29 +254,34 @@ const module_js = () => { memLevel: 9 } })) - .pipe(gulp.dest(dest)); + .pipe(gulp.dest(web_dest)); }; - -// js -const js = gulp.parallel( - basic_js, entry_js, component_js, module_js -); - -// css -const css = () => { +// lib-css-sdk.min.css +const web_css = () => { return gulp.src([ - './web-v2-res/css/comm.css', - './web-v2-res/css/pc.css', - './web-v2-res/css/ipad.css', - './web-v2-res/css/mobile.css', - './web-v2-res/css/max.css', - './web-v2-res/css/max-mobile.css', + // 基础 + './web-res/css/pc.css', + + // 组件样式 + './web-res/css/*/*.css', + + // 媒体查询样式 + './web-res/css/max.css', + './web-res/css/ipad.css', + './web-res/css/max-mobile.css', + './web-res/css/mobile.css', ]) .pipe(cleanCSS()) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) .pipe(concat('lib-css-sdk.min.' + fileVersion + '.css', { newLine: '\n' })) .pipe(header.apply(null, config.comment)) - .pipe(gulp.dest(dest)) + .pipe(gulp.dest(web_dest)) .pipe(gzip({ append: true, gzipOptions: { @@ -249,15 +289,20 @@ const css = () => { memLevel: 9 } })) - .pipe(gulp.dest(dest)); + .pipe(gulp.dest(web_dest)); }; - // html -const html = () => { +const web_html = () => { return gulp.src([ - './web-v2-res/*.{html,json}', + './web-res/*.html', ]) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) .pipe(replace( 'lib-entry-sdk.min.js', 'lib-entry-sdk.min.' + fileVersion + '.js' )) @@ -277,7 +322,7 @@ const html = () => { collapseWhitespace: true, removeComments: true, })) - .pipe(gulp.dest(dest)) + .pipe(gulp.dest(web_dest)) .pipe(gzip({ append: true, gzipOptions: { @@ -285,16 +330,15 @@ const html = () => { memLevel: 9 } })) - .pipe(gulp.dest(dest)); + .pipe(gulp.dest(web_dest)); }; // image -const image = () => { +const web_image = () => { return gulp.src([ - './web-v2-res/image/*.{eot,svg,ttf,woff,woff2,png,jpg,gif,jpeg,mp3}', - './web-v2-res/image/example/*.{eot,svg,ttf,woff,woff2,png,jpg,gif,jpeg,mp3}', + './web-res/image/*.{eot,svg,ttf,woff,woff2,png,jpg,gif,jpeg,mp3}', ]) - .pipe(gulp.dest(dest + '/image')) + .pipe(gulp.dest(web_dest + '/image')) .pipe(gzip({ append: true, gzipOptions: { @@ -302,15 +346,21 @@ const image = () => { memLevel: 9 } })) - .pipe(gulp.dest(dest + '/image')); + .pipe(gulp.dest(web_dest + '/image')) }; // statics -const statics = () => { +const web_statics = () => { return gulp.src([ - './web-v2-res/static/**/*.*', + './web-res/static/**/*.*', ]) - .pipe(gulp.dest(dest + '/static')) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) + .pipe(gulp.dest(web_dest + '/static')) .pipe(gzip({ append: true, gzipOptions: { @@ -318,30 +368,300 @@ const statics = () => { memLevel: 9 } })) - .pipe(gulp.dest(dest + '/static')); + .pipe(gulp.dest(web_dest + '/static')) }; -// clean -const clean = cb => { - return del([dest], { + +/**********************************************以上为产品端前端资源*************************************************/ + +// lib-css-sdk.min.css +const system_web_css = () => { + return gulp.src([ + // 基础 + './web-res/css/pc.css', + + // 组件样式 + './web-res/css/*/*.css', + + // 媒体查询样式 + './web-res/css/max.css', + './web-res/css/ipad.css', + './web-res/css/max-mobile.css', + './web-res/css/mobile.css', + ]) + .pipe(cleanCSS()) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) + .pipe(concat('lib-css-sdk.min.' + fileVersion + '.css', { newLine: '\n' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(system_dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(system_dest)); +}; + +// lib-basic-sdk.min.js +const system_web_basic_js = () => { + return gulp.src([ + './web-res/js/basic/*.js', + ]) + .pipe(babel()) + .pipe(uglifyEs({ + mangle: true, + compress: true, + output: { + ascii_only: true + }, + })) + .pipe(replace(' ', '')) + .pipe(replace('\n', '')) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) + .pipe(concat('lib-basic-sdk.min.' + fileVersion + '.js', { newLine: ';' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(system_dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(system_dest)); +}; + +// lib-component-sdk.min.js +const system_web_component_js = () => { + return gulp.src([ + './web-res/js/component/*.js', + ]) + .pipe(babel()) + .pipe(uglifyEs({ + mangle: true, + compress: true, + output: { + ascii_only: true + }, + })) + .pipe(replace(' ', '')) + .pipe(replace('\n', '')) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) + .pipe(concat('lib-component-sdk.min.' + fileVersion + '.js', { newLine: ' ' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(system_dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(system_dest)); +}; + +// lib-system-sdk.min.js +const system_js = () => { + return gulp.src([ + './system-res/js/*.js', + './system-res/js/component/*.js', + ]) + .pipe(babel()) + .pipe(uglifyEs({ + mangle: true, + compress: true, + output: { + ascii_only: true + }, + })) + .pipe(replace(' ', '')) + .pipe(replace('\n', '')) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) + .pipe(replace( + 'lib-basic-sdk.min.js', 'lib-basic-sdk.min.' + fileVersion + '.js' + )) + .pipe(replace( + 'lib-component-sdk.min.js', 'lib-component-sdk.min.' + fileVersion + '.js' + )) + .pipe(concat('lib-system-sdk.min.' + fileVersion + ".js", { newLine: ';' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(system_dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(system_dest)); +}; + +// lib-system-sdk.min.css +const system_css = () => { + return gulp.src([ + './system-res/css/*.css', + './system-res/css/component/*.css', + ]) + .pipe(cleanCSS()) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) + .pipe(concat('lib-system-sdk.min.' + fileVersion + '.css', { newLine: '\n' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(system_dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(system_dest)); +}; + +// system html +const system_html = () => { + return gulp.src([ + './system-res/system.html', + ]) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) + .pipe(replace( + 'lib-system-sdk.min.js', 'lib-system-sdk.min.' + fileVersion + '.js' + )) + .pipe(replace( + 'lib-system-sdk.min.css', 'lib-system-sdk.min.' + fileVersion + '.css' + )) + .pipe(replace( + 'lib-css-sdk.min.css', 'lib-css-sdk.min.' + fileVersion + '.css' + )) + .pipe(gulpHtmlmin({ + collapseWhitespace: true, + removeComments: true, + })) + .pipe(gulp.dest(system_dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(system_dest)); +}; + +// system image +const system_image = () => { + return gulp.src([ + './system-res/image/*.{eot,svg,ttf,woff,woff2,png,jpg,gif,jpeg,mp3}', + ]) + .pipe(gulp.dest(system_dest + '/image')) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(system_dest + '/image')) +}; + +// system statics +const system_statics = () => { + return gulp.src([ + './system-res/static/**/*.*', + ]) + .pipe(replace( + new RegExp(Object.keys(replaceVarsMap).join('|'), 'g'), + function(matched) { + return replaceVarsMap[matched]; + } + )) + .pipe(gulp.dest(system_dest + '/static')) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(system_dest + '/static')) +}; + + +/**********************************************以上为管理端前端资源*************************************************/ +const cleanWeb = cb => { + return del([web_dest], { force: true }); }; -const defaultTask = gulp.series(clean, gulp.parallel( - basic_js, entry_js, component_js, module_js, css, html, image, statics +const cleanSystem = cb => { + return del([system_dest], { + force: true + }); +} + + +// 产品端 +const webTask = gulp.series(cleanWeb, gulp.parallel( + web_css, web_html, web_image, web_statics, + web_basic_js, web_component_js, web_entry_js, web_module_js, )); -// task -exports.default = gulp.series(clean, gulp.parallel( - js, css, html, image, statics +// 管理端 +const systemTask = gulp.series(cleanSystem, gulp.parallel( + // 引入产品端资源 + system_web_css, system_web_basic_js, system_web_component_js, + + system_image, system_statics, system_html, system_css, system_js, )); + +// 监听任务 exports.watch = () => { - gulp.watch('./web-v2-res/js/**', defaultTask); - gulp.watch('./web-v2-res/css/**', defaultTask); - gulp.watch('./web-v2-res/image/**', defaultTask); - gulp.watch('./web-v2-res/static/**', defaultTask); - gulp.watch('./web-v2-res/*.{eot,svg,ttf,woff,woff2,html,json,png,jpg,gif,jpeg,mp3}', defaultTask); -}; \ No newline at end of file + // 产品端监听 + gulp.watch('./web-res/**', webTask); + + // 管理端监听 + gulp.watch('./system-res/**', systemTask); +}; + + +// 导出任务 +exports.web = webTask; +exports.system = systemTask; + +// 默认任务 +exports.default = gulp.parallel(webTask, systemTask); + diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 9bbd45a..0000000 --- a/package-lock.json +++ /dev/null @@ -1,12313 +0,0 @@ -{ - "name": "tl-rtc-app", - "version": "0.0.1", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "tl-rtc-app", - "version": "0.0.1", - "license": "MIT", - "dependencies": { - "@babel/preset-env": "^7.26.0", - "@grpc/grpc-js": "^1.8.0", - "@grpc/proto-loader": "^0.6.0", - "ali-oss": "^6.21.0", - "body-parser": "^1.20.2", - "bull": "^4.16.5", - "concurrently": "^8.2.0", - "cookie-parser": "^1.4.6", - "cos-nodejs-sdk-v5": "^2.14.0", - "cross-env": "^5.2.0", - "del": "^2.2.2", - "dotenv": "^16.3.1", - "express": "^4.17.1", - "glob": "^10.3.1", - "gulp": "^4.0.2", - "gulp-babel": "^8.0.0", - "gulp-clean-css": "^4.3.0", - "gulp-concat": "^2.6.1", - "gulp-footer": "^2.1.0", - "gulp-gzip": "^1.4.2", - "gulp-header": "^2.0.9", - "gulp-htmlmin": "^5.0.1", - "gulp-javascript-obfuscator": "^1.1.6", - "gulp-jshint": "^2.1.0", - "gulp-minify-css": "^1.2.4", - "gulp-rename": "^2.0.0", - "gulp-replace": "^1.1.3", - "gulp-rev": "^11.0.0", - "gulp-rev-all": "^4.0.0", - "gulp-uglify": "^3.0.2", - "gulp-uglify-es": "^3.0.0", - "lru-cache": "^10.0.1", - "minimist": "^1.2.5", - "multer": "^1.4.5-lts.1", - "mysql2": "^2.1.0", - "nodemailer": "^6.9.14", - "nodemailer-smtp-transport": "^2.7.4", - "redis": "^4.6.13", - "request": "^2.88.2", - "rollup-plugin-copy": "^3.4.0", - "sequelize": "^6.1.0", - "sequelize-pool": "^6.0.0", - "socket.io": "^2.3.0", - "socket.io-msgpack-parser": "^3.0.2", - "terser": "^5.18.2", - "uuid": "^9.0.1" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "peer": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.26.2", - "resolved": "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.26.2.tgz", - "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.25.9", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.26.3", - "resolved": "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.26.3.tgz", - "integrity": "sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.24.4", - "resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.24.4.tgz", - "integrity": "sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==", - "peer": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.4", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.24.4", - "@babel/parser": "^7.24.4", - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core/node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "peer": true - }, - "node_modules/@babel/core/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "peer": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@babel/core/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "peer": true - }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "peer": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/generator": { - "version": "7.26.3", - "resolved": "https://registry.npmmirror.com/@babel/generator/-/generator-7.26.3.tgz", - "integrity": "sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==", - "dependencies": { - "@babel/parser": "^7.26.3", - "@babel/types": "^7.26.3", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz", - "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==", - "dependencies": { - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz", - "integrity": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==", - "dependencies": { - "@babel/compat-data": "^7.25.9", - "@babel/helper-validator-option": "^7.25.9", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.9.tgz", - "integrity": "sha512-UTZQMvt0d/rSz6KI+qdu7GQze5TIajwTS++GUozlw8VBJDEOAqSXwm1WvmYEZwqdqSGQshRocPDqrt4HBZB3fQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-member-expression-to-functions": "^7.25.9", - "@babel/helper-optimise-call-expression": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", - "@babel/traverse": "^7.25.9", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.26.3", - "resolved": "https://registry.npmmirror.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.26.3.tgz", - "integrity": "sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "regexpu-core": "^6.2.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.3", - "resolved": "https://registry.npmmirror.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz", - "integrity": "sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz", - "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==", - "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", - "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", - "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.26.0", - "resolved": "https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", - "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", - "dependencies": { - "@babel/helper-module-imports": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9", - "@babel/traverse": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz", - "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==", - "dependencies": { - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz", - "integrity": "sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz", - "integrity": "sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-wrap-function": "^7.25.9", - "@babel/traverse": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-replace-supers/-/helper-replace-supers-7.25.9.tgz", - "integrity": "sha512-IiDqTOTBQy0sWyeXyGSC5TBJpGFXBkRynjBeXsvbhQFKj2viwJC76Epz35YLU1fpe/Am6Vppb7W7zM4fPQzLsQ==", - "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.25.9", - "@babel/helper-optimise-call-expression": "^7.25.9", - "@babel/traverse": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz", - "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==", - "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", - "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", - "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", - "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz", - "integrity": "sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g==", - "dependencies": { - "@babel/template": "^7.25.9", - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.24.4", - "resolved": "https://registry.npmmirror.com/@babel/helpers/-/helpers-7.24.4.tgz", - "integrity": "sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==", - "peer": true, - "dependencies": { - "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.26.3", - "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.26.3.tgz", - "integrity": "sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==", - "dependencies": { - "@babel/types": "^7.26.3" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.9.tgz", - "integrity": "sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/traverse": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.9.tgz", - "integrity": "sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.9.tgz", - "integrity": "sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.9.tgz", - "integrity": "sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", - "@babel/plugin-transform-optional-chaining": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.9.tgz", - "integrity": "sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/traverse": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmmirror.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.26.0", - "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz", - "integrity": "sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.26.0", - "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz", - "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz", - "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.9.tgz", - "integrity": "sha512-RXV6QAzTBbhDMO9fWwOmwwTuYaiPbggWQ9INdZqAYeSHyG7FzQ+nOZaUUjNwKv9pV3aE4WFqFm1Hnbci5tBCAw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-remap-async-to-generator": "^7.25.9", - "@babel/traverse": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz", - "integrity": "sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ==", - "dependencies": { - "@babel/helper-module-imports": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-remap-async-to-generator": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.25.9.tgz", - "integrity": "sha512-toHc9fzab0ZfenFpsyYinOX0J/5dgJVA2fm64xPewu7CoYHWEivIWKxkK2rMi4r3yQqLnVmheMXRdG+k239CgA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.9.tgz", - "integrity": "sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz", - "integrity": "sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.26.0", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.26.0.tgz", - "integrity": "sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz", - "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9", - "@babel/traverse": "^7.25.9", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz", - "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/template": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz", - "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.9.tgz", - "integrity": "sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.9.tgz", - "integrity": "sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.9.tgz", - "integrity": "sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.9.tgz", - "integrity": "sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.26.3", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.26.3.tgz", - "integrity": "sha512-7CAHcQ58z2chuXPWblnn1K6rLDnDWieghSOEmqQsrBenH0P9InCUtOJYD89pvngljmZlJcz3fcmgYsXFNGa1ZQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.9.tgz", - "integrity": "sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.9.tgz", - "integrity": "sha512-LqHxduHoaGELJl2uhImHwRQudhCM50pT46rIBNvtT/Oql3nqiS3wOwP+5ten7NpYSXrrVLgtZU3DZmPtWZo16A==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz", - "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/traverse": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.9.tgz", - "integrity": "sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz", - "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz", - "integrity": "sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz", - "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.9.tgz", - "integrity": "sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw==", - "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.26.3", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz", - "integrity": "sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==", - "dependencies": { - "@babel/helper-module-transforms": "^7.26.0", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.9.tgz", - "integrity": "sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA==", - "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9", - "@babel/traverse": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.9.tgz", - "integrity": "sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw==", - "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz", - "integrity": "sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.9.tgz", - "integrity": "sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.25.9.tgz", - "integrity": "sha512-ENfftpLZw5EItALAD4WsY/KUWvhUlZndm5GC7G3evUsVeSJB6p0pBeLQUnRnBCBx7zV0RKQjR9kCuwrsIrjWog==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz", - "integrity": "sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz", - "integrity": "sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/plugin-transform-parameters": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz", - "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz", - "integrity": "sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz", - "integrity": "sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz", - "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz", - "integrity": "sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz", - "integrity": "sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz", - "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.9.tgz", - "integrity": "sha512-vwDcDNsgMPDGP0nMqzahDWE5/MLcX8sv96+wfX7as7LoF/kr97Bo/7fI00lXY4wUXYfVmwIIyG80fGZ1uvt2qg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "regenerator-transform": "^0.15.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regexp-modifiers": { - "version": "7.26.0", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.26.0.tgz", - "integrity": "sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.9.tgz", - "integrity": "sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz", - "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz", - "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz", - "integrity": "sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz", - "integrity": "sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.25.9.tgz", - "integrity": "sha512-v61XqUMiueJROUv66BVIOi0Fv/CUuZuZMl5NkRoCVxLAnMexZ0A3kMe7vvZ0nulxMuMp0Mk6S5hNh48yki08ZA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.9.tgz", - "integrity": "sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.9.tgz", - "integrity": "sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz", - "integrity": "sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.9.tgz", - "integrity": "sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.26.0", - "resolved": "https://registry.npmmirror.com/@babel/preset-env/-/preset-env-7.26.0.tgz", - "integrity": "sha512-H84Fxq0CQJNdPFT2DrfnylZ3cf5K43rGfWK4LJGPpjKHiZlk0/RzwEus3PDDZZg+/Er7lCA03MVacueUuXdzfw==", - "dependencies": { - "@babel/compat-data": "^7.26.0", - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-validator-option": "^7.25.9", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9", - "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-import-assertions": "^7.26.0", - "@babel/plugin-syntax-import-attributes": "^7.26.0", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.25.9", - "@babel/plugin-transform-async-generator-functions": "^7.25.9", - "@babel/plugin-transform-async-to-generator": "^7.25.9", - "@babel/plugin-transform-block-scoped-functions": "^7.25.9", - "@babel/plugin-transform-block-scoping": "^7.25.9", - "@babel/plugin-transform-class-properties": "^7.25.9", - "@babel/plugin-transform-class-static-block": "^7.26.0", - "@babel/plugin-transform-classes": "^7.25.9", - "@babel/plugin-transform-computed-properties": "^7.25.9", - "@babel/plugin-transform-destructuring": "^7.25.9", - "@babel/plugin-transform-dotall-regex": "^7.25.9", - "@babel/plugin-transform-duplicate-keys": "^7.25.9", - "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9", - "@babel/plugin-transform-dynamic-import": "^7.25.9", - "@babel/plugin-transform-exponentiation-operator": "^7.25.9", - "@babel/plugin-transform-export-namespace-from": "^7.25.9", - "@babel/plugin-transform-for-of": "^7.25.9", - "@babel/plugin-transform-function-name": "^7.25.9", - "@babel/plugin-transform-json-strings": "^7.25.9", - "@babel/plugin-transform-literals": "^7.25.9", - "@babel/plugin-transform-logical-assignment-operators": "^7.25.9", - "@babel/plugin-transform-member-expression-literals": "^7.25.9", - "@babel/plugin-transform-modules-amd": "^7.25.9", - "@babel/plugin-transform-modules-commonjs": "^7.25.9", - "@babel/plugin-transform-modules-systemjs": "^7.25.9", - "@babel/plugin-transform-modules-umd": "^7.25.9", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9", - "@babel/plugin-transform-new-target": "^7.25.9", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.9", - "@babel/plugin-transform-numeric-separator": "^7.25.9", - "@babel/plugin-transform-object-rest-spread": "^7.25.9", - "@babel/plugin-transform-object-super": "^7.25.9", - "@babel/plugin-transform-optional-catch-binding": "^7.25.9", - "@babel/plugin-transform-optional-chaining": "^7.25.9", - "@babel/plugin-transform-parameters": "^7.25.9", - "@babel/plugin-transform-private-methods": "^7.25.9", - "@babel/plugin-transform-private-property-in-object": "^7.25.9", - "@babel/plugin-transform-property-literals": "^7.25.9", - "@babel/plugin-transform-regenerator": "^7.25.9", - "@babel/plugin-transform-regexp-modifiers": "^7.26.0", - "@babel/plugin-transform-reserved-words": "^7.25.9", - "@babel/plugin-transform-shorthand-properties": "^7.25.9", - "@babel/plugin-transform-spread": "^7.25.9", - "@babel/plugin-transform-sticky-regex": "^7.25.9", - "@babel/plugin-transform-template-literals": "^7.25.9", - "@babel/plugin-transform-typeof-symbol": "^7.25.9", - "@babel/plugin-transform-unicode-escapes": "^7.25.9", - "@babel/plugin-transform-unicode-property-regex": "^7.25.9", - "@babel/plugin-transform-unicode-regex": "^7.25.9", - "@babel/plugin-transform-unicode-sets-regex": "^7.25.9", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.10", - "babel-plugin-polyfill-corejs3": "^0.10.6", - "babel-plugin-polyfill-regenerator": "^0.6.1", - "core-js-compat": "^3.38.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.6-no-external-plugins", - "resolved": "https://registry.npmmirror.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", - "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.23.8", - "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.23.8.tgz", - "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.25.9", - "resolved": "https://registry.npmmirror.com/@babel/template/-/template-7.25.9.tgz", - "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", - "dependencies": { - "@babel/code-frame": "^7.25.9", - "@babel/parser": "^7.25.9", - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.26.4", - "resolved": "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.26.4.tgz", - "integrity": "sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==", - "dependencies": { - "@babel/code-frame": "^7.26.2", - "@babel/generator": "^7.26.3", - "@babel/parser": "^7.26.3", - "@babel/template": "^7.25.9", - "@babel/types": "^7.26.3", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@babel/traverse/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/@babel/types": { - "version": "7.26.3", - "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.26.3.tgz", - "integrity": "sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==", - "dependencies": { - "@babel/helper-string-parser": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@grpc/grpc-js": { - "version": "1.9.13", - "resolved": "https://registry.npmmirror.com/@grpc/grpc-js/-/grpc-js-1.9.13.tgz", - "integrity": "sha512-OEZZu9v9AA+7/tghMDE8o5DAMD5THVnwSqDWuh7PPYO5287rTyqy0xEHT6/e4pbqSrhyLPdQFsam4TwFQVVIIw==", - "dependencies": { - "@grpc/proto-loader": "^0.7.8", - "@types/node": ">=12.12.47" - }, - "engines": { - "node": "^8.13.0 || >=10.10.0" - } - }, - "node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader": { - "version": "0.7.10", - "resolved": "https://registry.npmmirror.com/@grpc/proto-loader/-/proto-loader-0.7.10.tgz", - "integrity": "sha512-CAqDfoaQ8ykFd9zqBDn4k6iWT9loLAlc2ETmDFS9JCD70gDcnA4L3AFEo2iV7KyAtAAHFW9ftq1Fz+Vsgq80RQ==", - "dependencies": { - "lodash.camelcase": "^4.3.0", - "long": "^5.0.0", - "protobufjs": "^7.2.4", - "yargs": "^17.7.2" - }, - "bin": { - "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@grpc/grpc-js/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@grpc/grpc-js/node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@grpc/grpc-js/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/@grpc/grpc-js/node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmmirror.com/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, - "node_modules/@grpc/grpc-js/node_modules/protobufjs": { - "version": "7.2.5", - "resolved": "https://registry.npmmirror.com/protobufjs/-/protobufjs-7.2.5.tgz", - "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@grpc/grpc-js/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@grpc/grpc-js/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@grpc/grpc-js/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@grpc/grpc-js/node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@grpc/grpc-js/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "engines": { - "node": ">=12" - } - }, - "node_modules/@grpc/proto-loader": { - "version": "0.6.13", - "resolved": "https://registry.npmmirror.com/@grpc/proto-loader/-/proto-loader-0.6.13.tgz", - "integrity": "sha512-FjxPYDRTn6Ec3V0arm1FtSpmP6V50wuph2yILpyvTKzjc76oDdoihXqM1DzOW5ubvCC8GivfCnNtfaRE8myJ7g==", - "dependencies": { - "@types/long": "^4.0.1", - "lodash.camelcase": "^4.3.0", - "long": "^4.0.0", - "protobufjs": "^6.11.3", - "yargs": "^16.2.0" - }, - "bin": { - "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@ioredis/commands": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/@ioredis/commands/-/commands-1.2.0.tgz", - "integrity": "sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg==" - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmmirror.com/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@javascript-obfuscator/escodegen": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/@javascript-obfuscator/escodegen/-/escodegen-2.3.0.tgz", - "integrity": "sha512-QVXwMIKqYMl3KwtTirYIA6gOCiJ0ZDtptXqAv/8KWLG9uQU2fZqTVy7a/A5RvcoZhbDoFfveTxuGxJ5ibzQtkw==", - "dependencies": { - "@javascript-obfuscator/estraverse": "^5.3.0", - "esprima": "^4.0.1", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/@javascript-obfuscator/estraverse": { - "version": "5.4.0", - "resolved": "https://registry.npmmirror.com/@javascript-obfuscator/estraverse/-/estraverse-5.4.0.tgz", - "integrity": "sha512-CZFX7UZVN9VopGbjTx4UXaXsi9ewoM1buL0kY7j1ftYdSs7p2spv9opxFjHlQ/QGTgh4UqufYqJJ0WKLml7b6w==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.5", - "resolved": "https://registry.npmmirror.com/@jridgewell/source-map/-/source-map-0.3.5.tgz", - "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-3.0.3.tgz", - "integrity": "sha512-QZHtlVgbAdy2zAqNA9Gu1UpIuI8Xvsd1v8ic6B2pZmeFnFcMWiPLfWXh7TVw4eGEZ/C9TH281KwhVoeQUKbyjw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-3.0.3.tgz", - "integrity": "sha512-mdzd3AVzYKuUmiWOQ8GNhl64/IoFGol569zNRdkLReh6LRLHOXxU4U8eq0JwaD8iFHdVGqSy4IjFL4reoWCDFw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-3.0.3.tgz", - "integrity": "sha512-fg0uy/dG/nZEXfYilKoRe7yALaNmHoYeIoJuJ7KJ+YyU2bvY8vPv27f7UKhGRpY6euFYqEVhxCFZgAUNQBM3nw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-3.0.3.tgz", - "integrity": "sha512-YxQL+ax0XqBJDZiKimS2XQaf+2wDGVa1enVRGzEvLLVFeqa5kx2bWbtcSXgsxjQB7nRqqIGFIcLteF/sHeVtQg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.3.tgz", - "integrity": "sha512-cvwNfbP07pKUfq1uH+S6KJ7dT9K8WOE4ZiAcsrSes+UY55E/0jLYc+vq+DO7jlmqRb5zAggExKm0H7O/CBaesg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-win32-x64": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.3.tgz", - "integrity": "sha512-x0fWaQtYp4E6sktbsdAqnehxDgEc/VwM7uLsRCYWaiGu0ykYdZPiS8zCWdnjHwyiumousxfBm4SO31eXqwEZhQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmmirror.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" - }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" - }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" - }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" - }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" - }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" - }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" - }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" - }, - "node_modules/@redis/bloom": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/@redis/bloom/-/bloom-1.2.0.tgz", - "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==", - "peerDependencies": { - "@redis/client": "^1.0.0" - } - }, - "node_modules/@redis/client": { - "version": "1.5.14", - "resolved": "https://registry.npmmirror.com/@redis/client/-/client-1.5.14.tgz", - "integrity": "sha512-YGn0GqsRBFUQxklhY7v562VMOP0DcmlrHHs3IV1mFE3cbxe31IITUkqhBcIhVSI/2JqtWAJXg5mjV4aU+zD0HA==", - "dependencies": { - "cluster-key-slot": "1.1.2", - "generic-pool": "3.9.0", - "yallist": "4.0.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@redis/graph": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/@redis/graph/-/graph-1.1.1.tgz", - "integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==", - "peerDependencies": { - "@redis/client": "^1.0.0" - } - }, - "node_modules/@redis/json": { - "version": "1.0.6", - "resolved": "https://registry.npmmirror.com/@redis/json/-/json-1.0.6.tgz", - "integrity": "sha512-rcZO3bfQbm2zPRpqo82XbW8zg4G/w4W3tI7X8Mqleq9goQjAGLL7q/1n1ZX4dXEAmORVZ4s1+uKLaUOg7LrUhw==", - "peerDependencies": { - "@redis/client": "^1.0.0" - } - }, - "node_modules/@redis/search": { - "version": "1.1.6", - "resolved": "https://registry.npmmirror.com/@redis/search/-/search-1.1.6.tgz", - "integrity": "sha512-mZXCxbTYKBQ3M2lZnEddwEAks0Kc7nauire8q20oA0oA/LoA+E/b5Y5KZn232ztPb1FkIGqo12vh3Lf+Vw5iTw==", - "peerDependencies": { - "@redis/client": "^1.0.0" - } - }, - "node_modules/@redis/time-series": { - "version": "1.0.5", - "resolved": "https://registry.npmmirror.com/@redis/time-series/-/time-series-1.0.5.tgz", - "integrity": "sha512-IFjIgTusQym2B5IZJG3XKr5llka7ey84fw/NOYqESP5WUfQs9zz1ww/9+qoz4ka/S6KcGBodzlCeZ5UImKbscg==", - "peerDependencies": { - "@redis/client": "^1.0.0" - } - }, - "node_modules/@types/debug": { - "version": "4.1.12", - "resolved": "https://registry.npmmirror.com/@types/debug/-/debug-4.1.12.tgz", - "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", - "dependencies": { - "@types/ms": "*" - } - }, - "node_modules/@types/expect": { - "version": "1.20.4", - "resolved": "https://registry.npmmirror.com/@types/expect/-/expect-1.20.4.tgz", - "integrity": "sha512-Q5Vn3yjTDyCMV50TB6VRIbQNxSE4OmZR86VSbGaNpfUolm0iePBB4KdEEHmxoY5sT2+2DIvXW0rvMDP2nHZ4Mg==" - }, - "node_modules/@types/fs-extra": { - "version": "8.1.5", - "resolved": "https://registry.npmmirror.com/@types/fs-extra/-/fs-extra-8.1.5.tgz", - "integrity": "sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmmirror.com/@types/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", - "dependencies": { - "@types/minimatch": "*", - "@types/node": "*" - } - }, - "node_modules/@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmmirror.com/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" - }, - "node_modules/@types/minimatch": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/@types/minimatch/-/minimatch-5.1.2.tgz", - "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==" - }, - "node_modules/@types/ms": { - "version": "0.7.34", - "resolved": "https://registry.npmmirror.com/@types/ms/-/ms-0.7.34.tgz", - "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" - }, - "node_modules/@types/node": { - "version": "20.11.0", - "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.11.0.tgz", - "integrity": "sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/validator": { - "version": "13.11.8", - "resolved": "https://registry.npmmirror.com/@types/validator/-/validator-13.11.8.tgz", - "integrity": "sha512-c/hzNDBh7eRF+KbCf+OoZxKbnkpaK/cKp9iLQWqB7muXtM+MtL9SUUH8vCFcLn6dH1Qm05jiexK0ofWY7TfOhQ==" - }, - "node_modules/@types/vinyl": { - "version": "2.0.11", - "resolved": "https://registry.npmmirror.com/@types/vinyl/-/vinyl-2.0.11.tgz", - "integrity": "sha512-vPXzCLmRp74e9LsP8oltnWKTH+jBwt86WgRUb4Pc9Lf3pkMVGyvIo2gm9bODeGfCay2DBB/hAWDuvf07JcK4rw==", - "dependencies": { - "@types/expect": "^1.20.4", - "@types/node": "*" - } - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.11.3", - "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.11.3.tgz", - "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/address": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/address/-/address-1.2.2.tgz", - "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/after": { - "version": "0.8.2", - "resolved": "https://registry.npmmirror.com/after/-/after-0.8.2.tgz", - "integrity": "sha512-QbJ0NTQ/I9DI3uSJA4cbexiwQeRAfjPScqIbSjUDd9TOrcg6pTkdgziesOqxBMBzit8vFCTwrP27t13vFOORRA==" - }, - "node_modules/agentkeepalive": { - "version": "3.5.3", - "resolved": "https://registry.npmmirror.com/agentkeepalive/-/agentkeepalive-3.5.3.tgz", - "integrity": "sha512-yqXL+k5rr8+ZRpOAntkaaRgWgE5o8ESAj5DyRmVTCSoZxXmqemb9Dd7T4i5UzwuERdLAJUy6XzR9zFVuf0kzkw==", - "dependencies": { - "humanize-ms": "^1.2.1" - }, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "node_modules/ajv-formats": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-1.6.1.tgz", - "integrity": "sha512-4CjkH20If1lhR5CGtqkrVg3bbOtFEG80X9v6jDOIUhbzzbB+UzPBGy8GQhUNVZ0yvMHdMpawCOcy5ydGMsagGQ==", - "dependencies": { - "ajv": "^7.0.0" - }, - "peerDependencies": { - "ajv": "^7.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "7.2.4", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.4.tgz", - "integrity": "sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/ali-oss": { - "version": "6.21.0", - "resolved": "https://registry.npmmirror.com/ali-oss/-/ali-oss-6.21.0.tgz", - "integrity": "sha512-dRvKWO/GJEa6dlsCnvmgHIbU5+yE/SmZsE4kZRGNU7Uotr9uIkQWGqv4szLTxRSxWv3YgL+BZgt+swIgitYGjA==", - "dependencies": { - "address": "^1.2.2", - "agentkeepalive": "^3.4.1", - "bowser": "^1.6.0", - "copy-to": "^2.0.1", - "dateformat": "^2.0.0", - "debug": "^4.3.4", - "destroy": "^1.0.4", - "end-or-error": "^1.0.1", - "get-ready": "^1.0.0", - "humanize-ms": "^1.2.0", - "is-type-of": "^1.4.0", - "js-base64": "^2.5.2", - "jstoxml": "^2.0.0", - "lodash": "^4.17.21", - "merge-descriptors": "^1.0.1", - "mime": "^2.4.5", - "platform": "^1.3.1", - "pump": "^3.0.0", - "qs": "^6.4.0", - "sdk-base": "^2.0.1", - "stream-http": "2.8.2", - "stream-wormhole": "^1.0.4", - "urllib": "^2.44.0", - "utility": "^1.18.0", - "xml2js": "^0.6.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ali-oss/node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/ali-oss/node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/ali-oss/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/ali-oss/node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", - "engines": { - "node": ">=0.4.2" - } - }, - "node_modules/ansi-cyan": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz", - "integrity": "sha512-eCjan3AVo/SxZ0/MyIYRtkpxIu/H3xZN7URr1vXVrISxeyz8fUFz0FJziamK4sS8I+t35y4rHg1b2PklyBe/7A==", - "dependencies": { - "ansi-wrap": "0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ansi-gray": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/ansi-gray/-/ansi-gray-0.1.1.tgz", - "integrity": "sha512-HrgGIZUl8h2EHuZaU9hTR/cU5nhKxpVE1V6kdGsQ8e4zirElJ5fvtfc8N7Q1oq1aatO275i8pUFUCpNWCAnVWw==", - "dependencies": { - "ansi-wrap": "0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", - "dependencies": { - "ansi-wrap": "0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmmirror.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/any-promise": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" - }, - "node_modules/append-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/append-buffer/-/append-buffer-1.0.2.tgz", - "integrity": "sha512-WLbYiXzD3y/ATLZFufV/rZvWdZOs+Z/+5v1rBZ463Jn398pa6kcde27cvozYnBoxXblGZTFfoPpsaEw0orU5BA==", - "dependencies": { - "buffer-equal": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/append-field": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", - "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==" - }, - "node_modules/archy": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/archy/-/archy-1.0.0.tgz", - "integrity": "sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==" - }, - "node_modules/arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/arr-filter": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/arr-filter/-/arr-filter-1.1.2.tgz", - "integrity": "sha512-A2BETWCqhsecSvCkWAeVBFLH6sXEUGASuzkpjL3GR1SlL/PWL6M3J8EAAld2Uubmh39tvkJTqC9LeLHCUKmFXA==", - "dependencies": { - "make-iterator": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/arr-map": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/arr-map/-/arr-map-2.0.2.tgz", - "integrity": "sha512-tVqVTHt+Q5Xb09qRkbu+DidW1yYzz5izWS2Xm2yFm7qJnmUfz4HPzNxbHkdRJbz2lrqI7S+z17xNYdFcBBO8Hw==", - "dependencies": { - "make-iterator": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array-differ": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/array-differ/-/array-differ-3.0.0.tgz", - "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/array-each": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/array-each/-/array-each-1.0.1.tgz", - "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, - "node_modules/array-initial": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/array-initial/-/array-initial-1.1.0.tgz", - "integrity": "sha512-BC4Yl89vneCYfpLrs5JU2aAu9/a+xWbeKhvISg9PT7eWFB9UlRvI+rKEtk6mgxWr3dSkk9gQ8hCrdqt06NXPdw==", - "dependencies": { - "array-slice": "^1.0.0", - "is-number": "^4.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array-initial/node_modules/is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array-last": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/array-last/-/array-last-1.3.0.tgz", - "integrity": "sha512-eOCut5rXlI6aCOS7Z7kCplKRKyiFQ6dHFBem4PwlwKeNFk2/XxTrhRh5T9PyaEWGy/NHTZWbY+nsZlNFJu9rYg==", - "dependencies": { - "is-number": "^4.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array-last/node_modules/is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array-slice": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/array-slice/-/array-slice-1.1.0.tgz", - "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array-sort": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/array-sort/-/array-sort-1.0.0.tgz", - "integrity": "sha512-ihLeJkonmdiAsD7vpgN3CRcx2J2S0TiYW+IS/5zHBI7mKUq3ySvBdzzBfD236ubDBQFiiyG3SWCPc+msQ9KoYg==", - "dependencies": { - "default-compare": "^1.0.0", - "get-value": "^2.0.6", - "kind-of": "^5.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmmirror.com/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/arraybuffer.slice": { - "version": "0.0.7", - "resolved": "https://registry.npmmirror.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", - "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==" - }, - "node_modules/arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/asn1": { - "version": "0.2.6", - "resolved": "https://registry.npmmirror.com/asn1/-/asn1-0.2.6.tgz", - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", - "dependencies": { - "safer-buffer": "~2.1.0" - } - }, - "node_modules/assert": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/assert/-/assert-2.0.0.tgz", - "integrity": "sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==", - "dependencies": { - "es6-object-assign": "^1.1.0", - "is-nan": "^1.2.1", - "object-is": "^1.0.1", - "util": "^0.12.0" - } - }, - "node_modules/assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/async-done": { - "version": "1.3.2", - "resolved": "https://registry.npmmirror.com/async-done/-/async-done-1.3.2.tgz", - "integrity": "sha512-uYkTP8dw2og1tu1nmza1n1CMW0qb8gWWlwqMmLb7MhBVs4BXrFziT6HXUd+/RlRA/i4H9AkofYloUbs1fwMqlw==", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.2", - "process-nextick-args": "^2.0.0", - "stream-exhaust": "^1.0.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/async-each": { - "version": "1.0.6", - "resolved": "https://registry.npmmirror.com/async-each/-/async-each-1.0.6.tgz", - "integrity": "sha512-c646jH1avxr+aVpndVMeAfYw7wAa6idufrlN3LPA4PmKS0QEGp6PIC9nwz0WQkkvBGAMEki3pFdtxaF39J9vvg==" - }, - "node_modules/async-settle": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/async-settle/-/async-settle-1.0.0.tgz", - "integrity": "sha512-VPXfB4Vk49z1LHHodrEQ6Xf7W4gg1w0dAPROHngx7qgDjqmIQ+fXmwgGXTW/ITLai0YLSvWepJOP9EVpMnEAcw==", - "dependencies": { - "async-done": "^1.2.2" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/atob": { - "version": "2.1.2", - "resolved": "https://registry.npmmirror.com/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "bin": { - "atob": "bin/atob.js" - }, - "engines": { - "node": ">= 4.5.0" - } - }, - "node_modules/atomically": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/atomically/-/atomically-1.7.0.tgz", - "integrity": "sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==", - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmmirror.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmmirror.com/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", - "engines": { - "node": "*" - } - }, - "node_modules/aws4": { - "version": "1.12.0", - "resolved": "https://registry.npmmirror.com/aws4/-/aws4-1.12.0.tgz", - "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" - }, - "node_modules/b4a": { - "version": "1.6.7", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.7.tgz", - "integrity": "sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==" - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.12", - "resolved": "https://registry.npmmirror.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.12.tgz", - "integrity": "sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og==", - "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.3", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.10.6", - "resolved": "https://registry.npmmirror.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", - "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2", - "core-js-compat": "^3.38.0" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.3", - "resolved": "https://registry.npmmirror.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.3.tgz", - "integrity": "sha512-LiWSbl4CRSIa5x/JAU6jZiG9eit9w6mz+yVMFwDE83LAWvt0AfGBoZ7HS/mkhrKuh2ZlzfVZYKoLjXdqw6Yt7Q==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.3" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/bach": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/bach/-/bach-1.2.0.tgz", - "integrity": "sha512-bZOOfCb3gXBXbTFXq3OZtGR88LwGeJvzu6szttaIzymOTS4ZttBNOWSv7aLZja2EMycKtRYV0Oa8SNKH/zkxvg==", - "dependencies": { - "arr-filter": "^1.1.1", - "arr-flatten": "^1.0.1", - "arr-map": "^2.0.0", - "array-each": "^1.0.0", - "array-initial": "^1.0.0", - "array-last": "^1.1.1", - "async-done": "^1.2.2", - "async-settle": "^1.0.0", - "now-and-later": "^2.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/backo2": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/backo2/-/backo2-1.0.2.tgz", - "integrity": "sha512-zj6Z6M7Eq+PBZ7PQxl5NT665MvJdAkzp0f60nAJ+sLaSCBPMwVak5ZegFbgVCzFcCJTKFoMizvM5Ld7+JrRJHA==" - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/bare-events": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.0.tgz", - "integrity": "sha512-/E8dDe9dsbLyh2qrZ64PEPadOQ0F4gbl1sUJOrmph7xOiIxfY8vwab/4bFLh4Y88/Hk/ujKcrQKc+ps0mv873A==", - "optional": true - }, - "node_modules/base": { - "version": "0.11.2", - "resolved": "https://registry.npmmirror.com/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dependencies": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base64-arraybuffer": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz", - "integrity": "sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg==", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/base64id": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/base64id/-/base64id-2.0.0.tgz", - "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", - "engines": { - "node": "^4.5.0 || >= 5.9" - } - }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, - "node_modules/beeper": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz", - "integrity": "sha512-3vqtKL1N45I5dV0RdssXZG7X6pCqQrWPNOlBPZPrd+QkE2HEhR57Z04m0KtpbsZH73j+a3F8UD1TQnn+ExTvIA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/binaryextensions": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/binaryextensions/-/binaryextensions-2.3.0.tgz", - "integrity": "sha512-nAihlQsYGyc5Bwq6+EsubvANYGExeJKHDO3RjnvwU042fawQTQfM3Kxn7IHUXQOz4bzfwsGYYHGSvXyW4zOGLg==", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/bindings": { - "version": "1.5.0", - "resolved": "https://registry.npmmirror.com/bindings/-/bindings-1.5.0.tgz", - "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "optional": true, - "dependencies": { - "file-uri-to-path": "1.0.0" - } - }, - "node_modules/blob": { - "version": "0.0.5", - "resolved": "https://registry.npmmirror.com/blob/-/blob-0.0.5.tgz", - "integrity": "sha512-gaqbzQPqOoamawKg0LGVd7SzLgXS+JH61oWprSLH+P+abTczqJbhTR8CmJ2u9/bUYNmHTGJx/UEmn6doAvvuig==" - }, - "node_modules/body-parser": { - "version": "1.20.2", - "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.2.tgz", - "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/bowser": { - "version": "1.9.4", - "resolved": "https://registry.npmmirror.com/bowser/-/bowser-1.9.4.tgz", - "integrity": "sha512-9IdMmj2KjigRq6oWhmwv1W36pDuA4STQZ8q6YO9um+x07xgYNCD3Oou+WP/3L1HNz7iqythGet3/p4wvc8AAwQ==" - }, - "node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.24.3", - "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.24.3.tgz", - "integrity": "sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001688", - "electron-to-chromium": "^1.5.73", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.1" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/buffer-equal/-/buffer-equal-1.0.1.tgz", - "integrity": "sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==", - "engines": { - "node": ">=0.4" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "node_modules/bufferstreams": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/bufferstreams/-/bufferstreams-1.0.1.tgz", - "integrity": "sha512-LZmiIfQprMLS6/k42w/PTc7awhU8AdNNcUerxTgr01WlP9agR2SgMv0wjlYYFD6eDOi8WvofrTX8RayjR/AeUQ==", - "dependencies": { - "readable-stream": "^1.0.33" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/bufferstreams/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - }, - "node_modules/bufferstreams/node_modules/readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/bufferstreams/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" - }, - "node_modules/builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==" - }, - "node_modules/bull": { - "version": "4.16.5", - "resolved": "https://registry.npmmirror.com/bull/-/bull-4.16.5.tgz", - "integrity": "sha512-lDsx2BzkKe7gkCYiT5Acj02DpTwDznl/VNN7Psn7M3USPG7Vs/BaClZJJTAG+ufAR9++N1/NiUTdaFBWDIl5TQ==", - "dependencies": { - "cron-parser": "^4.9.0", - "get-port": "^5.1.1", - "ioredis": "^5.3.2", - "lodash": "^4.17.21", - "msgpackr": "^1.11.2", - "semver": "^7.5.2", - "uuid": "^8.3.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/bull/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmmirror.com/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/bull/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmmirror.com/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/busboy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", - "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", - "dependencies": { - "streamsearch": "^1.1.0" - }, - "engines": { - "node": ">=10.16.0" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dependencies": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/camel-case": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/camel-case/-/camel-case-3.0.0.tgz", - "integrity": "sha512-+MbKztAYHXPr1jNTSKQF52VpcFjwY5RkR7fxksV8Doo4KAYc5Fl4UJRgthBbTmEx8C54DqahhbLJkDwjI3PI/w==", - "dependencies": { - "no-case": "^2.2.0", - "upper-case": "^1.1.1" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001690", - "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz", - "integrity": "sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmmirror.com/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/chalk/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/chance": { - "version": "1.1.9", - "resolved": "https://registry.npmmirror.com/chance/-/chance-1.1.9.tgz", - "integrity": "sha512-TfxnA/DcZXRTA4OekA2zL9GH8qscbbl6X0ZqU4tXhGveVY/mXWvEQLt5GwZcYXTEyEFflVtj+pG8nc8EwSm1RQ==" - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/charenc": { - "version": "0.0.2", - "resolved": "https://registry.npmmirror.com/charenc/-/charenc-0.0.2.tgz", - "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", - "engines": { - "node": "*" - } - }, - "node_modules/class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmmirror.com/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "dependencies": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/class-validator": { - "version": "0.14.0", - "resolved": "https://registry.npmmirror.com/class-validator/-/class-validator-0.14.0.tgz", - "integrity": "sha512-ct3ltplN8I9fOwUd8GrP8UQixwff129BkEtuWDKL5W45cQuLd19xqmTLu5ge78YDm/fdje6FMt0hGOhl0lii3A==", - "dependencies": { - "@types/validator": "^13.7.10", - "libphonenumber-js": "^1.10.14", - "validator": "^13.7.0" - } - }, - "node_modules/clean-css": { - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/clean-css/-/clean-css-4.2.3.tgz", - "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==", - "dependencies": { - "source-map": "~0.6.0" - }, - "engines": { - "node": ">= 4.0" - } - }, - "node_modules/cli": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/cli/-/cli-1.0.1.tgz", - "integrity": "sha512-41U72MB56TfUMGndAKK8vJ78eooOD4Z5NOL4xEfjc0c23s+6EYKXlXsmACBVclLP1yOfWCgEganVzddVrSNoTg==", - "peer": true, - "dependencies": { - "exit": "0.1.2", - "glob": "^7.1.1" - }, - "engines": { - "node": ">=0.2.5" - } - }, - "node_modules/cli/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/cli/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "peer": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/cli/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmmirror.com/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/cliui/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/cliui/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/clone": { - "version": "2.1.2", - "resolved": "https://registry.npmmirror.com/clone/-/clone-2.1.2.tgz", - "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/clone-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/clone-buffer/-/clone-buffer-1.0.0.tgz", - "integrity": "sha512-KLLTJWrvwIP+OPfMn0x2PheDEP20RPUcGXj/ERegTgdmPEZylALQldygiqrPPu8P45uNuPs7ckmReLY6v/iA5g==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha512-au6ydSpg6nsrigcZ4m8Bc9hxjeW+GJ8xh5G3BJCMt4WXe1H10UNaVOamqQTmrx1kjVuxAHIQSNU6hY4Nsn9/ag==" - }, - "node_modules/cloneable-readable": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/cloneable-readable/-/cloneable-readable-1.1.3.tgz", - "integrity": "sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==", - "dependencies": { - "inherits": "^2.0.1", - "process-nextick-args": "^2.0.0", - "readable-stream": "^2.3.5" - } - }, - "node_modules/cluster-key-slot": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", - "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/collection-map": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/collection-map/-/collection-map-1.0.0.tgz", - "integrity": "sha512-5D2XXSpkOnleOI21TG7p3T0bGAsZ/XknZpKBmGYyluO8pw4zA3K8ZlrBIbC4FXg3m6z/RNFiUFfT2sQK01+UHA==", - "dependencies": { - "arr-map": "^2.0.2", - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", - "dependencies": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "bin": { - "color-support": "bin.js" - } - }, - "node_modules/colorette": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/colorette/-/colorette-1.4.0.tgz", - "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "node_modules/component-bind": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/component-bind/-/component-bind-1.0.0.tgz", - "integrity": "sha512-WZveuKPeKAG9qY+FkYDeADzdHyTYdIboXS59ixDeRJL5ZhxpqUnxSOwop4FQjMsiYm3/Or8cegVbpAHNA7pHxw==" - }, - "node_modules/component-emitter": { - "version": "1.3.1", - "resolved": "https://registry.npmmirror.com/component-emitter/-/component-emitter-1.3.1.tgz", - "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==" - }, - "node_modules/component-inherit": { - "version": "0.0.3", - "resolved": "https://registry.npmmirror.com/component-inherit/-/component-inherit-0.0.3.tgz", - "integrity": "sha512-w+LhYREhatpVqTESyGFg3NlP6Iu0kEKUHETY9GoZP/pQyW4mHFZuFWRUCIqVPZ36ueVLtoOEZaAqbCF2RDndaA==" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "node_modules/concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmmirror.com/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "engines": [ - "node >= 0.8" - ], - "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, - "node_modules/concat-with-sourcemaps": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", - "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", - "dependencies": { - "source-map": "^0.6.1" - } - }, - "node_modules/concurrently": { - "version": "8.2.2", - "resolved": "https://registry.npmmirror.com/concurrently/-/concurrently-8.2.2.tgz", - "integrity": "sha512-1dP4gpXFhei8IOtlXRE/T/4H88ElHgTiUzh71YUmtjTEHMSRS2Z/fgOxHSxxusGHogsRfxNq1vyAwxSC+EVyDg==", - "dependencies": { - "chalk": "^4.1.2", - "date-fns": "^2.30.0", - "lodash": "^4.17.21", - "rxjs": "^7.8.1", - "shell-quote": "^1.8.1", - "spawn-command": "0.0.2", - "supports-color": "^8.1.1", - "tree-kill": "^1.2.2", - "yargs": "^17.7.2" - }, - "bin": { - "conc": "dist/bin/concurrently.js", - "concurrently": "dist/bin/concurrently.js" - }, - "engines": { - "node": "^14.13.0 || >=16.0.0" - } - }, - "node_modules/concurrently/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/concurrently/node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/concurrently/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/concurrently/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/concurrently/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/concurrently/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/concurrently/node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/concurrently/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "engines": { - "node": ">=12" - } - }, - "node_modules/conf": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/conf/-/conf-9.0.2.tgz", - "integrity": "sha512-rLSiilO85qHgaTBIIHQpsv8z+NnVfZq3cKuYNCXN1AOqPzced0GWZEe/A517VldRLyQYXUMyV+vszavE2jSAqw==", - "dependencies": { - "ajv": "^7.0.3", - "ajv-formats": "^1.5.1", - "atomically": "^1.7.0", - "debounce-fn": "^4.0.0", - "dot-prop": "^6.0.1", - "env-paths": "^2.2.0", - "json-schema-typed": "^7.0.3", - "make-dir": "^3.1.0", - "onetime": "^5.1.2", - "pkg-up": "^3.1.0", - "semver": "^7.3.4" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/conf/node_modules/ajv": { - "version": "7.2.4", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.4.tgz", - "integrity": "sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/conf/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/conf/node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/console-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/console-browserify/-/console-browserify-1.1.0.tgz", - "integrity": "sha512-duS7VP5pvfsNLDvL1O4VOEbw37AI3A4ZUQYemvDlnpGrNu9tprR7BYWpDYwC0Xia0Zxz5ZupdiIrUp0GH1aXfg==", - "peer": true, - "dependencies": { - "date-now": "^0.1.4" - } - }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" - }, - "node_modules/cookie": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.4.1.tgz", - "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-parser": { - "version": "1.4.6", - "resolved": "https://registry.npmmirror.com/cookie-parser/-/cookie-parser-1.4.6.tgz", - "integrity": "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==", - "dependencies": { - "cookie": "0.4.1", - "cookie-signature": "1.0.6" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "node_modules/copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/copy-props": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/copy-props/-/copy-props-2.0.5.tgz", - "integrity": "sha512-XBlx8HSqrT0ObQwmSzM7WE5k8FxTV75h1DX1Z3n6NhQ/UYYAvInWYmG06vFt7hQZArE2fuO62aihiWIVQwh1sw==", - "dependencies": { - "each-props": "^1.3.2", - "is-plain-object": "^5.0.0" - } - }, - "node_modules/copy-props/node_modules/is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/copy-to": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/copy-to/-/copy-to-2.0.1.tgz", - "integrity": "sha512-3DdaFaU/Zf1AnpLiFDeNCD4TOWe3Zl2RZaTzUvWiIk5ERzcCodOE20Vqq4fzCbNoHURFHT4/us/Lfq+S2zyY4w==" - }, - "node_modules/core-js-compat": { - "version": "3.39.0", - "resolved": "https://registry.npmmirror.com/core-js-compat/-/core-js-compat-3.39.0.tgz", - "integrity": "sha512-VgEUx3VwlExr5no0tXlBt+silBvhTryPwCXRI2Id1PN8WTKu7MreethvddqOubrYxkFdv/RnYrqlv1sFNAUelw==", - "dependencies": { - "browserslist": "^4.24.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" - }, - "node_modules/cos-nodejs-sdk-v5": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/cos-nodejs-sdk-v5/-/cos-nodejs-sdk-v5-2.14.0.tgz", - "integrity": "sha512-1FQyhTB/LaG1CNqxcJRkSrNI/9tzzdVVy8diLotGbp/gdmOKM79Cif+qhp8pYjvnqgJf23i+uSVkAWEGm3sf6g==", - "dependencies": { - "conf": "^9.0.0", - "fast-xml-parser": "4.2.5", - "mime-types": "^2.1.24", - "request": "^2.88.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/cron-parser": { - "version": "4.9.0", - "resolved": "https://registry.npmmirror.com/cron-parser/-/cron-parser-4.9.0.tgz", - "integrity": "sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==", - "dependencies": { - "luxon": "^3.2.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/cross-env": { - "version": "5.2.1", - "resolved": "https://registry.npmmirror.com/cross-env/-/cross-env-5.2.1.tgz", - "integrity": "sha512-1yHhtcfAd1r4nwQgknowuUNfIT9E8dOMMspC36g45dN+iD1blloi7xp8X/xAIDnjHWyt1uQ8PHk2fkNaym7soQ==", - "dependencies": { - "cross-spawn": "^6.0.5" - }, - "bin": { - "cross-env": "dist/bin/cross-env.js", - "cross-env-shell": "dist/bin/cross-env-shell.js" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/crypt": { - "version": "0.0.2", - "resolved": "https://registry.npmmirror.com/crypt/-/crypt-0.0.2.tgz", - "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", - "engines": { - "node": "*" - } - }, - "node_modules/d": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/d/-/d-1.0.2.tgz", - "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", - "dependencies": { - "es5-ext": "^0.10.64", - "type": "^2.7.2" - }, - "engines": { - "node": ">=0.12" - } - }, - "node_modules/dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmmirror.com/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", - "dependencies": { - "assert-plus": "^1.0.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/date-fns": { - "version": "2.30.0", - "resolved": "https://registry.npmmirror.com/date-fns/-/date-fns-2.30.0.tgz", - "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", - "dependencies": { - "@babel/runtime": "^7.21.0" - }, - "engines": { - "node": ">=0.11" - } - }, - "node_modules/date-now": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/date-now/-/date-now-0.1.4.tgz", - "integrity": "sha512-AsElvov3LoNB7tf5k37H2jYSB+ZZPMT5sG2QjJCcdlV5chIv6htBUBUui2IKRjgtKAKtCBN7Zbwa+MtwLjSeNw==", - "peer": true - }, - "node_modules/dateformat": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", - "integrity": "sha512-GODcnWq3YGoTnygPfi02ygEiRxqUxpJwuRHjdhJYuxpcZmDq4rjBiXYmbCCzStxo176ixfLT6i4NPwQooRySnw==", - "engines": { - "node": "*" - } - }, - "node_modules/debounce-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-4.0.0.tgz", - "integrity": "sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==", - "dependencies": { - "mimic-fn": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/decode-uri-component": { - "version": "0.2.2", - "resolved": "https://registry.npmmirror.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz", - "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" - }, - "node_modules/default-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/default-compare/-/default-compare-1.0.0.tgz", - "integrity": "sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==", - "dependencies": { - "kind-of": "^5.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/default-resolution": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/default-resolution/-/default-resolution-2.0.0.tgz", - "integrity": "sha512-2xaP6GiwVwOEbXCGoJ4ufgC76m8cj805jrghScewJC2ZDsb9U0b4BIrba+xt/Uytyd0HvQ6+WymSRTfnYj59GQ==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/default-user-agent": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/default-user-agent/-/default-user-agent-1.0.0.tgz", - "integrity": "sha512-bDF7bg6OSNcSwFWPu4zYKpVkJZQYVrAANMYB8bc9Szem1D0yKdm4sa/rOCs2aC9+2GMqQ7KnwtZRvDhmLF0dXw==", - "dependencies": { - "os-name": "~1.0.3" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dependencies": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/del": { - "version": "2.2.2", - "resolved": "https://registry.npmmirror.com/del/-/del-2.2.2.tgz", - "integrity": "sha512-Z4fzpbIRjOu7lO5jCETSWoqUDVe0IPOlfugBsF6suen2LKDlVb4QZpKEM9P+buNJ4KI1eN7I083w/pbKUpsrWQ==", - "dependencies": { - "globby": "^5.0.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "rimraf": "^2.2.8" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/del/node_modules/array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==", - "dependencies": { - "array-uniq": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/del/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/del/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/del/node_modules/globby": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/globby/-/globby-5.0.0.tgz", - "integrity": "sha512-HJRTIH2EeH44ka+LWig+EqT2ONSYpVlNfx6pyd592/VF1TbfljJ7elwie7oSwcViLGqOdWocSdu2txwBF9bjmQ==", - "dependencies": { - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/del/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/denque": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/denque/-/denque-2.1.0.tgz", - "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/detect-file": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/detect-file/-/detect-file-1.0.0.tgz", - "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/detect-libc": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.0.3.tgz", - "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", - "optional": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/digest-header": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/digest-header/-/digest-header-1.1.0.tgz", - "integrity": "sha512-glXVh42vz40yZb9Cq2oMOt70FIoWiv+vxNvdKdU8CwjLad25qHM3trLxhl9bVjdr6WaslIXhWpn0NO8T/67Qjg==", - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dom-serializer": { - "version": "0.2.2", - "resolved": "https://registry.npmmirror.com/dom-serializer/-/dom-serializer-0.2.2.tgz", - "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", - "peer": true, - "dependencies": { - "domelementtype": "^2.0.1", - "entities": "^2.0.0" - } - }, - "node_modules/dom-serializer/node_modules/domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", - "peer": true - }, - "node_modules/dom-serializer/node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmmirror.com/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "peer": true - }, - "node_modules/domelementtype": { - "version": "1.3.1", - "resolved": "https://registry.npmmirror.com/domelementtype/-/domelementtype-1.3.1.tgz", - "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", - "peer": true - }, - "node_modules/domhandler": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/domhandler/-/domhandler-2.3.0.tgz", - "integrity": "sha512-q9bUwjfp7Eif8jWxxxPSykdRZAb6GkguBGSgvvCrhI9wB71W2K/Kvv4E61CF/mcCfnVJDeDWx/Vb/uAqbDj6UQ==", - "peer": true, - "dependencies": { - "domelementtype": "1" - } - }, - "node_modules/domutils": { - "version": "1.5.1", - "resolved": "https://registry.npmmirror.com/domutils/-/domutils-1.5.1.tgz", - "integrity": "sha512-gSu5Oi/I+3wDENBsOWBiRK1eoGxcywYSqg3rR960/+EfY0CF4EX1VPkgHOZ3WiS/Jg2DtliF6BhWcHlfpYUcGw==", - "peer": true, - "dependencies": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - "node_modules/dot-prop": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz", - "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==", - "dependencies": { - "is-obj": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/dotenv": { - "version": "16.3.1", - "resolved": "https://registry.npmmirror.com/dotenv/-/dotenv-16.3.1.tgz", - "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", - "engines": { - "node": ">=12" - } - }, - "node_modules/dottie": { - "version": "2.0.6", - "resolved": "https://registry.npmmirror.com/dottie/-/dottie-2.0.6.tgz", - "integrity": "sha512-iGCHkfUc5kFekGiqhe8B/mdaurD+lakO9txNnTvKtA6PISrw86LgqHvRzWYPyoE2Ph5aMIrCw9/uko6XHTKCwA==" - }, - "node_modules/duplexer2": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", - "integrity": "sha512-+AWBwjGadtksxjOQSFDhPNQbed7icNXApT4+2BNpsXzcCBiInq2H9XW0O8sfHFaPmnQRs7cg/P0fAr2IWQSW0g==", - "dependencies": { - "readable-stream": "~1.1.9" - } - }, - "node_modules/duplexer2/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" - }, - "node_modules/duplexer2/node_modules/readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/duplexer2/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" - }, - "node_modules/duplexify": { - "version": "3.7.1", - "resolved": "https://registry.npmmirror.com/duplexify/-/duplexify-3.7.1.tgz", - "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", - "dependencies": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - } - }, - "node_modules/each-props": { - "version": "1.3.2", - "resolved": "https://registry.npmmirror.com/each-props/-/each-props-1.3.2.tgz", - "integrity": "sha512-vV0Hem3zAGkJAyU7JSjixeU66rwdynTAa1vofCrSA5fEln+m67Az9CcnkVD776/fsN/UjIWmBDoNRS6t6G9RfA==", - "dependencies": { - "is-plain-object": "^2.0.1", - "object.defaults": "^1.1.0" - } - }, - "node_modules/each-props/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/easy-transform-stream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/easy-transform-stream/-/easy-transform-stream-1.0.1.tgz", - "integrity": "sha512-ktkaa6XR7COAR3oj02CF3IOgz2m1hCaY3SfzvKT4Svt2MhHw9XCt+ncJNWfe2TGz31iqzNGZ8spdKQflj+Rlog==", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "node_modules/electron-to-chromium": { - "version": "1.5.76", - "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.76.tgz", - "integrity": "sha512-CjVQyG7n7Sr+eBXE86HIulnL5N8xZY1sgmOPGuq/F0Rr0FJq63lg0kEtOIDfZBk44FnDLf6FUJ+dsJcuiUDdDQ==" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmmirror.com/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/end-or-error": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/end-or-error/-/end-or-error-1.0.1.tgz", - "integrity": "sha512-OclLMSug+k2A0JKuf494im25ANRBVW8qsjmwbgX7lQ8P82H21PQ1PWkoYwb9y5yMBS69BPlwtzdIFClo3+7kOQ==", - "engines": { - "node": ">= 0.11.14" - } - }, - "node_modules/engine.io": { - "version": "3.6.1", - "resolved": "https://registry.npmmirror.com/engine.io/-/engine.io-3.6.1.tgz", - "integrity": "sha512-dfs8EVg/i7QjFsXxn7cCRQ+Wai1G1TlEvHhdYEi80fxn5R1vZ2K661O6v/rezj1FP234SZ14r9CmJke99iYDGg==", - "dependencies": { - "accepts": "~1.3.4", - "base64id": "2.0.0", - "cookie": "~0.4.1", - "debug": "~4.1.0", - "engine.io-parser": "~2.2.0", - "ws": "~7.4.2" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/engine.io-client": { - "version": "3.5.3", - "resolved": "https://registry.npmmirror.com/engine.io-client/-/engine.io-client-3.5.3.tgz", - "integrity": "sha512-qsgyc/CEhJ6cgMUwxRRtOndGVhIu5hpL5tR4umSpmX/MvkFoIxUTM7oFMDQumHNzlNLwSVy6qhstFPoWTf7dOw==", - "dependencies": { - "component-emitter": "~1.3.0", - "component-inherit": "0.0.3", - "debug": "~3.1.0", - "engine.io-parser": "~2.2.0", - "has-cors": "1.1.0", - "indexof": "0.0.1", - "parseqs": "0.0.6", - "parseuri": "0.0.6", - "ws": "~7.4.2", - "xmlhttprequest-ssl": "~1.6.2", - "yeast": "0.1.2" - } - }, - "node_modules/engine.io-client/node_modules/debug": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/engine.io-parser": { - "version": "2.2.1", - "resolved": "https://registry.npmmirror.com/engine.io-parser/-/engine.io-parser-2.2.1.tgz", - "integrity": "sha512-x+dN/fBH8Ro8TFwJ+rkB2AmuVw9Yu2mockR/p3W8f8YtExwFgDvBDi0GWyb4ZLkpahtDGZgtr3zLovanJghPqg==", - "dependencies": { - "after": "0.8.2", - "arraybuffer.slice": "~0.0.7", - "base64-arraybuffer": "0.1.4", - "blob": "0.0.5", - "has-binary2": "~1.0.2" - } - }, - "node_modules/engine.io/node_modules/debug": { - "version": "4.1.1", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/engine.io/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/entities": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/entities/-/entities-1.0.0.tgz", - "integrity": "sha512-LbLqfXgJMmy81t+7c14mnulFHJ170cM6E+0vMXR9k/ZiZwgX8i5pNgjTCX3SO4VeUsFLV+8InixoretwU+MjBQ==", - "peer": true - }, - "node_modules/env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmmirror.com/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es5-ext": { - "version": "0.10.64", - "resolved": "https://registry.npmmirror.com/es5-ext/-/es5-ext-0.10.64.tgz", - "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", - "hasInstallScript": true, - "dependencies": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "esniff": "^2.0.1", - "next-tick": "^1.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/es6-iterator": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", - "dependencies": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "node_modules/es6-object-assign": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/es6-object-assign/-/es6-object-assign-1.1.0.tgz", - "integrity": "sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw==" - }, - "node_modules/es6-symbol": { - "version": "3.1.4", - "resolved": "https://registry.npmmirror.com/es6-symbol/-/es6-symbol-3.1.4.tgz", - "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", - "dependencies": { - "d": "^1.0.2", - "ext": "^1.7.0" - }, - "engines": { - "node": ">=0.12" - } - }, - "node_modules/es6-weak-map": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/es6-weak-map/-/es6-weak-map-2.0.3.tgz", - "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", - "dependencies": { - "d": "1", - "es5-ext": "^0.10.46", - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.1" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, - "node_modules/eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/esniff": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/esniff/-/esniff-2.0.1.tgz", - "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", - "dependencies": { - "d": "^1.0.1", - "es5-ext": "^0.10.62", - "event-emitter": "^0.3.5", - "type": "^2.7.2" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmmirror.com/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/event-emitter": { - "version": "0.3.5", - "resolved": "https://registry.npmmirror.com/event-emitter/-/event-emitter-0.3.5.tgz", - "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", - "dependencies": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "peer": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmmirror.com/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", - "dependencies": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/expand-brackets/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-tilde": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/expand-tilde/-/expand-tilde-2.0.2.tgz", - "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==", - "dependencies": { - "homedir-polyfill": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/express": { - "version": "4.18.2", - "resolved": "https://registry.npmmirror.com/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/express/node_modules/body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/express/node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express/node_modules/raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/ext": { - "version": "1.7.0", - "resolved": "https://registry.npmmirror.com/ext/-/ext-1.7.0.tgz", - "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", - "dependencies": { - "type": "^2.7.2" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "node_modules/extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", - "dependencies": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dependencies": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", - "engines": [ - "node >=0.6.0" - ] - }, - "node_modules/fancy-log": { - "version": "1.3.3", - "resolved": "https://registry.npmmirror.com/fancy-log/-/fancy-log-1.3.3.tgz", - "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", - "dependencies": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "parse-node-version": "^1.0.0", - "time-stamp": "^1.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-fifo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", - "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==" - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/fast-levenshtein": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-1.1.4.tgz", - "integrity": "sha512-Ia0sQNrMPXXkqVFt6w6M1n1oKo3NfKs+mvaV811Jwir7vAk9a6PVV9VPYf6X3BU97QiLEmuW3uXH9u87zDFfdw==" - }, - "node_modules/fast-xml-parser": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", - "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "node_modules/fastq": { - "version": "1.16.0", - "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.16.0.tgz", - "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-uri-to-path": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", - "optional": true - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/findup-sync": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/findup-sync/-/findup-sync-3.0.0.tgz", - "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==", - "dependencies": { - "detect-file": "^1.0.0", - "is-glob": "^4.0.0", - "micromatch": "^3.0.4", - "resolve-dir": "^1.0.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/findup-sync/node_modules/braces": { - "version": "2.3.2", - "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dependencies": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/findup-sync/node_modules/braces/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/findup-sync/node_modules/fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", - "dependencies": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/findup-sync/node_modules/fill-range/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/findup-sync/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/findup-sync/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/findup-sync/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/findup-sync/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/findup-sync/node_modules/micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/findup-sync/node_modules/to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", - "dependencies": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fined": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/fined/-/fined-1.2.0.tgz", - "integrity": "sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng==", - "dependencies": { - "expand-tilde": "^2.0.2", - "is-plain-object": "^2.0.3", - "object.defaults": "^1.1.0", - "object.pick": "^1.2.0", - "parse-filepath": "^1.0.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/fined/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/first-chunk-stream": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-5.0.0.tgz", - "integrity": "sha512-WdHo4ejd2cG2Dl+sLkW79SctU7mUQDfr4s1i26ffOZRs5mgv+BRttIM9gwcq0rDbemo0KlpVPaa3LBVLqPXzcQ==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flagged-respawn": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/flagged-respawn/-/flagged-respawn-1.0.1.tgz", - "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/flush-write-stream": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz", - "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", - "dependencies": { - "inherits": "^2.0.3", - "readable-stream": "^2.3.6" - } - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmmirror.com/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/for-own": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/for-own/-/for-own-1.0.0.tgz", - "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==", - "dependencies": { - "for-in": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/foreground-child": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/foreground-child/-/foreground-child-3.1.1.tgz", - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/foreground-child/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/foreground-child/node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/foreground-child/node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/foreground-child/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "engines": { - "node": ">=8" - } - }, - "node_modules/foreground-child/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmmirror.com/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", - "engines": { - "node": "*" - } - }, - "node_modules/formstream": { - "version": "1.5.1", - "resolved": "https://registry.npmmirror.com/formstream/-/formstream-1.5.1.tgz", - "integrity": "sha512-q7ORzFqotpwn3Y/GBK2lK7PjtZZwJHz9QE9Phv8zb5IrL9ftGLyi2zjGURON3voK8TaZ+mqJKERYN4lrHYTkUQ==", - "dependencies": { - "destroy": "^1.0.4", - "mime": "^2.5.2", - "node-hex": "^1.0.1", - "pause-stream": "~0.0.11" - } - }, - "node_modules/formstream/node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmmirror.com/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", - "dependencies": { - "map-cache": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs-mkdirp-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz", - "integrity": "sha512-+vSd9frUnapVC2RZYfL3FCB2p3g4TBhaUmrsWlSudsGdnxIuUvBB2QM1VZeBtc49QFwrp+wQLrDs3+xxDgI5gQ==", - "dependencies": { - "graceful-fs": "^4.1.11", - "through2": "^2.0.3" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/fs-mkdirp-stream/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" - }, - "node_modules/generate-function": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/generate-function/-/generate-function-2.3.1.tgz", - "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", - "dependencies": { - "is-property": "^1.0.2" - } - }, - "node_modules/generic-pool": { - "version": "3.9.0", - "resolved": "https://registry.npmmirror.com/generic-pool/-/generic-pool-3.9.0.tgz", - "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "peer": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-port": { - "version": "5.1.1", - "resolved": "https://registry.npmmirror.com/get-port/-/get-port-5.1.1.tgz", - "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-ready": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/get-ready/-/get-ready-1.0.0.tgz", - "integrity": "sha512-mFXCZPJIlcYcth+N8267+mghfYN9h3EhsDa6JSnbA3Wrhh/XFpuowviFcsDeYZtKspQyWyJqfs4O6P8CHeTwzw==" - }, - "node_modules/get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmmirror.com/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmmirror.com/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", - "dependencies": { - "assert-plus": "^1.0.0" - } - }, - "node_modules/glob": { - "version": "10.3.10", - "resolved": "https://registry.npmmirror.com/glob/-/glob-10.3.10.tgz", - "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.5", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/glob-stream": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/glob-stream/-/glob-stream-6.1.0.tgz", - "integrity": "sha512-uMbLGAP3S2aDOHUDfdoYcdIePUCfysbAd0IAoWVZbeGU/oNQ8asHVSshLDJUPWxfzj8zsCG7/XeHPHTtow0nsw==", - "dependencies": { - "extend": "^3.0.0", - "glob": "^7.1.1", - "glob-parent": "^3.1.0", - "is-negated-glob": "^1.0.0", - "ordered-read-streams": "^1.0.0", - "pumpify": "^1.3.5", - "readable-stream": "^2.1.5", - "remove-trailing-separator": "^1.0.1", - "to-absolute-glob": "^2.0.0", - "unique-stream": "^2.0.2" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/glob-stream/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/glob-stream/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/glob-stream/node_modules/glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", - "dependencies": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - } - }, - "node_modules/glob-stream/node_modules/is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", - "dependencies": { - "is-extglob": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-stream/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/glob-watcher": { - "version": "5.0.5", - "resolved": "https://registry.npmmirror.com/glob-watcher/-/glob-watcher-5.0.5.tgz", - "integrity": "sha512-zOZgGGEHPklZNjZQaZ9f41i7F2YwE+tS5ZHrDhbBCk3stwahn5vQxnFmBJZHoYdusR6R1bLSXeGUy/BhctwKzw==", - "dependencies": { - "anymatch": "^2.0.0", - "async-done": "^1.2.0", - "chokidar": "^2.0.0", - "is-negated-glob": "^1.0.0", - "just-debounce": "^1.0.0", - "normalize-path": "^3.0.0", - "object.defaults": "^1.1.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/glob-watcher/node_modules/anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dependencies": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - } - }, - "node_modules/glob-watcher/node_modules/anymatch/node_modules/normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", - "dependencies": { - "remove-trailing-separator": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/binary-extensions": { - "version": "1.13.1", - "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-1.13.1.tgz", - "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/braces": { - "version": "2.3.2", - "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dependencies": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/braces/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/chokidar": { - "version": "2.1.8", - "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-2.1.8.tgz", - "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.1", - "braces": "^2.3.2", - "glob-parent": "^3.1.0", - "inherits": "^2.0.3", - "is-binary-path": "^1.0.0", - "is-glob": "^4.0.0", - "normalize-path": "^3.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.2.1", - "upath": "^1.1.1" - }, - "optionalDependencies": { - "fsevents": "^1.2.7" - } - }, - "node_modules/glob-watcher/node_modules/fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", - "dependencies": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/fill-range/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/fsevents": { - "version": "1.2.13", - "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-1.2.13.tgz", - "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", - "deprecated": "The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "dependencies": { - "bindings": "^1.5.0", - "nan": "^2.12.1" - }, - "engines": { - "node": ">= 4.0" - } - }, - "node_modules/glob-watcher/node_modules/glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", - "dependencies": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - } - }, - "node_modules/glob-watcher/node_modules/glob-parent/node_modules/is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", - "dependencies": { - "is-extglob": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha512-9fRVlXc0uCxEDj1nQzaWONSpbTfx0FmJfzHF7pwlI8DkWGoHBBea4Pg5Ky0ojwwxQmnSifgbKkI06Qv0Ljgj+Q==", - "dependencies": { - "binary-extensions": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/micromatch/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/glob-watcher/node_modules/readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", - "dependencies": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/glob-watcher/node_modules/to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", - "dependencies": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/global-modules": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/global-modules/-/global-modules-1.0.0.tgz", - "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", - "dependencies": { - "global-prefix": "^1.0.1", - "is-windows": "^1.0.1", - "resolve-dir": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/global-prefix": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/global-prefix/-/global-prefix-1.0.2.tgz", - "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==", - "dependencies": { - "expand-tilde": "^2.0.2", - "homedir-polyfill": "^1.0.1", - "ini": "^1.3.4", - "is-windows": "^1.0.1", - "which": "^1.2.14" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmmirror.com/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/globby": { - "version": "10.0.1", - "resolved": "https://registry.npmmirror.com/globby/-/globby-10.0.1.tgz", - "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==", - "dependencies": { - "@types/glob": "^7.1.1", - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.0.3", - "glob": "^7.1.3", - "ignore": "^5.1.1", - "merge2": "^1.2.3", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/globby/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/globby/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/globby/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/glogg": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/glogg/-/glogg-1.0.2.tgz", - "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", - "dependencies": { - "sparkles": "^1.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/graceful-readlink": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", - "integrity": "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w==" - }, - "node_modules/gulp": { - "version": "4.0.2", - "resolved": "https://registry.npmmirror.com/gulp/-/gulp-4.0.2.tgz", - "integrity": "sha512-dvEs27SCZt2ibF29xYgmnwwCYZxdxhQ/+LFWlbAW8y7jt68L/65402Lz3+CKy0Ov4rOs+NERmDq7YlZaDqUIfA==", - "dependencies": { - "glob-watcher": "^5.0.3", - "gulp-cli": "^2.2.0", - "undertaker": "^1.2.1", - "vinyl-fs": "^3.0.0" - }, - "bin": { - "gulp": "bin/gulp.js" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/gulp-babel": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/gulp-babel/-/gulp-babel-8.0.0.tgz", - "integrity": "sha512-oomaIqDXxFkg7lbpBou/gnUkX51/Y/M2ZfSjL2hdqXTAlSWZcgZtd2o0cOH0r/eE8LWD0+Q/PsLsr2DKOoqToQ==", - "dependencies": { - "plugin-error": "^1.0.1", - "replace-ext": "^1.0.0", - "through2": "^2.0.0", - "vinyl-sourcemaps-apply": "^0.2.0" - }, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/gulp-babel/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/gulp-clean-css": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/gulp-clean-css/-/gulp-clean-css-4.3.0.tgz", - "integrity": "sha512-mGyeT3qqFXTy61j0zOIciS4MkYziF2U594t2Vs9rUnpkEHqfu6aDITMp8xOvZcvdX61Uz3y1mVERRYmjzQF5fg==", - "dependencies": { - "clean-css": "4.2.3", - "plugin-error": "1.0.1", - "through2": "3.0.1", - "vinyl-sourcemaps-apply": "0.2.1" - } - }, - "node_modules/gulp-cli": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/gulp-cli/-/gulp-cli-2.3.0.tgz", - "integrity": "sha512-zzGBl5fHo0EKSXsHzjspp3y5CONegCm8ErO5Qh0UzFzk2y4tMvzLWhoDokADbarfZRL2pGpRp7yt6gfJX4ph7A==", - "dependencies": { - "ansi-colors": "^1.0.1", - "archy": "^1.0.0", - "array-sort": "^1.0.0", - "color-support": "^1.1.3", - "concat-stream": "^1.6.0", - "copy-props": "^2.0.1", - "fancy-log": "^1.3.2", - "gulplog": "^1.0.0", - "interpret": "^1.4.0", - "isobject": "^3.0.1", - "liftoff": "^3.1.0", - "matchdep": "^2.0.0", - "mute-stdout": "^1.0.0", - "pretty-hrtime": "^1.0.0", - "replace-homedir": "^1.0.0", - "semver-greatest-satisfied-range": "^1.1.0", - "v8flags": "^3.2.0", - "yargs": "^7.1.0" - }, - "bin": { - "gulp": "bin/gulp.js" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/gulp-cli/node_modules/ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", - "dependencies": { - "ansi-wrap": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-cli/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-cli/node_modules/camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-cli/node_modules/cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==", - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "node_modules/gulp-cli/node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-cli/node_modules/get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" - }, - "node_modules/gulp-cli/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-cli/node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-cli/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-cli/node_modules/wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-cli/node_modules/y18n": { - "version": "3.2.2", - "resolved": "https://registry.npmmirror.com/y18n/-/y18n-3.2.2.tgz", - "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==" - }, - "node_modules/gulp-cli/node_modules/yargs": { - "version": "7.1.2", - "resolved": "https://registry.npmmirror.com/yargs/-/yargs-7.1.2.tgz", - "integrity": "sha512-ZEjj/dQYQy0Zx0lgLMLR8QuaqTihnxirir7EwUHp1Axq4e3+k8jXU5K0VLbNvedv1f4EWtBonDIZm0NUr+jCcA==", - "dependencies": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^5.0.1" - } - }, - "node_modules/gulp-cli/node_modules/yargs-parser": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-5.0.1.tgz", - "integrity": "sha512-wpav5XYiddjXxirPoCTUPbqM0PXvJ9hiBMvuJgInvo4/lAOTZzUprArw17q2O1P2+GHhbBr18/iQwjL5Z9BqfA==", - "dependencies": { - "camelcase": "^3.0.0", - "object.assign": "^4.1.0" - } - }, - "node_modules/gulp-concat": { - "version": "2.6.1", - "resolved": "https://registry.npmmirror.com/gulp-concat/-/gulp-concat-2.6.1.tgz", - "integrity": "sha512-a2scActrQrDBpBbR3WUZGyGS1JEPLg5PZJdIa7/Bi3GuKAmPYDK6SFhy/NZq5R8KsKKFvtfR0fakbUCcKGCCjg==", - "dependencies": { - "concat-with-sourcemaps": "^1.0.0", - "through2": "^2.0.0", - "vinyl": "^2.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/gulp-concat/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/gulp-footer": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/gulp-footer/-/gulp-footer-2.1.0.tgz", - "integrity": "sha512-CK3nRBP3PG59XN2L1rDLkBHA7goYsW+tJuVQccLP9jq3mpBT2kuRq0ImgNjrUkDbF948aCVQH4J7uIEqiZ2MHA==", - "dependencies": { - "lodash": "^4.17.21", - "map-stream": "^0.0.7" - } - }, - "node_modules/gulp-gzip": { - "version": "1.4.2", - "resolved": "https://registry.npmmirror.com/gulp-gzip/-/gulp-gzip-1.4.2.tgz", - "integrity": "sha512-ZIxfkUwk2XmZPTT9pPHrHUQlZMyp9nPhg2sfoeN27mBGpi7OaHnOD+WCN41NXjfJQ69lV1nQ9LLm1hYxx4h3UQ==", - "dependencies": { - "ansi-colors": "^1.0.1", - "bytes": "^3.0.0", - "fancy-log": "^1.3.2", - "plugin-error": "^1.0.0", - "stream-to-array": "^2.3.0", - "through2": "^2.0.3" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/gulp-gzip/node_modules/ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", - "dependencies": { - "ansi-wrap": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-gzip/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/gulp-header": { - "version": "2.0.9", - "resolved": "https://registry.npmmirror.com/gulp-header/-/gulp-header-2.0.9.tgz", - "integrity": "sha512-LMGiBx+qH8giwrOuuZXSGvswcIUh0OiioNkUpLhNyvaC6/Ga8X6cfAeme2L5PqsbXMhL8o8b/OmVqIQdxprhcQ==", - "dependencies": { - "concat-with-sourcemaps": "^1.1.0", - "lodash.template": "^4.5.0", - "map-stream": "0.0.7", - "through2": "^2.0.0" - } - }, - "node_modules/gulp-header/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/gulp-htmlmin": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/gulp-htmlmin/-/gulp-htmlmin-5.0.1.tgz", - "integrity": "sha512-ASlyDPZOSKjHYUifYV0rf9JPDflN9IRIb8lw2vRqtYMC4ljU3zAmnnaVXwFQ3H+CfXxZSUesZ2x7jrnPJu93jA==", - "dependencies": { - "html-minifier": "^3.5.20", - "plugin-error": "^1.0.1", - "through2": "^2.0.3" - }, - "engines": { - "node": ">= 6.0" - } - }, - "node_modules/gulp-htmlmin/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/gulp-javascript-obfuscator": { - "version": "1.1.6", - "resolved": "https://registry.npmmirror.com/gulp-javascript-obfuscator/-/gulp-javascript-obfuscator-1.1.6.tgz", - "integrity": "sha512-oiROhi7Zlu/0fM2h20jBFPaDOZicilT6kN+97Si82yieeFqr6l70o2R3gZ2Ah0u8v5IqGa+Pt8c2q3UnkMuk2A==", - "dependencies": { - "javascript-obfuscator": "latest", - "plugin-error": "^1.0.1", - "through2": "^2.0.0", - "vinyl": "^2.2.0" - } - }, - "node_modules/gulp-javascript-obfuscator/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/gulp-jshint": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/gulp-jshint/-/gulp-jshint-2.1.0.tgz", - "integrity": "sha512-sP3NK8Y/1e58O0PH9t6s7DAr/lKDSUbIY207oWSeufM6/VclB7jJrIBcPCsyhrFTCDUl9DauePbt6VqP2vPM5w==", - "dependencies": { - "lodash": "^4.12.0", - "minimatch": "^3.0.3", - "plugin-error": "^0.1.2", - "rcloader": "^0.2.2", - "through2": "^2.0.0" - }, - "engines": { - "node": ">= 0.4.0" - }, - "peerDependencies": { - "jshint": "2.x" - } - }, - "node_modules/gulp-jshint/node_modules/arr-diff": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/arr-diff/-/arr-diff-1.1.0.tgz", - "integrity": "sha512-OQwDZUqYaQwyyhDJHThmzId8daf4/RFNLaeh3AevmSeZ5Y7ug4Ga/yKc6l6kTZOBW781rCj103ZuTh8GAsB3+Q==", - "dependencies": { - "arr-flatten": "^1.0.1", - "array-slice": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-jshint/node_modules/arr-union": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/arr-union/-/arr-union-2.1.0.tgz", - "integrity": "sha512-t5db90jq+qdgk8aFnxEkjqta0B/GHrM1pxzuuZz2zWsOXc5nKu3t+76s/PQBA8FTcM/ipspIH9jWG4OxCBc2eA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-jshint/node_modules/array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmmirror.com/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha512-rlVfZW/1Ph2SNySXwR9QYkChp8EkOEiTMO5Vwx60usw04i4nWemkm9RXmQqgkQFaLHsqLuADvjp6IfgL9l2M8Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-jshint/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/gulp-jshint/node_modules/extend-shallow": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-1.1.4.tgz", - "integrity": "sha512-L7AGmkO6jhDkEBBGWlLtftA80Xq8DipnrRPr0pyi7GQLXkaq9JYA4xF4z6qnadIC6euiTDKco0cGSU9muw+WTw==", - "dependencies": { - "kind-of": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-jshint/node_modules/kind-of": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-1.1.0.tgz", - "integrity": "sha512-aUH6ElPnMGon2/YkxRIigV32MOpTVcoXQ1Oo8aYn40s+sJ3j+0gFZsT8HKDcxNy7Fi9zuquWtGaGAahOdv5p/g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-jshint/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/gulp-jshint/node_modules/plugin-error": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/plugin-error/-/plugin-error-0.1.2.tgz", - "integrity": "sha512-WzZHcm4+GO34sjFMxQMqZbsz3xiNEgonCskQ9v+IroMmYgk/tas8dG+Hr2D6IbRPybZ12oWpzE/w3cGJ6FJzOw==", - "dependencies": { - "ansi-cyan": "^0.1.1", - "ansi-red": "^0.1.1", - "arr-diff": "^1.0.1", - "arr-union": "^2.0.1", - "extend-shallow": "^1.1.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-jshint/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/gulp-minify-css": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/gulp-minify-css/-/gulp-minify-css-1.2.4.tgz", - "integrity": "sha512-byBqFQM/HrZoUVYihu/03iYH4m7U5TjSGhr6/7JvpMHh9+woewsCtEp6Noif2VXB+idDoM4ECd9sw+St+KFqsg==", - "deprecated": "Please use gulp-clean-css", - "dependencies": { - "clean-css": "^3.3.3", - "gulp-util": "^3.0.5", - "object-assign": "^4.0.1", - "readable-stream": "^2.0.0", - "vinyl-bufferstream": "^1.0.1", - "vinyl-sourcemaps-apply": "^0.2.0" - } - }, - "node_modules/gulp-minify-css/node_modules/clean-css": { - "version": "3.4.28", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-3.4.28.tgz", - "integrity": "sha512-aTWyttSdI2mYi07kWqHi24NUU9YlELFKGOAgFzZjDN1064DMAOy2FBuoyGmkKRlXkbpXd0EVHmiVkbKhKoirTw==", - "dependencies": { - "commander": "2.8.x", - "source-map": "0.4.x" - }, - "bin": { - "cleancss": "bin/cleancss" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-minify-css/node_modules/commander": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", - "integrity": "sha512-+pJLBFVk+9ZZdlAOB5WuIElVPPth47hILFkmGym57aq8kwxsowvByvB0DHs1vQAhyMZzdcpTtF0VDKGkSDR4ZQ==", - "dependencies": { - "graceful-readlink": ">= 1.0.0" - }, - "engines": { - "node": ">= 0.6.x" - } - }, - "node_modules/gulp-minify-css/node_modules/source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==", - "dependencies": { - "amdefine": ">=0.0.4" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/gulp-plugin-extras": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/gulp-plugin-extras/-/gulp-plugin-extras-0.3.0.tgz", - "integrity": "sha512-I/kOBSpo61QsGQZcqozZYEnDseKvpudUafVVWDLYgBFAUJ37kW5R8Sjw9cMYzpGyPUfEYOeoY4p+dkfLqgyJUQ==", - "dependencies": { - "@types/vinyl": "^2.0.9", - "chalk": "^5.3.0", - "easy-transform-stream": "^1.0.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gulp-plugin-extras/node_modules/chalk": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", - "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/gulp-rename": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/gulp-rename/-/gulp-rename-2.0.0.tgz", - "integrity": "sha512-97Vba4KBzbYmR5VBs9mWmK+HwIf5mj+/zioxfZhOKeXtx5ZjBk57KFlePf5nxq9QsTtFl0ejnHE3zTC9MHXqyQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/gulp-replace": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/gulp-replace/-/gulp-replace-1.1.4.tgz", - "integrity": "sha512-SVSF7ikuWKhpAW4l4wapAqPPSToJoiNKsbDoUnRrSgwZHH7lH8pbPeQj1aOVYQrbZKhfSVBxVW+Py7vtulRktw==", - "dependencies": { - "@types/node": "*", - "@types/vinyl": "^2.0.4", - "istextorbinary": "^3.0.0", - "replacestream": "^4.0.3", - "yargs-parser": ">=5.0.0-security.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/gulp-rev": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/gulp-rev/-/gulp-rev-11.0.0.tgz", - "integrity": "sha512-KJSyw0qMQBL0xB3YhYrdinelbnWnYHDxj3jqVL2Xvn8bUA1lh7py5/2Z6fUgIWiX+F1XyKYVxI8yy9asIAvZJA==", - "dependencies": { - "gulp-plugin-extras": "^0.3.0", - "modify-filename": "^2.0.0", - "rev-hash": "^4.1.0", - "rev-path": "^3.0.0", - "sort-keys": "^5.0.0", - "vinyl": "^3.0.0", - "vinyl-file": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - }, - "peerDependencies": { - "gulp": ">=4" - }, - "peerDependenciesMeta": { - "gulp": { - "optional": true - } - } - }, - "node_modules/gulp-rev-all": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/gulp-rev-all/-/gulp-rev-all-4.0.0.tgz", - "integrity": "sha512-qQYY56y6z9jJiZC+KpRtSCzFb/uS7bIGUB3tRiCyyQYr/Si3QkXX+t+UAceZ650d7y6yaqoO8xFKPRGHClXrJA==", - "dependencies": { - "chalk": "^5.2.0", - "easy-transform-stream": "^1.0.0", - "fancy-log": "^2.0.0", - "isbinaryfile": "^5.0.0", - "plugin-error": "^2.0.1", - "vinyl": "^3.0.0" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/gulp-rev-all/node_modules/ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", - "dependencies": { - "ansi-wrap": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-rev-all/node_modules/chalk": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", - "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/gulp-rev-all/node_modules/fancy-log": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-2.0.0.tgz", - "integrity": "sha512-9CzxZbACXMUXW13tS0tI8XsGGmxWzO2DmYrGuBJOJ8k8q2K7hwfJA5qHjuPPe8wtsco33YR9wc+Rlr5wYFvhSA==", - "dependencies": { - "color-support": "^1.1.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/gulp-rev-all/node_modules/plugin-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-2.0.1.tgz", - "integrity": "sha512-zMakqvIDyY40xHOvzXka0kUvf40nYIuwRE8dWhti2WtjQZ31xAgBZBhxsK7vK3QbRXS1Xms/LO7B5cuAsfB2Gg==", - "dependencies": { - "ansi-colors": "^1.0.1" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/gulp-rev-all/node_modules/replace-ext": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz", - "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/gulp-rev-all/node_modules/vinyl": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz", - "integrity": "sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==", - "dependencies": { - "clone": "^2.1.2", - "clone-stats": "^1.0.0", - "remove-trailing-separator": "^1.1.0", - "replace-ext": "^2.0.0", - "teex": "^1.0.1" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/gulp-rev/node_modules/replace-ext": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz", - "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/gulp-rev/node_modules/vinyl": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz", - "integrity": "sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==", - "dependencies": { - "clone": "^2.1.2", - "clone-stats": "^1.0.0", - "remove-trailing-separator": "^1.1.0", - "replace-ext": "^2.0.0", - "teex": "^1.0.1" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/gulp-uglify": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/gulp-uglify/-/gulp-uglify-3.0.2.tgz", - "integrity": "sha512-gk1dhB74AkV2kzqPMQBLA3jPoIAPd/nlNzP2XMDSG8XZrqnlCiDGAqC+rZOumzFvB5zOphlFh6yr3lgcAb/OOg==", - "dependencies": { - "array-each": "^1.0.1", - "extend-shallow": "^3.0.2", - "gulplog": "^1.0.0", - "has-gulplog": "^0.1.0", - "isobject": "^3.0.1", - "make-error-cause": "^1.1.1", - "safe-buffer": "^5.1.2", - "through2": "^2.0.0", - "uglify-js": "^3.0.5", - "vinyl-sourcemaps-apply": "^0.2.0" - } - }, - "node_modules/gulp-uglify-es": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/gulp-uglify-es/-/gulp-uglify-es-3.0.0.tgz", - "integrity": "sha512-dQ3czMFFojNgCajcrYl0oa98+YayaQ8kXRdaacpZRZ3iw2sdVURfdt8y8Ki1ogZGQqw8BUawnB7V6NkanxqnDg==", - "dependencies": { - "o-stream": "^0.3.0", - "plugin-error": "^1.0.1", - "terser": "^5.7.1", - "vinyl": "^2.2.1", - "vinyl-sourcemaps-apply": "^0.2.1" - } - }, - "node_modules/gulp-uglify/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/gulp-util": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", - "integrity": "sha512-q5oWPc12lwSFS9h/4VIjG+1NuNDlJ48ywV2JKItY4Ycc/n1fXJeYPVQsfu5ZrhQi7FGSDBalwUCLar/GyHXKGw==", - "deprecated": "gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5", - "dependencies": { - "array-differ": "^1.0.0", - "array-uniq": "^1.0.2", - "beeper": "^1.0.0", - "chalk": "^1.0.0", - "dateformat": "^2.0.0", - "fancy-log": "^1.1.0", - "gulplog": "^1.0.0", - "has-gulplog": "^0.1.0", - "lodash._reescape": "^3.0.0", - "lodash._reevaluate": "^3.0.0", - "lodash._reinterpolate": "^3.0.0", - "lodash.template": "^3.0.0", - "minimist": "^1.1.0", - "multipipe": "^0.1.2", - "object-assign": "^3.0.0", - "replace-ext": "0.0.1", - "through2": "^2.0.0", - "vinyl": "^0.5.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/gulp-util/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-util/node_modules/ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-util/node_modules/array-differ": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", - "integrity": "sha512-LeZY+DZDRnvP7eMuQ6LHfCzUGxAAIViUBliK24P3hWXL6y4SortgR6Nim6xrkfSLlmH0+k+9NYNwVC2s53ZrYQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-util/node_modules/chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", - "dependencies": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-util/node_modules/clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/gulp-util/node_modules/clone-stats": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", - "integrity": "sha512-dhUqc57gSMCo6TX85FLfe51eC/s+Im2MLkAgJwfaRRexR2tA4dd3eLEW4L6efzHc2iNorrRRXITifnDLlRrhaA==" - }, - "node_modules/gulp-util/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/gulp-util/node_modules/lodash.template": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", - "integrity": "sha512-0B4Y53I0OgHUJkt+7RmlDFWKjVAI/YUpWNiL9GQz5ORDr4ttgfQGo+phBWKFLJbBdtOwgMuUkdOHOnPg45jKmQ==", - "dependencies": { - "lodash._basecopy": "^3.0.0", - "lodash._basetostring": "^3.0.0", - "lodash._basevalues": "^3.0.0", - "lodash._isiterateecall": "^3.0.0", - "lodash._reinterpolate": "^3.0.0", - "lodash.escape": "^3.0.0", - "lodash.keys": "^3.0.0", - "lodash.restparam": "^3.0.0", - "lodash.templatesettings": "^3.0.0" - } - }, - "node_modules/gulp-util/node_modules/lodash.templatesettings": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", - "integrity": "sha512-TcrlEr31tDYnWkHFWDCV3dHYroKEXpJZ2YJYvJdhN+y4AkWMDZ5I4I8XDtUKqSAyG81N7w+I1mFEJtcED+tGqQ==", - "dependencies": { - "lodash._reinterpolate": "^3.0.0", - "lodash.escape": "^3.0.0" - } - }, - "node_modules/gulp-util/node_modules/object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha512-jHP15vXVGeVh1HuaA2wY6lxk+whK/x4KBG88VXeRma7CCun7iGD5qPc4eYykQ9sdQvg8jkwFKsSxHln2ybW3xQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-util/node_modules/replace-ext": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "integrity": "sha512-AFBWBy9EVRTa/LhEcG8QDP3FvpwZqmvN2QFDuJswFeaVhWnZMp8q3E6Zd90SR04PlIwfGdyVjNyLPyen/ek5CQ==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/gulp-util/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gulp-util/node_modules/supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/gulp-util/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/gulp-util/node_modules/vinyl": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", - "integrity": "sha512-P5zdf3WB9uzr7IFoVQ2wZTmUwHL8cMZWJGzLBNCHNZ3NB6HTMsYABtt7z8tAGIINLXyAob9B9a1yzVGMFOYKEA==", - "dependencies": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" - }, - "engines": { - "node": ">= 0.9" - } - }, - "node_modules/gulplog": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/gulplog/-/gulplog-1.0.0.tgz", - "integrity": "sha512-hm6N8nrm3Y08jXie48jsC55eCZz9mnb4OirAStEk2deqeyhXU3C1otDVh+ccttMuc1sBi6RX6ZJ720hs9RCvgw==", - "dependencies": { - "glogg": "^1.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", - "engines": { - "node": ">=4" - } - }, - "node_modules/har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmmirror.com/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "deprecated": "this library is no longer supported", - "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-ansi/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-binary2": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/has-binary2/-/has-binary2-1.0.3.tgz", - "integrity": "sha512-G1LWKhDSvhGeAQ8mPVQlqNcOB2sJdwATtZKl2pDKKHfpf/rYj24lkinxf69blJbnsvtqqNU+L3SL50vzZhXOnw==", - "dependencies": { - "isarray": "2.0.1" - } - }, - "node_modules/has-cors": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/has-cors/-/has-cors-1.1.0.tgz", - "integrity": "sha512-g5VNKdkFuUuVCP9gYfDJHjK2nqdQJ7aDLTnycnc2+RvsOQbuLdF5pm7vuE5J76SEBIQjs4kQY/BWq74JUmjbXA==" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-gulplog": { - "version": "0.1.0", - "resolved": "https://registry.npmmirror.com/has-gulplog/-/has-gulplog-0.1.0.tgz", - "integrity": "sha512-+F4GzLjwHNNDEAJW2DC1xXfEoPkRDmUdJ7CBYw4MpqtDwOnqdImJl7GWlpqx+Wko6//J8uKTnIe4wZSv7yCqmw==", - "dependencies": { - "sparkles": "^1.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dependencies": { - "es-define-property": "^1.0.0" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", - "dependencies": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", - "dependencies": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values/node_modules/kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "bin": { - "he": "bin/he" - } - }, - "node_modules/homedir-polyfill": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", - "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", - "dependencies": { - "parse-passwd": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmmirror.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" - }, - "node_modules/html-minifier": { - "version": "3.5.21", - "resolved": "https://registry.npmmirror.com/html-minifier/-/html-minifier-3.5.21.tgz", - "integrity": "sha512-LKUKwuJDhxNa3uf/LPR/KVjm/l3rBqtYeCOAekvG8F1vItxMUpueGd94i/asDDr8/1u7InxzFA5EeGjhhG5mMA==", - "dependencies": { - "camel-case": "3.0.x", - "clean-css": "4.2.x", - "commander": "2.17.x", - "he": "1.2.x", - "param-case": "2.1.x", - "relateurl": "0.2.x", - "uglify-js": "3.4.x" - }, - "bin": { - "html-minifier": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/html-minifier/node_modules/commander": { - "version": "2.17.1", - "resolved": "https://registry.npmmirror.com/commander/-/commander-2.17.1.tgz", - "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==" - }, - "node_modules/html-minifier/node_modules/uglify-js": { - "version": "3.4.10", - "resolved": "https://registry.npmmirror.com/uglify-js/-/uglify-js-3.4.10.tgz", - "integrity": "sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw==", - "dependencies": { - "commander": "~2.19.0", - "source-map": "~0.6.1" - }, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/html-minifier/node_modules/uglify-js/node_modules/commander": { - "version": "2.19.0", - "resolved": "https://registry.npmmirror.com/commander/-/commander-2.19.0.tgz", - "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==" - }, - "node_modules/htmlparser2": { - "version": "3.8.3", - "resolved": "https://registry.npmmirror.com/htmlparser2/-/htmlparser2-3.8.3.tgz", - "integrity": "sha512-hBxEg3CYXe+rPIua8ETe7tmG3XDn9B0edOE/e9wH2nLczxzgdu0m0aNHY+5wFZiviLWLdANPJTssa92dMcXQ5Q==", - "peer": true, - "dependencies": { - "domelementtype": "1", - "domhandler": "2.3", - "domutils": "1.5", - "entities": "1.0", - "readable-stream": "1.1" - } - }, - "node_modules/htmlparser2/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmmirror.com/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "peer": true - }, - "node_modules/htmlparser2/node_modules/readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "peer": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/htmlparser2/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "peer": true - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, - "node_modules/httpntlm": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/httpntlm/-/httpntlm-1.6.1.tgz", - "integrity": "sha512-Tcz3Ct9efvNqw3QdTl3h6IgRRlIQxwKkJELN/aAIGnzi2xvb3pDHdnMs8BrxWLV6OoT4DlVyhzSVhFt/tk0lIw==", - "dependencies": { - "httpreq": ">=0.4.22", - "underscore": "~1.7.0" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/httpreq": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/httpreq/-/httpreq-1.1.1.tgz", - "integrity": "sha512-uhSZLPPD2VXXOSN8Cni3kIsoFHaU2pT/nySEU/fHr/ePbqHYr0jeiQRmUKLEirC09SFPsdMoA7LU7UXMd/w0Kw==", - "engines": { - "node": ">= 6.15.1" - } - }, - "node_modules/humanize-ms": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/humanize-ms/-/humanize-ms-1.2.1.tgz", - "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", - "dependencies": { - "ms": "^2.0.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ignore": { - "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/indexof": { - "version": "0.0.1", - "resolved": "https://registry.npmmirror.com/indexof/-/indexof-0.0.1.tgz", - "integrity": "sha512-i0G7hLJ1z0DE8dsqJa2rycj9dBmNKgXBvotXtZYXakU9oivfB9Uj2ZBC27qqef2U58/ZLwalxa1X/RDCdkHtVg==" - }, - "node_modules/inflection": { - "version": "1.13.4", - "resolved": "https://registry.npmmirror.com/inflection/-/inflection-1.13.4.tgz", - "integrity": "sha512-6I/HUDeYFfuNCVS3td055BaXBwKYuzw7K3ExVMStBowKo9oOAMJIXIHvdyR3iboTCp1b+1i5DSkIZTcwIktuDw==", - "engines": [ - "node >= 0.4.0" - ] - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmmirror.com/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/inversify": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/inversify/-/inversify-6.0.1.tgz", - "integrity": "sha512-B3ex30927698TJENHR++8FfEaJGqoWOgI6ZY5Ht/nLUsFCwHn6akbwtnUAPCgUepAnTpe2qHxhDNjoKLyz6rgQ==" - }, - "node_modules/invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ioredis": { - "version": "5.4.2", - "resolved": "https://registry.npmmirror.com/ioredis/-/ioredis-5.4.2.tgz", - "integrity": "sha512-0SZXGNGZ+WzISQ67QDyZ2x0+wVxjjUndtD8oSeik/4ajifeiRufed8fCb8QW8VMyi4MXcS+UO1k/0NGhvq1PAg==", - "dependencies": { - "@ioredis/commands": "^1.1.1", - "cluster-key-slot": "^1.1.0", - "debug": "^4.3.4", - "denque": "^2.1.0", - "lodash.defaults": "^4.2.0", - "lodash.isarguments": "^3.1.0", - "redis-errors": "^1.2.0", - "redis-parser": "^3.0.0", - "standard-as-callback": "^2.1.0" - }, - "engines": { - "node": ">=12.22.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/ioredis" - } - }, - "node_modules/ioredis/node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/ioredis/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-absolute": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/is-absolute/-/is-absolute-1.0.0.tgz", - "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", - "dependencies": { - "is-relative": "^1.0.0", - "is-windows": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-accessor-descriptor": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz", - "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==", - "dependencies": { - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmmirror.com/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" - }, - "node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmmirror.com/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-class-hotfix": { - "version": "0.0.6", - "resolved": "https://registry.npmmirror.com/is-class-hotfix/-/is-class-hotfix-0.0.6.tgz", - "integrity": "sha512-0n+pzCC6ICtVr/WXnN2f03TK/3BfXY7me4cjCAqT8TYXEl0+JBRoqBo94JJHXcyDSLUeWbNX8Fvy5g5RJdAstQ==" - }, - "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", - "dependencies": { - "hasown": "^2.0.0" - } - }, - "node_modules/is-data-descriptor": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz", - "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==", - "dependencies": { - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-descriptor": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-1.0.3.tgz", - "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dependencies": { - "is-plain-object": "^2.0.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-extendable/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmmirror.com/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-nan": { - "version": "1.3.2", - "resolved": "https://registry.npmmirror.com/is-nan/-/is-nan-1.3.2.tgz", - "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", - "dependencies": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-negated-glob": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/is-negated-glob/-/is-negated-glob-1.0.0.tgz", - "integrity": "sha512-czXVVn/QEmgvej1f50BZ648vUI+em0xqMq2Sn+QncCLN4zj1UAxlT+kw/6ggQTOaZPd1HqKQGEqbpQVtJucWug==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-path-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz", - "integrity": "sha512-cnS56eR9SPAscL77ik76ATVqoPARTqPIVkMDVxRaWH06zT+6+CzIroYRJ0VVvm0Z1zfAvxvz9i/D3Ppjaqt5Nw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-path-in-cwd": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", - "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", - "dependencies": { - "is-path-inside": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-path-inside": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-1.0.1.tgz", - "integrity": "sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==", - "dependencies": { - "path-is-inside": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-plain-object": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-3.0.1.tgz", - "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-property": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/is-property/-/is-property-1.0.2.tgz", - "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==" - }, - "node_modules/is-relative": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/is-relative/-/is-relative-1.0.0.tgz", - "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", - "dependencies": { - "is-unc-path": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-type-of": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/is-type-of/-/is-type-of-1.4.0.tgz", - "integrity": "sha512-EddYllaovi5ysMLMEN7yzHEKh8A850cZ7pykrY1aNRQGn/CDjRDE9qEWbIdt7xGEVJmjBXzU/fNnC4ABTm8tEQ==", - "dependencies": { - "core-util-is": "^1.0.2", - "is-class-hotfix": "~0.0.6", - "isstream": "~0.1.2" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmmirror.com/is-typed-array/-/is-typed-array-1.1.13.tgz", - "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", - "dependencies": { - "which-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, - "node_modules/is-unc-path": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/is-unc-path/-/is-unc-path-1.0.0.tgz", - "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", - "dependencies": { - "unc-path-regex": "^0.1.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmmirror.com/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==" - }, - "node_modules/is-valid-glob": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/is-valid-glob/-/is-valid-glob-1.0.0.tgz", - "integrity": "sha512-AhiROmoEFDSsjx8hW+5sGwgKVIORcXnrlAx/R0ZSeaPw70Vw0CqkGBBhHGL58Uox2eXnU1AnvXJl1XlyedO5bA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isarray": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/isarray/-/isarray-2.0.1.tgz", - "integrity": "sha512-c2cu3UxbI+b6kR3fy0nRnAhodsvR9dx7U5+znCOzdj6IfP3upFURTr0Xl5BlQZNKZjEtxrmVyfSdeE3O57smoQ==" - }, - "node_modules/isbinaryfile": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.2.tgz", - "integrity": "sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg==", - "engines": { - "node": ">= 18.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/gjtorikian/" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" - }, - "node_modules/istextorbinary": { - "version": "3.3.0", - "resolved": "https://registry.npmmirror.com/istextorbinary/-/istextorbinary-3.3.0.tgz", - "integrity": "sha512-Tvq1W6NAcZeJ8op+Hq7tdZ434rqnMx4CCZ7H0ff83uEloDvVbqAwaMTZcafKGJT0VHkYzuXUiCY4hlXQg6WfoQ==", - "dependencies": { - "binaryextensions": "^2.2.0", - "textextensions": "^3.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jackspeak": { - "version": "2.3.6", - "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-2.3.6.tgz", - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": ">=14" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/javascript-obfuscator": { - "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/javascript-obfuscator/-/javascript-obfuscator-4.1.0.tgz", - "integrity": "sha512-ckC0VFKQ0/sFtLH9apW/ZLfsP8LuZqZhVEM4VTJ5KLzyLaodW6C1lTU8808eboDmddKyvd2uyRx5bzc0Me0GYg==", - "hasInstallScript": true, - "dependencies": { - "@javascript-obfuscator/escodegen": "2.3.0", - "@javascript-obfuscator/estraverse": "5.4.0", - "acorn": "8.8.2", - "assert": "2.0.0", - "chalk": "4.1.2", - "chance": "1.1.9", - "class-validator": "0.14.0", - "commander": "10.0.0", - "eslint-scope": "7.1.1", - "eslint-visitor-keys": "3.3.0", - "fast-deep-equal": "3.1.3", - "inversify": "6.0.1", - "js-string-escape": "1.0.1", - "md5": "2.3.0", - "mkdirp": "2.1.3", - "multimatch": "5.0.0", - "opencollective-postinstall": "2.0.3", - "process": "0.11.10", - "reflect-metadata": "0.1.13", - "source-map-support": "0.5.21", - "string-template": "1.0.0", - "stringz": "2.1.0", - "tslib": "2.5.0" - }, - "bin": { - "javascript-obfuscator": "bin/javascript-obfuscator" - }, - "engines": { - "node": "^12.22.0 || ^14.0.0 || ^16.0.0 || ^17.0.0 || >=18.0.0" - } - }, - "node_modules/javascript-obfuscator/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/javascript-obfuscator/node_modules/commander": { - "version": "10.0.0", - "resolved": "https://registry.npmmirror.com/commander/-/commander-10.0.0.tgz", - "integrity": "sha512-zS5PnTI22FIRM6ylNW8G4Ap0IEOyk62fhLSD0+uHRT9McRCLGpkVNvao4bjimpK/GShynyQkFFxHhwMcETmduA==", - "engines": { - "node": ">=14" - } - }, - "node_modules/javascript-obfuscator/node_modules/mkdirp": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-2.1.3.tgz", - "integrity": "sha512-sjAkg21peAG9HS+Dkx7hlG9Ztx7HLeKnvB3NQRcu/mltCVmvkF0pisbiTSfDVYTT86XEfZrTUosLdZLStquZUw==", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/javascript-obfuscator/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" - }, - "node_modules/js-base64": { - "version": "2.6.4", - "resolved": "https://registry.npmmirror.com/js-base64/-/js-base64-2.6.4.tgz", - "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==" - }, - "node_modules/js-string-escape": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/js-string-escape/-/js-string-escape-1.0.1.tgz", - "integrity": "sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "node_modules/jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jshint": { - "version": "2.13.6", - "resolved": "https://registry.npmmirror.com/jshint/-/jshint-2.13.6.tgz", - "integrity": "sha512-IVdB4G0NTTeQZrBoM8C5JFVLjV2KtZ9APgybDA1MK73xb09qFs0jCXyQLnCOp1cSZZZbvhq/6mfXHUTaDkffuQ==", - "peer": true, - "dependencies": { - "cli": "~1.0.0", - "console-browserify": "1.1.x", - "exit": "0.1.x", - "htmlparser2": "3.8.x", - "lodash": "~4.17.21", - "minimatch": "~3.0.2", - "strip-json-comments": "1.0.x" - }, - "bin": { - "jshint": "bin/jshint" - } - }, - "node_modules/jshint/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/jshint/node_modules/minimatch": { - "version": "3.0.8", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.0.8.tgz", - "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/jshint/node_modules/strip-json-comments": { - "version": "1.0.4", - "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz", - "integrity": "sha512-AOPG8EBc5wAikaG1/7uFCNFJwnKOuQwFTpYBdTW6OvWHeZBQBrAA/amefHGrEiOnCPcLFZK6FUPtWVKpQVIRgg==", - "peer": true, - "bin": { - "strip-json-comments": "cli.js" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmmirror.com/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/json-schema-typed": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-7.0.3.tgz", - "integrity": "sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "peer": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsprim": { - "version": "1.4.2", - "resolved": "https://registry.npmmirror.com/jsprim/-/jsprim-1.4.2.tgz", - "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/jstoxml": { - "version": "2.2.9", - "resolved": "https://registry.npmmirror.com/jstoxml/-/jstoxml-2.2.9.tgz", - "integrity": "sha512-OYWlK0j+roh+eyaMROlNbS5cd5R25Y+IUpdl7cNdB8HNrkgwQzIS7L9MegxOiWNBj9dQhA/yAxiMwCC5mwNoBw==" - }, - "node_modules/just-debounce": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/just-debounce/-/just-debounce-1.1.0.tgz", - "integrity": "sha512-qpcRocdkUmf+UTNBYx5w6dexX5J31AKK1OmPwH630a83DdVVUIngk55RSAiIGpQyoH0dlr872VHfPjnQnK1qDQ==" - }, - "node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/last-run": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/last-run/-/last-run-1.1.1.tgz", - "integrity": "sha512-U/VxvpX4N/rFvPzr3qG5EtLKEnNI0emvIQB3/ecEwv+8GHaUKbIB8vxv1Oai5FAF0d0r7LXHhLLe5K/yChm5GQ==", - "dependencies": { - "default-resolution": "^2.0.0", - "es6-weak-map": "^2.0.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/lazystream": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/lazystream/-/lazystream-1.0.1.tgz", - "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", - "dependencies": { - "readable-stream": "^2.0.5" - }, - "engines": { - "node": ">= 0.6.3" - } - }, - "node_modules/lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha512-YiGkH6EnGrDGqLMITnGjXtGmNtjoXw9SVUzcaos8RBi7Ps0VBylkq+vOcY9QE5poLasPCR849ucFUkl0UzUyOw==", - "dependencies": { - "invert-kv": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/lead": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/lead/-/lead-1.0.0.tgz", - "integrity": "sha512-IpSVCk9AYvLHo5ctcIXxOBpMWUe+4TKN3VPWAKUbJikkmsGp0VrSM8IttVc32D6J4WUsiPE6aEFRNmIoF/gdow==", - "dependencies": { - "flush-write-stream": "^1.0.2" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmmirror.com/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/libphonenumber-js": { - "version": "1.11.1", - "resolved": "https://registry.npmmirror.com/libphonenumber-js/-/libphonenumber-js-1.11.1.tgz", - "integrity": "sha512-Wze1LPwcnzvcKGcRHFGFECTaLzxOtujwpf924difr5zniyYv1C2PiW0419qDR7m8lKDxsImu5mwxFuXhXpjmvw==" - }, - "node_modules/liftoff": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/liftoff/-/liftoff-3.1.0.tgz", - "integrity": "sha512-DlIPlJUkCV0Ips2zf2pJP0unEoT1kwYhiiPUGF3s/jtxTCjziNLoiVVh+jqWOWeFi6mmwQ5fNxvAUyPad4Dfog==", - "dependencies": { - "extend": "^3.0.0", - "findup-sync": "^3.0.0", - "fined": "^1.0.1", - "flagged-respawn": "^1.0.0", - "is-plain-object": "^2.0.4", - "object.map": "^1.0.0", - "rechoir": "^0.6.2", - "resolve": "^1.1.7" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/liftoff/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==", - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash._basecopy": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", - "integrity": "sha512-rFR6Vpm4HeCK1WPGvjZSJ+7yik8d8PVUdCJx5rT2pogG4Ve/2ZS7kfmO5l5T2o5V2mqlNIfSF5MZlr1+xOoYQQ==" - }, - "node_modules/lodash._basetostring": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz", - "integrity": "sha512-mTzAr1aNAv/i7W43vOR/uD/aJ4ngbtsRaCubp2BfZhlGU/eORUjg/7F6X0orNMdv33JOrdgGybtvMN/po3EWrA==" - }, - "node_modules/lodash._basevalues": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz", - "integrity": "sha512-H94wl5P13uEqlCg7OcNNhMQ8KvWSIyqXzOPusRgHC9DK3o54P6P3xtbXlVbRABG4q5gSmp7EDdJ0MSuW9HX6Mg==" - }, - "node_modules/lodash._getnative": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", - "integrity": "sha512-RrL9VxMEPyDMHOd9uFbvMe8X55X16/cGM5IgOKgRElQZutpX89iS6vwl64duTV1/16w5JY7tuFNXqoekmh1EmA==" - }, - "node_modules/lodash._isiterateecall": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", - "integrity": "sha512-De+ZbrMu6eThFti/CSzhRvTKMgQToLxbij58LMfM8JnYDNSOjkjTCIaa8ixglOeGh2nyPlakbt5bJWJ7gvpYlQ==" - }, - "node_modules/lodash._reescape": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz", - "integrity": "sha512-Sjlavm5y+FUVIF3vF3B75GyXrzsfYV8Dlv3L4mEpuB9leg8N6yf/7rU06iLPx9fY0Mv3khVp9p7Dx0mGV6V5OQ==" - }, - "node_modules/lodash._reevaluate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", - "integrity": "sha512-OrPwdDc65iJiBeUe5n/LIjd7Viy99bKwDdk7Z5ljfZg0uFRFlfQaCy9tZ4YMAag9WAZmlVpe1iZrkIMMSMHD3w==" - }, - "node_modules/lodash._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==" - }, - "node_modules/lodash._root": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", - "integrity": "sha512-O0pWuFSK6x4EXhM1dhZ8gchNtG7JMqBtrHdoUFUWXD7dJnNSUze1GuyQr5sOs0aCvgGeI3o/OJW8f4ca7FDxmQ==" - }, - "node_modules/lodash.assign": { - "version": "4.2.0", - "resolved": "https://registry.npmmirror.com/lodash.assign/-/lodash.assign-4.2.0.tgz", - "integrity": "sha512-hFuH8TY+Yji7Eja3mGiuAxBqLagejScbG8GbG0j6o9vzn0YL14My+ktnqtZgFTosKymC9/44wP6s7xyuLfnClw==" - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" - }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmmirror.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==" - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmmirror.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" - }, - "node_modules/lodash.defaults": { - "version": "4.2.0", - "resolved": "https://registry.npmmirror.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==" - }, - "node_modules/lodash.escape": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", - "integrity": "sha512-n1PZMXgaaDWZDSvuNZ/8XOcYO2hOKDqZel5adtR30VKQAtoWs/5AOeFA0vPV8moiPzlqe7F4cP2tzpFewQyelQ==", - "dependencies": { - "lodash._root": "^3.0.0" - } - }, - "node_modules/lodash.isarguments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==" - }, - "node_modules/lodash.isarray": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", - "integrity": "sha512-JwObCrNJuT0Nnbuecmqr5DgtuBppuCvGD9lxjFpAzwnVtdGoDQ1zig+5W8k5/6Gcn0gZ3936HDAlGd28i7sOGQ==" - }, - "node_modules/lodash.isobject": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/lodash.isobject/-/lodash.isobject-3.0.2.tgz", - "integrity": "sha512-3/Qptq2vr7WeJbB4KHUSKlq8Pl7ASXi3UG6CMbBm8WRtXi8+GHm7mKaU3urfpSEzWe2wCIChs6/sdocUsTKJiA==" - }, - "node_modules/lodash.keys": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", - "integrity": "sha512-CuBsapFjcubOGMn3VD+24HOAPxM79tH+V6ivJL3CHYjtrawauDJHUk//Yew9Hvc6e9rbCrURGk8z6PC+8WJBfQ==", - "dependencies": { - "lodash._getnative": "^3.0.0", - "lodash.isarguments": "^3.0.0", - "lodash.isarray": "^3.0.0" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" - }, - "node_modules/lodash.restparam": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", - "integrity": "sha512-L4/arjjuq4noiUJpt3yS6KIKDtJwNe2fIYgMqyYYKoeIfV1iEqvPwhCx23o+R9dzouGihDAPN1dTIRWa7zk8tw==" - }, - "node_modules/lodash.template": { - "version": "4.5.0", - "resolved": "https://registry.npmmirror.com/lodash.template/-/lodash.template-4.5.0.tgz", - "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", - "dependencies": { - "lodash._reinterpolate": "^3.0.0", - "lodash.templatesettings": "^4.0.0" - } - }, - "node_modules/lodash.templatesettings": { - "version": "4.2.0", - "resolved": "https://registry.npmmirror.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", - "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", - "dependencies": { - "lodash._reinterpolate": "^3.0.0" - } - }, - "node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "node_modules/lower-case": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/lower-case/-/lower-case-1.1.4.tgz", - "integrity": "sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA==" - }, - "node_modules/lru-cache": { - "version": "10.1.0", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.1.0.tgz", - "integrity": "sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==", - "engines": { - "node": "14 || >=16.14" - } - }, - "node_modules/luxon": { - "version": "3.5.0", - "resolved": "https://registry.npmmirror.com/luxon/-/luxon-3.5.0.tgz", - "integrity": "sha512-rh+Zjr6DNfUYR3bPwJEnuwDdqMbxZW7LOQfUN4B54+Cl+0o5zaU9RJ6bcidfDtC1cWCZXQ+nvX8bf6bAji37QQ==", - "engines": { - "node": ">=12" - } - }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmmirror.com/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" - }, - "node_modules/make-error-cause": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/make-error-cause/-/make-error-cause-1.2.2.tgz", - "integrity": "sha512-4TO2Y3HkBnis4c0dxhAgD/jprySYLACf7nwN6V0HAHDx59g12WlRpUmFy1bRHamjGUEEBrEvCq6SUpsEE2lhUg==", - "dependencies": { - "make-error": "^1.2.0" - } - }, - "node_modules/make-iterator": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/make-iterator/-/make-iterator-1.0.1.tgz", - "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", - "dependencies": { - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/make-iterator/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmmirror.com/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/map-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmmirror.com/map-stream/-/map-stream-0.0.7.tgz", - "integrity": "sha512-C0X0KQmGm3N2ftbTGBhSyuydQ+vV1LC3f3zPvT3RXHXNZrvfPZcoXp/N5DOa8vedX/rTMm2CjTtivFg2STJMRQ==" - }, - "node_modules/map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", - "dependencies": { - "object-visit": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/matchdep/-/matchdep-2.0.0.tgz", - "integrity": "sha512-LFgVbaHIHMqCRuCZyfCtUOq9/Lnzhi7Z0KFUE2fhD54+JN2jLh3hC02RLkqauJ3U4soU6H1J3tfj/Byk7GoEjA==", - "dependencies": { - "findup-sync": "^2.0.0", - "micromatch": "^3.0.4", - "resolve": "^1.4.0", - "stack-trace": "0.0.10" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/matchdep/node_modules/braces": { - "version": "2.3.2", - "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dependencies": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/braces/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", - "dependencies": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/fill-range/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/findup-sync": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/findup-sync/-/findup-sync-2.0.0.tgz", - "integrity": "sha512-vs+3unmJT45eczmcAZ6zMJtxN3l/QXeccaXQx5cu/MeJMhewVfoWZqibRkOxPnmoR59+Zy5hjabfQc6JLSah4g==", - "dependencies": { - "detect-file": "^1.0.0", - "is-glob": "^3.1.0", - "micromatch": "^3.0.4", - "resolve-dir": "^1.0.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/matchdep/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", - "dependencies": { - "is-extglob": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/matchdep/node_modules/to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", - "dependencies": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/md5": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/md5/-/md5-2.3.0.tgz", - "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", - "dependencies": { - "charenc": "0.0.2", - "crypt": "0.0.2", - "is-buffer": "~1.1.6" - } - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmmirror.com/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz", - "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" - }, - "node_modules/minipass": { - "version": "7.0.4", - "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.0.4.tgz", - "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mixin-deep": { - "version": "1.3.2", - "resolved": "https://registry.npmmirror.com/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", - "dependencies": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/modify-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/modify-filename/-/modify-filename-2.0.0.tgz", - "integrity": "sha512-VX9/MdgUN9StpSLImJ0+AyV2dxJJtyojIwRHF/Ja942tW7FTzxXI186jDSTk4k5wj2+59a4bRzFnJUgMSi+ygg==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/moment": { - "version": "2.30.1", - "resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz", - "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", - "engines": { - "node": "*" - } - }, - "node_modules/moment-timezone": { - "version": "0.5.44", - "resolved": "https://registry.npmmirror.com/moment-timezone/-/moment-timezone-0.5.44.tgz", - "integrity": "sha512-nv3YpzI/8lkQn0U6RkLd+f0W/zy/JnoR5/EyPz/dNkPTBjA2jNLCVxaiQ8QpeLymhSZvX0wCL5s27NQWdOPwAw==", - "dependencies": { - "moment": "^2.29.4" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/msgpackr": { - "version": "1.11.2", - "resolved": "https://registry.npmmirror.com/msgpackr/-/msgpackr-1.11.2.tgz", - "integrity": "sha512-F9UngXRlPyWCDEASDpTf6c9uNhGPTqnTeLVt7bN+bU1eajoR/8V9ys2BRaV5C/e5ihE6sJ9uPIKaYt6bFuO32g==", - "optionalDependencies": { - "msgpackr-extract": "^3.0.2" - } - }, - "node_modules/msgpackr-extract": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/msgpackr-extract/-/msgpackr-extract-3.0.3.tgz", - "integrity": "sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==", - "hasInstallScript": true, - "optional": true, - "dependencies": { - "node-gyp-build-optional-packages": "5.2.2" - }, - "bin": { - "download-msgpackr-prebuilds": "bin/download-prebuilds.js" - }, - "optionalDependencies": { - "@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.3", - "@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.3", - "@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.3", - "@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.3", - "@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.3", - "@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.3" - } - }, - "node_modules/multer": { - "version": "1.4.5-lts.1", - "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz", - "integrity": "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==", - "dependencies": { - "append-field": "^1.0.0", - "busboy": "^1.0.0", - "concat-stream": "^1.5.2", - "mkdirp": "^0.5.4", - "object-assign": "^4.1.1", - "type-is": "^1.6.4", - "xtend": "^4.0.0" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/multer/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/multimatch": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/multimatch/-/multimatch-5.0.0.tgz", - "integrity": "sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==", - "dependencies": { - "@types/minimatch": "^3.0.3", - "array-differ": "^3.0.0", - "array-union": "^2.1.0", - "arrify": "^2.0.1", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/multimatch/node_modules/@types/minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmmirror.com/@types/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==" - }, - "node_modules/multimatch/node_modules/arrify": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/arrify/-/arrify-2.0.1.tgz", - "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", - "engines": { - "node": ">=8" - } - }, - "node_modules/multimatch/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/multimatch/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/multipipe": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", - "integrity": "sha512-7ZxrUybYv9NonoXgwoOqtStIu18D1c3eFZj27hqgf5kBrBF8Q+tE8V0MW8dKM5QLkQPh1JhhbKgHLY9kifov4Q==", - "dependencies": { - "duplexer2": "0.0.2" - } - }, - "node_modules/mute-stdout": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/mute-stdout/-/mute-stdout-1.0.1.tgz", - "integrity": "sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/mysql2": { - "version": "2.3.3", - "resolved": "https://registry.npmmirror.com/mysql2/-/mysql2-2.3.3.tgz", - "integrity": "sha512-wxJUev6LgMSgACDkb/InIFxDprRa6T95+VEoR+xPvtngtccNH2dGjEB/fVZ8yg1gWv1510c9CvXuJHi5zUm0ZA==", - "dependencies": { - "denque": "^2.0.1", - "generate-function": "^2.3.1", - "iconv-lite": "^0.6.3", - "long": "^4.0.0", - "lru-cache": "^6.0.0", - "named-placeholders": "^1.1.2", - "seq-queue": "^0.0.5", - "sqlstring": "^2.3.2" - }, - "engines": { - "node": ">= 8.0" - } - }, - "node_modules/mysql2/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/mysql2/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/mz": { - "version": "2.7.0", - "resolved": "https://registry.npmmirror.com/mz/-/mz-2.7.0.tgz", - "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", - "dependencies": { - "any-promise": "^1.0.0", - "object-assign": "^4.0.1", - "thenify-all": "^1.0.0" - } - }, - "node_modules/named-placeholders": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/named-placeholders/-/named-placeholders-1.1.3.tgz", - "integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==", - "dependencies": { - "lru-cache": "^7.14.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/named-placeholders/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", - "engines": { - "node": ">=12" - } - }, - "node_modules/nan": { - "version": "2.19.0", - "resolved": "https://registry.npmmirror.com/nan/-/nan-2.19.0.tgz", - "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==", - "optional": true - }, - "node_modules/nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmmirror.com/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/nanomatch/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmmirror.com/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/next-tick": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/next-tick/-/next-tick-1.1.0.tgz", - "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" - }, - "node_modules/nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmmirror.com/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" - }, - "node_modules/no-case": { - "version": "2.3.2", - "resolved": "https://registry.npmmirror.com/no-case/-/no-case-2.3.2.tgz", - "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", - "dependencies": { - "lower-case": "^1.1.1" - } - }, - "node_modules/node-gyp-build-optional-packages": { - "version": "5.2.2", - "resolved": "https://registry.npmmirror.com/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.2.2.tgz", - "integrity": "sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==", - "optional": true, - "dependencies": { - "detect-libc": "^2.0.1" - }, - "bin": { - "node-gyp-build-optional-packages": "bin.js", - "node-gyp-build-optional-packages-optional": "optional.js", - "node-gyp-build-optional-packages-test": "build-test.js" - } - }, - "node_modules/node-hex": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/node-hex/-/node-hex-1.0.1.tgz", - "integrity": "sha512-iwpZdvW6Umz12ICmu9IYPRxg0tOLGmU3Tq2tKetejCj3oZd7b2nUXwP3a7QA5M9glWy8wlPS1G3RwM/CdsUbdQ==", - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==" - }, - "node_modules/nodemailer": { - "version": "6.9.14", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.14.tgz", - "integrity": "sha512-Dobp/ebDKBvz91sbtRKhcznLThrKxKt97GI2FAlAyy+fk19j73Uz3sBXolVtmcXjaorivqsbbbjDY+Jkt4/bQA==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/nodemailer-fetch": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz", - "integrity": "sha512-P7S5CEVGAmDrrpn351aXOLYs1R/7fD5NamfMCHyi6WIkbjS2eeZUB/TkuvpOQr0bvRZicVqo59+8wbhR3yrJbQ==" - }, - "node_modules/nodemailer-shared": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/nodemailer-shared/-/nodemailer-shared-1.1.0.tgz", - "integrity": "sha512-68xW5LSyPWv8R0GLm6veAvm7E+XFXkVgvE3FW0FGxNMMZqMkPFeGDVALfR1DPdSfcoO36PnW7q5AAOgFImEZGg==", - "dependencies": { - "nodemailer-fetch": "1.6.0" - } - }, - "node_modules/nodemailer-smtp-transport": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/nodemailer-smtp-transport/-/nodemailer-smtp-transport-2.7.4.tgz", - "integrity": "sha512-1e86YhJ633OZWk3OHWS5TpuoYXG/LtY2/RzNiB5+EkFifDdqHCNHBnExd5cobx0ZSHJLNGM8EKnDuHRFIjFi6Q==", - "dependencies": { - "nodemailer-shared": "1.1.0", - "nodemailer-wellknown": "0.1.10", - "smtp-connection": "2.12.0" - } - }, - "node_modules/nodemailer-wellknown": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.10.tgz", - "integrity": "sha512-/VV4mjAEjfm2fn0loUvrpjvugw5rgurNjPO4WU24CuVSoeumsyLOTgaEWG8WoGdPxh1biOAp5JxDoy1hlA2zsw==" - }, - "node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmmirror.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/notepack.io": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/notepack.io/-/notepack.io-2.2.0.tgz", - "integrity": "sha512-9b5w3t5VSH6ZPosoYnyDONnUTF8o0UkBw7JLA6eBlYJWyGT1Q3vQa8Hmuj1/X6RYvHjjygBDgw6fJhe0JEojfw==" - }, - "node_modules/now-and-later": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/now-and-later/-/now-and-later-2.0.1.tgz", - "integrity": "sha512-KGvQ0cB70AQfg107Xvs/Fbu+dGmZoTRJp2TaPwcwQm3/7PteUyN2BCgk8KBMPGBUXZdVwyWS8fDCGFygBm19UQ==", - "dependencies": { - "once": "^1.3.2" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/o-stream": { - "version": "0.3.0", - "resolved": "https://registry.npmmirror.com/o-stream/-/o-stream-0.3.0.tgz", - "integrity": "sha512-gbzl6qCJZ609x/M2t25HqCYQagFzWYCtQ84jcuObGr+V8D1Am4EVubkF4J+XFs6ukfiv96vNeiBb8FrbbMZYiQ==" - }, - "node_modules/oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmmirror.com/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "engines": { - "node": "*" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmmirror.com/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", - "dependencies": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object-copy/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==" - }, - "node_modules/object-is": { - "version": "1.1.6", - "resolved": "https://registry.npmmirror.com/object-is/-/object-is-1.1.6.tgz", - "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", - "dependencies": { - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmmirror.com/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", - "dependencies": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.defaults": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/object.defaults/-/object.defaults-1.1.0.tgz", - "integrity": "sha512-c/K0mw/F11k4dEUBMW8naXUuBuhxRCfG7W+yFy8EcijU/rSmazOUd1XAEEe6bC0OuXY4HUKjTJv7xbxIMqdxrA==", - "dependencies": { - "array-each": "^1.0.1", - "array-slice": "^1.0.0", - "for-own": "^1.0.0", - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object.map": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/object.map/-/object.map-1.0.1.tgz", - "integrity": "sha512-3+mAJu2PLfnSVGHwIWubpOFLscJANBKuB/6A4CxBstc4aqwQY0FWcsppuy4jU5GSB95yES5JHSI+33AWuS4k6w==", - "dependencies": { - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object.reduce": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/object.reduce/-/object.reduce-1.0.1.tgz", - "integrity": "sha512-naLhxxpUESbNkRqc35oQ2scZSJueHGQNUfMW/0U37IgN6tE2dgDWg3whf+NEliy3F/QysrO48XKUz/nGPe+AQw==", - "dependencies": { - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/onetime/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/opencollective-postinstall": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", - "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==", - "bin": { - "opencollective-postinstall": "index.js" - } - }, - "node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/optionator/node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" - }, - "node_modules/ordered-read-streams": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz", - "integrity": "sha512-Z87aSjx3r5c0ZB7bcJqIgIRX5bxR7A4aSzvIbaxd0oTkWBCOoKfuGHiKj60CHVUgg1Phm5yMZzBdt8XqRs73Mw==", - "dependencies": { - "readable-stream": "^2.0.1" - } - }, - "node_modules/os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha512-PRT7ZORmwu2MEFt4/fv3Q+mEfN4zetKxufQrkShY2oGvUms9r8otu5HfdyIFHkYXjO7laNsoVGmM2MANfuTA8g==", - "dependencies": { - "lcid": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/os-name": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/os-name/-/os-name-1.0.3.tgz", - "integrity": "sha512-f5estLO2KN8vgtTRaILIgEGBoBrMnZ3JQ7W9TMZCnOIGwHe8TRGSpcagnWDo+Dfhd/z08k9Xe75hvciJJ8Qaew==", - "dependencies": { - "osx-release": "^1.0.0", - "win-release": "^1.0.0" - }, - "bin": { - "os-name": "cli.js" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/osx-release": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/osx-release/-/osx-release-1.1.0.tgz", - "integrity": "sha512-ixCMMwnVxyHFQLQnINhmIpWqXIfS2YOXchwQrk+OFzmo6nDjQ0E4KXAyyUh0T0MZgV4bUhkRrAbVqlE4yLVq4A==", - "dependencies": { - "minimist": "^1.1.0" - }, - "bin": { - "osx-release": "cli.js" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/param-case": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/param-case/-/param-case-2.1.1.tgz", - "integrity": "sha512-eQE845L6ot89sk2N8liD8HAuH4ca6Vvr7VWAWwt7+kvvG5aBcPmmphQ68JsEG2qa9n1TykS2DLeMt363AAH8/w==", - "dependencies": { - "no-case": "^2.2.0" - } - }, - "node_modules/parse-filepath": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/parse-filepath/-/parse-filepath-1.0.2.tgz", - "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", - "dependencies": { - "is-absolute": "^1.0.0", - "map-cache": "^0.2.0", - "path-root": "^0.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmmirror.com/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", - "dependencies": { - "error-ex": "^1.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/parse-node-version": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/parse-node-version/-/parse-node-version-1.0.1.tgz", - "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/parse-passwd": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/parseqs": { - "version": "0.0.6", - "resolved": "https://registry.npmmirror.com/parseqs/-/parseqs-0.0.6.tgz", - "integrity": "sha512-jeAGzMDbfSHHA091hr0r31eYfTig+29g3GKKE/PPbEQ65X0lmMwlEoqmhzu0iztID5uJpZsFlUPDP8ThPL7M8w==" - }, - "node_modules/parseuri": { - "version": "0.0.6", - "resolved": "https://registry.npmmirror.com/parseuri/-/parseuri-0.0.6.tgz", - "integrity": "sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow==" - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q==" - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==" - }, - "node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-root": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/path-root/-/path-root-0.1.1.tgz", - "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", - "dependencies": { - "path-root-regex": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-root-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/path-root-regex/-/path-root-regex-0.1.2.tgz", - "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-scurry": { - "version": "1.10.1", - "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.10.1.tgz", - "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", - "dependencies": { - "lru-cache": "^9.1.1 || ^10.0.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmmirror.com/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", - "dependencies": { - "through": "~2.3" - } - }, - "node_modules/performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" - }, - "node_modules/pg-connection-string": { - "version": "2.6.2", - "resolved": "https://registry.npmmirror.com/pg-connection-string/-/pg-connection-string-2.6.2.tgz", - "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - } - }, - "node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", - "dependencies": { - "pinkie": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pkg-up": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", - "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", - "dependencies": { - "find-up": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-up/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/platform": { - "version": "1.3.6", - "resolved": "https://registry.npmmirror.com/platform/-/platform-1.3.6.tgz", - "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==" - }, - "node_modules/plugin-error": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/plugin-error/-/plugin-error-1.0.1.tgz", - "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", - "dependencies": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/plugin-error/node_modules/ansi-colors": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-1.1.0.tgz", - "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", - "dependencies": { - "ansi-wrap": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/pretty-hrtime": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", - "integrity": "sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmmirror.com/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "node_modules/protobufjs": { - "version": "6.11.4", - "resolved": "https://registry.npmmirror.com/protobufjs/-/protobufjs-6.11.4.tgz", - "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", - "@types/node": ">=13.7.0", - "long": "^4.0.0" - }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmmirror.com/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" - }, - "node_modules/pump": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/pumpify": { - "version": "1.5.1", - "resolved": "https://registry.npmmirror.com/pumpify/-/pumpify-1.5.1.tgz", - "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", - "dependencies": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" - }, - "node_modules/queue-tick": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", - "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==" - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/rcfinder": { - "version": "0.1.9", - "resolved": "https://registry.npmmirror.com/rcfinder/-/rcfinder-0.1.9.tgz", - "integrity": "sha512-rhSo812VIVaX7cxl33KkllHRwfLvjZL3lQedWEpQ27YlMFKZbFZsiVdCcQn/Z0FauLWxIpKrNREGuHbJFSi0Lw==", - "dependencies": { - "lodash.clonedeep": "^4.3.2" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/rcloader": { - "version": "0.2.2", - "resolved": "https://registry.npmmirror.com/rcloader/-/rcloader-0.2.2.tgz", - "integrity": "sha512-hSkFcFiLb5buT0X1fNI023M6tn0ywblKzF0hGzVCkTjEggT5tQUZI+fCG71utA7NiEyiBEc3trl/LDFFHzGIrw==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", - "dependencies": { - "lodash.assign": "^4.2.0", - "lodash.isobject": "^3.0.2", - "lodash.merge": "^4.6.0", - "rcfinder": "^0.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", - "dependencies": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", - "dependencies": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/read-pkg-up/node_modules/find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==", - "dependencies": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/read-pkg-up/node_modules/path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==", - "dependencies": { - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/read-pkg/node_modules/path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", - "dependencies": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/readable-stream/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/readable-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmmirror.com/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/redis": { - "version": "4.6.13", - "resolved": "https://registry.npmmirror.com/redis/-/redis-4.6.13.tgz", - "integrity": "sha512-MHgkS4B+sPjCXpf+HfdetBwbRz6vCtsceTmw1pHNYJAsYxrfpOP6dz+piJWGos8wqG7qb3vj/Rrc5qOlmInUuA==", - "workspaces": [ - "./packages/*" - ], - "dependencies": { - "@redis/bloom": "1.2.0", - "@redis/client": "1.5.14", - "@redis/graph": "1.1.1", - "@redis/json": "1.0.6", - "@redis/search": "1.1.6", - "@redis/time-series": "1.0.5" - } - }, - "node_modules/redis-errors": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/redis-errors/-/redis-errors-1.2.0.tgz", - "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==", - "engines": { - "node": ">=4" - } - }, - "node_modules/redis-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/redis-parser/-/redis-parser-3.0.0.tgz", - "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==", - "dependencies": { - "redis-errors": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/reflect-metadata": { - "version": "0.1.13", - "resolved": "https://registry.npmmirror.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz", - "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmmirror.com/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.2.0", - "resolved": "https://registry.npmmirror.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz", - "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==", - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" - }, - "node_modules/regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmmirror.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dependencies": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/regexpu-core": { - "version": "6.2.0", - "resolved": "https://registry.npmmirror.com/regexpu-core/-/regexpu-core-6.2.0.tgz", - "integrity": "sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==", - "dependencies": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.2.0", - "regjsgen": "^0.8.0", - "regjsparser": "^0.12.0", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmmirror.com/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==" - }, - "node_modules/regjsparser": { - "version": "0.12.0", - "resolved": "https://registry.npmmirror.com/regjsparser/-/regjsparser-0.12.0.tgz", - "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==", - "dependencies": { - "jsesc": "~3.0.2" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmmirror.com/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/remove-bom-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz", - "integrity": "sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==", - "dependencies": { - "is-buffer": "^1.1.5", - "is-utf8": "^0.2.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/remove-bom-stream": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz", - "integrity": "sha512-wigO8/O08XHb8YPzpDDT+QmRANfW6vLqxfaXm1YXhnFf3AkSLyjfG3GEFg4McZkmgL7KvCj5u2KczkvSP6NfHA==", - "dependencies": { - "remove-bom-buffer": "^3.0.0", - "safe-buffer": "^5.1.0", - "through2": "^2.0.3" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/remove-bom-stream/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==" - }, - "node_modules/repeat-element": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/repeat-element/-/repeat-element-1.1.4.tgz", - "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmmirror.com/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/replace-ext": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/replace-ext/-/replace-ext-1.0.1.tgz", - "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/replace-homedir": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/replace-homedir/-/replace-homedir-1.0.0.tgz", - "integrity": "sha512-CHPV/GAglbIB1tnQgaiysb8H2yCy8WQ7lcEwQ/eT+kLj0QHV8LnJW0zpqpE7RSkrMSRoa+EBoag86clf7WAgSg==", - "dependencies": { - "homedir-polyfill": "^1.0.1", - "is-absolute": "^1.0.0", - "remove-trailing-separator": "^1.1.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/replacestream": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/replacestream/-/replacestream-4.0.3.tgz", - "integrity": "sha512-AC0FiLS352pBBiZhd4VXB1Ab/lh0lEgpP+GGvZqbQh8a5cmXVoTe5EX/YeTFArnp4SRGTHh1qCHu9lGs1qG8sA==", - "dependencies": { - "escape-string-regexp": "^1.0.3", - "object-assign": "^4.0.1", - "readable-stream": "^2.0.2" - } - }, - "node_modules/replacestream/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/request": { - "version": "2.88.2", - "resolved": "https://registry.npmmirror.com/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/request/node_modules/form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmmirror.com/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/request/node_modules/qs": { - "version": "6.5.3", - "resolved": "https://registry.npmmirror.com/qs/-/qs-6.5.3.tgz", - "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/request/node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmmirror.com/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "bin": { - "uuid": "bin/uuid" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug==" - }, - "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - } - }, - "node_modules/resolve-dir": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/resolve-dir/-/resolve-dir-1.0.1.tgz", - "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==", - "dependencies": { - "expand-tilde": "^2.0.0", - "global-modules": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve-options": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/resolve-options/-/resolve-options-1.1.0.tgz", - "integrity": "sha512-NYDgziiroVeDC29xq7bp/CacZERYsA9bXYd1ZmcJlF3BcrZv5pTb4NG7SjdyKDnXZ84aC4vo2u6sNKIA1LCu/A==", - "dependencies": { - "value-or-function": "^3.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmmirror.com/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", - "deprecated": "https://github.com/lydell/resolve-url#deprecated" - }, - "node_modules/ret": { - "version": "0.1.15", - "resolved": "https://registry.npmmirror.com/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "engines": { - "node": ">=0.12" - } - }, - "node_modules/retry-as-promised": { - "version": "7.0.4", - "resolved": "https://registry.npmmirror.com/retry-as-promised/-/retry-as-promised-7.0.4.tgz", - "integrity": "sha512-XgmCoxKWkDofwH8WddD0w85ZfqYz+ZHlr5yo+3YUCfycWawU56T5ckWXsScsj5B8tqUcIG67DxXByo3VUgiAdA==" - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rev-hash": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/rev-hash/-/rev-hash-4.1.0.tgz", - "integrity": "sha512-e0EGnaveLY2IYpYwHNdh43WZ2M84KgW3Z/T4F6+Z/BlZI/T1ZbxTWj36xgYgUPOieGXYo2q225jTeUXn+LWYjw==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/rev-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/rev-path/-/rev-path-3.0.0.tgz", - "integrity": "sha512-2fUuv6IC7Z+Vj+DXEunJYJDZuwSsaJJHeLar3n2PGvHSH7j5+Xpd/Xh7PenekH4WQhxFuHtsGwd1dCh/HvT6Gw==", - "dependencies": { - "modify-filename": "^2.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/rimraf/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/rimraf/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/rimraf/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/rollup-plugin-copy": { - "version": "3.5.0", - "resolved": "https://registry.npmmirror.com/rollup-plugin-copy/-/rollup-plugin-copy-3.5.0.tgz", - "integrity": "sha512-wI8D5dvYovRMx/YYKtUNt3Yxaw4ORC9xo6Gt9t22kveWz1enG9QrhVlagzwrxSC455xD1dHMKhIJkbsQ7d48BA==", - "dependencies": { - "@types/fs-extra": "^8.0.1", - "colorette": "^1.1.0", - "fs-extra": "^8.1.0", - "globby": "10.0.1", - "is-plain-object": "^3.0.0" - }, - "engines": { - "node": ">=8.3" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmmirror.com/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "dependencies": { - "tslib": "^2.1.0" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "node_modules/safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", - "dependencies": { - "ret": "~0.1.10" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/sax": { - "version": "1.4.1", - "resolved": "https://registry.npmmirror.com/sax/-/sax-1.4.1.tgz", - "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==" - }, - "node_modules/sdk-base": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/sdk-base/-/sdk-base-2.0.1.tgz", - "integrity": "sha512-eeG26wRwhtwYuKGCDM3LixCaxY27Pa/5lK4rLKhQa7HBjJ3U3Y+f81MMZQRsDw/8SC2Dao/83yJTXJ8aULuN8Q==", - "dependencies": { - "get-ready": "~1.0.0" - } - }, - "node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/semver-greatest-satisfied-range": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-1.1.0.tgz", - "integrity": "sha512-Ny/iyOzSSa8M5ML46IAx3iXc6tfOsYU2R4AXi2UpHk60Zrgyq6eqPj/xiOfS0rRl/iiQ/rdJkVjw/5cdUyCntQ==", - "dependencies": { - "sver-compat": "^1.5.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmmirror.com/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/seq-queue": { - "version": "0.0.5", - "resolved": "https://registry.npmmirror.com/seq-queue/-/seq-queue-0.0.5.tgz", - "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==" - }, - "node_modules/sequelize": { - "version": "6.35.2", - "resolved": "https://registry.npmmirror.com/sequelize/-/sequelize-6.35.2.tgz", - "integrity": "sha512-EdzLaw2kK4/aOnWQ7ed/qh3B6/g+1DvmeXr66RwbcqSm/+QRS9X0LDI5INBibsy4eNJHWIRPo3+QK0zL+IPBHg==", - "dependencies": { - "@types/debug": "^4.1.8", - "@types/validator": "^13.7.17", - "debug": "^4.3.4", - "dottie": "^2.0.6", - "inflection": "^1.13.4", - "lodash": "^4.17.21", - "moment": "^2.29.4", - "moment-timezone": "^0.5.43", - "pg-connection-string": "^2.6.1", - "retry-as-promised": "^7.0.4", - "semver": "^7.5.4", - "sequelize-pool": "^7.1.0", - "toposort-class": "^1.0.1", - "uuid": "^8.3.2", - "validator": "^13.9.0", - "wkx": "^0.5.0" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependenciesMeta": { - "ibm_db": { - "optional": true - }, - "mariadb": { - "optional": true - }, - "mysql2": { - "optional": true - }, - "oracledb": { - "optional": true - }, - "pg": { - "optional": true - }, - "pg-hstore": { - "optional": true - }, - "snowflake-sdk": { - "optional": true - }, - "sqlite3": { - "optional": true - }, - "tedious": { - "optional": true - } - } - }, - "node_modules/sequelize-pool": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/sequelize-pool/-/sequelize-pool-6.1.0.tgz", - "integrity": "sha512-4YwEw3ZgK/tY/so+GfnSgXkdwIJJ1I32uZJztIEgZeAO6HMgj64OzySbWLgxj+tXhZCJnzRfkY9gINw8Ft8ZMg==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/sequelize/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/sequelize/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/sequelize/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/sequelize/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmmirror.com/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/sequelize/node_modules/sequelize-pool": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/sequelize-pool/-/sequelize-pool-7.1.0.tgz", - "integrity": "sha512-G9c0qlIWQSK29pR/5U2JF5dDQeqqHRragoyahj/Nx4KOOQ3CPPfzxnfqFPCSB7x5UgjOgnZ61nSxz+fjDpRlJg==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/sequelize/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmmirror.com/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmmirror.com/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-value": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/set-value/-/set-value-2.0.1.tgz", - "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", - "dependencies": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/set-value/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/set-value/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/set-value/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - }, - "node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shell-quote": { - "version": "1.8.1", - "resolved": "https://registry.npmmirror.com/shell-quote/-/shell-quote-1.8.1.tgz", - "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==" - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/smtp-connection": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/smtp-connection/-/smtp-connection-2.12.0.tgz", - "integrity": "sha512-UP5jK4s5SGcUcqPN4U9ingqKt9mXYSKa52YhqxPuMecAnUOsVJpOmtgGaOm1urUBJZlzDt1M9WhZZkgbhxQlvg==", - "dependencies": { - "httpntlm": "1.6.1", - "nodemailer-shared": "1.1.0" - } - }, - "node_modules/snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmmirror.com/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dependencies": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dependencies": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "dependencies": { - "kind-of": "^3.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-util/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/snapdragon/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/socket.io": { - "version": "2.5.0", - "resolved": "https://registry.npmmirror.com/socket.io/-/socket.io-2.5.0.tgz", - "integrity": "sha512-gGunfS0od3VpwDBpGwVkzSZx6Aqo9uOcf1afJj2cKnKFAoyl16fvhpsUhmUFd4Ldbvl5JvRQed6eQw6oQp6n8w==", - "dependencies": { - "debug": "~4.1.0", - "engine.io": "~3.6.0", - "has-binary2": "~1.0.2", - "socket.io-adapter": "~1.1.0", - "socket.io-client": "2.5.0", - "socket.io-parser": "~3.4.0" - } - }, - "node_modules/socket.io-adapter": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/socket.io-adapter/-/socket.io-adapter-1.1.2.tgz", - "integrity": "sha512-WzZRUj1kUjrTIrUKpZLEzFZ1OLj5FwLlAFQs9kuZJzJi5DKdU7FsWc36SNmA8iDOtwBQyT8FkrriRM8vXLYz8g==" - }, - "node_modules/socket.io-client": { - "version": "2.5.0", - "resolved": "https://registry.npmmirror.com/socket.io-client/-/socket.io-client-2.5.0.tgz", - "integrity": "sha512-lOO9clmdgssDykiOmVQQitwBAF3I6mYcQAo7hQ7AM6Ny5X7fp8hIJ3HcQs3Rjz4SoggoxA1OgrQyY8EgTbcPYw==", - "dependencies": { - "backo2": "1.0.2", - "component-bind": "1.0.0", - "component-emitter": "~1.3.0", - "debug": "~3.1.0", - "engine.io-client": "~3.5.0", - "has-binary2": "~1.0.2", - "indexof": "0.0.1", - "parseqs": "0.0.6", - "parseuri": "0.0.6", - "socket.io-parser": "~3.3.0", - "to-array": "0.1.4" - } - }, - "node_modules/socket.io-client/node_modules/debug": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/socket.io-client/node_modules/socket.io-parser": { - "version": "3.3.3", - "resolved": "https://registry.npmmirror.com/socket.io-parser/-/socket.io-parser-3.3.3.tgz", - "integrity": "sha512-qOg87q1PMWWTeO01768Yh9ogn7chB9zkKtQnya41Y355S0UmpXgpcrFwAgjYJxu9BdKug5r5e9YtVSeWhKBUZg==", - "dependencies": { - "component-emitter": "~1.3.0", - "debug": "~3.1.0", - "isarray": "2.0.1" - } - }, - "node_modules/socket.io-msgpack-parser": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/socket.io-msgpack-parser/-/socket.io-msgpack-parser-3.0.2.tgz", - "integrity": "sha512-1e76bJ1PCKi9H+JiYk+S29PBJvknHjQWM7Mtj0hjF2KxDA6b6rQxv3rTsnwBoz/haZOhlCDIMQvPATbqYeuMxg==", - "dependencies": { - "component-emitter": "~1.3.0", - "notepack.io": "~2.2.0" - } - }, - "node_modules/socket.io-parser": { - "version": "3.4.3", - "resolved": "https://registry.npmmirror.com/socket.io-parser/-/socket.io-parser-3.4.3.tgz", - "integrity": "sha512-1rE4dZN3kCI/E5wixd393hmbqa78vVpkKmnEJhLeWoS/C5hbFYAbcSfnWoaVH43u9ToUVtzKjguxEZq+1XZfCQ==", - "dependencies": { - "component-emitter": "1.2.1", - "debug": "~4.1.0", - "isarray": "2.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/socket.io-parser/node_modules/component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha512-jPatnhd33viNplKjqXKRkGU345p263OIWzDL2wH3LGIGp5Kojo+uXizHmOADRvhGFFTnJqX3jBAKP6vvmSDKcA==" - }, - "node_modules/socket.io-parser/node_modules/debug": { - "version": "4.1.1", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/socket.io-parser/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/socket.io/node_modules/debug": { - "version": "4.1.1", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/socket.io/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/sort-keys": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-5.1.0.tgz", - "integrity": "sha512-aSbHV0DaBcr7u0PVHXzM6NbZNAtrr9sF6+Qfs9UUVG7Ll3jQ6hHi8F/xqIIcn2rvIVbr0v/2zyjSdwSV47AgLQ==", - "dependencies": { - "is-plain-obj": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/sort-keys/node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmmirror.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", - "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", - "dependencies": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-url": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/source-map-url/-/source-map-url-0.4.1.tgz", - "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", - "deprecated": "See https://github.com/lydell/source-map-url#deprecated" - }, - "node_modules/sparkles": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/sparkles/-/sparkles-1.0.1.tgz", - "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/spawn-command": { - "version": "0.0.2", - "resolved": "https://registry.npmmirror.com/spawn-command/-/spawn-command-0.0.2.tgz", - "integrity": "sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==" - }, - "node_modules/spdx-correct": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/spdx-correct/-/spdx-correct-3.2.0.tgz", - "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.5.0", - "resolved": "https://registry.npmmirror.com/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", - "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==" - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.17", - "resolved": "https://registry.npmmirror.com/spdx-license-ids/-/spdx-license-ids-3.0.17.tgz", - "integrity": "sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==" - }, - "node_modules/split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dependencies": { - "extend-shallow": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sqlstring": { - "version": "2.3.3", - "resolved": "https://registry.npmmirror.com/sqlstring/-/sqlstring-2.3.3.tgz", - "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/sshpk": { - "version": "1.18.0", - "resolved": "https://registry.npmmirror.com/sshpk/-/sshpk-1.18.0.tgz", - "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stack-trace": { - "version": "0.0.10", - "resolved": "https://registry.npmmirror.com/stack-trace/-/stack-trace-0.0.10.tgz", - "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", - "engines": { - "node": "*" - } - }, - "node_modules/standard-as-callback": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/standard-as-callback/-/standard-as-callback-2.1.0.tgz", - "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==" - }, - "node_modules/static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", - "dependencies": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-extend/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-extend/node_modules/is-descriptor": { - "version": "0.1.7", - "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", - "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/stream-exhaust": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/stream-exhaust/-/stream-exhaust-1.0.2.tgz", - "integrity": "sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==" - }, - "node_modules/stream-http": { - "version": "2.8.2", - "resolved": "https://registry.npmmirror.com/stream-http/-/stream-http-2.8.2.tgz", - "integrity": "sha512-QllfrBhqF1DPcz46WxKTs6Mz1Bpc+8Qm6vbqOpVav5odAXwbyzwnEczoWqtxrsmlO+cJqtPrp/8gWKWjaKLLlA==", - "dependencies": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.3.6", - "to-arraybuffer": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "node_modules/stream-shift": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/stream-shift/-/stream-shift-1.0.3.tgz", - "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==" - }, - "node_modules/stream-to-array": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/stream-to-array/-/stream-to-array-2.3.0.tgz", - "integrity": "sha512-UsZtOYEn4tWU2RGLOXr/o/xjRBftZRlG3dEWoaHr8j4GuypJ3isitGbVyjQKAuMu+xbiop8q224TjiZWc4XTZA==", - "dependencies": { - "any-promise": "^1.1.0" - } - }, - "node_modules/stream-wormhole": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/stream-wormhole/-/stream-wormhole-1.1.0.tgz", - "integrity": "sha512-gHFfL3px0Kctd6Po0M8TzEvt3De/xu6cnRrjlfYNhwbhLPLwigI2t1nc6jrzNuaYg5C4YF78PPFuQPzRiqn9ew==", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/streamx": { - "version": "2.20.1", - "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.20.1.tgz", - "integrity": "sha512-uTa0mU6WUC65iUvzKH4X9hEdvSW7rbPxPtwfWiLMSj3qTdQbAiUboZTxauKfpFuGIGa1C2BYijZ7wgdUXICJhA==", - "dependencies": { - "fast-fifo": "^1.3.2", - "queue-tick": "^1.0.1", - "text-decoder": "^1.1.0" - }, - "optionalDependencies": { - "bare-events": "^2.2.0" - } - }, - "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/string-template": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/string-template/-/string-template-1.0.0.tgz", - "integrity": "sha512-SLqR3GBUXuoPP5MmYtD7ompvXiG87QjT6lzOszyXjTM86Uu7At7vNnt2xgyTLq5o9T4IxTYFyGxcULqpsmsfdg==" - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/stringz": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/stringz/-/stringz-2.1.0.tgz", - "integrity": "sha512-KlywLT+MZ+v0IRepfMxRtnSvDCMc3nR1qqCs3m/qIbSOWkNZYT8XHQA31rS3TnKp0c5xjZu3M4GY/2aRKSi/6A==", - "dependencies": { - "char-regex": "^1.0.2" - } - }, - "node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", - "dependencies": { - "is-utf8": "^0.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-bom-buf": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-3.0.1.tgz", - "integrity": "sha512-iJaWw2WroigLHzQysdc5WWeUc99p7ea7AEgB6JkY8CMyiO1yTVAA1gIlJJgORElUIR+lcZJkNl1OGChMhvc2Cw==", - "dependencies": { - "is-utf8": "^0.2.1" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-bom-stream": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-5.0.0.tgz", - "integrity": "sha512-Yo472mU+3smhzqeKlIxClre4s4pwtYZEvDNQvY/sJpnChdaxmKuwU28UVx/v1ORKNMxkmj1GBuvxJQyBk6wYMQ==", - "dependencies": { - "first-chunk-stream": "^5.0.0", - "strip-bom-buf": "^3.0.0" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strnum": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", - "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" - }, - "node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/sver-compat": { - "version": "1.5.0", - "resolved": "https://registry.npmmirror.com/sver-compat/-/sver-compat-1.5.0.tgz", - "integrity": "sha512-aFTHfmjwizMNlNE6dsGmoAM4lHjL0CyiobWaFiXWSlD7cIxshW422Nb8KbXCmR6z+0ZEPY+daXJrDyh/vuwTyg==", - "dependencies": { - "es6-iterator": "^2.0.1", - "es6-symbol": "^3.1.1" - } - }, - "node_modules/teex": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/teex/-/teex-1.0.1.tgz", - "integrity": "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==", - "dependencies": { - "streamx": "^2.12.5" - } - }, - "node_modules/terser": { - "version": "5.26.0", - "resolved": "https://registry.npmmirror.com/terser/-/terser-5.26.0.tgz", - "integrity": "sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==", - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.8.2", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/text-decoder": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.0.tgz", - "integrity": "sha512-n1yg1mOj9DNpk3NeZOx7T6jchTbyJS3i3cucbNN6FcdPriMZx7NsgrGpWWdWZZGxD7ES1XB+3uoqHMgOKaN+fg==", - "dependencies": { - "b4a": "^1.6.4" - } - }, - "node_modules/textextensions": { - "version": "3.3.0", - "resolved": "https://registry.npmmirror.com/textextensions/-/textextensions-3.3.0.tgz", - "integrity": "sha512-mk82dS8eRABNbeVJrEiN5/UMSCliINAuz8mkUwH4SwslkNP//gbEzlWNS5au0z5Dpx40SQxzqZevZkn+WYJ9Dw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/thenify": { - "version": "3.3.1", - "resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz", - "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", - "dependencies": { - "any-promise": "^1.0.0" - } - }, - "node_modules/thenify-all": { - "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/thenify-all/-/thenify-all-1.6.0.tgz", - "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", - "dependencies": { - "thenify": ">= 3.1.0 < 4" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmmirror.com/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" - }, - "node_modules/through2": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", - "dependencies": { - "readable-stream": "2 || 3" - } - }, - "node_modules/through2-filter": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/through2-filter/-/through2-filter-3.0.0.tgz", - "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", - "dependencies": { - "through2": "~2.0.0", - "xtend": "~4.0.0" - } - }, - "node_modules/through2-filter/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/time-stamp": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/time-stamp/-/time-stamp-1.1.0.tgz", - "integrity": "sha512-gLCeArryy2yNTRzTGKbZbloctj64jkZ57hj5zdraXue6aFgd6PmvVtEyiUU+hvU0v7q08oVv8r8ev0tRo6bvgw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-absolute-glob": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz", - "integrity": "sha512-rtwLUQEwT8ZeKQbyFJyomBRYXyE16U5VKuy0ftxLMK/PZb2fkOsg5r9kHdauuVDbsNdIBoC/HCthpidamQFXYA==", - "dependencies": { - "is-absolute": "^1.0.0", - "is-negated-glob": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-array": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/to-array/-/to-array-0.1.4.tgz", - "integrity": "sha512-LhVdShQD/4Mk4zXNroIQZJC+Ap3zgLcDuwEdcmLv9CCO73NWockQDwyUnW/m8VX/EElfL6FcYx7EeutN4HJA6A==" - }, - "node_modules/to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA==" - }, - "node_modules/to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmmirror.com/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-object-path/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dependencies": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/to-through": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/to-through/-/to-through-2.0.0.tgz", - "integrity": "sha512-+QIz37Ly7acM4EMdw2PRN389OneM5+d844tirkGp4dPKzI5OE72V9OsbFp+CIYJDahZ41ZV05hNtcPAQUAm9/Q==", - "dependencies": { - "through2": "^2.0.3" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/to-through/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/toposort-class": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/toposort-class/-/toposort-class-1.0.1.tgz", - "integrity": "sha512-OsLcGGbYF3rMjPUf8oKktyvCiUxSbqMMS39m33MAjLTC1DVIH6x3WSt63/M77ihI09+Sdfk1AXvfhCEeUmC7mg==" - }, - "node_modules/tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmmirror.com/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/tree-kill": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/tree-kill/-/tree-kill-1.2.2.tgz", - "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", - "bin": { - "tree-kill": "cli.js" - } - }, - "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" - }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmmirror.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmmirror.com/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" - }, - "node_modules/type": { - "version": "2.7.2", - "resolved": "https://registry.npmmirror.com/type/-/type-2.7.2.tgz", - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" - }, - "node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmmirror.com/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" - }, - "node_modules/uglify-js": { - "version": "3.17.4", - "resolved": "https://registry.npmmirror.com/uglify-js/-/uglify-js-3.17.4.tgz", - "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/unc-path-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz", - "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/underscore": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", - "integrity": "sha512-cp0oQQyZhUM1kpJDLdGO1jPZHgS/MpzoWYfe9+CM2h/QGDZlqwT2T3YGukuBdaNJ/CAPoeyAZRRHz8JFo176vA==" - }, - "node_modules/undertaker": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/undertaker/-/undertaker-1.3.0.tgz", - "integrity": "sha512-/RXwi5m/Mu3H6IHQGww3GNt1PNXlbeCuclF2QYR14L/2CHPz3DFZkvB5hZ0N/QUkiXWCACML2jXViIQEQc2MLg==", - "dependencies": { - "arr-flatten": "^1.0.1", - "arr-map": "^2.0.0", - "bach": "^1.0.0", - "collection-map": "^1.0.0", - "es6-weak-map": "^2.0.1", - "fast-levenshtein": "^1.0.0", - "last-run": "^1.1.0", - "object.defaults": "^1.0.0", - "object.reduce": "^1.0.0", - "undertaker-registry": "^1.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/undertaker-registry": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/undertaker-registry/-/undertaker-registry-1.0.1.tgz", - "integrity": "sha512-UR1khWeAjugW3548EfQmL9Z7pGMlBgXteQpr1IZeZBtnkCJQJIJ1Scj0mb9wQaPvUZ9Q17XqW6TIaPchJkyfqw==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" - }, - "node_modules/unescape": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/unescape/-/unescape-1.0.1.tgz", - "integrity": "sha512-O0+af1Gs50lyH1nUu3ZyYS1cRh01Q/kUKatTOkSs7jukXE6/NebucDVxyiDsA9AQ4JC1V1jUH9EO8JX2nMDgGQ==", - "dependencies": { - "extend-shallow": "^2.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unescape/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unescape/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", - "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.2.0", - "resolved": "https://registry.npmmirror.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz", - "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "engines": { - "node": ">=4" - } - }, - "node_modules/union-value": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/union-value/-/union-value-1.0.1.tgz", - "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", - "dependencies": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^2.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/union-value/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unique-stream": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/unique-stream/-/unique-stream-2.3.1.tgz", - "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==", - "dependencies": { - "json-stable-stringify-without-jsonify": "^1.0.1", - "through2-filter": "^3.0.0" - } - }, - "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", - "dependencies": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unset-value/node_modules/has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmmirror.com/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", - "dependencies": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", - "dependencies": { - "isarray": "1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unset-value/node_modules/has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/unset-value/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/upath": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/upath/-/upath-1.2.0.tgz", - "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", - "engines": { - "node": ">=4", - "yarn": "*" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", - "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/upper-case": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/upper-case/-/upper-case-1.1.3.tgz", - "integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==" - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/urix": { - "version": "0.1.0", - "resolved": "https://registry.npmmirror.com/urix/-/urix-0.1.0.tgz", - "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", - "deprecated": "Please see https://github.com/lydell/urix#deprecated" - }, - "node_modules/urllib": { - "version": "2.44.0", - "resolved": "https://registry.npmmirror.com/urllib/-/urllib-2.44.0.tgz", - "integrity": "sha512-zRCJqdfYllRDA9bXUtx+vccyRqtJPKsw85f44zH7zPD28PIvjMqIgw9VwoTLV7xTBWZsbebUFVHU5ghQcWku2A==", - "dependencies": { - "any-promise": "^1.3.0", - "content-type": "^1.0.2", - "default-user-agent": "^1.0.0", - "digest-header": "^1.0.0", - "ee-first": "~1.1.1", - "formstream": "^1.1.0", - "humanize-ms": "^1.2.0", - "iconv-lite": "^0.6.3", - "pump": "^3.0.0", - "qs": "^6.4.0", - "statuses": "^1.3.1", - "utility": "^1.16.1" - }, - "engines": { - "node": ">= 0.10.0" - }, - "peerDependencies": { - "proxy-agent": "^5.0.0" - }, - "peerDependenciesMeta": { - "proxy-agent": { - "optional": true - } - } - }, - "node_modules/urllib/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/urllib/node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/urllib/node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmmirror.com/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/use": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/util": { - "version": "0.12.5", - "resolved": "https://registry.npmmirror.com/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "node_modules/utility": { - "version": "1.18.0", - "resolved": "https://registry.npmmirror.com/utility/-/utility-1.18.0.tgz", - "integrity": "sha512-PYxZDA+6QtvRvm//++aGdmKG/cI07jNwbROz0Ql+VzFV1+Z0Dy55NI4zZ7RHc9KKpBePNFwoErqIuqQv/cjiTA==", - "dependencies": { - "copy-to": "^2.0.1", - "escape-html": "^1.0.3", - "mkdirp": "^0.5.1", - "mz": "^2.7.0", - "unescape": "^1.0.1" - }, - "engines": { - "node": ">= 0.12.0" - } - }, - "node_modules/utility/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/uuid": { - "version": "9.0.1", - "resolved": "https://registry.npmmirror.com/uuid/-/uuid-9.0.1.tgz", - "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/v8flags": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/v8flags/-/v8flags-3.2.0.tgz", - "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==", - "dependencies": { - "homedir-polyfill": "^1.0.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmmirror.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/validator": { - "version": "13.11.0", - "resolved": "https://registry.npmmirror.com/validator/-/validator-13.11.0.tgz", - "integrity": "sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/value-or-function": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/value-or-function/-/value-or-function-3.0.0.tgz", - "integrity": "sha512-jdBB2FrWvQC/pnPtIqcLsMaQgjhdb6B7tk1MMyTKapox+tQZbdRP4uLxu/JY0t7fbfDCUMnuelzEYv5GsxHhdg==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/verror": { - "version": "1.10.0", - "resolved": "https://registry.npmmirror.com/verror/-/verror-1.10.0.tgz", - "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", - "engines": [ - "node >=0.6.0" - ], - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "node_modules/vinyl": { - "version": "2.2.1", - "resolved": "https://registry.npmmirror.com/vinyl/-/vinyl-2.2.1.tgz", - "integrity": "sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw==", - "dependencies": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/vinyl-bufferstream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/vinyl-bufferstream/-/vinyl-bufferstream-1.0.1.tgz", - "integrity": "sha512-yCCIoTf26Q9SQ0L9cDSavSL7Nt6wgQw8TU1B/bb9b9Z4A3XTypXCGdc5BvXl4ObQvVY8JrDkFnWa/UqBqwM2IA==", - "dependencies": { - "bufferstreams": "1.0.1" - } - }, - "node_modules/vinyl-file": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/vinyl-file/-/vinyl-file-5.0.0.tgz", - "integrity": "sha512-MvkPF/yA1EX7c6p+juVIvp9+Lxp70YUfNKzEWeHMKpUNVSnTZh2coaOqLxI0pmOe2V9nB+OkgFaMDkodaJUyGw==", - "dependencies": { - "@types/vinyl": "^2.0.7", - "strip-bom-buf": "^3.0.1", - "strip-bom-stream": "^5.0.0", - "vinyl": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/vinyl-file/node_modules/replace-ext": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz", - "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/vinyl-file/node_modules/vinyl": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz", - "integrity": "sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==", - "dependencies": { - "clone": "^2.1.2", - "clone-stats": "^1.0.0", - "remove-trailing-separator": "^1.1.0", - "replace-ext": "^2.0.0", - "teex": "^1.0.1" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/vinyl-fs": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/vinyl-fs/-/vinyl-fs-3.0.3.tgz", - "integrity": "sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==", - "dependencies": { - "fs-mkdirp-stream": "^1.0.0", - "glob-stream": "^6.1.0", - "graceful-fs": "^4.0.0", - "is-valid-glob": "^1.0.0", - "lazystream": "^1.0.0", - "lead": "^1.0.0", - "object.assign": "^4.0.4", - "pumpify": "^1.3.5", - "readable-stream": "^2.3.3", - "remove-bom-buffer": "^3.0.0", - "remove-bom-stream": "^1.2.0", - "resolve-options": "^1.1.0", - "through2": "^2.0.0", - "to-through": "^2.0.0", - "value-or-function": "^3.0.0", - "vinyl": "^2.0.0", - "vinyl-sourcemap": "^1.1.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/vinyl-fs/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/vinyl-sourcemap": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz", - "integrity": "sha512-NiibMgt6VJGJmyw7vtzhctDcfKch4e4n9TBeoWlirb7FMg9/1Ov9k+A5ZRAtywBpRPiyECvQRQllYM8dECegVA==", - "dependencies": { - "append-buffer": "^1.0.2", - "convert-source-map": "^1.5.0", - "graceful-fs": "^4.1.6", - "normalize-path": "^2.1.1", - "now-and-later": "^2.0.0", - "remove-bom-buffer": "^3.0.0", - "vinyl": "^2.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/vinyl-sourcemap/node_modules/normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", - "dependencies": { - "remove-trailing-separator": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/vinyl-sourcemaps-apply": { - "version": "0.2.1", - "resolved": "https://registry.npmmirror.com/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz", - "integrity": "sha512-+oDh3KYZBoZC8hfocrbrxbLUeaYtQK7J5WU5Br9VqWqmCll3tFJqKp97GC9GmMsVIL0qnx2DgEDVxdo5EZ5sSw==", - "dependencies": { - "source-map": "^0.5.1" - } - }, - "node_modules/vinyl-sourcemaps-apply/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmmirror.com/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==" - }, - "node_modules/which-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmmirror.com/which-typed-array/-/which-typed-array-1.1.15.tgz", - "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/win-release": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/win-release/-/win-release-1.1.1.tgz", - "integrity": "sha512-iCRnKVvGxOQdsKhcQId2PXV1vV3J/sDPXKA4Oe9+Eti2nb2ESEsYHRYls/UjoUW3bIc5ZDO8dTH50A/5iVN+bw==", - "dependencies": { - "semver": "^5.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wkx": { - "version": "0.5.0", - "resolved": "https://registry.npmmirror.com/wkx/-/wkx-0.5.0.tgz", - "integrity": "sha512-Xng/d4Ichh8uN4l0FToV/258EjMGU9MGcA0HV2d9B/ZpZB3lqQm7nkOdZdm5GhKtLLhAE7PiVQwN4eN+2YJJUg==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "engines": { - "node": ">=12" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/ws": { - "version": "7.4.6", - "resolved": "https://registry.npmmirror.com/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xml2js": { - "version": "0.6.2", - "resolved": "https://registry.npmmirror.com/xml2js/-/xml2js-0.6.2.tgz", - "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmmirror.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/xmlhttprequest-ssl": { - "version": "1.6.3", - "resolved": "https://registry.npmmirror.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.6.3.tgz", - "integrity": "sha512-3XfeQE/wNkvrIktn2Kf0869fC0BN6UpydVasGIeSm2B1Llihf7/0UfZM+eCkOw3P7bP4+qPgqhm7ZoxuJtFU0Q==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmmirror.com/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "engines": { - "node": ">=0.4" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmmirror.com/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yeast": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/yeast/-/yeast-0.1.2.tgz", - "integrity": "sha512-8HFIh676uyGYP6wP13R/j6OJ/1HwJ46snpvzE7aHAN3Ryqh2yX6Xox2B4CUmTwwOIzlG3Bs7ocsP5dZH/R1Qbg==" - } - } -} diff --git a/package.json b/package.json index 754111a..d6eb809 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "tl-rtc-app", - "version": "0.0.1", - "description": "im chat", - "main": "main.js", + "version": "0.0.2", + "description": "webrtc, video, draw, chat", "scripts": { "http-api": "cross-env tl_rtc_app_env_mode=http node tlapi", + "http-super-api": "cross-env tl_rtc_app_env_mode=http node tlsuperapi", "http-socket": "cross-env tl_rtc_app_env_mode=http node tlsocket", "https-api": "cross-env tl_rtc_app_env_mode=https node tlapi", + "https-super-api": "cross-env tl_rtc_app_env_mode=https node tlsuperapi", "https-socket": "cross-env tl_rtc_app_env_mode=https node tlsocket" }, "repository": { @@ -33,6 +34,7 @@ "dotenv": "^16.3.1", "express": "^4.17.1", "glob": "^10.3.1", + "google-protobuf": "^3.0.0", "gulp": "^4.0.2", "gulp-babel": "^8.0.0", "gulp-clean-css": "^4.3.0", @@ -50,12 +52,16 @@ "gulp-rev-all": "^4.0.0", "gulp-uglify": "^3.0.2", "gulp-uglify-es": "^3.0.0", + "image-size": "^2.0.1", "lru-cache": "^10.0.1", "minimist": "^1.2.5", + "mocha": "^10.2.0", "multer": "^1.4.5-lts.1", + "music-metadata": "^7.14.0", "mysql2": "^2.1.0", "nodemailer": "^6.9.14", "nodemailer-smtp-transport": "^2.7.4", + "pm2": "^5.4.3", "redis": "^4.6.13", "request": "^2.88.2", "rollup-plugin-copy": "^3.4.0", diff --git a/src/biz/channel/channel_biz.js b/src/biz/channel/channel_biz.js index 8d94fa7..5e8fad3 100644 --- a/src/biz/channel/channel_biz.js +++ b/src/biz/channel/channel_biz.js @@ -1,62 +1,100 @@ const { tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, - tlConsoleError, setBit, - checkBit, - tlConsole + tlResponseNotFound, tlResponseSuccess, + tlConsoleError, setBit, checkBit, checkIsId } = require('../../utils/utils') -const { getOssUrl, getAvatarOssUrl } = require('../../utils/oss/oss') +const { + getOssUrl, getAvatarOssUrl +} = require('../../utils/oss/oss') const channelService = require('../../service/channel/tl_channel_service') const channelChatService = require('../../service/channel/tl_channel_chat_service') const channelUserService = require('../../service/channel/tl_channel_user_service') +const cloudFileService = require('../../service/cloud/tl_cloud_file_service') const userSessionService = require('../../service/user/tl_user_session_service') const userReadService = require('../../service/user/tl_user_read_service') const userService = require('../../service/user/tl_user_service') const userFriendService = require('../../service/user/tl_user_friend_service') +const userClearService = require('../../service/user/tl_user_clear_service') +const companyService = require('../../service/company/tl_company_service') +const channelMessageService = require('../../service/channel/tl_channel_message_service') const { fields: channelChatFields } = require('../../tables/tl_channel_chat') +const { fields: channelMediaFields } = require('../../tables/tl_channel_media') +const { fields: channelFileFields } = require('../../tables/tl_channel_file') +const { fields: cloudFileFields } = require('../../tables/tl_cloud_file') const { fields: channelUserFields} = require('../../tables/tl_channel_user') const { fields: userReadFields } = require('../../tables/tl_user_read') const { fields: channelFields } = require('../../tables/tl_channel') const { fields: userFields } = require('../../tables/tl_user') const { fields: userFriendFields } = require('../../tables/tl_user_friend') const { inner: TlRoleInner } = require('../../tables/tl_role') +const { fields: userClearFields } = require('../../tables/tl_user_clear') +const { fields: companyFields } = require('../../tables/tl_company') const { Def: TlChannelDef, Type: TlChannelType, - Status: TlChannelStatus + Status: TlChannelStatus, Flag: TlChannelFlag } = channelFields const { Def: TlChannelUserDef, Type: TlChannelUserType, - Flag: TlChannelUserFlag + Flag: TlChannelUserFlag, Status: TlChannelUserStatus } = channelUserFields const { Def: TlUserDef } = userFields -const { - Def: TlRoleInnerDef -} = TlRoleInner const { Def: TlChannelChatDef, Type: TlChannelChatType, Other: TlChannelChatOther, Flag: TlChannelChatFlag } = channelChatFields +const { + Def: TlChannelMediaDef, Type: TlChannelMediaType, + Other: TlChannelMediaOther, Flag: TlChannelMediaFlag +} = channelMediaFields +const { + Def: TlChannelFileDef, Type: TlChannelFileType, + Status: TlChannelFileStatus, Other: TlChannelFileOther, + Flag: TlChannelFileFlag +} = channelFileFields +const { + Def: TlCloudFileDef, +} = cloudFileFields const { Def: TlUserReadDef, Type: TlUserReadType } = userReadFields const { Def: TlUserFriendDef } = userFriendFields +const { + Def: TlUserClearDef, Type: TlUserClearType +} = userClearFields +const { + Def: TlCompanyDef +} = companyFields /** * 根据频道id搜索频道 * @param {*} channelId + * @param {*} shareUserId * @param {*} loginInfo * @returns */ -const searchChannelById = async function({channelId, loginInfo}){ +const searchChannelById = async function({channelId, shareUserId, loginInfo}){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + if(shareUserId){ + shareUserId = parseInt(shareUserId) + if(!checkIsId(shareUserId)){ + return tlResponseArgsError("请求参数错误") + } } const { @@ -73,7 +111,7 @@ const searchChannelById = async function({channelId, loginInfo}){ } const channelType = channelInfo[TlChannelDef.type] - if(channelType === TlChannelType.FRIEND){ + if(channelType !== TlChannelType.GROUP){ return tlResponseSuccess("获取失败,频道不存在") } @@ -96,13 +134,21 @@ const searchChannelById = async function({channelId, loginInfo}){ isChannelUser = true } - return tlResponseSuccess("获取频道信息成功", { + // 如果不是频道用户,且频道不允许被搜索,返回频道不存在 + const channelFlag = channelInfo[TlChannelDef.flag] + const groupCanBeSearch = checkBit(channelFlag, TlChannelFlag.GROUP_CAN_BE_SEARCH) + if(!isChannelUser && !groupCanBeSearch){ + return tlResponseForbidden("频道不存在") + } + + return tlResponseSuccess("获取成功", { channelId: channelId, channelName: channelInfo[TlChannelDef.name], channelAvatar: channelAvatar, channelUserCount: channelUserCount, channelType: 'group', isChannelUser: isChannelUser, + shareUserId: shareUserId, companyName: loginUserCompanyName }) } @@ -115,12 +161,16 @@ const searchChannelById = async function({channelId, loginInfo}){ */ const addChannel = async function({channelName, loginInfo}){ if(!channelName){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } channelName = channelName.trim() if(!channelName){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + if(channelName.length > 64){ + return tlResponseArgsError("频道名称长度不能超过64个字符") } const { @@ -175,45 +225,12 @@ const addChannel = async function({channelName, loginInfo}){ return tlConsoleError("添加新频道, 生成系统消息失败") } - return tlResponseSuccess("添加频道成功", { + return tlResponseSuccess("创建成功", { channelId: channelInfo[TlChannelDef.id] }) } -/** - * 修改频道名称 - * @param {*} channelId - * @param {*} channelName - * @param {*} loginInfo - */ -const updateChannel = async function({channelId, channelName, loginInfo}){ - if(!channelId){ - return tlResponseArgsError("请求参数为空") - } - - if(!channelName){ - return tlResponseArgsError("请求参数为空") - } - - const { - loginUserCompanyId, loginUserId - } = loginInfo - - const channelInfo = await channelService.updateInfoById({ - companyId: loginUserCompanyId, channelId - }, { - name: channelName, - }) - - if(Object.keys(channelInfo).length == 0){ - return tlResponseSvrError("修改频道失败") - } - - return tlResponseSuccess("修改频道成功") -} - - /** * 获取频道列表 * @param {*} loginInfo @@ -237,88 +254,7 @@ const getChannelList = async function({loginInfo}){ channelIdList, loginUserCompanyId, loginUserId }) - return tlResponseSuccess("获取频道列表成功", resultList) -} - - -/** - * 获取频道简单列表 - * @param {*} loginInfo - */ -const getChannelSimpleList = async function({loginInfo}){ - const { - loginUserCompanyId, loginUserId - } = loginInfo - - // 获取自己相关的频道列表 - const channelUserList = await channelUserService.getListByUserId({ - companyId: loginUserCompanyId, - userId: loginUserId - }, [ - TlChannelUserDef.channelId - ]) - - const channelIdList = channelUserList.map(channelUser => channelUser[TlChannelUserDef.channelId]) - // 获取频道列表 - const channelList = await channelService.getListByIdList({ - companyId: loginUserCompanyId, - idList: channelIdList - }, [ - TlChannelDef.id, - TlChannelDef.name, - TlChannelDef.type, - ]) - - // 获取好友频道用户列表,用于替换好友频道的频道名称为好友名称 - const friendChannelList = channelList.filter(channel => channel[TlChannelDef.type] === TlChannelType.FRIEND) - const friendChannelIdList = friendChannelList.map(channel => channel[TlChannelDef.id]) - // 构建好友频道用户映射 - const channelUserFriendMap = await initFriendChannelListName({ - channelIdList: friendChannelIdList, loginUserCompanyId, loginUserId - }) - - let resultList = [] - - for (let i = 0; i < channelList.length; i++) { - const channel = channelList[i] - - const channelId = channel[TlChannelDef.id] - - const channelType = channel[TlChannelDef.type] - let channelTypeStr = '' - if(channelType === TlChannelType.GROUP){ - channelTypeStr = "group" - }else if(channelType === TlChannelType.FRIEND){ - channelTypeStr = "friend" - } - - // 如果是好友频道,替换频道名称,头像为好友名称 - const friendInfo = channelUserFriendMap[channelId] || {} - let channelName = channel[TlChannelDef.name] - if(channelType === TlChannelType.FRIEND){ - channelName = friendInfo[TlUserDef.name] - } - - // 如果有备注,显示备注 - const channelReName = friendInfo[TlUserFriendDef.rename] - - let channelAvatar = '/image/friend-default-avatar.png' - if(channelType === TlChannelType.GROUP){ - channelAvatar = "/image/group-default-avatar.png" - }else if(channelType === TlChannelType.FRIEND){ - channelAvatar = await getOssUrl(friendInfo[TlUserDef.avatarUrl]) - } - - resultList.push({ - channelId: channelId, - channelName: channelName, - channelReName: channelReName, - channelType: channelType === TlChannelType.GROUP ? "group" : "friend", - channelAvatar: channelAvatar, - }) - } - - return tlResponseSuccess("获取频道列表成功", resultList) + return tlResponseSuccess("获取成功", resultList) } @@ -329,7 +265,12 @@ const getChannelSimpleList = async function({loginInfo}){ */ const getChannelInfo = async function({loginInfo, channelId}){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -338,6 +279,17 @@ const getChannelInfo = async function({loginInfo, channelId}){ const channelIdList = [channelId] + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + resultList = await initChannelListInfo({ channelIdList, loginUserCompanyId, loginUserId }) @@ -346,7 +298,7 @@ const getChannelInfo = async function({loginInfo, channelId}){ return tlResponseNotFound("频道不存在") } - return tlResponseSuccess("获取频道数据成功", resultList[0]) + return tlResponseSuccess("获取成功", resultList[0]) } @@ -393,7 +345,8 @@ const initChannelListInfo = async function({ userId: loginUserId }, [ TlChannelUserDef.channelId, - TlChannelUserDef.flag + TlChannelUserDef.flag, + TlChannelUserDef.roleId, ]) const channelUserInfoMap = {} @@ -427,17 +380,17 @@ const initChannelListInfo = async function({ const channelUserInfo = channelUserInfoMap[channelId] || {} const channelUserFlag = channelUserInfo[TlChannelUserDef.flag] || 0 const channelUserRole = channelUserInfo[TlChannelUserDef.roleId] || 0 + const groupCanBeSearch = checkBit(flag, TlChannelFlag.GROUP_CAN_BE_SEARCH) const channelType = channel[TlChannelDef.type] - let channelTypeStr = '' - if(channelType === TlChannelType.GROUP){ - channelTypeStr = "group" - }else if(channelType === TlChannelType.FRIEND){ - channelTypeStr = "friend" - } + let channelTypeStr = TlChannelType.toStr(channelType) // 如果是好友频道,替换频道名称,头像为好友名称 - const friendInfo = channelUserFriendMap[channelId] || {} + const friendInfo = channelUserFriendMap[channelId] || { + [TlUserDef.name]: "好友频道", + [TlUserDef.avatarUrl]: "", + [TlUserFriendDef.rename]: "好友频道" + } let channelName = channel[TlChannelDef.name] if(channelType === TlChannelType.FRIEND){ @@ -445,13 +398,13 @@ const initChannelListInfo = async function({ } // 如果有备注,显示备注 - const channelReName = friendInfo[TlUserFriendDef.rename] + const channelReName = friendInfo[TlUserFriendDef.rename] let channelAvatar = '/image/friend-default-avatar.png' if(channelType === TlChannelType.GROUP){ channelAvatar = "/image/group-default-avatar.png" }else if(channelType === TlChannelType.FRIEND){ - channelAvatar = await getOssUrl(friendInfo[TlUserDef.avatarUrl]) + channelAvatar = await getAvatarOssUrl(friendInfo[TlUserDef.avatarUrl]) } resultList.push({ @@ -467,6 +420,7 @@ const initChannelListInfo = async function({ channelBlack: checkBit(channelUserFlag, TlChannelUserFlag.IS_SET_BLACK), channelMessageAllLoad: false, channelRole: channelUserRole, + channelGroupCanBeSearch: groupCanBeSearch, createTime: channel[TlChannelDef.createdAt], extra: {} }) @@ -574,11 +528,25 @@ const initFriendChannelListName = async function({ */ const updateChannelName = async function({channelId, channelName, loginInfo}){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } if(!channelName){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelName = channelName.trim() + if(!channelName){ + return tlResponseArgsError("请求参数错误") + } + + if(channelName.length > 64){ + return tlResponseArgsError("频道名称长度不能超过64个字符") } const { @@ -594,6 +562,17 @@ const updateChannelName = async function({channelId, channelName, loginInfo}){ return tlResponseNotFound("频道不存在") } + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + const updateChannelInfo = await channelService.updateInfoById({ companyId: loginUserCompanyId, id: channelId @@ -605,7 +584,74 @@ const updateChannelName = async function({channelId, channelName, loginInfo}){ return tlResponseSvrError("修改频道名称失败") } - return tlResponseSuccess("修改频道名称成功") + return tlResponseSuccess("更新成功") +} + + +/** + * 修改频道是否可以被搜索 + * @param {*} channelId + * @param {*} canSearch + * @param {*} loginInfo + * @returns + */ +const updateChannelCanSearch = async function({channelId, canSearch, loginInfo}){ + if(!channelId){ + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + if(canSearch === undefined){ + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + + let flag = channelInfo[TlChannelDef.flag] + if(canSearch){ + flag = setBit(flag, TlChannelFlag.GROUP_CAN_BE_SEARCH, true) + }else{ + flag = setBit(flag, TlChannelFlag.GROUP_CAN_BE_SEARCH, false) + } + + const updateChannelInfo = await channelService.updateInfoById({ + companyId: loginUserCompanyId, + id: channelId + }, { + [TlChannelDef.flag]: flag + }) + + if(Object.keys(updateChannelInfo).length == 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") } @@ -617,7 +663,12 @@ const updateChannelName = async function({channelId, channelName, loginInfo}){ */ const getChannelNameById = async function({ loginInfo, channelId}){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -628,7 +679,8 @@ const getChannelNameById = async function({ loginInfo, channelId}){ companyId: loginUserCompanyId, id: channelId }, [ - TlChannelDef.name + TlChannelDef.name, + TlChannelDef.flag ]) if(Object.keys(channelInfo).length == 0){ @@ -637,6 +689,13 @@ const getChannelNameById = async function({ loginInfo, channelId}){ }) } + // 频道不允许被搜索,返回频道不存在 + const channelFlag = channelInfo[TlChannelDef.flag] + const groupCanBeSearch = checkBit(channelFlag, TlChannelFlag.GROUP_CAN_BE_SEARCH) + if(!groupCanBeSearch){ + return tlResponseForbidden("频道不存在") + } + const channelName = channelInfo[TlChannelDef.name] || "" return tlResponseSuccess("获取成功", { @@ -650,24 +709,44 @@ const getChannelNameById = async function({ loginInfo, channelId}){ * @param {*} loginInfo * @param {*} channelId * @param {*} chatMinId + * @param {*} fileMinId + * @param {*} mediaMinId */ const getChannelChatList = async function ({ - loginInfo, channelId, chatMinId, + loginInfo, channelId, chatMinId, fileMinId, mediaMinId }) { - if (!channelId) { - return tlResponseArgsError("请求参数为空") + if(!channelId) { + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } const { loginUserCompanyId, loginUserId } = loginInfo + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + // 按时间范围获取聊天记录,拿第一页的数据即可 // 调整pageSize需要同步调整前端 更新channelMessageAllLoad逻辑 const page = 1 const pageSize = 20 chatMinId = parseInt(chatMinId) + fileMinId = parseInt(fileMinId) + mediaMinId = parseInt(mediaMinId) // 已读消息列表 const userReadList = await userReadService.getListByChannelUserId({ @@ -684,41 +763,55 @@ const getChannelChatList = async function ({ userReadMap[item[TlUserReadDef.type]] = item[TlUserReadDef.latestReadId] }) - let chatPromise = null - - // 聊天消息 - if(chatMinId !== -1){ - chatPromise = channelChatService.getListByChannelIdAndMinIdForPage({ - companyId: loginUserCompanyId, channelId, - minId: chatMinId, - }, [ - TlChannelChatDef.id, - TlChannelChatDef.channelId, - TlChannelChatDef.type, - TlChannelChatDef.flag, - TlChannelChatDef.other, - TlChannelChatDef.fromUserId, - TlChannelChatDef.fromUserName, - TlChannelChatDef.toUserId, - TlChannelChatDef.toUserName, - TlChannelChatDef.createdAt, - TlChannelChatDef.message, - TlChannelChatDef.messageTimeStamp, - TlChannelChatDef.messageVersion, - ], page, pageSize) - } - - let [ - chatList - ] = await Promise.all([ - chatPromise + // 获取频道清理记录 + const userClearList = await userClearService.getListByChannelUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId + }, [ + TlUserClearDef.type, + TlUserClearDef.latestClearId ]) + let userClearMap = {} + userClearList.forEach(item => { + userClearMap[item[TlUserClearDef.type]] = item[TlUserClearDef.latestClearId] + }) - if(!chatList){ - chatList = [] - } + // 获取频道消息列表 + const messageList = await channelMessageService.getCombinedChannelHistoryMessageListForPage({ + companyId: loginUserCompanyId, channelId, + chatClearId: userClearMap[TlUserClearType.CHAT] || 1, + fileClearId: userClearMap[TlUserClearType.FILE] || 1, + mediaClearId: userClearMap[TlUserClearType.MEDIA] || 1, + chatMinId, fileMinId, mediaMinId + }, [ + TlChannelChatDef.id, + TlChannelChatDef.companyId, + TlChannelChatDef.channelId, + TlChannelChatDef.type, + TlChannelChatDef.flag, + TlChannelChatDef.other, + TlChannelChatDef.fromUserId, + TlChannelChatDef.fromUserName, + TlChannelChatDef.messageTimeStamp, + TlChannelChatDef.messageVersion, + TlChannelChatDef.createdAt, + ], [ + TlChannelChatDef.message, + TlChannelChatDef.toUserId, + TlChannelChatDef.toUserName, + ], [ + TlChannelFileDef.cloudFileId, + TlChannelFileDef.status, + ], [ + TlChannelMediaDef.status, + TlChannelMediaDef.media, + ], page, pageSize) - let userIdList = chatList.map(item => item[TlChannelChatDef.fromUserId]) + const chatList = messageList.filter(item => Object.values(TlChannelChatType).includes(item[TlChannelChatDef.type])) + const fileList = messageList.filter(item => Object.values(TlChannelFileType).includes(item[TlChannelChatDef.type])) + const mediaList = messageList.filter(item => Object.values(TlChannelMediaType).includes(item[TlChannelChatDef.type])) + const userIdList = messageList.map(item => item[TlChannelChatDef.fromUserId]) // 用户头像 let userAvatarMap = {} @@ -736,8 +829,30 @@ const getChannelChatList = async function ({ }) } + // 云文件信息 + let cloudFileMap = {} + const cloudFileIdList = fileList.map(item => item[TlChannelFileDef.cloudFileId]) + if(cloudFileIdList.length > 0){ + const cloudFileList = await cloudFileService.getListByIdList({ + companyId: loginUserCompanyId, + idList: cloudFileIdList + },[ + TlCloudFileDef.id, + TlCloudFileDef.originFileName, + TlCloudFileDef.fileSize, + TlCloudFileDef.fileUrl, + TlCloudFileDef.flag, + TlCloudFileDef.createdAt + ]) + cloudFileList.forEach(item => { + cloudFileMap[item[TlCloudFileDef.id]] = item + }) + } + // 获取回复消息id列表 let replyChatMessageIdList = [] + let replyFileMessageIdList = [] + let replyMediaMessageIdList = [] chatList.forEach(item => { let other = {} let otherStr = item[TlChannelChatDef.other] @@ -760,12 +875,24 @@ const getChannelChatList = async function ({ TlChannelChatType.GROUP, ].includes(replyToMessageType)){ replyChatMessageIdList.push(replyToMessageId) + }else if([ + TlChannelFileType.P2P, + TlChannelFileType.OFFLINE + ].includes(replyToMessageType)){ + replyFileMessageIdList.push(replyToMessageId) + }else if([ + TlChannelMediaType.VIDEO, + TlChannelMediaType.AUDIO, + ].includes(replyToMessageType)){ + replyMediaMessageIdList.push(replyToMessageId) } } }) // 回复文本消息, 目前回复只支持回复文本消息 let replyChatMessageMap = {} + let replyFileMessageMap = {} + let replyMediaMessageMap = {} if(replyChatMessageIdList.length > 0){ const replyMessageList = await channelChatService.getListByChannelIdAndIdList({ companyId: loginUserCompanyId, @@ -783,14 +910,15 @@ const getChannelChatList = async function ({ // 初始化返回数据 let resultMap = await initChannelChatList({ - chatList, userChannelReadMap: { + chatList, fileList, mediaList, userChannelReadMap: { [channelId]: userReadMap - }, userAvatarMap, replyChatMessageMap, + }, userAvatarMap, cloudFileMap, + replyChatMessageMap, replyFileMessageMap, replyMediaMessageMap }) let resultList = resultMap[channelId] || [] - return tlResponseSuccess("获取频道聊天列表成功", resultList) + return tlResponseSuccess("获取成功", resultList) } @@ -801,13 +929,40 @@ const getChannelChatList = async function ({ */ const getChannelChatListByChannelIdList = async function ({loginInfo, channelIdList}) { if (!channelIdList) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + for(let i = 0; i < channelIdList.length; i++){ + let channelId = channelIdList[i] + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } } const { loginUserCompanyId, loginUserId } = loginInfo + // 当前用户是否存在频道 + const channelUserInfoList = await channelUserService.getListByUserIdAndChannelIdList({ + companyId: loginUserCompanyId, + channelIdList: channelIdList, + userId: loginUserId + }) + // 构建频道用户映射 + let channelUserInfoMap = {} + channelUserInfoList.forEach(item => { + channelUserInfoMap[item[TlChannelUserDef.channelId]] = item + }) + // 是否存在非法操作 + for (let i = 0; i < channelIdList.length; i++) { + const channelId = channelIdList[i] + if(!channelUserInfoMap[channelId]){ + return tlResponseNotFound("存在非法操作") + } + } + let userIdList = [] // 已读消息列表 @@ -842,43 +997,96 @@ const getChannelChatListByChannelIdList = async function ({loginInfo, channelIdL userChannelReadMap[channelId][type] = item[TlUserReadDef.latestReadId] }) + // 获取频道清理记录 + const userClearList = await userClearService.getListByUserIdAndChannelIdList({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelIdList + }, [ + TlUserClearDef.type, + TlUserClearDef.channelId, + TlUserClearDef.latestClearId + ]) + let userClearMap = {} + for (let i = 0; i < channelIdList.length; i++) { + const channelId = channelIdList[i] + userClearMap[channelId] = { + [TlUserClearType.CHAT]: 0, + [TlUserClearType.FILE]: 0, + [TlUserClearType.MEDIA]: 0 + } + } + userClearList.forEach(item => { + const channelId = item[TlUserClearDef.channelId] + const type = item[TlUserClearDef.type] + userClearMap[channelId][type] = item[TlUserClearDef.latestClearId] + }) + // 聊天消息 let chatList = [] - let chatPromiseList = [] + // 文件消息 + let fileList = [] + // 媒体消息 + let mediaList = [] for (let i = 0; i < channelIdList.length; i++) { const channelId = channelIdList[i] - chatPromiseList.push( - channelChatService.getListByChannelIdAndMaxIdForPage({ - companyId: loginUserCompanyId, channelId, - maxId: userChannelReadMap[channelId][TlUserReadType.CHAT] || 1, - }, [ - TlChannelChatDef.id, - TlChannelChatDef.channelId, - TlChannelChatDef.type, - TlChannelChatDef.flag, - TlChannelChatDef.other, - TlChannelChatDef.fromUserId, - TlChannelChatDef.fromUserName, - TlChannelChatDef.toUserId, - TlChannelChatDef.toUserName, - TlChannelChatDef.createdAt, - TlChannelChatDef.message, - TlChannelChatDef.messageTimeStamp, - TlChannelChatDef.messageVersion, - ], 1, 99) - ) + const messageList = await channelMessageService.getCombinedChannelMessageListForPage({ + companyId: loginUserCompanyId, channelId, + chatClearId: userClearMap[channelId][TlUserClearType.CHAT] || 1, + fileClearId: userClearMap[channelId][TlUserClearType.FILE] || 1, + mediaClearId: userClearMap[channelId][TlUserClearType.MEDIA] || 1, + }, [ + TlChannelChatDef.id, + TlChannelChatDef.companyId, + TlChannelChatDef.channelId, + TlChannelChatDef.type, + TlChannelChatDef.flag, + TlChannelChatDef.other, + TlChannelChatDef.fromUserId, + TlChannelChatDef.fromUserName, + TlChannelChatDef.messageTimeStamp, + TlChannelChatDef.messageVersion, + TlChannelChatDef.createdAt, + ], [ + TlChannelChatDef.message, + TlChannelChatDef.toUserId, + TlChannelChatDef.toUserName, + ], [ + TlChannelFileDef.cloudFileId, + TlChannelFileDef.status, + ], [ + TlChannelMediaDef.status, + TlChannelMediaDef.media, + ], 1, 3) + + chatList = chatList.concat(messageList.filter(item => Object.values(TlChannelChatType).includes(item[TlChannelChatDef.type]))) + fileList = fileList.concat(messageList.filter(item => Object.values(TlChannelFileType).includes(item[TlChannelChatDef.type]))) + mediaList = mediaList.concat(messageList.filter(item => Object.values(TlChannelMediaType).includes(item[TlChannelChatDef.type]))) + + userIdList = userIdList.concat(messageList.map(item => item[TlChannelChatDef.fromUserId])) } - const chatPromiseResult = await Promise.all(chatPromiseList) - for (let i = 0; i < chatPromiseResult.length; i++) { - if(!chatPromiseResult[i]){ - chatPromiseResult[i] = [] - } - chatList = chatList.concat(chatPromiseResult[i]) - userIdList = userIdList.concat(chatPromiseResult[i].map(item => item[TlChannelChatDef.fromUserId])) + // 云文件信息 + let cloudFileMap = {} + const cloudFileIdList = fileList.map(item => item[TlChannelFileDef.cloudFileId]) + if(cloudFileIdList.length > 0){ + const cloudFileList = await cloudFileService.getListByIdList({ + companyId: loginUserCompanyId, + idList: cloudFileIdList + },[ + TlCloudFileDef.id, + TlCloudFileDef.originFileName, + TlCloudFileDef.fileSize, + TlCloudFileDef.fileUrl, + TlCloudFileDef.flag, + TlCloudFileDef.createdAt + ]) + cloudFileList.forEach(item => { + cloudFileMap[item[TlCloudFileDef.id]] = item + }) } - + // 用户头像 let userAvatarMap = {} if(userIdList.length > 0){ @@ -897,6 +1105,8 @@ const getChannelChatListByChannelIdList = async function ({loginInfo, channelIdL // 获取回复消息id列表 let replyChatMessageIdList = [] + let replyFileMessageIdList = [] + let replyMediaMessageIdList = [] chatList.forEach(item => { let other = {} let otherStr = item[TlChannelChatDef.other] @@ -919,12 +1129,24 @@ const getChannelChatListByChannelIdList = async function ({loginInfo, channelIdL TlChannelChatType.GROUP, ].includes(replyToMessageType)){ replyChatMessageIdList.push(replyToMessageId) + }else if([ + TlChannelFileType.P2P, + TlChannelFileType.OFFLINE + ].includes(replyToMessageType)){ + replyFileMessageIdList.push(replyToMessageId) + }else if([ + TlChannelMediaType.VIDEO, + TlChannelMediaType.AUDIO, + ].includes(replyToMessageType)){ + replyMediaMessageIdList.push(replyToMessageId) } } }) // 回复文本消息 let replyChatMessageMap = {} + let replyFileMessageMap = {} + let replyMediaMessageMap = {} if(replyChatMessageIdList.length > 0){ const replyMessageList = await channelChatService.getListByIdList({ companyId: loginUserCompanyId, @@ -941,24 +1163,276 @@ const getChannelChatListByChannelIdList = async function ({loginInfo, channelIdL // 初始化返回数据 let resultMap = await initChannelChatList({ - chatList, userChannelReadMap, userAvatarMap, - replyChatMessageMap, + chatList, fileList, mediaList, userChannelReadMap, userAvatarMap, cloudFileMap, + replyChatMessageMap, replyFileMessageMap, replyMediaMessageMap }) - return tlResponseSuccess("获取频道列表聊天记录成功", resultMap) + return tlResponseSuccess("获取成功", resultMap) +} + + +/** + * 搜索频道聊天消息 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} chatMinId + * @param {*} fileMinId + * @param {*} mediaMinId + * @param {*} keyword + * @param {*} startTimeStamp + * @param {*} endTimeStamp + * @param {*} types + */ +const searchChannelChatList = async function ({ + loginInfo, channelId, chatMinId, fileMinId, mediaMinId, + keyword, startTimeStamp, endTimeStamp, types +}) { + if (!channelId) { + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + + // 按时间范围获取聊天记录,拿第一页的数据即可 + // 调整pageSize需要同步调整前端 更新channelMessageAllLoad逻辑 + const page = 1 + const pageSize = 100 + + chatMinId = parseInt(chatMinId) + fileMinId = parseInt(fileMinId) + mediaMinId = parseInt(mediaMinId) + + let searchChat = false + let searchFile = false + let searchMedia = false + + if(types){ + types.forEach((item, index) => { + if(item === 'chat'){ + searchChat = true + }else if(item === 'file'){ + searchFile = true + }else if(item === 'media'){ + searchMedia = true + } + }) + } + startTimeStamp = startTimeStamp ? new Date(startTimeStamp).getTime() : null + endTimeStamp = endTimeStamp ? new Date(endTimeStamp).getTime() : null + + // 已读消息列表 + const userReadList = await userReadService.getListByChannelUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId + }, [ + TlUserReadDef.type, + TlUserReadDef.latestReadId + ]) + + let userReadMap = {} + userReadList.forEach(item => { + userReadMap[item[TlUserReadDef.type]] = item[TlUserReadDef.latestReadId] + }) + + // 获取频道清理记录 + const userClearList = await userClearService.getListByChannelUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId + }, [ + TlUserClearDef.type, + TlUserClearDef.channelId, + TlUserClearDef.latestClearId + ]) + let userClearMap = { + [TlUserClearType.CHAT]: 0, + [TlUserClearType.FILE]: 0, + [TlUserClearType.MEDIA]: 0 + } + userClearList.forEach(item => { + const type = item[TlUserClearDef.type] + userClearMap[type] = item[TlUserClearDef.latestClearId] + }) + + // 获取频道消息列表 + const messageList = await channelMessageService.searchCombinedChannelMessageListForPage({ + companyId: loginUserCompanyId, channelId, + chatClearId: userClearMap[TlUserClearType.CHAT] || 1, + fileClearId: userClearMap[TlUserClearType.FILE] || 1, + mediaClearId: userClearMap[TlUserClearType.MEDIA] || 1, + chatMinId, fileMinId, mediaMinId, + startTimeStamp, endTimeStamp + }, [ + TlChannelChatDef.id, + TlChannelChatDef.companyId, + TlChannelChatDef.channelId, + TlChannelChatDef.type, + TlChannelChatDef.flag, + TlChannelChatDef.other, + TlChannelChatDef.fromUserId, + TlChannelChatDef.fromUserName, + TlChannelChatDef.messageTimeStamp, + TlChannelChatDef.messageVersion, + TlChannelChatDef.createdAt, + ], [ + TlChannelChatDef.message, + TlChannelChatDef.toUserId, + TlChannelChatDef.toUserName, + ], [ + TlChannelFileDef.cloudFileId, + TlChannelFileDef.status, + ], [ + TlChannelMediaDef.status, + TlChannelMediaDef.media, + ], page, pageSize) + + const chatList = messageList.filter(item => Object.values(TlChannelChatType).includes(item[TlChannelChatDef.type])) + const fileList = messageList.filter(item => Object.values(TlChannelFileType).includes(item[TlChannelChatDef.type])) + const mediaList = messageList.filter(item => Object.values(TlChannelMediaType).includes(item[TlChannelChatDef.type])) + const userIdList = messageList.map(item => item[TlChannelChatDef.fromUserId]) + + // 用户头像 + let userAvatarMap = {} + if(userIdList.length > 0){ + const userList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: userIdList + }, [ + TlUserDef.id, + TlUserDef.avatarUrl + ]) + + userList.forEach(item => { + userAvatarMap[item[TlUserDef.id]] = item[TlUserDef.avatarUrl] + }) + } + + // 云文件信息 + let cloudFileMap = {} + const cloudFileIdList = fileList.map(item => item[TlChannelFileDef.cloudFileId]) + if(cloudFileIdList.length > 0){ + const cloudFileList = await cloudFileService.getListByIdList({ + companyId: loginUserCompanyId, + idList: cloudFileIdList + },[ + TlCloudFileDef.id, + TlCloudFileDef.originFileName, + TlCloudFileDef.fileSize, + TlCloudFileDef.fileUrl, + TlCloudFileDef.flag, + TlCloudFileDef.createdAt, + ]) + cloudFileList.forEach(item => { + cloudFileMap[item[TlCloudFileDef.id]] = item + }) + } + + // 获取回复消息id列表 + let replyChatMessageIdList = [] + let replyFileMessageIdList = [] + let replyMediaMessageIdList = [] + chatList.forEach(item => { + let other = {} + let otherStr = item[TlChannelChatDef.other] + if(otherStr){ + try{ + other = JSON.parse(otherStr) + }catch(e){ + tlConsoleError('解析other失败', otherStr, item[TlChannelChatDef.id]) + other = {} + } + } + + let replyToMessageId = other[TlChannelChatOther.replyToMessageId] + let replyToMessageType = other[TlChannelChatOther.replyToMessageType] + if(replyToMessageId){ + replyToMessageId = parseInt(replyToMessageId) + + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + ].includes(replyToMessageType)){ + replyChatMessageIdList.push(replyToMessageId) + }else if([ + TlChannelFileType.P2P, + TlChannelFileType.OFFLINE + ].includes(replyToMessageType)){ + replyFileMessageIdList.push(replyToMessageId) + }else if([ + TlChannelMediaType.VIDEO, + TlChannelMediaType.AUDIO, + ].includes(replyToMessageType)){ + replyMediaMessageIdList.push(replyToMessageId) + } + } + }) + + // 回复文本消息 + let replyChatMessageMap = {} + let replyFileMessageMap = {} + let replyMediaMessageMap = {} + if(replyChatMessageIdList.length > 0){ + const replyMessageList = await channelChatService.getListByChannelIdAndIdList({ + companyId: loginUserCompanyId, + channelId, + idList: replyChatMessageIdList + }, [ + TlChannelChatDef.id, + TlChannelChatDef.message, + ]) + + replyMessageList.forEach(item => { + replyChatMessageMap[item[TlChannelChatDef.id]] = item + }) + } + + // 初始化返回数据 + let resultMap = await initChannelChatList({ + chatList, fileList, mediaList, cloudFileMap, userAvatarMap, userChannelReadMap: { + [channelId]: userReadMap + }, + replyChatMessageMap, replyFileMessageMap, replyMediaMessageMap + }) + + const resultList = resultMap[channelId] || [] + + return tlResponseSuccess("获取成功", resultList) } /** * 初始化频道聊天列表结构 * @param {*} chatList + * @param {*} fileList + * @param {*} mediaList + * @param {*} cloudFileMap * @param {*} userAvatarMap * @param {*} userChannelReadMap * @param {*} replyMessageMap */ const initChannelChatList = async function({ - chatList, userAvatarMap, userChannelReadMap, - replyChatMessageMap + chatList, fileList, mediaList, + cloudFileMap, userAvatarMap, userChannelReadMap, + replyChatMessageMap, replyFileMessageMap, replyMediaMessageMap }){ // 处理返回数据 let resultMap = {} @@ -1014,6 +1488,28 @@ const initChannelChatList = async function({ ].includes(replyToMessageType)){ let replyToMessage = replyChatMessageMap[replyToMessageId] || {} replyToMessageContent = replyToMessage[TlChannelChatDef.message] || '消息已失效' + }else if([ + TlChannelFileType.P2P, + TlChannelFileType.OFFLINE + ].includes(replyToMessageType)){ + if(replyToMessageType == TlChannelFileType.P2P){ + replyToMessageContent = "在线文件" + }else if(replyToMessageType == TlChannelFileType.OFFLINE){ + replyToMessageContent = "离线文件" + }else{ + replyToMessageContent = "未知文件消息" + } + }else if([ + TlChannelMediaType.VIDEO, + TlChannelMediaType.AUDIO, + ].includes(replyToMessageType)){ + if(replyToMessageType == TlChannelMediaType.VIDEO){ + replyToMessageContent = "视频通话" + }else if(replyToMessageType == TlChannelMediaType.AUDIO){ + replyToMessageContent = "语音通话" + }else{ + replyToMessageContent = "未知音视频消息" + } }else{ replyToMessageContent = "未知消息" } @@ -1044,6 +1540,155 @@ const initChannelChatList = async function({ }) } + for(let i = 0; i < fileList.length; i++){ + const item = fileList[i] + const channelId = item[TlChannelFileDef.channelId] + if (!resultMap[channelId]) { + resultMap[channelId] = [] + } + + let fileLatestReadId = 0 + if(userChannelReadMap[channelId]){ + fileLatestReadId = userChannelReadMap[channelId][TlUserReadType.FILE] + } + let cloudFileId = item[TlChannelFileDef.cloudFileId] + let cloudFile = cloudFileMap[cloudFileId] || {} + + let message = "" + if(item[TlChannelFileDef.type] == TlChannelFileType.P2P){ + message = "在线文件" + }else if(item[TlChannelFileDef.type] == TlChannelFileType.OFFLINE){ + message = "离线文件" + } + + let userAvatar = userAvatarMap[item[TlChannelFileDef.fromUserId]] + + let statusStr = '' + if(item[TlChannelFileDef.status] == TlChannelFileStatus.INIT){ + statusStr = '发起中' + }else if(item[TlChannelFileDef.status] == TlChannelFileStatus.RECEIVING){ + statusStr = '接收中' + }else if(item[TlChannelFileDef.status] == TlChannelFileStatus.RECEIVED){ + statusStr = '已接收' + } + + let messageTimeStamp = item[TlChannelFileDef.messageTimeStamp] + let messageVersion = item[TlChannelFileDef.messageVersion] + + let flag = item[TlChannelFileDef.flag] + let isAtUser = checkBit(flag, TlChannelFileFlag.IS_AT_USER) + let isAtAll = checkBit(flag, TlChannelFileFlag.IS_AT_ALL) + let isReplay = checkBit(flag, TlChannelFileFlag.IS_REPLAY) + + let other = {} + let otherStr = item[TlChannelFileDef.other] + if(otherStr){ + try{ + other = JSON.parse(otherStr) + }catch(e){ + tlConsoleError('解析other失败', otherStr, item[TlChannelFileDef.id]) + other = {} + } + } + + let atUserId = other[TlChannelFileOther.atUserId] + if(atUserId){ + atUserId = parseInt(atUserId) + } + let atUserName = other[TlChannelFileOther.atUserName] + + let fileUrl = cloudFile[TlCloudFileDef.fileUrl] + fileUrl = await getOssUrl(fileUrl) + + resultMap[channelId].push({ + id: item[TlChannelFileDef.id], + type: item[TlChannelFileDef.type], + fromUserId: item[TlChannelFileDef.fromUserId], + fromUserName: item[TlChannelFileDef.fromUserName], + fromUserAvatar: await getAvatarOssUrl(userAvatar), + cloudFileId: cloudFileId, + message: message, + status: item[TlChannelFileDef.status], + statusStr: statusStr, + fileName: cloudFile[TlCloudFileDef.originFileName] || '已失效', + fileNotFound: Object.keys(cloudFile).length == 0, + fileType: cloudFile[TlCloudFileDef.originFileType] || '', + fileSize: cloudFile[TlCloudFileDef.fileSize] || 0, + fileUrl, + createTime: item[TlChannelFileDef.createdAt], + hasRead: item[TlChannelFileDef.id] <= fileLatestReadId, + isAtAll, + atUserId, + atUserName, + messageTimeStamp, + messageVersion + }) + } + + for(let i = 0; i < mediaList.length; i++){ + const item = mediaList[i] + const channelId = item[TlChannelMediaDef.channelId] + if (!resultMap[channelId]) { + resultMap[channelId] = [] + } + + let mediaLatestReadId = 0 + if(userChannelReadMap[channelId]){ + mediaLatestReadId = userChannelReadMap[channelId][TlUserReadType.MEDIA] + } + + let message = "" + if(item[TlChannelMediaDef.type] == TlChannelMediaType.AUDIO){ + message = "语音通话" + }else if(item[TlChannelMediaDef.type] == TlChannelMediaType.VIDEO){ + message = "视频通话" + } + + let userAvatar = userAvatarMap[item[TlChannelMediaDef.fromUserId]] + + let messageTimeStamp = item[TlChannelMediaDef.messageTimeStamp] + let messageVersion = item[TlChannelMediaDef.messageVersion] + + let flag = item[TlChannelMediaDef.flag] + let isAtUser = checkBit(flag, TlChannelMediaFlag.IS_AT_USER) + let isAtAll = checkBit(flag, TlChannelMediaFlag.IS_AT_ALL) + let isReplay = checkBit(flag, TlChannelMediaFlag.IS_REPLAY) + + let other = {} + let otherStr = item[TlChannelMediaDef.other] + if(otherStr){ + try{ + other = JSON.parse(otherStr) + }catch(e){ + tlConsoleError('解析other失败', otherStr, item[TlChannelMediaDef.id]) + other = {} + } + } + + let atUserId = other[TlChannelMediaOther.atUserId] + if(atUserId){ + atUserId = parseInt(atUserId) + } + let atUserName = other[TlChannelMediaOther.atUserName] + + resultMap[channelId].push({ + id: item[TlChannelMediaDef.id], + media: JSON.parse(item[TlChannelMediaDef.media]), + message: message, + type: item[TlChannelMediaDef.type], + fromUserId: item[TlChannelMediaDef.fromUserId], + fromUserName: item[TlChannelMediaDef.fromUserName], + fromUserAvatar: await getAvatarOssUrl(userAvatar), + createTime: item[TlChannelMediaDef.createdAt], + hasRead: item[TlChannelMediaDef.id] <= mediaLatestReadId, + isAtAll, + atUserId, + atUserName, + messageTimeStamp, + messageVersion + }) + } + // 按时间戳排序 Object.keys(resultMap).forEach(key => { resultMap[key].sort((a, b) => { @@ -1132,22 +1777,630 @@ const getChannelGroupList = async function({ }) } - return tlResponseSuccess("获取频道列表成功", resultList) + return tlResponseSuccess("获取成功", resultList) +} + + +/** + * 更新频道信息 - 管理端 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} channelName + * @param {*} canSearch + * @returns + */ +const adminUpdateChannel = async function({ + loginInfo, companyId, channelId, channelName, canSearch +}){ + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if (!channelId || !channelName || !companyId) { + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(companyId)){ + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + companyId = parseInt(companyId) + + const companyInfo = await companyService.getInfoById({ + id: companyId + }) + + if(Object.keys(companyInfo).length == 0){ + return tlResponseNotFound("企业不存在") + } + + // 获取频道信息 + const channelInfo = await channelService.getInfoById({ + companyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + let flag = channelInfo[TlChannelDef.flag] + if(canSearch){ + flag = setBit(flag, TlChannelFlag.GROUP_CAN_BE_SEARCH, true) + }else { + flag = setBit(flag, TlChannelFlag.GROUP_CAN_BE_SEARCH, false) + } + + // 更新频道信息 + const result = await channelService.updateInfoById({ + companyId, + id: channelId, + }, { + [TlChannelDef.name]: channelName, + [TlChannelDef.flag]: flag + }) + + if(Object.keys(result).length == 0){ + return tlResponseSuccess("更新失败") + } + + return tlResponseSuccess("更新成功") +} + + +/** + * 删除频道 - 管理端 + * @param {*} loginInfo + * @param {*} companyId + * @param {*} channelId + * @returns + */ +const adminDeleteChannel = async function({ + loginInfo, companyId, channelId +}){ + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if (!channelId || !companyId) { + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(companyId)){ + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + companyId = parseInt(companyId) + + const companyInfo = await companyService.getInfoById({ + id: companyId + }) + + if(Object.keys(companyInfo).length == 0){ + return tlResponseNotFound("企业不存在") + } + + // 获取 + const channelInfo = await channelService.getInfoById({ + companyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + // 删除频道 + const result = await channelService.deleteInfoById({ + companyId, + id: channelId + }) + + if(Object.keys(result).length == 0){ + return tlResponseSuccess("删除失败") + } + + return tlResponseSuccess("删除成功") +} + + +/** + * 获取频道列表 - 管理端 + * @param {*} loginInfo + * @param {*} page + * @param {*} pageSize + * @param {*} keyword + * @returns + */ +const adminGetChannelList = async function({ + loginInfo, page, limit, keyword +}){ + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!page){ + return tlResponseArgsError("请求参数错误") + } + + if(!limit){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(page)){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(limit)){ + return tlResponseArgsError("请求参数错误") + } + + page = parseInt(page) + limit = parseInt(limit) + + let total = 0 + let list = [] + + if(keyword == null || keyword == undefined || keyword == ''){ + list = await channelService.getListForPage({ + + }, [ + TlChannelDef.id, + TlChannelDef.name, + TlChannelDef.companyId, + TlChannelDef.type, + TlChannelDef.status, + TlChannelDef.flag, + TlChannelDef.createdAt + ], page, limit) + + total = await channelService.getCount({}) + }else{ + list = await channelService.getListByKeywordForPage({ + keyword + }, [ + TlChannelDef.id, + TlChannelDef.name, + TlChannelDef.type, + TlChannelDef.companyId, + TlChannelDef.status, + TlChannelDef.flag, + TlChannelDef.createdAt + ]) + total = await channelService.getCountByKeyword({ + keyword + }) + } + + if(list.length == 0){ + return tlResponseSuccess("获取成功", { + list: [], + count: 0 + }) + } + + // 获取企业信息 + const companyIdList = list.map(item => item[TlChannelDef.companyId]) + const companyList = await companyService.getListByIdList({ + idList: companyIdList + }, [ + TlCompanyDef.id, + TlCompanyDef.name + ]) + + let companyMap = {} + companyList.forEach(item => { + companyMap[item[TlCompanyDef.id]] = item + }) + + const channelIdList = list.map(item => item[TlChannelDef.id]) + + // 获取频道用户数量 + const channelUserCounts = await channelUserService.getCountByChannelIdListNoCompanyId({ + channelIdList + }) + const channelUserCountsMap = {} + channelUserCounts.forEach(item => { + channelUserCountsMap[item[TlChannelUserDef.channelId]] = item.count + }) + + let resultList = [] + for(let i = 0; i < list.length; i++){ + const item = list[i] + const channelId = item[TlChannelDef.id] + const channelName = item[TlChannelDef.name] + const typeStr = TlChannelType.toZnStr(item[TlChannelDef.type]) + + let statusStr = '' + let status = item[TlChannelDef.status] + if(status == TlChannelStatus.NORMAL){ + statusStr = '正常' + } + + let flag = item[TlChannelDef.flag] + let canSearch = checkBit(flag, TlChannelFlag.GROUP_CAN_BE_SEARCH) + + const companyId = item[TlChannelDef.companyId] + const companyInfo = companyMap[companyId] || {} + const companyName = companyInfo[TlCompanyDef.name] || '' + + resultList.push({ + id: channelId, + channelName: channelName, + companyId: companyId, + channelUserCount: channelUserCountsMap[channelId] || 0, + companyName: companyName, + channelType: '群聊', + canSearch, + type: item[TlChannelDef.type], + typeStr: typeStr, + status, + statusStr, + createTime: item[TlChannelDef.createdAt] + }) + } + + return tlResponseSuccess("获取成功", { + list: resultList, + count: total + }) +} + +/** + * 获取频道用户列表 - 管理端 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} page + * @param {*} limit + * @param {*} keyword + * @returns + * */ +const adminGetChannelUserList = async function({ + loginInfo, channelId, page, limit, keyword +}){ + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!page){ + return tlResponseArgsError("请求参数错误") + } + + if(!limit){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(page)){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(limit)){ + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + page = parseInt(page) + limit = parseInt(limit) + + const channelInfo = await channelService.getInfoByIdNoCompanyId({ + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + const companyId = channelInfo[TlChannelDef.companyId] + const companyInfo = await companyService.getInfoById({ + id: companyId + }) + + if(Object.keys(companyInfo).length == 0){ + return tlResponseNotFound("频道所属企业不存在") + } + + let total = 0 + let list = [] + + if(keyword == null || keyword == undefined || keyword == ''){ + list = await channelUserService.getListByChannelIdForPage({ + companyId, + channelId + }, [ + TlChannelUserDef.companyId, + TlChannelUserDef.userId, + TlChannelUserDef.roleId, + TlChannelUserDef.type, + TlChannelUserDef.status, + TlChannelUserDef.createdAt + ], page, limit) + + total = await channelUserService.getCountByChannelId({ + companyId, + channelId + }) + }else{ + // 查出用户id + const userList = await userService.getListByKeyword({ + companyId, + keyword + }, [ + TlUserDef.id + ]) + const userIdList = userList.map(item => item[TlUserDef.id]) + + if(userIdList.length == 0){ + return tlResponseSuccess("获取成功", { + list: [], + count: 0 + }) + } + + list = await channelUserService.getListByChannelIdAndUserIdListForPage({ + companyId, + channelId, + userIdList + }, [ + TlChannelUserDef.companyId, + TlChannelUserDef.userId, + TlChannelUserDef.roleId, + TlChannelUserDef.type, + TlChannelUserDef.status, + TlChannelUserDef.createdAt + ], page, limit) + + total = await channelUserService.getCountByChannelIdAndUserIdList({ + companyId, + channelId, + userIdList + }) + } + + if(list.length == 0){ + return tlResponseSuccess("获取成功", { + list: [], + count: 0 + }) + } + + // 获取用户信息 + const userIdList = list.map(item => item[TlChannelUserDef.userId]) + const userList = await userService.getListByIdList({ + companyId, + idList: userIdList + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.avatarUrl + ]) + let userMap = {} + userList.forEach(item => { + userMap[item[TlUserDef.id]] = item + }) + + let resultList = [] + + for(let i = 0; i < list.length; i++){ + const item = list[i] + const companyId = item[TlChannelUserDef.companyId] + const userId = item[TlChannelUserDef.userId] + const userInfo = userMap[userId] || {} + const username = userInfo[TlUserDef.name] || '' + const userAvatar = userInfo[TlUserDef.avatarUrl] || '' + + let roleId = item[TlChannelUserDef.roleId] + let roleIdStr = '' + if(roleId == TlRoleInner.channel.creator.id){ + roleIdStr = TlRoleInner.channel.creator.name + }else if (roleId == TlRoleInner.channel.admin.id){ + roleIdStr = TlRoleInner.channel.admin.name + }else if (roleId == TlRoleInner.channel.member.id){ + roleIdStr = TlRoleInner.channel.member.name + }else{ + roleIdStr = '未知' + } + + let type = item[TlChannelUserDef.type] + let typeStr = TlChannelUserType.toStr(type) + let typeZnStr = TlChannelUserType.toZnStr(type) + + let status = item[TlChannelUserDef.status] + let statusStr = TlChannelUserStatus.toStr(status) + let statusZnStr = TlChannelUserStatus.toZnStr(status) + + resultList.push({ + userId, + companyId, + username, + userAvatar: await getAvatarOssUrl(userAvatar), + roleId, + roleIdStr, + type, + typeStr, + typeZnStr, + status, + statusStr, + statusZnStr, + createTime: item[TlChannelUserDef.createdAt] + }) + } + + return tlResponseSuccess("获取成功", { + list: resultList, + count: total + }) +} + +/** + * 添加群聊频道 - 管理端 + * @param {*} channelName + * @param {*} loginInfo + * @param {*} companyId + * @param {*} userId + * @param {*} canSearch + */ +const adminAddChannel = async function({ + channelName, companyId, userId, loginInfo, canSearch +}){ + if(!channelName){ + return tlResponseArgsError("请求参数错误") + } + + channelName = channelName.trim() + if(!channelName){ + return tlResponseArgsError("请求参数错误") + } + + if(channelName.length > 64){ + return tlResponseArgsError("频道名称长度不能超过64个字符") + } + + if(!checkIsId(companyId)){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(userId)){ + return tlResponseArgsError("请求参数错误") + } + + companyId = parseInt(companyId) + userId = parseInt(userId) + + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + const companyInfo = await companyService.getInfoById({ + id: companyId + }) + + if(Object.keys(companyInfo).length == 0){ + return tlResponseNotFound("企业不存在") + } + + const userInfo = await userService.getInfoById({ + companyId: companyId, + id: userId + }) + + if(Object.keys(userInfo).length == 0){ + return tlResponseNotFound("用户不存在") + } + + let flag = 0 + if(canSearch){ + flag = setBit(flag, TlChannelFlag.GROUP_CAN_BE_SEARCH, true) + }else { + flag = setBit(flag, TlChannelFlag.GROUP_CAN_BE_SEARCH, false) + } + + const channelInfo = await channelService.addInfo({ + companyId: companyId, + name: channelName, + type: TlChannelType.GROUP, + flag + }) + + if(Object.keys(channelInfo).length === 0){ + return tlResponseSvrError("创建频道失败") + } + + // 添加频道用户信息 + const channelUserInfo = await channelUserService.addInfo({ + companyId: companyId, + channelId: channelInfo[TlChannelDef.id], + type: TlChannelUserType.GROUP, + userId: userId, + roleId : TlRoleInner.channel.creator.id, + }) + + if(Object.keys(channelUserInfo).length === 0){ + return tlResponseSvrError("创频道失败") + } + + // 更新用户频道角色 + await userSessionService.updateUserChannelRoleMap({ + userId, + channelRoleMap: { + [channelInfo[TlChannelDef.id]]: TlRoleInner.channel.creator.id, + } + }) + + // 生成一条系统消息 + const channelChatSystemInfo = await channelChatService.addSystemChatnfo({ + companyId: loginUserCompanyId, + channelId: channelInfo[TlChannelDef.id], + message: '

' + `系统管理员为${userInfo[TlUserDef.name]}创建了群聊${channelName}` + '

', + other: JSON.stringify({ + [TlChannelChatOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag: 0 + }) + + if(Object.keys(channelChatSystemInfo).length == 0){ + return tlConsoleError("添加新频道, 生成系统消息失败") + } + + return tlResponseSuccess("创建成功", { + channelId: channelInfo[TlChannelDef.id] + }) } module.exports = { addChannel, - updateChannel, getChannelList, updateChannelName, getChannelInfo, getChannelNameById, - getChannelSimpleList, searchChannelById, + updateChannelCanSearch, + searchChannelChatList, getChannelChatList, getChannelChatListByChannelIdList, - getChannelGroupList + getChannelGroupList, + + adminUpdateChannel, + adminDeleteChannel, + adminGetChannelList, + adminAddChannel, + adminGetChannelUserList } \ No newline at end of file diff --git a/src/biz/channel/channel_chat_biz.js b/src/biz/channel/channel_chat_biz.js index ec279b0..5629601 100644 --- a/src/biz/channel/channel_chat_biz.js +++ b/src/biz/channel/channel_chat_biz.js @@ -1,21 +1,21 @@ const { tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, - setBit + tlResponseNotFound, tlResponseSuccess, + setBit, checkIsId, sanitizeHTML } = require('../../utils/utils') -const { getAvatarOssUrl } = require('../../utils/oss/oss') const channelService = require('../../service/channel/tl_channel_service') const channelChatService = require('../../service/channel/tl_channel_chat_service') const channelUserService = require('../../service/channel/tl_channel_user_service') -const userSessionService = require('../../service/user/tl_user_session_service') -const userService = require('../../service/user/tl_user_service') +const channelFileService = require('../../service/channel/tl_channel_file_service') +const channelMediaService = require('../../service/channel/tl_channel_media_service') const userReadBiz = require('../user/user_read_biz') const { fields: channelChatFields } = require('../../tables/tl_channel_chat') const { fields: channelUserFields} = require('../../tables/tl_channel_user') -const { fields: userFields } = require('../../tables/tl_user') const { fields: channelFields } = require('../../tables/tl_channel') +const { fields: channelFileFields } = require('../../tables/tl_channel_file') +const { fields: channelMediaFields } = require('../../tables/tl_channel_media') const { Def: TlChannelChatDef, @@ -26,12 +26,16 @@ const { const { Def: TlChannelUserDef } = channelUserFields -const { - Def: TlUserDef -} = userFields const { Def: TlChannelDef, Type: TlChannelType } = channelFields +const { + Type: TlChannelFileType +} = channelFileFields +const { + Type: TlChannelMediaType +} = channelMediaFields + @@ -49,11 +53,45 @@ const addFriendChannelChat = async function ({ loginInfo, message, toUserId, toUserName, channelId, atUserId, atUserName }) { if (!message) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } + if(message.length > 8192){ + return tlResponseArgsError("消息内容过长") + } + + // 防止xss攻击 + message = sanitizeHTML(message) + if (!channelId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + if(toUserId){ + toUserId = parseInt(toUserId) + if(!checkIsId(toUserId)){ + return tlResponseArgsError("请求参数错误") + } + } + + if(atUserId){ + atUserId = parseInt(atUserId) + if(!checkIsId(atUserId)){ + return tlResponseArgsError("请求参数错误") + } + } + + if(toUserName && toUserName.length > 64){ + return tlResponseArgsError("请求参数错误") + } + + if(atUserName && atUserName.length > 64){ + return tlResponseArgsError("请求参数错误") } const { @@ -70,6 +108,22 @@ const addFriendChannelChat = async function ({ return tlResponseNotFound("发送失败,频道不存在") } + const channelType = channelInfo[TlChannelDef.type] + if(channelType !== TlChannelType.FRIEND){ + return tlResponseArgsError("发送失败,频道类型错误") + } + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + // 设置@标志 let flag = 0 if (atUserId && atUserName) { @@ -100,10 +154,10 @@ const addFriendChannelChat = async function ({ ]) const friendUser = channelUserList.find(item => item[TlChannelUserDef.userId] !== loginUserId) if(!friendUser){ - return tlResponseNotFound("发送失败,好友不存在") + return tlResponseNotFound("发送失败,对方已经不是您的好友") } - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } const info = await channelChatService.addFriendChatInfo({ @@ -163,11 +217,34 @@ const addGroupChannelChat = async function ({ loginInfo, message, channelId, atUserId, atUserName, atAll }) { if (!message) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } + if(message.length > 8192){ + return tlResponseArgsError("消息内容过长") + } + + // 防止xss攻击 + message = sanitizeHTML(message) + if (!channelId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + if(atUserId){ + atUserId = parseInt(atUserId) + if(!checkIsId(atUserId)){ + return tlResponseArgsError("请求参数错误") + } + } + + if(atUserName && atUserName.length > 64){ + return tlResponseArgsError("请求参数错误") } const { @@ -184,6 +261,22 @@ const addGroupChannelChat = async function ({ return tlResponseNotFound("发送失败,频道不存在") } + const channelType = channelInfo[TlChannelDef.type] + if(channelType !== TlChannelType.GROUP){ + return tlResponseArgsError("发送失败,频道类型错误") + } + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + // 设置@标志 let flag = 0 if (atUserId && atUserName) { @@ -247,140 +340,6 @@ const addGroupChannelChat = async function ({ }) } -/** - * 撤回群组/好友消息 - * @param {*} loginInfo - * @param {*} channelId - * @param {*} messageId - * @param {*} messageType - */ -const rollbackChannelChat = async function ({ - loginInfo, channelId, messageId, messageType -}) { - const { - loginUserCompanyId, loginUserId, loginUsername, - } = loginInfo - - if (!channelId) { - return tlResponseArgsError("请求参数为空") - } - - if (!messageId) { - return tlResponseArgsError("请求参数为空") - } - - if (!messageType) { - return tlResponseArgsError("请求参数为空") - } - - // 频道是否存在 - const channelInfo = await channelService.getInfoById({ - companyId: loginUserCompanyId, - id: channelId - }) - - if(Object.keys(channelInfo).length == 0){ - return tlResponseNotFound("撤回失败,频道不存在") - } - - // 消息是否存在 - let messageInfo = {} - if([ - TlChannelChatType.FRIEND, - TlChannelChatType.GROUP, - - // 不支持撤回系统消息 - // TlChannelChatType.SYSTEM, - ].includes(messageType)){ - messageInfo = await channelChatService.getInfoById({ - companyId: loginUserCompanyId, - id: messageId - }) - - } - - if(Object.keys(messageInfo).length == 0){ - return tlResponseNotFound("撤回失败,消息不存在") - } - - // 不能撤回他人消息 - if(messageInfo[TlChannelChatDef.fromUserId] !== loginUserId){ - return tlResponseForbidden("撤回失败") - } - - // 时间是否超过2分钟 - const now = Date.now() - const messageTimeStamp = messageInfo[TlChannelChatDef.messageTimeStamp] - if(now - messageTimeStamp > 2 * 60 * 1000){ - return tlResponseForbidden("撤回失败,消息已超过2分钟") - } - - // 删除原有消息 - let deleteRes = 0 - if([ - TlChannelChatType.FRIEND, - TlChannelChatType.GROUP, - ].includes(messageType)){ - deleteRes = await channelChatService.deleteInfoById({ - companyId: loginUserCompanyId, - id: messageId - }) - }else{ - return tlResponseSvrError("撤回失败") - } - - if(deleteRes == 0){ - return tlResponseSvrError("撤回失败") - } - - let rollbackMessage = '' - if([ - TlChannelChatType.FRIEND, - TlChannelChatType.GROUP, - ].includes(messageType)){ - rollbackMessage = `${loginUsername}撤回了一条消息` - } - - // 生成撤回系统消息 - const rollbackInfo = await channelChatService.addSystemChatnfo({ - companyId: loginUserCompanyId, - channelId, - message: '

' + rollbackMessage + '

', - other: JSON.stringify({ - [TlChannelChatOther.ip]: '', - }), - messageTimeStamp: Date.now(), - messageVersion: 'v1', - flag: 0 - }) - - if(Object.keys(rollbackInfo).length == 0){ - return tlResponseSvrError("撤回失败") - } - - // 更新用户已读消息 - const updateUserReadRes = await userReadBiz.updateChannelChatRead({ - loginInfo, channelId, - latestReadId: rollbackInfo[TlChannelChatDef.id], - }) - - if(!updateUserReadRes.success){ - return tlResponseSvrError("撤回失败") - } - - return tlResponseSuccess("撤回成功", { - id: rollbackInfo[TlChannelChatDef.id], - message: rollbackInfo[TlChannelChatDef.message], - type: rollbackInfo[TlChannelChatDef.type], - createTime: rollbackInfo[TlChannelChatDef.createdAt], - fromUserId: rollbackInfo[TlChannelChatDef.fromUserId], - fromUserName: rollbackInfo[TlChannelChatDef.fromUserName], - hasRead: true, - messageTimeStamp: rollbackInfo[TlChannelChatDef.messageTimeStamp], - messageVersion: rollbackInfo[TlChannelChatDef.messageVersion], - }) -} - /** * 回复好友聊天 * @param {*} loginInfo @@ -399,19 +358,47 @@ const addReplyFriendChannelChat = async function ({ } = loginInfo if (!message) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } + if(message.length > 8192){ + return tlResponseArgsError("消息内容过长") + } + + // 防止xss攻击 + message = sanitizeHTML(message) + if (!channelId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } if (!messageId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + messageId = parseInt(messageId) + if(!checkIsId(messageId)){ + return tlResponseArgsError("请求参数错误") } if (!messageType) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + if(atUserId){ + atUserId = parseInt(atUserId) + if(!checkIsId(atUserId)){ + return tlResponseArgsError("请求参数错误") + } + } + + if(atUserName && atUserName.length > 64){ + return tlResponseArgsError("请求参数错误") } // 频道是否存在 @@ -423,6 +410,17 @@ const addReplyFriendChannelChat = async function ({ return tlResponseNotFound("发送失败,频道不存在") } + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + const channelType = channelInfo[TlChannelDef.type] if(channelType !== TlChannelType.FRIEND){ return tlResponseArgsError("发送失败,频道类型错误") @@ -442,6 +440,22 @@ const addReplyFriendChannelChat = async function ({ id: messageId }) + }else if([ + TlChannelFileType.OFFLINE, + TlChannelFileType.P2P, + ].includes(messageType)){ + messageInfo = await channelFileService.getInfoById({ + companyId: loginUserCompanyId, + id: messageId + }) + }else if([ + TlChannelMediaType.AUDIO, + TlChannelMediaType.VIDEO, + ].includes(messageType)){ + messageInfo = await channelMediaService.getInfoById({ + companyId: loginUserCompanyId, + id: messageId + }) } if(Object.keys(messageInfo).length == 0){ return tlResponseNotFound("发送失败,回复消息不存在") @@ -502,6 +516,28 @@ const addReplyFriendChannelChat = async function ({ TlChannelChatType.GROUP, ].includes(messageType)){ replyToMessageContent = messageInfo[TlChannelChatDef.message] + }else if([ + TlChannelFileType.OFFLINE, + TlChannelFileType.P2P, + ].includes(messageType)){ + if(messageType == TlChannelFileType.P2P){ + replyToMessageContent = "在线文件" + }else if(messageType == TlChannelFileType.OFFLINE){ + replyToMessageContent = "离线文件" + }else{ + replyToMessageContent = "未知文件消息" + } + }else if([ + TlChannelMediaType.VIDEO, + TlChannelMediaType.AUDIO, + ].includes(messageType)){ + if(messageType == TlChannelMediaType.VIDEO){ + replyToMessageContent = "视频通话" + }else if(messageType == TlChannelMediaType.AUDIO){ + replyToMessageContent = "语音通话" + }else{ + replyToMessageContent = "未知音视频消息" + } }else{ replyToMessageContent = '未知消息' } @@ -546,19 +582,47 @@ const addReplyGroupChannelChat = async function ({ } = loginInfo if (!message) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } + if(message.length > 8192){ + return tlResponseArgsError("消息内容过长") + } + + // 防止xss攻击 + message = sanitizeHTML(message) + if (!channelId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } if (!messageId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + messageId = parseInt(messageId) + if(!checkIsId(messageId)){ + return tlResponseArgsError("请求参数错误") } if (!messageType) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + if(atUserId){ + atUserId = parseInt(atUserId) + if(!checkIsId(atUserId)){ + return tlResponseArgsError("请求参数错误") + } + } + + if(atUserName && atUserName.length > 64){ + return tlResponseArgsError("请求参数错误") } // 频道是否存在 @@ -571,6 +635,17 @@ const addReplyGroupChannelChat = async function ({ return tlResponseNotFound("发送失败,频道不存在") } + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + const channelType = channelInfo[TlChannelDef.type] if(channelType !== TlChannelType.GROUP){ return tlResponseArgsError("发送失败,频道类型错误") @@ -589,6 +664,22 @@ const addReplyGroupChannelChat = async function ({ companyId: loginUserCompanyId, id: messageId }) + }else if([ + TlChannelFileType.OFFLINE, + TlChannelFileType.P2P, + ].includes(messageType)){ + messageInfo = await channelFileService.getInfoById({ + companyId: loginUserCompanyId, + id: messageId + }) + }else if([ + TlChannelMediaType.AUDIO, + TlChannelMediaType.VIDEO, + ].includes(messageType)){ + messageInfo = await channelMediaService.getInfoById({ + companyId: loginUserCompanyId, + id: messageId + }) } if(Object.keys(messageInfo).length == 0){ @@ -652,6 +743,28 @@ const addReplyGroupChannelChat = async function ({ TlChannelChatType.GROUP, ].includes(messageType)){ replyToMessageContent = messageInfo[TlChannelChatDef.message] + }else if([ + TlChannelFileType.OFFLINE, + TlChannelFileType.P2P, + ].includes(messageType)){ + if(messageType == TlChannelFileType.P2P){ + replyToMessageContent = "在线文件" + }else if(messageType == TlChannelFileType.OFFLINE){ + replyToMessageContent = "离线文件" + }else{ + replyToMessageContent = "未知文件消息" + } + }else if([ + TlChannelMediaType.VIDEO, + TlChannelMediaType.AUDIO, + ].includes(messageType)){ + if(messageType == TlChannelMediaType.VIDEO){ + replyToMessageContent = "视频通话" + }else if(messageType == TlChannelMediaType.AUDIO){ + replyToMessageContent = "语音通话" + }else{ + replyToMessageContent = "未知音视频消息" + } }else{ replyToMessageContent = '未知消息' } @@ -679,13 +792,10 @@ const addReplyGroupChannelChat = async function ({ } - module.exports = { addFriendChannelChat, addGroupChannelChat, addReplyFriendChannelChat, addReplyGroupChannelChat, - - rollbackChannelChat, } \ No newline at end of file diff --git a/src/biz/channel/channel_file_biz.js b/src/biz/channel/channel_file_biz.js new file mode 100644 index 0000000..5649e3b --- /dev/null +++ b/src/biz/channel/channel_file_biz.js @@ -0,0 +1,350 @@ +const { + tlResponseArgsError, tlResponseSvrError, + tlResponseNotFound, tlResponseSuccess, checkIsId +} = require('../../utils/utils') +const { + getOssUrl +} = require('../../utils/oss/oss') +const channelFileService = require('../../service/channel/tl_channel_file_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const cloudFileService = require('../../service/cloud/tl_cloud_file_service') + +const userReadBiz = require('../user/user_read_biz') + +const { fields: channelFileFields } = require('../../tables/tl_channel_file') +const { fields: channelUserFields} = require('../../tables/tl_channel_user') +const { fields: cloudFileFields } = require('../../tables/tl_cloud_file') + +const { + Def: TlChannelFileDef, Type: TlChannelFileType, + Status: TlChannelFileStatus, Other: TlChannelFileOther, +} = channelFileFields +const { Def: TlChannelUserDef } = channelUserFields +const { Def: TlCloudFileDef } = cloudFileFields + + +/** + * 发送好友频道文件消息 + * @param {*} loginInfo + * @param {*} cloudFileId + * @param {*} type + * @param {*} channelId + */ +const addFriendChannelFile = async function ({ + loginInfo, cloudFileId, type, channelId +}) { + if (!cloudFileId) { + return tlResponseArgsError("请求参数错误") + } + + cloudFileId = parseInt(cloudFileId) + if (!checkIsId(cloudFileId)) { + return tlResponseArgsError("请求参数错误") + } + + if (!type) { + return tlResponseArgsError("请求参数错误") + } + + if (!channelId) { + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if (!checkIsId(channelId)) { + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, loginUsername, + loginUserAvatar + } = loginInfo; + + // 发送好友媒体消息,如果没有找到好友,说明可能已被对方删除 + const channelUserList = await channelUserService.getListByChannelId({ + companyId: loginUserCompanyId, + channelId + }, [ + TlChannelUserDef.userId, + TlChannelUserDef.status + ]) + const friendUser = channelUserList.find(item => item[TlChannelUserDef.userId] !== loginUserId) + if(!friendUser){ + return tlResponseNotFound("发送失败,对方已经不是您的好友") + } + + // 当前用户是否存在频道 + const channelUserInfo = channelUserList.find(item => item[TlChannelUserDef.userId] == loginUserId) + if(!channelUserInfo){ + return tlResponseNotFound("非法操作") + } + + const info = await channelFileService.addInfo({ + companyId: loginUserCompanyId, + channelId, + flag: 0, + type: type, + status: TlChannelFileStatus.INIT, + cloudFileId: cloudFileId, + fromUserId: loginUserId, + fromUserName: loginUsername, + other: JSON.stringify({ + [TlChannelFileOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1' + }) + + if (Object.keys(info).length == 0) { + return tlResponseSvrError("发送失败") + } + + // 更新用户已读消息 + const updateUserReadRes = await userReadBiz.updateChannelFileRead({ + loginInfo, channelId, + latestReadId: info[TlChannelFileDef.id], + }) + + if(!updateUserReadRes.success){ + return tlResponseSvrError("发送失败") + } + + const fileType = info[TlChannelFileDef.type] + let message = "" + if(fileType == TlChannelFileType.P2P){ + message = "在线文件" + }else if(fileType == TlChannelFileType.OFFLINE){ + message = "离线文件" + } + + const cloudFile = await cloudFileService.getInfoById({ + companyId: loginUserCompanyId, + id: cloudFileId + }, [ + TlCloudFileDef.id, + TlCloudFileDef.originFileName, + TlCloudFileDef.fileSize, + TlCloudFileDef.fileUrl, + ]) + + if (!cloudFile) { + return tlResponseSvrError("发送失败") + } + + let fileUrl = cloudFile[TlCloudFileDef.fileUrl] + fileUrl = await getOssUrl(fileUrl) + + return tlResponseSuccess("发送成功", { + id: info[TlChannelFileDef.id], + message: message, + fromUserName: info[TlChannelFileDef.fromUserName], + type: info[TlChannelFileDef.type], + status: info[TlChannelFileDef.status], + cloudFileId: cloudFileId, + createTime: info[TlChannelFileDef.createdAt], + fromUserId: info[TlChannelFileDef.fromUserId], + fromUserName: info[TlChannelFileDef.fromUserName], + fromUserAvatar: loginUserAvatar, + fileName: cloudFile[TlCloudFileDef.originFileName], + fileSize: cloudFile[TlCloudFileDef.fileSize], + fileUrl, + hasRead: true, + messageTimeStamp: info[TlChannelFileDef.messageTimeStamp], + messageVersion: info[TlChannelFileDef.messageVersion], + }) +} + + +/** + * 发送群聊频道媒体流消息 + * @param {*} loginInfo + * @param {*} file + * @param {*} type + * @param {*} other + * @param {*} channelId + */ +const addGroupChannelFile = async function ({ + loginInfo, cloudFileId, type, channelId +}) { + if (!cloudFileId) { + return tlResponseArgsError("请求参数错误") + } + + cloudFileId = parseInt(cloudFileId) + if (!checkIsId(cloudFileId)) { + return tlResponseArgsError("请求参数错误") + } + + if (!type) { + return tlResponseArgsError("请求参数错误") + } + + if (!channelId) { + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if (!checkIsId(channelId)) { + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, loginUsername, + loginUserAvatar + } = loginInfo; + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + + const info = await channelFileService.addInfo({ + companyId: loginUserCompanyId, + channelId, + flag: 0, + type: type, + status: TlChannelFileStatus.INIT, + cloudFileId: cloudFileId, + fromUserId: loginUserId, + fromUserName: loginUsername, + other: JSON.stringify({ + [TlChannelFileOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1' + }) + + if (Object.keys(info).length == 0) { + return tlResponseSvrError("发送群聊频道媒体流失败") + } + + // 更新用户已读消息 + const updateUserReadRes = await userReadBiz.updateChannelFileRead({ + loginInfo, channelId, + latestReadId: info[TlChannelFileDef.id], + }) + + if(!updateUserReadRes.success){ + return tlResponseSvrError("发送失败") + } + + const fileType = info[TlChannelFileDef.type] + let message = "" + if(fileType == TlChannelFileType.P2P){ + message = "在线文件" + }else if(fileType == TlChannelFileType.OFFLINE){ + message = "离线文件" + } + + const cloudFile = await cloudFileService.getInfoById({ + companyId: loginUserCompanyId, + id: cloudFileId + }, [ + TlCloudFileDef.id, + TlCloudFileDef.originFileName, + TlCloudFileDef.fileSize, + TlCloudFileDef.fileUrl, + ]) + + if (!cloudFile) { + return tlResponseSvrError("发送失败") + } + + let fileUrl = cloudFile[TlCloudFileDef.fileUrl] + fileUrl = await getOssUrl(fileUrl) + + return tlResponseSuccess("发送成功", { + id: info[TlChannelFileDef.id], + message: message, + fromUserName: info[TlChannelFileDef.fromUserName], + type: info[TlChannelFileDef.type], + status: info[TlChannelFileDef.status], + cloudFileId: cloudFileId, + createTime: info[TlChannelFileDef.createdAt], + fromUserId: info[TlChannelFileDef.fromUserId], + fromUserName: info[TlChannelFileDef.fromUserName], + fromUserAvatar: loginUserAvatar, + fileName: cloudFile[TlCloudFileDef.originFileName], + fileSize: cloudFile[TlCloudFileDef.fileSize], + fileUrl, + hasRead: true, + messageTimeStamp: info[TlChannelFileDef.messageTimeStamp], + messageVersion: info[TlChannelFileDef.messageVersion], + }) +} + + +/** + * 发送群聊频道离线文件消息 + * @param {*} loginInfo + * @param {*} cloudFileId + * @param {*} other + * @param {*} channelId + */ +const addGroupChannelP2PFile = async function ({ + loginInfo, cloudFileId, channelId +}) { + return await addGroupChannelFile({ + loginInfo, cloudFileId, type: TlChannelFileType.P2P, channelId + }) +} + +/** + * 发送群聊频道在线文件消息 + * @param {*} loginInfo + * @param {*} cloudFileId + * @param {*} other + * @param {*} channelId + */ +const addGroupChannelOfflineFile = async function ({ + loginInfo, cloudFileId, channelId +}) { + return await addGroupChannelFile({ + loginInfo, cloudFileId, type: TlChannelFileType.OFFLINE, channelId + }) +} + +/** + * 发送好友频道离线文件消息 + * @param {*} loginInfo + * @param {*} cloudFileId + * @param {*} other + * @param {*} channelId + */ +const addFirendChannelP2PFile = async function ({ + loginInfo, cloudFileId, channelId +}) { + return await addFriendChannelFile({ + loginInfo, cloudFileId, type: TlChannelFileType.P2P, channelId + }) +} + +/** + * 发送好友频道在线文件消息 + * @param {*} loginInfo + * @param {*} cloudFileId + * @param {*} other + * @param {*} channelId + */ +const addFriendChannelOfflineFile = async function ({ + loginInfo, cloudFileId, channelId +}) { + return await addFriendChannelFile({ + loginInfo, cloudFileId, type: TlChannelFileType.OFFLINE, channelId + }) +} + + +module.exports = { + addFirendChannelP2PFile, + addFriendChannelOfflineFile, + + addGroupChannelP2PFile, + addGroupChannelOfflineFile +} \ No newline at end of file diff --git a/src/biz/channel/channel_media_biz.js b/src/biz/channel/channel_media_biz.js new file mode 100644 index 0000000..17315db --- /dev/null +++ b/src/biz/channel/channel_media_biz.js @@ -0,0 +1,291 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, checkIsId +} = require('../../utils/utils') +const channelMediaService = require('../../service/channel/tl_channel_media_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const userReadBiz = require('../user/user_read_biz') + +const { fields: channelMediaFields } = require('../../tables/tl_channel_media') +const { fields: channelUserFields} = require('../../tables/tl_channel_user') +const { + Def: TlChannelMediaDef, Type: TlChannelMediaType, + Status: TlChannelMediaStatus, Other: TlChannelMediaOther +} = channelMediaFields +const { + Def: TlChannelUserDef +} = channelUserFields + +/** + * 发送好友频道媒体流通话消息 + * @param {*} loginInfo + * @param {*} media + * @param {*} type + * @param {*} toUserId + * @param {*} toUserName + * @param {*} channelId + */ +const addFriendChannelMedia = async function ({ + loginInfo, media, type, channelId +}) { + if (!media) { + return tlResponseArgsError("请求参数错误") + } + + if (!type) { + return tlResponseArgsError("请求参数错误") + } + + if (!channelId) { + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if (!checkIsId(channelId)) { + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, loginUsername, + loginUserAvatar + } = loginInfo; + + // 发送好友媒体消息,如果没有找到好友,说明可能已被对方删除 + const channelUserList = await channelUserService.getListByChannelId({ + companyId: loginUserCompanyId, + channelId + }, [ + TlChannelUserDef.userId, + TlChannelUserDef.status + ]) + const friendUser = channelUserList.find(item => item[TlChannelUserDef.userId] !== loginUserId) + if(!friendUser){ + return tlResponseNotFound("发送失败,对方已经不是您的好友") + } + + // 当前用户是否存在频道 + const channelUserInfo = channelUserList.find(item => item[TlChannelUserDef.userId] == loginUserId) + if(!channelUserInfo){ + return tlResponseNotFound("非法操作") + } + + const info = await channelMediaService.addInfo({ + companyId: loginUserCompanyId, + channelId, + flag: 0, + type: type, + status: TlChannelMediaStatus.INIT, + media: JSON.stringify(media), + fromUserId: loginUserId, + fromUserName: loginUsername, + other: JSON.stringify({ + [TlChannelMediaOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1' + }) + + if (Object.keys(info).length == 0) { + return tlResponseSvrError("发送失败") + } + + // 更新用户已读消息 + const updateUserReadRes = await userReadBiz.updateChannelMediaRead({ + loginInfo, channelId, + latestReadId: info[TlChannelMediaDef.id], + }) + + if(!updateUserReadRes.success){ + return tlResponseSvrError("发送失败") + } + + const mediaType = info[TlChannelMediaDef.type] + let message = "" + if(mediaType == TlChannelMediaType.AUDIO){ + message = "语音通话" + }else if(mediaType == TlChannelMediaType.VIDEO){ + message = "视频通话" + } + + return tlResponseSuccess("发送成功", { + id: info[TlChannelMediaDef.id], + media: JSON.parse(info[TlChannelMediaDef.media]), + message: message, + fromUserName: info[TlChannelMediaDef.fromUserName], + type: info[TlChannelMediaDef.type], + status: info[TlChannelMediaDef.status], + createTime: info[TlChannelMediaDef.createdAt], + fromUserId: info[TlChannelMediaDef.fromUserId], + fromUserName: info[TlChannelMediaDef.fromUserName], + fromUserAvatar: loginUserAvatar, + hasRead: true, + messageTimeStamp: info[TlChannelMediaDef.messageTimeStamp], + messageVersion: info[TlChannelMediaDef.messageVersion], + }) +} + +/** + * 发送好友频道语音通话消息 + * @param {*} loginInfo + * @param {*} media + * @param {*} channelId + */ +const addFriendChannelAudio = async function ({ + loginInfo, media, channelId +}) { + return await addFriendChannelMedia({ + loginInfo, media, type: TlChannelMediaType.AUDIO, channelId + }) +} + +/** + * 发送好友频道视频通话消息 + * @param {*} loginInfo + * @param {*} media + * @param {*} channelId + */ +const addFriendChannelVideo = async function ({ + loginInfo, media, channelId +}) { + return await addFriendChannelMedia({ + loginInfo, media, type: TlChannelMediaType.VIDEO, channelId + }) +} + +/** + * 发送群聊频道媒体流消息 + * @param {*} loginInfo + * @param {*} media + * @param {*} type + * @param {*} other + * @param {*} channelId + */ +const addGroupChannelMedia = async function ({ + loginInfo, media, type, channelId +}) { + if (!media) { + return tlResponseArgsError("请求参数错误") + } + + if (!type) { + return tlResponseArgsError("请求参数错误") + } + + if (!channelId) { + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if (!checkIsId(channelId)) { + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, loginUsername, + loginUserAvatar + } = loginInfo + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + + const info = await channelMediaService.addInfo({ + companyId: loginUserCompanyId, + channelId, + flag: 0, + type: type, + status: TlChannelMediaStatus.INIT, + media: JSON.stringify(media), + fromUserId: loginUserId, + fromUserName: loginUsername, + other: JSON.stringify({ + [TlChannelMediaOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1' + }) + + if (Object.keys(info).length == 0) { + return tlResponseSvrError("发送失败") + } + + // 更新用户已读消息 + const updateUserReadRes = await userReadBiz.updateChannelMediaRead({ + loginInfo, channelId, + latestReadId: info[TlChannelMediaDef.id], + }) + + if(!updateUserReadRes.success){ + return tlResponseSvrError("发送失败") + } + + const mediaType = info[TlChannelMediaDef.type] + let message = "" + if(mediaType == TlChannelMediaType.AUDIO){ + message = "语音通话" + }else if(mediaType == TlChannelMediaType.VIDEO){ + message = "视频通话" + } + + return tlResponseSuccess("发送成功", { + id: info[TlChannelMediaDef.id], + media: JSON.parse(info[TlChannelMediaDef.media]), + message: message, + fromUserName: info[TlChannelMediaDef.fromUserName], + type: info[TlChannelMediaDef.type], + status: info[TlChannelMediaDef.status], + createTime: info[TlChannelMediaDef.createdAt], + fromUserId: info[TlChannelMediaDef.fromUserId], + fromUserName: info[TlChannelMediaDef.fromUserName], + fromUserAvatar: loginUserAvatar, + hasRead: true, + messageTimeStamp: info[TlChannelMediaDef.messageTimeStamp], + messageVersion: info[TlChannelMediaDef.messageVersion], + }) +} + + +/** + * 发送群聊频道语音消息 + * @param {*} loginInfo + * @param {*} media + * @param {*} other + * @param {*} channelId + */ +const addGroupChannelAudio = async function ({ + loginInfo, media, channelId +}) { + return await addGroupChannelMedia({ + loginInfo, media, type: TlChannelMediaType.AUDIO, channelId + }) +} + +/** + * 发送群聊频道视频消息 + * @param {*} loginInfo + * @param {*} media + * @param {*} other + * @param {*} channelId + */ +const addGroupChannelVideo = async function ({ + loginInfo, media, channelId +}) { + return await addGroupChannelMedia({ + loginInfo, media, type: TlChannelMediaType.VIDEO, channelId + }) +} + + +module.exports = { + addFriendChannelAudio, + addFriendChannelVideo, + addGroupChannelAudio, + addGroupChannelVideo, +} \ No newline at end of file diff --git a/src/biz/channel/channel_notice_biz.js b/src/biz/channel/channel_notice_biz.js new file mode 100644 index 0000000..e351236 --- /dev/null +++ b/src/biz/channel/channel_notice_biz.js @@ -0,0 +1,161 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, checkIsId +} = require('../../utils/utils') +const channelNoticeService = require('../../service/channel/tl_channel_notice_service') +const userService = require('../../service/user/tl_user_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') + +const { fields: channelNoticeFields } = require('../../tables/tl_channel_notice') +const { fields: userFields } = require('../../tables/tl_user') + +const { + Def: TlChannelNoticeDef, +} = channelNoticeFields + +const { + Def: TlUserDef, +} = userFields + + +/** + * 发布频道公告 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} content + * @returns + */ +const addNotice = async function({ + loginInfo, channelId, content +}){ + if(!channelId) { + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + if(!content) { + return tlResponseArgsError("请求参数错误") + } + + if(content.length > 8096){ + return tlResponseArgsError("内容过长") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + + const notice = await channelNoticeService.addInfo({ + companyId: loginUserCompanyId, + channelId, + userId: loginUserId, + content: content, + }) + + if(Object.keys(notice).length === 0){ + return tlResponseSvrError("发布失败") + } + + return tlResponseSuccess("发布成功") +} + +/** + * 获取频道通知记录 + * @param {*} loginInfo + * @param {*} channelId + */ +const getNoticeList = async function({ + loginInfo, channelId +}){ + if (!channelId) { + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + + const noticeList = await channelNoticeService.getListByChannelId({ + companyId: loginUserCompanyId, + channelId, + }, [ + TlChannelNoticeDef.id, + TlChannelNoticeDef.userId, + TlChannelNoticeDef.content, + TlChannelNoticeDef.createdAt, + ]) + + if(!noticeList){ + return tlResponseSvrError("获取失败") + } + + // 获取用户名称 + const userIdList = [] + noticeList.forEach(element => { + userIdList.push(element[TlChannelNoticeDef.userId]) + }); + + const userList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: userIdList, + }, [ + TlUserDef.id, + TlUserDef.name, + ]) + + const userMap = {} + userList.forEach(element => { + userMap[element[TlUserDef.id]] = element[TlUserDef.name] + }); + + let resultList = [] + noticeList.forEach(element => { + const username = userMap[element[TlChannelNoticeDef.userId]] + resultList.push({ + id: element[TlChannelNoticeDef.id], + username: username, + content: element[TlChannelNoticeDef.content], + createTime: element[TlChannelNoticeDef.createdAt], + }) + }); + + return tlResponseSuccess("查询成功", resultList) +} + + + +module.exports = { + addNotice, + getNoticeList +} \ No newline at end of file diff --git a/src/biz/channel/channel_user_biz.js b/src/biz/channel/channel_user_biz.js index 50f42a3..eba4875 100644 --- a/src/biz/channel/channel_user_biz.js +++ b/src/biz/channel/channel_user_biz.js @@ -1,6 +1,6 @@ const { - tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, setBit, checkBit + tlResponseArgsError, tlResponseSvrError, + tlResponseNotFound, tlResponseSuccess, setBit, checkIsId } = require('../../utils/utils') const channelService = require('../../service/channel/tl_channel_service') const channelUserService = require('../../service/channel/tl_channel_user_service') @@ -14,7 +14,7 @@ const { fields: channelChatFields } = require('../../tables/tl_channel_chat') const { fields: userFields } = require('../../tables/tl_user') const { fields: userFriendFields } = require('../../tables/tl_user_friend') const { fields: channelFields } = require('../../tables/tl_channel') -const { getOssUrl, getAvatarOssUrl } = require('../../utils/oss/oss') +const { getAvatarOssUrl } = require('../../utils/oss/oss') const { Def: TlChannelUserDef, Type: TlChannelUserType, Flag: TlChannelUserFlag } = channelUserFields const { Def : TlUserDef } = userFields @@ -22,28 +22,46 @@ const { Def: TlUserFriendDef } = userFriendFields const { Def: TlChannelDef, Type: TlChannelType } = channelFields const { Def: TlChannelChatDef, Other: TlChannelChatOther } = channelChatFields + + /** * 添加频道用户 * @param {*} loginInfo * @param {*} channelId * @param {*} userId * @param {*} roleId + * @param {*} isShare + * @param {*} isInvite */ -const addChannelUser = async function({ loginInfo, channelId, userId, roleId }){ +const addChannelUser = async function({ + loginInfo, channelId, userId, roleId, isShare = false, isInvite = false +}){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } if(!userId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + userId = parseInt(userId) + if(!checkIsId(userId)){ + return tlResponseArgsError("请求参数错误") } if(!roleId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + roleId = parseInt(roleId) + if(!checkIsId(roleId)){ + return tlResponseArgsError("请求参数错误") } const { - loginUserCompanyId, loginUserId, loginUsername + loginUserCompanyId, loginUserId, loginUsername, loginUserRoleId } = loginInfo const channelInfo = await channelService.getInfoById({ @@ -82,11 +100,19 @@ const addChannelUser = async function({ loginInfo, channelId, userId, roleId }){ TlUserDef.name ]) + let message = '

' + userInfo[TlUserDef.name] + "加入频道" + '

'; + if(isInvite){ + message = '

' + loginUsername + "邀请 " + userInfo[TlUserDef.name] + "加入频道" + '

'; + } + if(isShare){ + message = '

' + loginUsername + "通过分享加入频道" + '

'; + } + // 生成邀请消息 const channelMessage = await channelChatService.addSystemChatnfo({ companyId: loginUserCompanyId, channelId, - message: '

' + loginUsername + "邀请 " + userInfo[TlUserDef.name] + "加入频道" + '

', + message: message, other: JSON.stringify({ [TlChannelChatOther.ip]: '', }), @@ -114,13 +140,13 @@ const addChannelUser = async function({ loginInfo, channelId, userId, roleId }){ // 更新用户频道角色 await userSessionService.updateUserChannelRoleMap({ - userId: loginUserId, + userId, channelRoleMap: { [channelId]: roleId } }) - return tlResponseSuccess("添加频道用户成功") + return tlResponseSuccess("添加成功") } /** @@ -132,15 +158,25 @@ const addChannelUser = async function({ loginInfo, channelId, userId, roleId }){ */ const addChannelUserList = async function({ loginInfo, channelId, userIdList, roleId }){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } if(!userIdList){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + for (let i = 0; i < userIdList.length; i++){ + userIdList[i] = parseInt(userIdList[i]) + if(!checkIsId(userIdList[i])){ + return tlResponseArgsError("请求参数错误") + } } if(userIdList.length == 0){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } if(userIdList.length > 100){ @@ -148,13 +184,29 @@ const addChannelUserList = async function({ loginInfo, channelId, userIdList, ro } if(!roleId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + roleId = parseInt(roleId) + if(!checkIsId(roleId)){ + return tlResponseArgsError("请求参数错误") } const { loginUserCompanyId, loginUserId, loginUsername } = loginInfo + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + const channelInfo = await channelService.getInfoById({ companyId: loginUserCompanyId, id: channelId @@ -245,7 +297,7 @@ const addChannelUserList = async function({ loginInfo, channelId, userIdList, ro } }) - return tlResponseSuccess("添加频道用户成功", { + return tlResponseSuccess("添加成功", { id: channelMessage[TlChannelChatDef.id], message: channelMessage[TlChannelChatDef.message], type: channelMessage[TlChannelChatDef.type], @@ -257,39 +309,6 @@ const addChannelUserList = async function({ loginInfo, channelId, userIdList, ro }) } -/** - * 分享加入群聊 - * @param {*} loginInfo - * @param {*} channelId - */ -const shareJoinGroupChannel = async function({ loginInfo, channelId }){ - if(!channelId){ - return tlResponseArgsError("请求参数为空") - } - - const { - loginUserCompanyId, loginUserId, loginUsername - } = loginInfo - - const channelInfo = await channelService.getInfoById({ - companyId: loginUserCompanyId, - id: channelId - }, [ - TlChannelDef.id, - TlChannelDef.type - ]) - - if(Object.keys(channelInfo).length == 0){ - return tlResponseArgsError("频道不存在") - } - - return addChannelUser({ - loginInfo, channelId, - userId: loginUserId, - roleId: TlRoleInner.channel.member.id - }) -} - /** * 添加频道普通身份用户 @@ -299,7 +318,7 @@ const shareJoinGroupChannel = async function({ loginInfo, channelId }){ */ const addChannelUserNormal = async function({ loginInfo, channelId, userId }){ return addChannelUser({ - loginInfo, channelId, userId, roleId: TlRoleInner.channel.member.id + loginInfo, channelId, userId, roleId: TlRoleInner.channel.member.id, isInvite: true }) } @@ -335,7 +354,11 @@ const addChannelUserAdmin = async function({ loginInfo, channelId, userId }){ */ const deleteChannelUser = async function({ loginInfo, channelUserId }){ if(!channelUserId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + channelUserId = parseInt(channelUserId) + if(!checkIsId(channelUserId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -348,10 +371,10 @@ const deleteChannelUser = async function({ loginInfo, channelUserId }){ }) if(info == 0){ - return tlResponseSvrError("删除频道用户失败") + return tlResponseSvrError("删除失败") } - return tlResponseSuccess("删除频道用户成功") + return tlResponseSuccess("删除成功") } /** @@ -361,7 +384,11 @@ const deleteChannelUser = async function({ loginInfo, channelUserId }){ */ const updateChannelUserRoleNormal = async function({ loginInfo, channelUserId }){ if(!channelUserId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + channelUserId = parseInt(channelUserId) + if(!checkIsId(channelUserId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -375,7 +402,11 @@ const updateChannelUserRoleNormal = async function({ loginInfo, channelUserId }) roleId: TlRoleInner.channel.member.id, }) - return tlResponseSuccess("修改频道用户成功") + if(Object.keys(info).length == 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") } /** @@ -385,7 +416,11 @@ const updateChannelUserRoleNormal = async function({ loginInfo, channelUserId }) */ const updateChannelUserRoleAdmin = async function({ loginInfo, channelUserId }){ if(!channelUserId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + channelUserId = parseInt(channelUserId) + if(!checkIsId(channelUserId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -400,10 +435,10 @@ const updateChannelUserRoleAdmin = async function({ loginInfo, channelUserId }){ }) if(Object.keys(info).length == 0){ - return tlResponseSvrError("修改频道用户失败") + return tlResponseSvrError("更新失败") } - return tlResponseSuccess("修改频道用户成功") + return tlResponseSuccess("更新成功") } /** @@ -413,12 +448,27 @@ const updateChannelUserRoleAdmin = async function({ loginInfo, channelUserId }){ */ const getChannelUserList = async function({ loginInfo, channelId }){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } const { loginUserCompanyId, loginUserId } = loginInfo + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } const channelUserList = await channelUserService.getListByChannelId({ companyId: loginUserCompanyId, @@ -467,7 +517,7 @@ const getChannelUserList = async function({ loginInfo, channelId }){ const userId = channelUser[TlChannelUserDef.userId] const user = userMap[userId] if(!user){ - return + continue } // 获取好友关系名称 @@ -478,13 +528,13 @@ const getChannelUserList = async function({ loginInfo, channelId }){ resultList.push({ userId: user[TlUserDef.id], username: user[TlUserDef.name], - userAvatar: await getOssUrl(user[TlUserDef.avatarUrl]), + userAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]), friendName: friendName, userFriendId: userFriendId }) } - return tlResponseSuccess("获取单个频道用户列表成功", resultList) + return tlResponseSuccess("获取成功", resultList) } @@ -492,7 +542,7 @@ const getChannelUserList = async function({ loginInfo, channelId }){ * 获取频道列表的用户列表 * @param {*} loginInfo */ -const getChannelListUserList = async function({loginInfo}){ +const getChannelListUserList = async function({ loginInfo }){ const { loginUserCompanyId, loginUserId } = loginInfo @@ -554,7 +604,7 @@ const getChannelListUserList = async function({loginInfo}){ const userId = channelUser[TlChannelUserDef.userId] const user = userMap[userId] if(!user){ - return + continue } // 获取好友关系名称 @@ -566,7 +616,7 @@ const getChannelListUserList = async function({loginInfo}){ channelUserList.push({ userId: user[TlUserDef.id], username: user[TlUserDef.name], - userAvatar: await getOssUrl(user[TlUserDef.avatarUrl]), + userAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]), friendName: friendName, userFriendId: userFriendId }) @@ -574,7 +624,7 @@ const getChannelListUserList = async function({loginInfo}){ result[channelId] = channelUserList } - return tlResponseSuccess("获取全部频道用户列表成功", result) + return tlResponseSuccess("获取成功", result) } @@ -587,7 +637,11 @@ const getChannelListUserList = async function({loginInfo}){ */ const updateChannelToTop = async function({channelId, top = false, loginInfo}){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -640,7 +694,11 @@ const updateChannelToTop = async function({channelId, top = false, loginInfo}){ */ const updateChannelToBlack = async function({channelId, black = false, loginInfo}){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -690,7 +748,11 @@ const updateChannelToBlack = async function({channelId, black = false, loginInfo */ const exitChannel = async function({channelId, loginInfo}){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -707,16 +769,20 @@ const exitChannel = async function({channelId, loginInfo}){ ]) if(Object.keys(channelUserInfo).length == 0){ - return tlResponseNotFound("退出频道成功") + return tlResponseNotFound("退出成功") } // 删除自己在频道的数据 - await channelUserService.deleteInfoById({ + const deleteRes = await channelUserService.deleteInfoById({ companyId: loginUserCompanyId, id: channelUserInfo[TlChannelUserDef.id] }) - return tlResponseSuccess("退出频道成功") + if(deleteRes == 0){ + return tlResponseSvrError("退出失败") + } + + return tlResponseSuccess("退出成功") } @@ -731,7 +797,6 @@ module.exports = { getChannelUserList, addChannelUserListNormal, getChannelListUserList, - shareJoinGroupChannel, updateChannelToTop, updateChannelToBlack, exitChannel diff --git a/src/biz/cloud/cloud_file_biz.js b/src/biz/cloud/cloud_file_biz.js new file mode 100644 index 0000000..abc2e02 --- /dev/null +++ b/src/biz/cloud/cloud_file_biz.js @@ -0,0 +1,275 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseNotFound, tlResponseSuccess, + checkBit, checkIsId, getImageSize, getAudioInfo +} = require('../../utils/utils') +const { + contactOssKeyParam, serverFileUrlTransfer +} = require('../../utils/oss/oss') +const cloudFileService = require('../../service/cloud/tl_cloud_file_service') + +const { fields: TlCloudFileFields } = require('../../tables/tl_cloud_file') + +const { + Type: TlCloudFileType, Def: TlCloudFileDef, + Flag: TlCloudFileFlag, +} = TlCloudFileFields + + +const totalFileSize = 100 * 1024 * 1024 + + +/** + * 上传文件 + * @param {*} loginInfo + * @param {*} file + * @param {*} channelId + * @param {*} dirId + * @param {*} fileId + */ +const uploadFile = async function ({ loginInfo, file, channelId, dirId, fileId }) { + if (!file) { + return tlResponseArgsError("文件为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + // 大小 + const fileSize = file.size + + //最大5M + if (fileSize > 5 * 1024 * 1024){ + return tlResponseForbidden("文件最大不能超过5M") + } + + // 获取当前登录用户所有文件大小, 最大100M + const userCloudFileSize = await cloudFileService.getListByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + }, [ + TlCloudFileDef.fileSize + ]) + + // 获取回收站文件大小 + const userCloudRecycleFileSize = await cloudFileService.getListByUserIdDeleted({ + companyId: loginUserCompanyId, + userId: loginUserId, + }, [ + TlCloudFileDef.fileSize + ]) + + let totalSize = 0 + for(let i = 0; i < userCloudFileSize.length; i++){ + totalSize += userCloudFileSize[i][TlCloudFileDef.fileSize] + } + + for(let i = 0; i < userCloudRecycleFileSize.length; i++){ + totalSize += userCloudRecycleFileSize[i][TlCloudFileDef.fileSize] + } + + if(totalSize + fileSize > totalFileSize){ + return tlResponseForbidden("当前剩余空间不足") + } + + let flag = 0 + + // 类型 + const fileType = file.mimetype + // 源文件名 + let fileOriginalName = Buffer.from(file.originalname, 'latin1').toString('utf-8'); + // 后缀 + const fileExt = fileOriginalName.split('.').pop() + // 生成文件名称 + const saveFileName = fileId; + + // url - ossKey = /companyId/userId/flag/fileName + const fileUrl = contactOssKeyParam({ + companyId: loginUserCompanyId, + userId: loginUserId, + ossFlag: flag, + fileName: saveFileName + }) + + let other = {} + // 根据后缀和类型判断文件类型 + let saveFileType = TlCloudFileType.OTHER + + // 图片 + if (fileType.indexOf('image') > -1 || [ + 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'svg', 'ico', + ].includes(fileExt)) { + saveFileType = TlCloudFileType.IMAGE + + const imageSize = await getImageSize(file.path) + if(imageSize){ + other = { + width: imageSize.width, + height: imageSize.height + } + } + } + // 音频 + else if (fileType.indexOf('audio') > -1 || [ + 'mp3', 'wav', 'wma', 'ogg', 'ape', 'flac', 'aac', 'amr', + ].includes(fileExt)) { + saveFileType = TlCloudFileType.AUDIO + + const audioInfo = await getAudioInfo(file.path) + + other = { + channels: audioInfo.format.numberOfChannels, + sampleRate: audioInfo.format.sampleRate, + duration: audioInfo.format.duration + } + } + // 视频 + else if (fileType.indexOf('video') > -1 || [ + 'mp4', 'avi', 'mov', 'wmv', 'rmvb', 'flv', '3gp', 'mkv', 'webp', + ].includes(fileExt)) { + saveFileType = TlCloudFileType.VIDEO + other = { + width: file.width, + height: file.height, + duration: file.duration + } + } + // 文档 + else if ([ + 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf', 'txt', + 'html', 'htm', 'css', 'js', 'json', 'xml', 'sql', 'java', 'c', 'cpp', 'h', 'hpp', + 'py', 'go', 'php', 'sh', 'bat', 'cmd', 'ini', 'conf', 'log', 'md', 'markdown', + 'tsv', 'dat', 'db', 'dbf', 'mdb', 'accdb', 'sqlit', 'db3', 'db2', 'db1', + ].includes(fileExt)) { + saveFileType = TlCloudFileType.DOCUMENT + } + // 压缩包 + else if ([ + 'zip', 'rar', '7z', 'tar', 'tgz', 'gz', 'bz2', 'xz', 'lz', 'lzma', 'z', + 'iso', 'img', 'bin', 'patch', 'diff', + ].includes(fileExt)) { + saveFileType = TlCloudFileType.ZIP + } + // 其他 + else { + saveFileType = TlCloudFileType.OTHER + } + + dirId = parseInt(dirId) || 0 + + // 保存文件记录 + const result = await cloudFileService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + type: saveFileType, + flag, + originFileName: fileOriginalName, + originFileType: fileType, + fileName: saveFileName, + fileSize, + fileUrl: `${fileUrl}`, + fileId: fileId, + dirId: dirId, + other: JSON.stringify(other) + }) + + if(Object.keys(result).length === 0){ + return tlResponseSvrError("上传失败") + } + + return tlResponseSuccess("上传成功", { + cloudFileId: result.id, + fileId: fileId, + }) +} + +/** + * 下载云服务器本地文件 + * @param {*} loginInfo + * @param {*} fileId : 资源库id + * @param {*} key : 文件的key路径 + * @returns + */ +const downloadCloudFile = async function ({ loginInfo, fileId, key }) { + if (!fileId && !key) { + return tlResponseArgsError("请求参数错误") + } + + if(fileId && !checkIsId(fileId)){ + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, + } = loginInfo + + + // 如果传到是fileId,则查询文件信息 + if(fileId){ + fileId = parseInt(fileId) + + const fileInfo = await cloudFileService.getInfoById({ + companyId: loginUserCompanyId, + id: fileId + }) + + if(Object.keys(fileInfo).length === 0){ + return tlResponseNotFound("文件不存在") + } + + const userId = fileInfo[TlCloudFileDef.userId] + + if(userId !== loginUserId){ + return tlResponseForbidden("你没有权限下载该文件") + } + + const flag = fileInfo[TlCloudFileDef.flag] + const saveToAly = checkBit(flag, TlCloudFileFlag.IS_UPLOAD_ALI) + const saveToTx = checkBit(flag, TlCloudFileFlag.IS_UPLOAD_TX) + const saveToQn = checkBit(flag, TlCloudFileFlag.IS_UPLOAD_QN) + + if(saveToAly || saveToTx || saveToQn){ + return tlResponseForbidden("当前文件存在OSS中,请使用OSS地址下载") + } + + // 服务器路径 + const filePath = serverFileUrlTransfer(fileInfo[TlCloudFileDef.fileUrl]) + + // 检查文件是否存在 + if (filePath === '') { + return tlResponseNotFound("文件不存在") + } + + // 返回文件流 + return tlResponseSuccess("获取成功", filePath) + } + + // 如果传到是key,则直接处理 + if(key){ + // base64解码key + key = Buffer.from(key, 'base64').toString('utf-8') + key = decodeURIComponent(key) + + if(!key || key.length === 0){ + return tlResponseArgsError("请求参数错误") + } + + // 服务器路径 + const filePath = serverFileUrlTransfer(key) + + // 检查文件是否存在 + if (filePath === '') { + return tlResponseNotFound("文件不存在") + } + + // 返回文件流 + return tlResponseSuccess("获取成功", filePath) + } +} + + +module.exports = { + uploadFile, + downloadCloudFile, +} \ No newline at end of file diff --git a/src/biz/company/company_biz.js b/src/biz/company/company_biz.js index 488af56..810b49e 100644 --- a/src/biz/company/company_biz.js +++ b/src/biz/company/company_biz.js @@ -1,14 +1,21 @@ const uuid = require('uuid') const { tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess + tlResponseNotFound, tlResponseSuccess, + checkBit, + setBit, checkIsId } = require('../../utils/utils') const companyService = require('../../service/company/tl_company_service') -const userSessionService = require('../../service/user/tl_user_session_service') +const { inner: TlRoleInner } = require('../../tables/tl_role') +const { fields: TlCompanyFields } = require('../../tables/tl_company') + +const { + Def: TlCompanyDef, Flag: TlCompanyFlag +} = TlCompanyFields /** - * 添加企业 + * 添加企业 - 管理员 * @param {*} loginInfo * @param {*} name * @param {*} address @@ -18,41 +25,45 @@ const userSessionService = require('../../service/user/tl_user_session_service') * @param {*} logo * @param {*} description */ -const addCompany = async function ({ +const adminAddCompany = async function ({ loginInfo, name, address, phone, email, website, logo, description }) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + if(!name){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } if(!address){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } if(!phone){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } if(!email){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } if(!website){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } if(!logo){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } if(!description){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } - const { - loginUserCompanyId, loginUserId - } = loginInfo - const code = uuid.v4().replace(/-/g, '') const info = await companyService.addInfo({ @@ -70,7 +81,113 @@ const addCompany = async function ({ return tlResponseSvrError("添加企业失败") } - return tlResponseSuccess("添加企业成功", info) + return tlResponseSuccess("添加成功", info) +} + + +/** + * 更新企业 - 管理员 + * @param {*} loginInfo + * @param {*} id + * @param {*} name + * @param {*} address + * @param {*} phone + * @param {*} email + * @param {*} website + * @param {*} logo + * @param {*} description + * @param {*} code + * @param {*} authStatus + * @param {*} expiredStatus + */ +const adminUpdateCompany = async function ({ + id, loginInfo, name, address, phone, email, + website, logo, description, code, authStatus, expiredStatus +}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!id){ + return tlResponseArgsError("请求参数错误") + } + + if(!name){ + return tlResponseArgsError("请求参数错误") + } + + if(!address){ + return tlResponseArgsError("请求参数错误") + } + + if(!phone){ + return tlResponseArgsError("请求参数错误") + } + + if(!email){ + return tlResponseArgsError("请求参数错误") + } + + if(!website){ + return tlResponseArgsError("请求参数错误") + } + + if(!logo){ + return tlResponseArgsError("请求参数错误") + } + + if(!description){ + return tlResponseArgsError("请求参数错误") + } + + if(!code){ + return tlResponseArgsError("请求参数错误") + } + + const info = await companyService.getInfoById({ + id + }) + + if(Object.keys(info).length == 0){ + return tlResponseNotFound("企业不存在") + } + + let flag = 0 + if(authStatus){ + flag = setBit(flag, TlCompanyFlag.IS_PASS_AUTH, true) + }else{ + flag = setBit(flag, TlCompanyFlag.IS_PASS_AUTH, false) + } + + if(expiredStatus){ + flag = setBit(flag, TlCompanyFlag.IS_EXPIRED, true) + }else{ + flag = setBit(flag, TlCompanyFlag.IS_EXPIRED, false) + } + + const result = await companyService.updateInfoById({ + id: id, + }, { + [TlCompanyDef.name]: name, + [TlCompanyDef.address]: address, + [TlCompanyDef.phone]: phone, + [TlCompanyDef.email]: email, + [TlCompanyDef.website]: website, + [TlCompanyDef.logo]: logo, + [TlCompanyDef.description]: description, + [TlCompanyDef.code]: code, + [TlCompanyDef.flag]: flag + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") } @@ -78,20 +195,231 @@ const addCompany = async function ({ * 获取企业信息 * @param {*} loginInfo */ -const getCompanyInfo = async function ({loginInfo}) { +const getCompanyInfo = async function ({ + loginInfo +}) { const { - loginUserCompanyId, loginUserId + loginUserCompanyId, loginUserId, loginUserRoleId } = loginInfo + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + const info = await companyService.getInfoById({ id: loginUserCompanyId }) - return tlResponseSuccess("获取企业信息成功", info) + return tlResponseSuccess("获取成功", info) +} + + +/** + * 获取企业列表 - 管理员 + * @param {*} loginInfo + * @param {*} page + * @param {*} limit + * @param {*} keyword + * @returns + */ +const adminGetCompanyList = async function ({ + loginInfo, page, limit, keyword +}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!page){ + return tlResponseArgsError("请求参数错误") + } + + if(!limit){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(page)){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(limit)){ + return tlResponseArgsError("请求参数错误") + } + + page = parseInt(page) + limit = parseInt(limit) + + let list = [] + let total = 0 + + if(keyword == "" || keyword == undefined || keyword == null){ + list = await companyService.getListForPage({}, [ + TlCompanyDef.id, + TlCompanyDef.name, + TlCompanyDef.address, + TlCompanyDef.phone, + TlCompanyDef.email, + TlCompanyDef.website, + TlCompanyDef.logo, + TlCompanyDef.description, + TlCompanyDef.code, + TlCompanyDef.flag, + TlCompanyDef.createdAt + ], page, limit) + + total = await companyService.getCount({}) + + }else{ + list = await companyService.getListByKeywordForPage({ + keyword: keyword + }, [ + TlCompanyDef.id, + TlCompanyDef.name, + TlCompanyDef.address, + TlCompanyDef.phone, + TlCompanyDef.email, + TlCompanyDef.website, + TlCompanyDef.logo, + TlCompanyDef.description, + TlCompanyDef.code, + TlCompanyDef.flag, + TlCompanyDef.createdAt + ], page, limit) + + total = await companyService.getCountByKeyword({ + keyword: keyword + }) + } + + let resultList = [] + for (let i = 0; i < list.length; i++) { + const item = list[i]; + let flag = item[TlCompanyDef.flag] || 0 + + const authStatus = checkBit(flag, TlCompanyFlag.IS_PASS_AUTH) + const expiredStatus = checkBit(flag, TlCompanyFlag.IS_EXPIRED) + + resultList.push({ + id: item[TlCompanyDef.id], + name: item[TlCompanyDef.name], + address: item[TlCompanyDef.address], + phone: item[TlCompanyDef.phone], + email: item[TlCompanyDef.email], + website: item[TlCompanyDef.website], + logo: item[TlCompanyDef.logo], + description: item[TlCompanyDef.description], + code: item[TlCompanyDef.code], + authStatus, + expiredStatus, + createTime: item[TlCompanyDef.createdAt], + }) + } + + return tlResponseSuccess("获取成功", { + list: resultList, + count: total + }) +} + + +/** + * 删除企业 - 管理员 + * @param {*} loginInfo + * @returns + */ +const adminDeleteCompany = async function ({loginInfo, id}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!id){ + return tlResponseArgsError("请求参数错误") + } + + const info = await companyService.getInfoById({ + id + }) + + if(Object.keys(info).length == 0){ + return tlResponseNotFound("企业不存在") + } + + const result = await companyService.deleteInfoById({ + id + }) + + if(result == 0){ + return tlResponseNotFound("删除失败") + } + + return tlResponseSuccess("删除成功") +} + + +/** + * 获取企业信息 - 管理员 + * @param {*} id + * @param {*} loginInfo + * @returns + */ +const adminGetCompanyInfo = async function ({ + id, loginInfo +}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!id){ + return tlResponseArgsError("请求参数错误") + } + + const info = await companyService.getInfoById({ + id + }) + + if(Object.keys(info).length == 0){ + return tlResponseNotFound("企业不存在") + } + + let flag = info[TlCompanyDef.flag] || 0 + + const authStatus = checkBit(flag, TlCompanyFlag.IS_PASS_AUTH) + const expiredStatus = checkBit(flag, TlCompanyFlag.IS_EXPIRED) + + return tlResponseSuccess("获取成功", { + id: info[TlCompanyDef.id], + name: info[TlCompanyDef.name], + address: info[TlCompanyDef.address], + phone: info[TlCompanyDef.phone], + email: info[TlCompanyDef.email], + website: info[TlCompanyDef.website], + logo: info[TlCompanyDef.logo], + description: info[TlCompanyDef.description], + code: info[TlCompanyDef.code], + authStatus, + expiredStatus, + createTime: info[TlCompanyDef.createdAt], + }) } module.exports = { - addCompany, - getCompanyInfo + getCompanyInfo, + + adminAddCompany, + adminUpdateCompany, + adminGetCompanyList, + adminDeleteCompany, + adminGetCompanyInfo } \ No newline at end of file diff --git a/src/biz/config/config_biz.js b/src/biz/config/config_biz.js index 21f299c..c24081a 100644 --- a/src/biz/config/config_biz.js +++ b/src/biz/config/config_biz.js @@ -1,12 +1,14 @@ -const { - tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess -} = require("../../utils/utils"); -const {get_env_config} = require("../../../conf/env_config"); -const conf = get_env_config() const crypto = require("crypto") +const { + tlResponseSuccess, tlResponseForbidden +} = require("../../utils/utils"); +const { get_env_config, set_env_config } = require("../../../conf/env_config"); +const conf = get_env_config() + const userSessionService = require('../../service/user/tl_user_session_service') +const { inner: TlRoleInner } = require('../../tables/tl_role') + /** @@ -133,6 +135,226 @@ const genTurnServerIceServersConfig = function(withTurn, useSecret, username){ return iceServers; } + +/** + * 获取系统环境配置 + * @param {*} loginInfo + */ +const adminGetSystemEnvConfig = async function({ + loginInfo +}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + // redis配置 + const redisConfig = { + host: conf.redis_host, + port: conf.redis_port, + password: conf.redis_password, + } + + // 队列配置 + const queueConfig = { + type: conf.task_queue_type, + host: conf.task_queue_host, + port: conf.task_queue_port, + password: conf.task_queue_password, + } + + // webrtc配置 + const webrtcConfig = { + stun_host: conf.webrtc_stun_host, + turn_host: conf.webrtc_turn_host, + turn_username: conf.webrtc_turn_username, + turn_credential: conf.webrtc_turn_credential, + turn_secret: conf.webrtc_turn_secret, + turn_expire: conf.webrtc_turn_expire, + } + + // mysql配置 + const mysqlConfig = { + host: conf.db_mysql_host, + port: conf.db_mysql_port, + user: conf.db_mysql_user, + password: conf.db_mysql_password, + database: conf.db_mysql_database, + } + + // email配置 + const emailConfig = { + host: conf.mail_host, + port: conf.mail_port, + user: conf.mail_user, + pass: conf.mail_password, + } + + // 配置项定义 - 从前端移到后端 + const configDefinitions = { + redis: { + title: 'Redis配置', + configKey: 'redisConfig', + fields: [ + { key: 'host', label: '主机', desc: 'Redis服务器地址', type: 'text' }, + { key: 'port', label: '端口', desc: 'Redis服务器端口', type: 'text' }, + { key: 'password', label: '密码', desc: 'Redis服务器密码', type: 'text' } + ] + }, + webrtc: { + title: 'WebRTC配置', + configKey: 'webrtcConfig', + fields: [ + { key: 'stun_host', label: 'STUN服务器', desc: 'STUN服务器地址', type: 'text' }, + { key: 'turn_host', label: 'TURN服务器', desc: 'TURN服务器地址', type: 'text' }, + { key: 'turn_username', label: 'TURN用户名', desc: 'TURN服务器用户名', type: 'text' }, + { key: 'turn_credential', label: 'TURN密码', desc: 'TURN服务器密码', type: 'text' }, + { key: 'turn_secret', label: 'TURN密钥', desc: 'TURN服务器密钥', type: 'text' }, + { key: 'turn_expire', label: '过期时间', desc: 'TURN过期时间(秒)', type: 'text' } + ] + }, + mysql: { + title: 'MySQL配置', + configKey: 'mysqlConfig', + fields: [ + { key: 'host', label: '主机', desc: 'MySQL服务器地址', type: 'text' }, + { key: 'port', label: '端口', desc: 'MySQL服务器端口', type: 'text' }, + { key: 'user', label: '用户名', desc: 'MySQL用户名', type: 'text' }, + { key: 'password', label: '密码', desc: 'MySQL密码', type: 'text' }, + { key: 'database', label: '数据库', desc: 'MySQL数据库名称', type: 'text' } + ] + }, + email: { + title: '邮件配置', + configKey: 'emailConfig', + fields: [ + { key: 'host', label: 'SMTP服务器', desc: '邮件SMTP服务器地址', type: 'text' }, + { key: 'port', label: 'SMTP端口', desc: '邮件SMTP服务器端口', type: 'text' }, + { key: 'user', label: '邮箱账号', desc: '发送邮件的邮箱账号', type: 'text' }, + { key: 'pass', label: '邮箱密码', desc: '邮箱授权密码', type: 'text' } + ] + } + }; + + return tlResponseSuccess("获取成功", { + redisConfig, + webrtcConfig, + mysqlConfig, + emailConfig, + configDefinitions + }) +} + + +/** + * 设置系统环境配置 + * @param {*} loginInfo + * @param {*} redisConfig + * @param {*} webrtcConfig + * @param {*} mysqlConfig + * @param {*} emailConfig + * @returns + */ +const adminSetSystemEnvConfig = async function({ + loginInfo, + redisConfig = {}, + webrtcConfig = {}, + mysqlConfig = {}, + emailConfig = {}, +}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + // 设置redis配置 + if(Object.keys(redisConfig).length > 0) { + if(redisConfig.host !== undefined && redisConfig.host !== null) { + set_env_config("redis_host", redisConfig.host) + } + if(redisConfig.port !== undefined && redisConfig.port !== null) { + redisConfig.port = parseInt(redisConfig.port) + set_env_config("redis_port", redisConfig.port) + } + if(redisConfig.password !== undefined && redisConfig.password !== null) { + set_env_config("redis_password", redisConfig.password) + } + } + + // 设置webrtc配置 + if(Object.keys(webrtcConfig).length > 0) { + if(webrtcConfig.stun_host !== undefined && webrtcConfig.stun_host !== null) { + set_env_config("webrtc_stun_host", webrtcConfig.stun_host) + } + if(webrtcConfig.turn_host !== undefined && webrtcConfig.turn_host !== null) { + set_env_config("webrtc_turn_host", webrtcConfig.turn_host) + } + if(webrtcConfig.turn_username !== undefined && webrtcConfig.turn_username !== null) { + set_env_config("webrtc_turn_username", webrtcConfig.turn_username) + } + if(webrtcConfig.turn_credential !== undefined && webrtcConfig.turn_credential !== null) { + set_env_config("webrtc_turn_credential", webrtcConfig.turn_credential) + } + if(webrtcConfig.turn_secret !== undefined && webrtcConfig.turn_secret !== null) { + set_env_config("webrtc_turn_secret", webrtcConfig.turn_secret) + } + if(webrtcConfig.turn_expire !== undefined && webrtcConfig.turn_expire !== null) { + webrtcConfig.turn_expire = parseInt(webrtcConfig.turn_expire) + set_env_config("webrtc_turn_expire", webrtcConfig.turn_expire) + } + } + + // 设置mysql配置 + if(Object.keys(mysqlConfig).length > 0) { + if(mysqlConfig.host !== undefined && mysqlConfig.host !== null) { + set_env_config("db_mysql_host", mysqlConfig.host) + } + if(mysqlConfig.port !== undefined && mysqlConfig.port !== null) { + set_env_config("db_mysql_port", mysqlConfig.port) + } + if(mysqlConfig.user !== undefined && mysqlConfig.user !== null) { + set_env_config("db_mysql_user", mysqlConfig.user) + } + if(mysqlConfig.password !== undefined && mysqlConfig.password !== null) { + set_env_config("db_mysql_password", mysqlConfig.password) + } + if(mysqlConfig.database !== undefined && mysqlConfig.database !== null) { + set_env_config("db_mysql_database", mysqlConfig.database) + } + } + + // 设置email配置 + if(Object.keys(emailConfig).length > 0) { + if(emailConfig.host !== undefined && emailConfig.host !== null) { + set_env_config("mail_host", emailConfig.host) + } + if(emailConfig.port !== undefined && emailConfig.port !== null) { + emailConfig.port = parseInt(emailConfig.port) + set_env_config("mail_port", emailConfig.port) + } + if(emailConfig.user !== undefined && emailConfig.user !== null) { + set_env_config("mail_user", emailConfig.user) + } + if(emailConfig.pass !== undefined && emailConfig.pass !== null) { + set_env_config("mail_password", emailConfig.pass) + } + } + return tlResponseSuccess("设置完成") +} + + + + + module.exports = { - initData + initData, + + adminGetSystemEnvConfig, + adminSetSystemEnvConfig } \ No newline at end of file diff --git a/src/biz/system/system_service_biz.js b/src/biz/system/system_service_biz.js new file mode 100644 index 0000000..938c41d --- /dev/null +++ b/src/biz/system/system_service_biz.js @@ -0,0 +1,273 @@ +const { tlConsoleError, tlConsole, tlResponseSuccess, tlResponseSvrError, tlResponseForbidden } = require("../../utils/utils"); +const pm2 = require("pm2"); +const { inner: TlRoleInner } = require('../../tables/tl_role') + +/** + * 连接到PM2 + * @returns {Promise} 连接Promise + */ +const connectToPm2 = () => { + return new Promise((resolve, reject) => { + pm2.connect((err) => { + if (err) { + reject(err); + } else { + resolve(); + } + }); + }); +}; + +/** + * 停止PM2服务 + * @param {string|string[]} services - 服务名称(单个服务名或服务名数组) + * @param {object} loginInfo - 登录信息 + * @returns {Promise} 返回执行结果 + */ +const adminStopPm2Service = async function ({ + services, loginInfo +}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if (!services) { + return tlResponseSvrError(`Services not specified`); + } + + // 将单个服务名转换为数组 + const serviceArray = Array.isArray(services) ? services : [services]; + + if (serviceArray.length === 0) { + return tlResponseSvrError(`Empty services array`); + } + + try { + await connectToPm2(); + + const results = await Promise.all(serviceArray.map(service => { + return new Promise((resolve, reject) => { + pm2.stop(service, (err, proc) => { + if (err) { + reject(err); + } else { + resolve(proc); + } + }); + }); + })); + + // 提取关键信息并格式化返回结果 + let proc = results[0][0]; + let result = { + name: proc.name, + status: proc.pm2_env.status, + pid: proc.pid, + } + + tlConsole(`PM2 services stopped: ${serviceArray.join(', ')}`, result); + pm2.disconnect(); + return tlResponseSuccess(`Services stopped: ${serviceArray.join(', ')}`, result); + } catch (error) { + tlConsoleError(`Failed to stop PM2 services: ${error?.message}`); + pm2.disconnect(); + return tlResponseSvrError(`Failed to stop PM2 services: ${error?.message}`); + } +}; + +/** + * 启动PM2服务 + * @param {string|string[]} services - 服务名称(单个服务名或服务名数组) + * @param {object} loginInfo - 登录信息 + * @returns {Promise} 返回执行结果 + */ +const adminStartPm2Service = async function ({ + services, loginInfo +}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if (!services) { + return tlResponseSvrError(`Services not specified`); + } + + // 将单个服务名转换为数组 + const serviceArray = Array.isArray(services) ? services : [services]; + + if (serviceArray.length === 0) { + return tlResponseSvrError(`Empty services array`); + } + + try { + await connectToPm2(); + + const results = await Promise.all(serviceArray.map(service => { + return new Promise((resolve, reject) => { + pm2.start(service, (err, proc) => { + if (err) { + reject(err); + } else { + resolve(proc); + } + }); + }); + })); + + // 提取关键信息并格式化返回结果 + let proc = results[0][0]; + let result = { + name: proc.name, + status: proc.pm2_env.status, + pid: proc.pid, + } + + tlConsole(`PM2 services started: ${serviceArray.join(', ')}`, result); + pm2.disconnect(); + return tlResponseSuccess(`Services started: ${serviceArray.join(', ')}`, result); + } catch (error) { + tlConsoleError(`Failed to start PM2 services: ${error?.message}`); + pm2.disconnect(); + return tlResponseSvrError(`Failed to start PM2 services: ${error?.message}`); + } +}; + +/** + * 重启PM2服务 + * @param {string|string[]} services - 服务名称(单个服务名或服务名数组) + * @param {object} loginInfo - 登录信息 + * @returns {Promise} 返回执行结果 + */ +const adminReadminStartPm2Service = async function ({ + services, loginInfo +}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if (!services) { + return tlResponseSvrError(`Services not specified`); + } + + // 将单个服务名转换为数组 + const serviceArray = Array.isArray(services) ? services : [services]; + + if (serviceArray.length === 0) { + return tlResponseSvrError(`Empty services array`); + } + + try { + await connectToPm2(); + + const results = await Promise.all(serviceArray.map(service => { + return new Promise((resolve, reject) => { + pm2.restart(service, (err, proc) => { + if (err) { + reject(err); + } else { + resolve(proc); + } + }); + }); + })); + + // 提取关键信息并格式化返回结果 + let proc = results[0][0]; + let result = { + name: proc.name, + status: proc.pm2_env.status, + pid: proc.pid, + } + + tlConsole(`PM2 services restarted: ${serviceArray.join(', ')}`, result); + pm2.disconnect(); + return tlResponseSuccess(`Services restarted: ${serviceArray.join(', ')}`, result); + } catch (error) { + tlConsoleError(`Failed to restart PM2 services: ${error?.message}`); + pm2.disconnect(); + return tlResponseSvrError(`Failed to restart PM2 services: ${error?.message}`); + } +}; + +/** + * 获取PM2服务状态 + * @param {*} loginInfo + * @returns + */ +const adminGetServiceStatus = async function ({ + loginInfo +}) { + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + try { + await connectToPm2(); + + const list = await new Promise((resolve, reject) => { + pm2.list((err, procList) => { + if (err) { + reject(err); + } else { + resolve(procList); + } + }); + }); + + tlConsole(`PM2 service status retrieved`); + + pm2.disconnect(); + + // 提取关键信息并格式化返回结果 + let resultList = list.map(proc => ({ + name: proc.name, + status: proc.pm2_env.status, + pid: proc.pid, + monit: { + memory: proc.monit.memory, + cpu: proc.monit.cpu + }, + })); + + // 只保留tl-rtc-app-api和tl-rtc-app-socket服务 + resultList = resultList.filter( + proc => proc.name === 'tl-rtc-app-api' || + proc.name === 'tl-rtc-app-socket' + ); + + return tlResponseSuccess("PM2服务状态获取成功", { + processList: resultList, + }); + } catch (error) { + tlConsoleError(`Failed to get PM2 service status: ${error?.message}`); + pm2.disconnect(); + return tlResponseSvrError(`Failed to get PM2 service status: ${error?.message}`); + } +}; + + + + + +module.exports = { + adminStopPm2Service, + adminStartPm2Service, + adminReadminStartPm2Service, + adminGetServiceStatus +} diff --git a/src/biz/user/user_apply_biz.js b/src/biz/user/user_apply_biz.js index a59217b..a619bb8 100644 --- a/src/biz/user/user_apply_biz.js +++ b/src/biz/user/user_apply_biz.js @@ -1,50 +1,66 @@ const { tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + tlResponseNotFound, tlResponseSuccess, setBit, checkBit, - tlConsole + checkIsId } = require('../../utils/utils') +const channelService = require('../../service/channel/tl_channel_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') const userService = require('../../service/user/tl_user_service') const userFriendService = require('../../service/user/tl_user_friend_service') -const userSessionService = require('../../service/user/tl_user_session_service') const userApplyService = require('../../service/user/tl_user_apply_service') const userReadService = require('../../service/user/tl_user_read_service') const userFriendBiz = require('./user_friend_biz') +const userConfigService = require('../../service/user/tl_user_config_service') const { fields: userFields } = require('../../tables/tl_user') const { fields: userFriendFields } = require('../../tables/tl_user_friend') const { fields: userApplyFields } = require('../../tables/tl_user_apply') const { fields: userReadFields } = require('../../tables/tl_user_read') +const { fields: channelFields } = require('../../tables/tl_channel') +const { fields: userConfigFields } = require('../../tables/tl_user_config') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { inner: TlRoleInner } = require('../../tables/tl_role') -const { getOssUrl } = require('../../utils/oss/oss') +const { addChannelUser } = require('../../biz/channel/channel_user_biz') + +const { getAvatarOssUrl } = require('../../utils/oss/oss') const TlUserDef = userFields.Def const TlUserFriendDef = userFriendFields.Def -const TlUserFriendType = userFriendFields.FriendType +const TlUserFriendFlag = userFriendFields.Flag const TlUserFriendStatus = userFriendFields.Status const TlUserApplyDef = userApplyFields.Def const TlUserApplyStatus = userApplyFields.Status const TlUserApplyType = userApplyFields.Type -const TlUserApplyOrigin = userApplyFields.Origin +const TlUserApplyFlag = userApplyFields.Flag const TlUserReadDef = userReadFields.Def const TlUserReadType = userReadFields.Type +const TlUserConfingDef = userConfigFields.Def +const TlUserConfingAccount = userConfigFields.Account +const TlChannelDef = channelFields.Def +const TlChannelUserDef = channelUserFields.Def /** * 申请添加好友 * @param {*} friendId - * @param {*} origin * @param {*} remark * @param {*} loginInfo */ -const applyAddFriend = async function({ friendId, origin, remark, loginInfo }){ +const applyAddFriend = async function({ friendId, remark, loginInfo }){ if(!friendId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } - if(!origin){ - return tlResponseArgsError("请求参数为空") + friendId = parseInt(friendId) + if(!checkIsId(friendId)){ + return tlResponseArgsError("请求参数不合法") + } + + if(remark && remark.length > 64){ + return tlResponseArgsError("备注信息过长") } const { @@ -105,13 +121,37 @@ const applyAddFriend = async function({ friendId, origin, remark, loginInfo }){ return tlResponseForbidden("对方已经向你发送过申请,请查看申请记录") } + // 获取用户配置 + const userConfigInfo = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: friendId + }, [ + TlUserConfingDef.account + ]) + let accountSettingStr = userConfigInfo[TlUserConfingDef.account] + let accountSetting = {} + try{ + accountSetting = JSON.parse(accountSettingStr) + }catch(e){ + accountSetting = {} + } + // 是否不接受好友申请 + let notAcceptFriendApply = accountSetting[TlUserConfingAccount.notAcceptFriendApply] || false + if(notAcceptFriendApply){ + return tlResponseForbidden("对方已关闭好友申请") + } + + let flag = 0 + flag = setBit(flag, TlUserApplyFlag.IS_APPLY_FRIEND_BY_SEARCH_NAME, true) + // 生成申请记录 const applyInfo = await userApplyService.addInfo({ companyId: loginUserCompanyId, userId: loginUserId, targetId: friendId, - origin, + origin: "通过搜索", remark, + flag, type: TlUserApplyType.FRIEND, status: TlUserApplyStatus.WAIT }) @@ -133,7 +173,12 @@ const applyAddFriend = async function({ friendId, origin, remark, loginInfo }){ */ const passUserFriendApply = async function({ id, loginInfo }){ if(!id){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + id = parseInt(id) + if(!checkIsId(id)){ + return tlResponseArgsError("请求参数不合法") } const { @@ -150,6 +195,11 @@ const passUserFriendApply = async function({ id, loginInfo }){ return tlResponseNotFound("申请记录不存在") } + // 如果不是被申请人,不能通过 + if(applyInfo[TlUserApplyDef.targetId] != loginUserId){ + return tlResponseForbidden("非法操作") + } + const status = applyInfo[TlUserApplyDef.status] if(status != TlUserApplyStatus.WAIT){ return tlResponseForbidden("申请记录状态不正确") @@ -183,6 +233,26 @@ const passUserFriendApply = async function({ id, loginInfo }){ return initChannelRes } + const applyFlag = applyInfo[TlUserApplyDef.flag] + const isApplyFriendBySearchName = checkBit(applyFlag, TlUserApplyFlag.IS_APPLY_FRIEND_BY_SEARCH_NAME) + const isApplyFriendBySearchPhone = checkBit(applyFlag, TlUserApplyFlag.IS_APPLY_FRIEND_BY_SEARCH_PHONE) + const isApplyFriendBySearchEmail = checkBit(applyFlag, TlUserApplyFlag.IS_APPLY_FRIEND_BY_SEARCH_EMAIL) + const isApplyByShareLink = checkBit(applyFlag, TlUserApplyFlag.IS_APPLY_FRIEND_BY_INVITE) + + let friendFlag = 0 + if(isApplyFriendBySearchName){ + friendFlag = setBit(friendFlag, TlUserFriendFlag.IS_ADD_BY_SEARCH_NAME, true) + } + if(isApplyFriendBySearchPhone){ + friendFlag = setBit(friendFlag, TlUserFriendFlag.IS_ADD_BY_SEARCH_PHONE, true) + } + if(isApplyFriendBySearchEmail){ + friendFlag = setBit(friendFlag, TlUserFriendFlag.IS_ADD_BY_SEARCH_EMAIL, true) + } + if(isApplyByShareLink){ + friendFlag = setBit(friendFlag, TlUserFriendFlag.IS_ADD_BY_INVITE, true) + } + // 生成双向好友记录 let initUserFriendRes = await userFriendBiz.initUserFriendForPassFriend({ loginUserCompanyId, @@ -190,8 +260,9 @@ const passUserFriendApply = async function({ id, loginInfo }){ loginUsername, applyUserId, applyUserName: applyUserInfo[TlUserDef.name], - origin: applyInfo[TlUserApplyDef.origin], + origin: applyInfo[TlUserApplyDef.origin], remark: applyInfo[TlUserApplyDef.remark], + flag: friendFlag, channelId: initChannelRes.data.channelId }) @@ -225,7 +296,12 @@ const passUserFriendApply = async function({ id, loginInfo }){ */ const rejectUserFriendApply = async function({ id, loginInfo }){ if(!id){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + id = parseInt(id) + if(!checkIsId(id)){ + return tlResponseArgsError("请求参数不合法") } const { @@ -239,13 +315,19 @@ const rejectUserFriendApply = async function({ id, loginInfo }){ TlUserApplyDef.id, TlUserApplyDef.status, TlUserApplyDef.type, - TlUserApplyDef.userId + TlUserApplyDef.userId, + TlUserApplyDef.targetId ]) if(Object.keys(applyInfo).length == 0){ return tlResponseNotFound("申请记录不存在") } + // 如果不是被申请人,不能通过 + if(applyInfo[TlUserApplyDef.targetId] != loginUserId){ + return tlResponseForbidden("非法操作") + } + const status = applyInfo[TlUserApplyDef.status] if(status != TlUserApplyStatus.WAIT){ return tlResponseForbidden("申请记录状态不正确") @@ -305,6 +387,7 @@ const getUserFriendApplyListFromSelf = async function({ loginInfo }){ TlUserApplyDef.id, TlUserApplyDef.targetId, TlUserApplyDef.origin, + TlUserApplyDef.flag, TlUserApplyDef.status, TlUserApplyDef.remark, TlUserApplyDef.createdAt @@ -349,12 +432,6 @@ const getUserFriendApplyListFromSelf = async function({ loginInfo }){ for(let i = 0; i < applyList.length; i++){ const item = applyList[i] - let originStr = '' - const origin = item[TlUserApplyDef.origin] - if(origin == TlUserApplyOrigin.SEARCH_NAME){ - originStr = "搜索用户名添加" - } - const status = item[TlUserApplyDef.status] let statusStr = '' if(status == TlUserApplyStatus.PASS){ @@ -373,9 +450,9 @@ const getUserFriendApplyListFromSelf = async function({ loginInfo }){ resultList.push({ id : item[TlUserApplyDef.id], username: userInfo[TlUserDef.name], - userAvatar: await getOssUrl(userInfo[TlUserDef.avatarUrl]), + userAvatar: await getAvatarOssUrl(userInfo[TlUserDef.avatarUrl]), userApplyRemark: item[TlUserApplyDef.remark], - origin : originStr, + origin : item[TlUserApplyDef.origin], createTime: item[TlUserApplyDef.createdAt], status : statusStr, userCompanyName: loginUserCompanyName, @@ -383,7 +460,7 @@ const getUserFriendApplyListFromSelf = async function({ loginInfo }){ }) } - return tlResponseSuccess("获取我发出的申请记录成功", resultList) + return tlResponseSuccess("获取成功", resultList) } /** @@ -404,6 +481,7 @@ const getUserFriendListFromOther = async function({ loginInfo }){ TlUserApplyDef.id, TlUserApplyDef.userId, TlUserApplyDef.origin, + TlUserApplyDef.flag, TlUserApplyDef.status, TlUserApplyDef.remark, TlUserApplyDef.createdAt @@ -448,12 +526,6 @@ const getUserFriendListFromOther = async function({ loginInfo }){ for(let i = 0; i < applyList.length; i++){ const item = applyList[i] - let originStr = '' - const origin = item[TlUserApplyDef.origin] - if(origin == TlUserApplyOrigin.SEARCH_NAME){ - originStr = "搜索用户名添加" - } - const status = item[TlUserApplyDef.status] let statusStr = '' if(status == TlUserApplyStatus.PASS){ @@ -472,24 +544,543 @@ const getUserFriendListFromOther = async function({ loginInfo }){ resultList.push({ id : item[TlUserApplyDef.id], username: userInfo[TlUserDef.name], - userAvatar: await getOssUrl(userInfo[TlUserDef.avatarUrl]), + userAvatar: await getAvatarOssUrl(userInfo[TlUserDef.avatarUrl]), userApplyRemark: item[TlUserApplyDef.remark], - origin : originStr, + origin : item[TlUserApplyDef.origin], createTime: item[TlUserApplyDef.createdAt], status : statusStr, userCompanyName: loginUserCompanyName, hasRead: userReadMap.has(item[TlUserApplyDef.id]) }) } - return tlResponseSuccess("获取我收到的申请记录成功", resultList) + return tlResponseSuccess("获取成功", resultList) } + +/** + * 申请加入群聊 + * @param {*} channelId + * @param {*} remark + * @param {*} shareUserId + * @param {*} loginInfo + */ +const applyAddGroup = async function({ channelId, remark, shareUserId, loginInfo }){ + if(!channelId){ + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数不合法") + } + + if(remark && remark.length > 64){ + return tlResponseArgsError("备注信息过长") + } + + if(shareUserId){ + shareUserId = parseInt(shareUserId) + if(!checkIsId(shareUserId)){ + return tlResponseArgsError("请求参数不合法") + } + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length > 0){ + return tlResponseForbidden("已加入群聊") + } + + // 查看自己是否存在待验证的申请记录 + let applyHistroryList = await userApplyService.getListByUserIdAndTargetIdAndStatuAndType({ + companyId: loginUserCompanyId, + userId: loginUserId, + targetId: channelId, + status: TlUserApplyStatus.WAIT, + type: TlUserApplyType.GROUP + }, [ + TlUserApplyDef.id + ]) + + if(applyHistroryList.length > 0){ + return tlResponseForbidden("你已经向该群发送过申请,请查看申请记录") + } + + let flag = 0 + let origin = '' + if(shareUserId){ + const shareUserInfo = await userService.getInfoById({ + companyId: loginUserCompanyId, + id: shareUserId + }, [ + TlUserDef.name + ]) + + flag = setBit(flag, TlUserApplyFlag.IS_APPLY_GROUP_BY_SHARE_LINK, true) + origin = "通过"+shareUserInfo[TlUserDef.name]+"分享" + }else{ + flag = setBit(flag, TlUserApplyFlag.IS_APPLY_GROUP_BY_SEARCH_NAME, true) + origin = "通过搜索" + } + + // 生成申请记录 + const applyInfo = await userApplyService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + targetId: channelId, + origin, + remark, + flag, + type: TlUserApplyType.GROUP, + status: TlUserApplyStatus.WAIT + }) + + if(Object.keys(applyInfo).length == 0){ + return tlResponseSvrError("发送申请失败") + } + + return tlResponseSuccess("发送申请成功", { + applyId: applyInfo[TlUserApplyDef.id] + }) +} + + +/** + * 通过用户群聊申请 + * @param {*} id + * @param {*} loginInfo + * @returns + */ +const passUserGroupApply = async function({ id, loginInfo }){ + if(!id){ + return tlResponseArgsError("请求参数错误") + } + + id = parseInt(id) + if(!checkIsId(id)){ + return tlResponseArgsError("请求参数不合法") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 查询申请记录 + const applyInfo = await userApplyService.getInfoById({ + companyId: loginUserCompanyId, + id + }) + + if(Object.keys(applyInfo).length == 0){ + return tlResponseNotFound("申请记录不存在") + } + + // 如果当前用户不是群聊创建人,不能通过 + const channelId = applyInfo[TlUserApplyDef.targetId] + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseForbidden("非法操作") + } + + const channelUserRole = channelUserInfo[TlChannelUserDef.roleId] + if(channelUserRole != TlRoleInner.channel.creator.id){ + return tlResponseForbidden("非法操作") + } + + const status = applyInfo[TlUserApplyDef.status] + if(status != TlUserApplyStatus.WAIT){ + return tlResponseForbidden("申请记录状态不正确") + } + + const type = applyInfo[TlUserApplyDef.type] + if(type != TlUserApplyType.GROUP){ + return tlResponseForbidden("申请记录类型不正确") + } + + // 更新申请记录状态 + const updateInfo = await userApplyService.updateInfoById({ + companyId: loginUserCompanyId, + id + }, { + [TlUserApplyDef.status]: TlUserApplyStatus.PASS + }) + + if(Object.keys(updateInfo).length == 0){ + return tlResponseSvrError("更新申请记录状态失败") + } + + const flag = applyInfo[TlUserApplyDef.flag] + + // 生成频道用户 + const result = await addChannelUser({ + loginInfo, channelId, + userId: applyInfo[TlUserApplyDef.userId], + roleId: TlRoleInner.channel.member.id, + isShare: checkBit(flag, TlUserApplyFlag.IS_APPLY_GROUP_BY_SHARE_LINK) + }) + + if(!result.success){ + return result + } + + return tlResponseSuccess("通过申请成功", { + applyId : id, + applyUserId: applyInfo[TlUserApplyDef.userId] + }) +} + +/** + * 拒绝用户群聊申请 + * @param {*} id + * @param {*} loginInfo + * @returns + */ +const rejectUserGroupApply = async function({ id, loginInfo }){ + if(!id){ + return tlResponseArgsError("请求参数错误") + } + + id = parseInt(id) + if(!checkIsId(id)){ + return tlResponseArgsError("请求参数不合法") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const applyInfo = await userApplyService.getInfoById({ + companyId: loginUserCompanyId, + id + }) + + if(Object.keys(applyInfo).length == 0){ + return tlResponseNotFound("申请记录不存在") + } + + // 如果当前用户不是群聊创建人,不能通过 + const channelId = applyInfo[TlUserApplyDef.targetId] + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseForbidden("非法操作") + } + + const channelUserRole = channelUserInfo[TlChannelUserDef.roleId] + if(channelUserRole != TlRoleInner.channel.creator.id){ + return tlResponseForbidden("非法操作") + } + + const status = applyInfo[TlUserApplyDef.status] + if(status != TlUserApplyStatus.WAIT){ + return tlResponseForbidden("申请记录状态不正确") + } + + const type = applyInfo[TlUserApplyDef.type] + if(type != TlUserApplyType.GROUP){ + return tlResponseForbidden("申请记录类型不正确") + } + + // 更新申请记录状态 + const updateInfo = await userApplyService.updateInfoById({ + companyId: loginUserCompanyId, + id + }, { + [TlUserApplyDef.status]: TlUserApplyStatus.REJECT + }) + + if(Object.keys(updateInfo).length == 0){ + return tlResponseSvrError("更新申请记录状态失败") + } + + return tlResponseSuccess("拒绝申请成功", { + applyId : id, + applyUserId: applyInfo[TlUserApplyDef.userId] + }) +} + +/** + * 获取我发出的群聊申请记录 + * @param {*} loginInfo + */ +const getUserGroupApplyListFromSelf = async function({ loginInfo }){ + const { + loginUserCompanyId, loginUserId, loginUserCompanyName + } = loginInfo + + const applyList = await userApplyService.getListByUserIdAndType({ + companyId: loginUserCompanyId, + userId: loginUserId, + type: TlUserApplyType.GROUP + }, [ + TlUserApplyDef.id, + TlUserApplyDef.targetId, + TlUserApplyDef.origin, + TlUserApplyDef.status, + TlUserApplyDef.remark, + TlUserApplyDef.createdAt + ]) + + // 频道信息 + let channelIdList = new Set( + applyList.map(item => item[TlUserApplyDef.targetId]) + ) + let channelInfoList = await channelService.getListByIdList({ + companyId: loginUserCompanyId, + idList: [...channelIdList] + }, [ + TlChannelDef.id, + TlChannelDef.name, + ]) + let channelInfoMap = new Map() + channelInfoList.forEach(item => { + channelInfoMap.set(item[TlChannelDef.id], item) + }) + + // 已读记录 + let readList = await userReadService.getListByUserIdTypeList({ + companyId: loginUserCompanyId, + userId: loginUserId, + typeList: [ + TlUserReadType.GROUP_APPLY, + TlUserReadType.GROUP_APPLY_PASS, + TlUserReadType.GROUP_APPLY_REJECT + ] + }, [ + TlUserReadDef.recordId + ]) + let userReadMap = new Map() + readList.forEach(item => { + userReadMap.set(item[TlUserReadDef.recordId], true) + }) + + let resultList = [] + for(let i = 0; i < applyList.length; i++){ + const item = applyList[i] + + const status = item[TlUserApplyDef.status] + let statusStr = '' + if(status == TlUserApplyStatus.PASS){ + statusStr = "已通过申请" + }else if(status == TlUserApplyStatus.REJECT){ + statusStr = "已拒绝申请" + } + else if(status == TlUserApplyStatus.WAIT){ + statusStr = "等待对方验证" + } + + let channelInfo = channelInfoMap.get(item[TlUserApplyDef.targetId]) + if(!channelInfo){ + channelInfo = {} + } + + resultList.push({ + id : item[TlUserApplyDef.id], + channelId: channelInfo[TlChannelDef.id], + channelName: channelInfo[TlChannelDef.name], + channelAvatar: "/image/group-default-avatar.png", + channelApplyRemark: item[TlUserApplyDef.remark], + channelCompanyName: loginUserCompanyName, + origin : item[TlUserApplyDef.origin], + createTime: item[TlUserApplyDef.createdAt], + status : statusStr, + hasRead: userReadMap.has(item[TlUserApplyDef.id]) + }) + } + + return tlResponseSuccess("获取成功", resultList) +} + +/** + * 获取我收到的群聊申请记录 + * @param {*} loginInfo + * @returns + */ +const getUserGroupListFromOther = async function({ loginInfo }){ + const { + loginUserCompanyId, loginUserId, loginUserCompanyName + } = loginInfo + + // 获取我所在的所有频道 + const channelList = await channelUserService.getListByUserIdAndRoleId({ + companyId: loginUserCompanyId, + userId: loginUserId, + roleId: TlRoleInner.channel.creator.id + }, [ + TlChannelUserDef.channelId + ]) + + if(channelList.length == 0){ + return tlResponseSuccess("获取成功", []) + } + + let channelIdList = channelList.map(item => item[TlChannelUserDef.channelId]) + + const applyList = await userApplyService.getListByTargetIdListAndType({ + companyId: loginUserCompanyId, + targetIdList: channelIdList, + type: TlUserApplyType.GROUP + }, [ + TlUserApplyDef.id, + TlUserApplyDef.userId, + TlUserApplyDef.targetId, + TlUserApplyDef.origin, + TlUserApplyDef.status, + TlUserApplyDef.remark, + TlUserApplyDef.createdAt + ]) + + // 频道信息 + let channelInfoList = await channelService.getListByIdList({ + companyId: loginUserCompanyId, + idList: [...channelIdList] + }, [ + TlChannelDef.id, + TlChannelDef.name, + ]) + let channelInfoMap = new Map() + channelInfoList.forEach(item => { + channelInfoMap.set(item[TlChannelDef.id], item) + }) + + // 用户信息 + let userIdList = new Set( + applyList.map(item => item[TlUserApplyDef.userId]) + ) + let userInfoList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: [...userIdList] + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.avatarUrl + ]) + + let userInfoMap = new Map() + userInfoList.forEach(item => { + userInfoMap.set(item[TlUserDef.id], item) + }) + + // 已读记录 + let readList = await userReadService.getListByUserIdTypeList({ + companyId: loginUserCompanyId, + userId: loginUserId, + typeList: [ + TlUserReadType.GROUP_APPLY, + TlUserReadType.GROUP_APPLY_PASS, + TlUserReadType.GROUP_APPLY_REJECT + ] + }, [ + TlUserReadDef.recordId + ]) + let userReadMap = new Map() + readList.forEach(item => { + userReadMap.set(item[TlUserReadDef.recordId], true) + }) + + let resultList = [] + + for(let i = 0; i < applyList.length; i++){ + const item = applyList[i] + + const status = item[TlUserApplyDef.status] + let statusStr = '' + if(status == TlUserApplyStatus.PASS){ + statusStr = "通过申请" + }else if(status == TlUserApplyStatus.REJECT){ + statusStr = "拒绝申请" + }else if(status == TlUserApplyStatus.WAIT){ + statusStr = "等待我验证" + } + + let userInfo = userInfoMap.get(item[TlUserApplyDef.userId]) + if(!userInfo){ + userInfo = {} + } + + let channelInfo = channelInfoMap.get(item[TlUserApplyDef.targetId]) + if(!channelInfo){ + channelInfo = {} + } + + resultList.push({ + id : item[TlUserApplyDef.id], + channelId: channelInfo[TlChannelDef.id], + channelName: channelInfo[TlChannelDef.name], + channelAvatar: "/image/group-default-avatar.png", + channelApplyRemark: item[TlUserApplyDef.remark], + channelCompanyName: loginUserCompanyName, + + userId: userInfo[TlUserDef.id], + username: userInfo[TlUserDef.name], + userAvatar: await getAvatarOssUrl(userInfo[TlUserDef.avatarUrl]), + origin : item[TlUserApplyDef.origin], + createTime: item[TlUserApplyDef.createdAt], + status : statusStr, + hasRead: userReadMap.has(item[TlUserApplyDef.id]) + }) + } + + return tlResponseSuccess("获取成功", resultList) +} module.exports = { applyAddFriend, passUserFriendApply, rejectUserFriendApply, getUserFriendApplyListFromSelf, - getUserFriendListFromOther + getUserFriendListFromOther, + + applyAddGroup, + passUserGroupApply, + rejectUserGroupApply, + getUserGroupApplyListFromSelf, + getUserGroupListFromOther } \ No newline at end of file diff --git a/src/biz/user/user_biz.js b/src/biz/user/user_biz.js index c4bd1bb..fe8bd04 100644 --- a/src/biz/user/user_biz.js +++ b/src/biz/user/user_biz.js @@ -1,20 +1,33 @@ +const crypto = require('crypto') const { tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, - setBit, checkBit, checkIsEmail + tlResponseNotFound, tlResponseSuccess, + checkIsEmail, checkIsId, encryptStr, + tlConsole } = require('../../utils/utils') const userService = require('../../service/user/tl_user_service') const userFriendService = require('../../service/user/tl_user_friend_service') const userSessionService = require('../../service/user/tl_user_session_service') -const { getAvatarOssUrl } = require('../../utils/oss/oss') +const cloudFileService = require('../../service/cloud/tl_cloud_file_service') +const userConfigService = require('../../service/user/tl_user_config_service') +const companyService = require('../../service/company/tl_company_service') + +const { getOssUrl, getAvatarOssUrl } = require('../../utils/oss/oss') const { fields: userFields } = require('../../tables/tl_user') const { fields: userFriendFields } = require('../../tables/tl_user_friend') +const { fields: cloudFileFields } = require('../../tables/tl_cloud_file') +const { fields: userConfigFields } = require('../../tables/tl_user_config') +const { inner: TlRoleInner } = require('../../tables/tl_role') +const { fields: companyFields } = require('../../tables/tl_company') const TlUserDef = userFields.Def const TlUserFriendDef = userFriendFields.Def -const TlUserFriendStatus = userFriendFields.Status const TlUserFriendType = userFriendFields.FriendType +const TlCloudFileDef = cloudFileFields.Def +const TlUserConfingDef = userConfigFields.Def +const TlUserConfingAccount = userConfigFields.Account +const TlCompanyDef = companyFields.Def @@ -25,7 +38,11 @@ const TlUserFriendType = userFriendFields.FriendType */ const searchUserByName = async function({ name, loginInfo }){ if(!name){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + if(name.length > 20){ + return tlResponseArgsError("请求参数过长") } const { @@ -70,8 +87,29 @@ const searchUserByName = async function({ name, loginInfo }){ let friendType = userFriendInfo[TlUserFriendDef.friendType] if(friendType === TlUserFriendType.NORMAL){ friendTypeStr = '普通好友' - }else if(friendType === TlUserFriendType.SPECIAL){ - friendTypeStr = '特别关注' + } + } + + // 非好友, 检查是否允许被搜索 + if(!isFriend){ + // 获取用户配置 + const userConfigInfo = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: info[TlUserDef.id] + }, [ + TlUserConfingDef.account + ]) + let accountSettingStr = userConfigInfo[TlUserConfingDef.account] + let accountSetting = {} + try{ + accountSetting = JSON.parse(accountSettingStr) + }catch(e){ + accountSetting = {} + } + // 不允许被搜索 + let notAllowSearchAccount = accountSetting[TlUserConfingAccount.notAllowSearchAccount] || false + if(notAllowSearchAccount){ + return tlResponseForbidden("私密用户") } } @@ -83,11 +121,12 @@ const searchUserByName = async function({ name, loginInfo }){ wechatName: info[TlUserDef.wchatName], channelId: userFriendInfo[TlUserFriendDef.channelId], isFriend: isFriend, + isSelf: info[TlUserDef.id] == loginUserId, remark: userFriendInfo[TlUserFriendDef.remark], friendType: friendTypeStr } - return tlResponseSuccess("搜索用户成功", result) + return tlResponseSuccess("搜索成功", result) } /** @@ -97,7 +136,12 @@ const searchUserByName = async function({ name, loginInfo }){ */ const searchUserById = async function({ id, loginInfo }){ if(!id){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + id = parseInt(id) + if(!id){ + return tlResponseArgsError("请求参数错误") } const { @@ -135,6 +179,29 @@ const searchUserById = async function({ id, loginInfo }){ isFriend = true } + // 非好友, 检查是否允许被搜索 + if(!isFriend){ + // 获取用户配置 + const userConfigInfo = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: info[TlUserDef.id] + }, [ + TlUserConfingDef.account + ]) + let accountSettingStr = userConfigInfo[TlUserConfingDef.account] + let accountSetting = {} + try{ + accountSetting = JSON.parse(accountSettingStr) + }catch(e){ + accountSetting = {} + } + // 不允许被搜索 + let notAllowSearchAccount = accountSetting[TlUserConfingAccount.notAllowSearchAccount] || false + if(notAllowSearchAccount){ + return tlResponseForbidden("私密用户") + } + } + const result = { userId: info[TlUserDef.id], username: info[TlUserDef.name], @@ -145,7 +212,70 @@ const searchUserById = async function({ id, loginInfo }){ isFriend: isFriend } - return tlResponseSuccess("搜索用户成功", result) + return tlResponseSuccess("搜索成功", result) +} + +/** + * 更新用户头像 + * @param {*} token + * @param {*} loginInfo + * @param {*} cloudFileId + * @returns + */ +const updateUserAvatar = async function({ token, loginInfo, cloudFileId }){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + if(!cloudFileId){ + return tlResponseArgsError("请求参数错误") + } + + cloudFileId = parseInt(cloudFileId) + if(!cloudFileId){ + return tlResponseArgsError("请求参数错误") + } + + const cloudFileInfo = await cloudFileService.getInfoById({ + companyId: loginUserCompanyId, + id: cloudFileId + }, [ + TlCloudFileDef.fileUrl, + TlCloudFileDef.userId + ]) + + if(Object.keys(cloudFileInfo).length == 0){ + return tlResponseNotFound("更新失败") + } + + // 如果文件所属人不是自己, 非法操作 + const cloudFileUserId = cloudFileInfo[TlCloudFileDef.userId] + if(cloudFileUserId != loginUserId){ + return tlResponseForbidden("非法操作") + } + + const result = await userService.updateInfoById({ + companyId: loginUserCompanyId, + id: loginUserId, + }, { + [TlUserDef.avatarUrl]: cloudFileInfo[TlCloudFileDef.fileUrl] + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("更新头像失败") + } + + let fileUrl = cloudFileInfo[TlCloudFileDef.fileUrl] + fileUrl = await getOssUrl(fileUrl) + + // 更新登录态信息 + await userSessionService.setUserInfoByToken({ + token, info: Object.assign(loginInfo, { + loginUserAvatar: fileUrl + }) + }) + + return tlResponseSuccess("更新头像成功") } @@ -176,6 +306,10 @@ const bindEmail = async function({ token, loginInfo, email, code }) { return tlResponseArgsError("邮箱格式不正确") } + if(email.length > 50){ + return tlResponseArgsError("邮箱长度过长") + } + if(email == loginUserEmail){ return tlResponseForbidden("邮箱未更换") } @@ -226,10 +360,504 @@ const bindEmail = async function({ token, loginInfo, email, code }) { } +/** + * 更新用户信息 - 管理员 + * @param {*} id + * @param {*} companyId + * @param {*} name + * @param {*} email + * @param {*} mobile + * @param {*} avatarUrl + * @param {*} roleId + * @param {*} loginInfo + * @returns + */ +const adminUpdateUser = async function({ + id, companyId, name, email, mobile, avatarUrl, + loginInfo +}){ + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!id || !name || !companyId){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(id)){ + return tlResponseArgsError("用户id非法") + } + + if(!checkIsId(companyId)){ + return tlResponseArgsError("企业id非法") + } + + id = parseInt(id) + companyId = parseInt(companyId) + + if(name.length > 20){ + return tlResponseArgsError("用户名过长") + } + + if(email.length > 64){ + return tlResponseArgsError("邮箱过长") + } + + if(mobile.length > 11){ + return tlResponseArgsError("手机号过长") + } + + const companyInfo = await companyService.getInfoById({ + id: companyId + }) + + if(Object.keys(companyInfo).length == 0){ + return tlResponseNotFound("企业不存在") + } + + const info = await userService.getInfoById({ + id: id, + companyId + }, [ + TlUserDef.id + ]) + + if(Object.keys(info).length == 0){ + return tlResponseNotFound("用户不存在") + } + + const result = await userService.updateInfoById({ + id: id, + companyId + }, { + [TlUserDef.name]: name, + [TlUserDef.email]: email, + [TlUserDef.mobile]: mobile, + [TlUserDef.avatarUrl]: avatarUrl, + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") +} + + +/** + * 删除用户 - 管理员 + * @param {*} companyId + * @param {*} id + * @param {*} loginInfo + * @returns + */ +const adminDeleteUser = async function({ companyId, id, loginInfo }){ + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!id){ + return tlResponseArgsError("请求参数错误") + } + + if(!companyId){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(companyId)){ + return tlResponseArgsError("企业id非法") + } + + if(!checkIsId(id)){ + return tlResponseArgsError("用户id非法") + } + + companyId = parseInt(companyId) + id = parseInt(id) + + const companyInfo = await companyService.getInfoById({ + id: companyId + }) + + if(Object.keys(companyInfo).length == 0){ + return tlResponseNotFound("企业不存在") + } + + const info = await userService.getInfoById({ + id, + companyId + }, [ + TlUserDef.id, + TlUserDef.roleId + ]) + + if(Object.keys(info).length == 0){ + return tlResponseNotFound("用户不存在") + } + + const roleId = info[TlUserDef.roleId] + if(roleId === TlRoleInner.user.admin.id){ + return tlResponseForbidden("管理员帐号不允许删除") + } + + const result = await userService.deleteInfoById({ + id, + companyId + }) + + console.log("result : ", result) + + if(result == 0){ + return tlResponseSvrError("删除失败") + } + + return tlResponseSuccess("删除成功") +} + + +/** + * 获取用户列表 - 管理员 + * @param {*} keyword + * @param {*} companyId + * @param {*} page + * @param {*} limit + * @param {*} loginInfo + * @returns + **/ +const adminGetUserList = async function({ keyword = '', companyId = undefined, page, limit, loginInfo }){ + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!page || !limit){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(page)){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(limit)){ + return tlResponseArgsError("请求参数错误") + } + + page = parseInt(page) + limit = parseInt(limit) + + if(keyword.length > 20){ + return tlResponseArgsError("用户名过长") + } + + let list = [] + let total = 0 + + if(keyword === '' || keyword === undefined || keyword === null){ + list = await userService.getListForPage({ + companyId + }, [ + TlUserDef.id, + TlUserDef.companyId, + TlUserDef.name, + TlUserDef.email, + TlUserDef.mobile, + TlUserDef.avatarUrl, + TlUserDef.roleId, + TlUserDef.createdAt + ], page, limit) + + total = await userService.getCount({ + + }) + }else{ + list = await userService.getListByKeywordForPage({ + keyword, companyId + }, [ + TlUserDef.id, + TlUserDef.companyId, + TlUserDef.name, + TlUserDef.email, + TlUserDef.mobile, + TlUserDef.avatarUrl, + TlUserDef.roleId, + TlUserDef.createdAt + ], page, limit) + + total = await userService.getCountByKeyword({ + keyword + }) + } + + if(list.length == 0){ + return tlResponseSuccess("获取成功", { + list: [], + count: 0 + }) + } + + const companyIdList = list.map(item => item[TlUserDef.companyId]) + + let companyInfoMap = {} + if(companyIdList.length > 0){ + const companyList = await companyService.getListByIdList({ + idList: companyIdList + }, [ + TlCompanyDef.id, + TlCompanyDef.name + ]) + + companyInfoMap = companyList.reduce((acc, cur) => { + acc[cur[TlCompanyDef.id]] = cur + return acc + }, {}) + } + + let resultList = [] + + for(let i = 0; i < list.length; i++){ + let item = list[i] + let roleId = item[TlUserDef.roleId] + let roleName = '' + if(roleId === TlRoleInner.user.admin.id){ + roleName = TlRoleInner.user.admin.name + }else if(roleId === TlRoleInner.user.normal.id){ + roleName = TlRoleInner.user.normal.name + }else{ + roleName = "未知" + } + + let companyId = item[TlUserDef.companyId] + const companyInfo = companyInfoMap[companyId] || {} + let companyName = companyInfo[TlCompanyDef.name] || '' + + resultList.push({ + companyId: companyId, + companyName: companyName, + id: item[TlUserDef.id], + name: item[TlUserDef.name], + email: item[TlUserDef.email], + mobile: item[TlUserDef.mobile], + avatarUrl: await getAvatarOssUrl(item[TlUserDef.avatarUrl]), + roleName, + roleId, + createTime: item[TlUserDef.createdAt], + }) + } + + return tlResponseSuccess("获取成功", { + list: resultList, + count: total + }) +} + +/** + * 获取用户信息 - 管理员 + * @param {*} id + * @param {*} companyId + * @param {*} loginInfo + * @returns + */ +const adminGetUserInfo = async function({ id, companyId, loginInfo }){ + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!id || !companyId){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(id)){ + return tlResponseArgsError("用户id非法") + } + + if(!checkIsId(companyId)){ + return tlResponseArgsError("企业id非法") + } + + id = parseInt(id) + companyId = parseInt(companyId) + + const companyInfo = await companyService.getInfoById({ + id: companyId + }, [ + TlCompanyDef.id, + TlCompanyDef.name + ]) + + if(Object.keys(companyInfo).length == 0){ + return tlResponseNotFound("企业不存在") + } + + const info = await userService.getInfoById({ + id, + companyId + }, [ + TlUserDef.id, + TlUserDef.companyId, + TlUserDef.name, + TlUserDef.email, + TlUserDef.mobile, + TlUserDef.avatarUrl, + TlUserDef.roleId, + TlUserDef.createdAt + ]) + + if(Object.keys(info).length == 0){ + return tlResponseNotFound("用户不存在") + } + + let roleId = info[TlUserDef.roleId] + + let roleName = '' + if(roleId === TlRoleInner.user.admin.id){ + roleName = TlRoleInner.user.admin.name + }else if(roleId === TlRoleInner.user.normal.id){ + roleName = TlRoleInner.user.normal.name + }else { + roleName = "未知" + } + + const result = { + companyId: info[TlUserDef.companyId], + companyName: companyInfo[TlCompanyDef.name], + id: info[TlUserDef.id], + name: info[TlUserDef.name], + email: info[TlUserDef.email], + mobile: info[TlUserDef.mobile], + avatarUrl: await getAvatarOssUrl(info[TlUserDef.avatarUrl]), + roleName, + roleId, + createTime: info[TlUserDef.createdAt], + } + + return tlResponseSuccess("获取成功", result) +} + + +/** + * 添加用户 - 管理员 + * @param {*} companyId + * @param {*} name + * @param {*} password + * @param {*} email + * @param {*} mobile + * @param {*} avatarUrl + * @param {*} roleId + * @param {*} loginInfo + * @returns + */ +const adminAddUser = async function({ + companyId, name, password, email, mobile, avatarUrl, roleId, + loginInfo +}){ + const { + loginUserCompanyId, loginUserId, loginUserRoleId + } = loginInfo + + if(loginUserRoleId !== TlRoleInner.user.admin.id){ + return tlResponseForbidden("非法用户") + } + + if(!companyId || !name || !password || !roleId){ + return tlResponseArgsError("请求参数错误") + } + + if(!checkIsId(companyId)){ + return tlResponseArgsError("企业id非法") + } + + if(!checkIsId(roleId)){ + return tlResponseArgsError("角色id非法") + } + + companyId = parseInt(companyId) + roleId = parseInt(roleId) + + if(name.length > 20){ + return tlResponseArgsError("用户名过长") + } + + if(password.length > 64){ + return tlResponseArgsError("密码过长") + } + + if(email && email.length > 64){ + return tlResponseArgsError("邮箱过长") + } + + if(mobile && mobile.length > 11){ + return tlResponseArgsError("手机号过长") + } + + if(avatarUrl && avatarUrl.length > 255){ + return tlResponseArgsError("头像url过长") + } + + const companyInfo = await companyService.getInfoById({ + id: companyId + }) + + if(Object.keys(companyInfo).length == 0){ + return tlResponseNotFound("企业不存在") + } + + if([ + TlRoleInner.user.normal.id, + ].indexOf(roleId) === -1){ + return tlResponseArgsError("角色id非法") + } + + const salt = crypto.randomBytes(16).toString('hex') + const saltPassword = encryptStr({ + str: password, + salt: salt + }) + + tlConsole(name, password, salt, saltPassword) + + const result = await userService.addInfo({ + companyId, + name, + password, + salt, + roleId, + email: email || '', + mobile: mobile || '', + avatarUrl: avatarUrl || '', + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("添加失败") + } + + return tlResponseSuccess("添加用成功") +} module.exports = { searchUserByName, + updateUserAvatar, searchUserById, - bindEmail + bindEmail, + + adminUpdateUser, + adminAddUser, + adminDeleteUser, + adminGetUserList, + adminGetUserInfo } \ No newline at end of file diff --git a/src/biz/user/user_clear_biz.js b/src/biz/user/user_clear_biz.js new file mode 100644 index 0000000..30b9cad --- /dev/null +++ b/src/biz/user/user_clear_biz.js @@ -0,0 +1,317 @@ +const { + tlResponseArgsError, tlResponseSvrError, + tlResponseNotFound, tlResponseSuccess, checkIsId +} = require('../../utils/utils') +const userClearService = require('../../service/user/tl_user_clear_service') +const channelService = require('../../service/channel/tl_channel_service') +const channelChatService = require('../../service/channel/tl_channel_chat_service') +const channelFileService = require('../../service/channel/tl_channel_file_service') +const channelMediaService = require('../../service/channel/tl_channel_media_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') + +const { fields: userClearDef } = require('../../tables/tl_user_clear') + +const { Def: TlUserClearDef, Type: TlUserClearType } = userClearDef + + +/** + * 更新频道清理记录 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} latestClearId + * @param {*} type + */ +const updateChannelUserClear = async function({ + loginInfo, channelId, latestClearId, type +}){ + if (latestClearId == null || latestClearId == undefined) { + return tlResponseArgsError("请求参数错误") + } + + latestClearId = parseInt(latestClearId) + if(!checkIsId(latestClearId)){ + return tlResponseArgsError("请求参数错误") + } + + if (!channelId) { + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + if(!type){ + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const userClearList = await userClearService.getListByChannelUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId + }) + + let chatClearRecord = null + let mediaClearRecord = null + let fileClearRecord = null + + userClearList.forEach((userClear) => { + if (userClear[TlUserClearDef.type] === TlUserClearType.CHAT) { + chatClearRecord = userClear + } + if (userClear[TlUserClearDef.type] === TlUserClearType.MEDIA) { + mediaClearRecord = userClear + } + if (userClear[TlUserClearDef.type] === TlUserClearType.FILE) { + fileClearRecord = userClear + } + }) + + // 聊天消息清理记录不存在,新增, 否则更新清理消息最新ID + if(type === TlUserClearType.CHAT){ + if(!chatClearRecord || Object.keys(chatClearRecord).length === 0){ + chatClearRecord = await userClearService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId, + latestClearId, + type: TlUserClearType.CHAT + }) + + if(Object.keys(chatClearRecord).length === 0){ + return tlResponseSvrError("更新失败") + } + }else{ + const clearId = chatClearRecord[TlUserClearDef.id] + if(!clearId){ + return tlResponseSvrError("更新失败") + } + + // 更新聊天消息清理记录 + const updateInfo = await userClearService.updateInfoById({ + companyId: loginUserCompanyId, + id: clearId + }, { + [TlUserClearDef.latestClearId]: latestClearId + }) + + if(Object.keys(updateInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + } + } + + // 媒体消息清理记录不存在,新增, 否则更新清理消息最新ID + if(type === TlUserClearType.MEDIA){ + if(!mediaClearRecord || Object.keys(mediaClearRecord).length === 0){ + mediaClearRecord = await userClearService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId, + latestClearId, + type: TlUserClearType.MEDIA + }) + + if(Object.keys(mediaClearRecord).length === 0){ + return tlResponseSvrError("更新失败") + } + }else{ + const clearId = mediaClearRecord[TlUserClearDef.id] + if(!clearId){ + return tlResponseSvrError("更新失败") + } + + // 更新媒体消息清理记录 + const updateInfo = await userClearService.updateInfoById({ + companyId: loginUserCompanyId, + id: clearId + }, { + [TlUserClearDef.latestClearId]: latestClearId + }) + + if(Object.keys(updateInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + } + } + + // 文件消息清理记录不存在,新增, 否则更新清理消息最新ID + if(type === TlUserClearType.FILE){ + if(!fileClearRecord || Object.keys(fileClearRecord).length === 0){ + fileClearRecord = await userClearService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId, + latestClearId, + type: TlUserClearType.FILE + }) + + if(Object.keys(fileClearRecord).length === 0){ + return tlResponseSvrError("更新失败") + } + }else{ + const clearId = fileClearRecord[TlUserClearDef.id] + if(!clearId){ + return tlResponseSvrError("更新失败") + } + + // 更新文件消息清理记录 + const updateInfo = await userClearService.updateInfoById({ + companyId: loginUserCompanyId, + id: clearId + }, { + [TlUserClearDef.latestClearId]: latestClearId + }) + + if(Object.keys(updateInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + } + } + + return tlResponseSuccess("更新成功") +} + +/** + * 更新频道多类型清理记录 (文件/媒体/聊天) + * @param {*} loginInfo + * @param {*} channelId + * @returns + */ +const updateChannelMuiltClear = async function({ + loginInfo, channelId +}){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + if(!channelId){ + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") + } + + // 频道是否存在 + const channel = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channel).length === 0){ + return tlResponseNotFound("频道不存在") + } + + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + + // 找到最新的频道聊天id + const latestChatClearId = await channelChatService.getChannelChatLatestId({ + companyId: loginUserCompanyId, + channelId + }) + + // 找到最新的频道媒体id + const latestMediaClearId = await channelMediaService.getChannelMediaLatestId({ + companyId: loginUserCompanyId, + channelId + }) + + // 找到最新的频道文件id + const latestFileClearId = await channelFileService.getChannelFileLatestId({ + companyId: loginUserCompanyId, + channelId + }) + + const chatResult = await updateChannelUserClear({ + loginInfo, channelId, latestClearId: latestChatClearId, type: TlUserClearType.CHAT + }); + + if (!chatResult.success) { + return chatResult + } + + const mediaResult = await updateChannelUserClear({ + loginInfo, channelId, latestClearId: latestMediaClearId, type: TlUserClearType.MEDIA + }); + + if (!mediaResult.success) { + return mediaResult + } + + const fileResult = await updateChannelUserClear({ + loginInfo, channelId, latestClearId: latestFileClearId, type: TlUserClearType.FILE + }); + + if (!fileResult.success) { + return fileResult + } + + return tlResponseSuccess("清理成功") +} + +/** + * 更新频道聊天清理记录 + * @param {*} loginInfo + * @param {*} channelId + * @returns + */ +const updateChannelChatClear = async function({ + loginInfo, channelId +}){ + return await updateChannelUserClear({ + loginInfo, channelId, type: TlUserClearType.CHAT + }) +} + +/** + * 更新频道媒体清理记录 + * @param {*} loginInfo + * @param {*} channelId + * @returns + */ +const updateChannelMediaClear = async function({ + loginInfo, channelId +}){ + return await updateChannelUserClear({ + loginInfo, channelId, type: TlUserClearType.MEDIA + }) +} + +/** + * 更新频道文件清理记录 + * @param {*} loginInfo + * @param {*} channelId + * @returns + */ +const updateChannelFileClear = async function({ + loginInfo, channelId +}){ + return await updateChannelUserClear({ + loginInfo, channelId, type: TlUserClearType.FILE + }) +} + + + +module.exports = { + updateChannelChatClear, + updateChannelMediaClear, + updateChannelFileClear, + updateChannelMuiltClear, +} \ No newline at end of file diff --git a/src/biz/user/user_config_biz.js b/src/biz/user/user_config_biz.js index fd569c3..0f6d7c1 100644 --- a/src/biz/user/user_config_biz.js +++ b/src/biz/user/user_config_biz.js @@ -1,10 +1,7 @@ const { - tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, - setBit, checkBit + tlResponseSvrError, tlResponseNotFound, tlResponseSuccess, } = require('../../utils/utils') const userConfigService = require('../../service/user/tl_user_config_service') -const userSessionService = require('../../service/user/tl_user_session_service') const { fields: userConfigFields } = require('../../tables/tl_user_config') @@ -13,6 +10,7 @@ const TlUserConfigAccountDef = userConfigFields.Account const TlUserConfigSkinDef = userConfigFields.Skin const TlUserConfigAuthorityDef = userConfigFields.Authority const TlUserConfigMessageDef = userConfigFields.Message +const TlUserConfigNormalDef = userConfigFields.Normal const TlUserConfigOtherDef = userConfigFields.Other @@ -68,7 +66,7 @@ const getUserConfigSetting = async function({ loginInfo }){ normal: JSON.parse(userConfigNormal) } - return tlResponseSuccess("获取设置成功", result) + return tlResponseSuccess("获取成功", result) } @@ -116,10 +114,10 @@ const updateUserConfigNormal = async function({ loginInfo, normal }){ }) if(Object.keys(result).length == 0){ - return tlResponseSvrError("更新设置失败") + return tlResponseSvrError("更新失败") } - return tlResponseSuccess("更新设置成功") + return tlResponseSuccess("更新成功") } @@ -167,10 +165,10 @@ const updateUserConfigAccount = async function({ loginInfo, account }){ }) if(Object.keys(result).length == 0){ - return tlResponseSvrError("更新设置失败") + return tlResponseSvrError("更新失败") } - return tlResponseSuccess("更新设置成功") + return tlResponseSuccess("更新成功") } @@ -218,10 +216,10 @@ const updateUserConfigMessage = async function({ loginInfo, message }){ }) if(Object.keys(result).length == 0){ - return tlResponseSvrError("更新设置失败") + return tlResponseSvrError("更新失败") } - return tlResponseSuccess("更新设置成功") + return tlResponseSuccess("更新成功") } /** @@ -268,10 +266,10 @@ const updateUserConfigAuthority = async function({ loginInfo, authority }){ }) if(Object.keys(result).length == 0){ - return tlResponseSvrError("更新设置失败") + return tlResponseSvrError("更新失败") } - return tlResponseSuccess("更新设置成功") + return tlResponseSuccess("更新成功") } /** @@ -318,10 +316,10 @@ const updateUserConfigSkin = async function({ loginInfo, skin }){ }) if(Object.keys(result).length == 0){ - return tlResponseSvrError("更新设置失败") + return tlResponseSvrError("更新失败") } - return tlResponseSuccess("更新设置成功") + return tlResponseSuccess("更新成功") } @@ -369,10 +367,10 @@ const updateUserConfigOther = async function({ loginInfo, other }){ }) if(Object.keys(result).length == 0){ - return tlResponseSvrError("更新设置失败") + return tlResponseSvrError("更新失败") } - return tlResponseSuccess("更新设置成功") + return tlResponseSuccess("更新成功") } diff --git a/src/biz/user/user_friend_biz.js b/src/biz/user/user_friend_biz.js index d1a93ee..3b4ffd6 100644 --- a/src/biz/user/user_friend_biz.js +++ b/src/biz/user/user_friend_biz.js @@ -1,8 +1,6 @@ const { tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, - setBit, checkBit, - tlConsole + tlResponseNotFound, tlResponseSuccess, checkIsId } = require('../../utils/utils') const userFriendService = require('../../service/user/tl_user_friend_service') const userService = require('../../service/user/tl_user_service') @@ -10,7 +8,7 @@ const userSessionService = require('../../service/user/tl_user_session_service') const channelService = require('../../service/channel/tl_channel_service') const channelUserService = require('../../service/channel/tl_channel_user_service') const channelChatService = require('../../service/channel/tl_channel_chat_service') -const { getOssUrl } = require('../../utils/oss/oss') +const { getAvatarOssUrl } = require('../../utils/oss/oss') const { fields: userFriendFields } = require('../../tables/tl_user_friend') const { fields: userFields } = require('../../tables/tl_user') @@ -19,11 +17,14 @@ const { fields: channelUserFields } = require('../../tables/tl_channel_user') const { inner: TlRoleInner } = require('../../tables/tl_role') const { fields: channelChatFields } = require('../../tables/tl_channel_chat') -const { Def: TlUserFriendDef, Status: TlUserFriendStatus, FriendType: TlUserFriendType, Origin: TlUserFriendOrigin } = userFriendFields +const { + Def: TlUserFriendDef, Status: TlUserFriendStatus, + FriendType: TlUserFriendType, +} = userFriendFields const { Def: TlUserDef } = userFields const { Def: TlChannelDef, Type: TlChannelType } = channelFields -const { Def: TlChannelChatDef, Other: TlChannelChatOther } = channelChatFields +const { Other: TlChannelChatOther } = channelChatFields const { Def: TlchannelUserDef, Type: TlChannelUserType } = channelUserFields @@ -46,6 +47,7 @@ const getFriendList = async function({ loginInfo }){ TlUserFriendDef.id, TlUserFriendDef.friendId, TlUserFriendDef.origin, + TlUserFriendDef.flag, TlUserFriendDef.createdAt, TlUserFriendDef.friendType, TlUserFriendDef.remark, @@ -80,11 +82,6 @@ const getFriendList = async function({ loginInfo }){ let resultList = [] for(let i = 0; i < userFriendList.length; i++){ const item = userFriendList[i] - let originStr = '' - const origin = item[TlUserFriendDef.origin] - if(origin == TlUserFriendOrigin.SEARCH_NAME){ - originStr = "搜索用户名添加" - } const friendId = item[TlUserFriendDef.friendId] let friendInfo = userInfoMap.get(friendId) @@ -98,13 +95,11 @@ const getFriendList = async function({ loginInfo }){ let friendType = item[TlUserFriendDef.friendType] if(friendType == TlUserFriendType.NORMAL){ friendTypeStr = '普通好友' - }else if(friendType == TlUserFriendType.SPECIAL){ - friendTypeStr = '特别关注' } resultList.push({ id : item[TlUserFriendDef.id], - origin : originStr, + origin : item[TlUserFriendDef.origin], friendType: friendTypeStr, remark: item[TlUserFriendDef.remark], createTime: item[TlUserFriendDef.createdAt], @@ -115,11 +110,11 @@ const getFriendList = async function({ loginInfo }){ username: friendInfo[TlUserDef.name], userEmail: friendInfo[TlUserDef.email], userMobile: friendInfo[TlUserDef.mobile], - userAvatar: await getOssUrl(friendInfo[TlUserDef.avatarUrl]), + userAvatar: await getAvatarOssUrl(friendInfo[TlUserDef.avatarUrl]), }) } - return tlResponseSuccess("获取好友列表成功", resultList) + return tlResponseSuccess("获取成功", resultList) } @@ -130,7 +125,12 @@ const getFriendList = async function({ loginInfo }){ */ const deleteFriend = async function({ loginInfo, channelId }){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -148,7 +148,7 @@ const deleteFriend = async function({ loginInfo, channelId }){ ]) if(Object.keys(channelUserInfo).length == 0){ - return tlResponseNotFound("删除好友成功") + return tlResponseNotFound("非法操作") } const channelType = channelUserInfo[TlchannelUserDef.type] @@ -157,11 +157,15 @@ const deleteFriend = async function({ loginInfo, channelId }){ } // 删除自己在频道的数据 - await channelUserService.deleteInfoById({ + const deleteRes = await channelUserService.deleteInfoById({ companyId: loginUserCompanyId, id: channelUserInfo[TlchannelUserDef.id] }) + if(deleteRes === 0){ + return tlResponseSvrError("删除失败") + } + // 获取好友关系 const userFriendInfo = await userFriendService.getInfoByChannelIdAndUserId({ companyId: loginUserCompanyId, @@ -172,21 +176,25 @@ const deleteFriend = async function({ loginInfo, channelId }){ ]) if(Object.keys(userFriendInfo).length == 0){ - return tlResponseNotFound("删除好友成功") + return tlResponseNotFound("删除成功") } const userFriendId = userFriendInfo[TlUserFriendDef.id] if(!userFriendId){ - return tlResponseNotFound("删除好友成功") + return tlResponseNotFound("删除成功") } // 删除好友关系 - await userFriendService.deleteInfoById({ + const deleteFriendRes = await userFriendService.deleteInfoById({ companyId: loginUserCompanyId, id: userFriendId }) - return tlResponseSuccess("删除好友成功") + if(deleteFriendRes === 0){ + return tlResponseSvrError("删除失败") + } + + return tlResponseSuccess("删除成功") } @@ -198,11 +206,20 @@ const deleteFriend = async function({ loginInfo, channelId }){ */ const updateRemark = async function({ loginInfo, channelId, remark }){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } if(!remark){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + if(remark.length > 20){ + return tlResponseArgsError("备注长度不能超过20") } const { @@ -223,6 +240,12 @@ const updateRemark = async function({ loginInfo, channelId, remark }){ return tlResponseNotFound("好友不存在") } + // 当前用户是否存在频道 + const channelUserInfo = userFriendList.find(item => item[TlUserFriendDef.userId] == loginUserId) + if(!channelUserInfo){ + return tlResponseNotFound("非法操作") + } + const userFriendId = friendInfo[TlUserFriendDef.id] const info = await userFriendService.updateInfoById({ @@ -233,10 +256,10 @@ const updateRemark = async function({ loginInfo, channelId, remark }){ }) if(Object.keys(info).length == 0){ - return tlResponseSvrError("修改好友备注失败") + return tlResponseSvrError("更新失败") } - return tlResponseSuccess("修改好友备注成功") + return tlResponseSuccess("更新成功") } /** @@ -247,11 +270,20 @@ const updateRemark = async function({ loginInfo, channelId, remark }){ */ const updateRename = async function({ loginInfo, channelId, rename }){ if(!channelId){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } if(!rename){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + if(rename.length > 20){ + return tlResponseArgsError("备注长度不能超过20") } const { @@ -272,6 +304,12 @@ const updateRename = async function({ loginInfo, channelId, rename }){ return tlResponseNotFound("好友不存在") } + // 当前用户是否存在频道 + const channelUserInfo = userFriendList.find(item => item[TlUserFriendDef.userId] == loginUserId) + if(!channelUserInfo){ + return tlResponseNotFound("非法操作") + } + const userFriendId = friendInfo[TlUserFriendDef.id] const info = await userFriendService.updateInfoById({ companyId: loginUserCompanyId, @@ -281,10 +319,10 @@ const updateRename = async function({ loginInfo, channelId, rename }){ }) if(Object.keys(info).length == 0){ - return tlResponseSvrError("修改好友备注失败") + return tlResponseSvrError("更新失败") } - return tlResponseSuccess("修改好友备注成功") + return tlResponseSuccess("更新成功") } @@ -302,6 +340,11 @@ const initChannelForPassFriend = async function({ return tlResponseArgsError("初始化好友频道失败,请求参数为空") } + applyUserId = parseInt(applyUserId) + if(!checkIsId(applyUserId)){ + return tlResponseArgsError("初始化好友频道失败,请求参数错误") + } + // 获取这两个人的用户频道信息 const channelUserList = await channelUserService.getListByTypeUserIdList({ companyId: loginUserCompanyId, @@ -330,7 +373,7 @@ const initChannelForPassFriend = async function({ const existChannelId = loginUserIdChannelIdList.find(item => applyUserIdChannelIdList.includes(item)) // 如果已经存在频道用户数据,直接返回 if(existChannelId){ - return tlResponseSuccess("初始化好友频道成功1", { channelId: existChannelId }) + return tlResponseSuccess("初始化好友频道成功", { channelId: existChannelId }) } // 创建新频道 @@ -405,7 +448,7 @@ const initChannelForPassFriend = async function({ } }) - return tlResponseSuccess("初始化好友频道成功2", { channelId }) + return tlResponseSuccess("初始化好友频道成功", { channelId }) } @@ -418,9 +461,11 @@ const initChannelForPassFriend = async function({ * @param {*} origin * @param {*} remark * @param {*} channelId + * @param {*} flag */ const initUserFriendForPassFriend = async function({ - loginUserCompanyId, loginUserId, loginUsername, applyUserId, applyUserName, origin, remark, channelId + loginUserCompanyId, loginUserId, loginUsername, + applyUserId, applyUserName, origin, remark, channelId, flag }){ if(!applyUserId){ return tlResponseForbidden("生成好友记录失败,参数错误") @@ -457,6 +502,7 @@ const initUserFriendForPassFriend = async function({ userId: loginUserId, friendId: applyUserId, origin: origin, + flag: flag, remark: remark, friendType: TlUserFriendType.NORMAL, status: TlUserFriendStatus.NORMAL, @@ -473,6 +519,7 @@ const initUserFriendForPassFriend = async function({ userId: applyUserId, friendId: loginUserId, origin: origin, + flag: flag, remark: remark, friendType: TlUserFriendType.NORMAL, status: TlUserFriendStatus.NORMAL, @@ -487,66 +534,6 @@ const initUserFriendForPassFriend = async function({ return tlResponseSuccess("生成好友记录成功") } -/** - * 更新好友类型 - * @param {*} loginInfo - * @param {*} channelId - * @param {*} special - */ -const updateFriendSpecical = async function({ loginInfo, channelId, special }){ - if(!channelId){ - return tlResponseArgsError("请求参数为空") - } - - if(special === undefined || special === null){ - return tlResponseArgsError("请求参数为空") - } - - const { - loginUserCompanyId, loginUserId - } = loginInfo - - // 获取频道用户列表 - const userFriendList = await userFriendService.getListByChannelId({ - companyId: loginUserCompanyId, - channelId, - }, [ - TlUserFriendDef.id, - TlUserFriendDef.userId, - ]) - - const friendInfo = userFriendList.find(item => item[TlUserFriendDef.userId] == loginUserId) - if(!friendInfo){ - return tlResponseNotFound("好友不存在") - } - - const newFriendType = special ? TlUserFriendType.SPECIAL : TlUserFriendType.NORMAL - - const userFriendId = friendInfo[TlUserFriendDef.id] - const info = await userFriendService.updateInfoById({ - companyId: loginUserCompanyId, - id: userFriendId, - }, { - [TlUserFriendDef.friendType]: special ? TlUserFriendType.SPECIAL : TlUserFriendType.NORMAL - }) - - if(Object.keys(info).length == 0){ - return tlResponseSvrError("关注失败") - } - - let friendTypeStr = '' - if(newFriendType == TlUserFriendType.NORMAL){ - friendTypeStr = '普通好友' - }else if(newFriendType == TlUserFriendType.SPECIAL){ - friendTypeStr = '特别关注' - } - - return tlResponseSuccess(special ? '关注成功' : '取消关注成功', { - friendType: friendTypeStr - }) -} - - module.exports = { getFriendList, @@ -555,5 +542,4 @@ module.exports = { updateRename, initChannelForPassFriend, initUserFriendForPassFriend, - updateFriendSpecical } \ No newline at end of file diff --git a/src/biz/user/user_login_biz.js b/src/biz/user/user_login_biz.js index 00fcdd8..891b527 100644 --- a/src/biz/user/user_login_biz.js +++ b/src/biz/user/user_login_biz.js @@ -1,7 +1,9 @@ +const crypto = require('crypto') const { tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, - tlConsole, verifyEncryptStr + tlResponseSuccess, + tlConsole, verifyEncryptStr, getFormattedDate, encryptStr, + setBit } = require('../../utils/utils') const { getAvatarOssUrl @@ -15,12 +17,12 @@ const userFingerPrintService = require('../../service/user/tl_user_finger_print_ const { fields: companyFields } = require('../../tables/tl_company') const { Def: TlCompanyDef } = companyFields const { fields: userFields } = require('../../tables/tl_user') -const { Def: TlUserDef } = userFields +const { Def: TlUserDef, Flag: TlUserFlag } = userFields const { fields: userFingerPrintFields } = require('../../tables/tl_user_finger_print') const { Def: TlUserFingerPrintDef } = userFingerPrintFields const { fields: channelUserFields } = require('../../tables/tl_channel_user') -const { Def: TlChannelUserDef, Type: TlChannelUserType } = channelUserFields -const { inner: TlInnerRole } = require('../../tables/tl_role') +const { Def: TlChannelUserDef } = channelUserFields +const { inner: TlRoleInner } = require('../../tables/tl_role') /** @@ -42,6 +44,14 @@ const userLoginByAccount = async function({account, password, fps}){ account = Buffer.from(account, 'base64').toString() password = Buffer.from(password, 'base64').toString() + if(account.length > 20){ + return tlResponseArgsError("用户名或密码错误") + } + + if(password.length > 64){ + return tlResponseArgsError("用户名或密码错误") + } + const user = await userService.getInfoByNameForLogin({ name: account }, [ @@ -107,79 +117,6 @@ const userLoginByAccount = async function({account, password, fps}){ return tlResponseSuccess("登录成功", token) } -/** - * 通过手机号登录接口 - * @param {*} mobile - * @param {*} code - * @param {*} fps - */ -const userLoginByMobile = async function({mobile, code, fps}){ - if(!mobile){ - return tlResponseArgsError("手机号或验证码错误") - } - if(!code){ - return tlResponseArgsError("手机号或验证码错误") - } - - // base64解码 - mobile = Buffer.from(mobile, 'base64').toString() - password = Buffer.from(password, 'base64').toString() - - const user = await userService.getInfoByMobileForLogin({ - mobile - }, [ - TlUserDef.id, - TlUserDef.companyId, - TlUserDef.mobile, - TlUserDef.avatarUrl, - TlUserDef.roleId, - TlUserDef.email, - TlUserDef.name - ]) - - if(!user[TlUserDef.id]){ - return tlResponseArgsError("手机号或验证码错误") - } - - const company = await companyService.getInfoById({ - id: user[TlUserDef.companyId] - }, [ - TlCompanyDef.id, - TlCompanyDef.name - ]) - - const companyId = company[TlCompanyDef.id] - const companyName = company[TlCompanyDef.name] - - if(!companyId){ - return tlResponseForbidden("非法用户") - } - - const token = userSessionService.generateLoginToken(); - const info = { - loginUserId: user[TlUserDef.id], - loginUserMobile: user[TlUserDef.mobile], - loginUsername: user[TlUserDef.name], - loginUserEmail: user[TlUserDef.email], - loginUserRoleId: user[TlUserDef.roleId], - loginUserCompanyName : companyName, - loginUserCompanyId: companyId, - loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]), - loginTime: new Date().getTime(), - token - } - // 设置登录信息 - await userSessionService.setUserInfoByToken({token, info}) - - // 设置指纹 - await setFps({ userId: user[TlUserDef.id], fps }) - - // 设置用户频道角色 - await setUserChannelRole({ userId: user[TlUserDef.id], companyId }) - - return tlResponseSuccess("登录成功", token) -} - /** * 通过邮箱登录接口 * @param {*} email @@ -190,6 +127,7 @@ const userLoginByEmail = async function({email, password, fps}){ if(!email){ return tlResponseArgsError("邮箱或密码错误") } + if(!password){ return tlResponseArgsError("邮箱或密码错误") } @@ -198,6 +136,14 @@ const userLoginByEmail = async function({email, password, fps}){ email = Buffer.from(email, 'base64').toString() password = Buffer.from(password, 'base64').toString() + if(email.length > 50){ + return tlResponseArgsError("邮箱或密码错误") + } + + if(password.length > 64){ + return tlResponseArgsError("邮箱或密码错误") + } + const user = await userService.getInfoByEmailForLogin({ email }, [ @@ -263,50 +209,6 @@ const userLoginByEmail = async function({email, password, fps}){ return tlResponseSuccess("登录成功", token) } -/** - * 通过微信登录接口 - * @param {*} code - * @param {*} openId - */ -const userLoginByWechat = async function({openId, code}){ - - - return tlResponseSuccess("登录成功") -} - -/** - * 通过qq登录接口 - * @param {*} code - * @param {*} openId - */ -const userLoginByQQ = async function({openId, code}){ - - - return tlResponseSuccess("登录成功") -} - -/** - * 通过企业微信登录接口 - * @param {*} code - * @param {*} openId - */ -const userLoginByQyWechat = async function({openId, code}){ - - - return tlResponseSuccess("登录成功") -} - - -/** - * 游客登录接口 - * @param {*} code - */ -const userLoginByGuest = async function({code}){ - - - return tlResponseSuccess("登录成功") -} - /** * 通过指纹登录接口 - 一键登录 @@ -318,6 +220,14 @@ const userLoginByFingerPrint = async function({fps, username}){ return tlResponseArgsError("一键登录失败, 请使用其他登录方式登录") } + if(!username){ + return tlResponseArgsError("一键登录失败, 请使用其他登录方式登录") + } + + if(username.length > 20){ + return tlResponseArgsError("一键登录失败, 请使用其他登录方式登录") + } + const user = await userService.getInfoByNameForLogin({ name: username }, [ @@ -466,14 +376,15 @@ const setUserChannelRole = async function({userId, companyId}){ /** - * 官网登录 - 支持邮箱登录 + * 管理后台登录 - 支持邮箱登录 * @param {*} email * @param {*} password */ -const userLoginByWebsite = async function({ email, password }){ +const userLoginBySystem = async function({ email, password }){ if(!email){ return tlResponseArgsError("邮箱或密码错误") } + if(!password){ return tlResponseArgsError("邮箱或密码错误") } @@ -482,6 +393,14 @@ const userLoginByWebsite = async function({ email, password }){ email = Buffer.from(email, 'base64').toString() password = Buffer.from(password, 'base64').toString() + if(email.length > 50){ + return tlResponseArgsError("邮箱或密码错误") + } + + if(password.length > 64){ + return tlResponseArgsError("邮箱或密码错误") + } + const user = await userService.getInfoByEmailForLogin({ email }, [ @@ -493,7 +412,7 @@ const userLoginByWebsite = async function({ email, password }){ TlUserDef.roleId, TlUserDef.mobile, TlUserDef.salt, - TlUserDef.name + TlUserDef.name, ]) if(!user[TlUserDef.id]){ @@ -523,11 +442,11 @@ const userLoginByWebsite = async function({ email, password }){ } const roleId = user[TlUserDef.roleId] + if([ - TlInnerRole.website.user.id, - TlInnerRole.user.admin.id + TlRoleInner.user.admin.id ].indexOf(roleId) === -1){ - return tlResponseArgsError("非官网用户") + return tlResponseArgsError("非法用户") } const token = userSessionService.generateLoginToken(); @@ -544,19 +463,15 @@ const userLoginByWebsite = async function({ email, password }){ token } // 设置登录信息 - await userSessionService.setUserInfoByToken({token, info, isWebsite: true}) + await userSessionService.setUserInfoByToken({token, info, isSystem: true}) return tlResponseSuccess("登录成功", token) } + module.exports = { userLoginByAccount, - userLoginByMobile, userLoginByEmail, - userLoginByWechat, - userLoginByQQ, - userLoginByQyWechat, - userLoginByGuest, userLoginByFingerPrint, - userLoginByWebsite + userLoginBySystem } \ No newline at end of file diff --git a/src/biz/user/user_logout_biz.js b/src/biz/user/user_logout_biz.js index 70a5878..7752025 100644 --- a/src/biz/user/user_logout_biz.js +++ b/src/biz/user/user_logout_biz.js @@ -2,7 +2,6 @@ const { tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, tlResponseTimeout, tlResponseNotFound, tlResponseSuccess } = require('../../utils/utils') -const userService = require('../../service/user/tl_user_service') const userSessionService = require('../../service/user/tl_user_session_service') diff --git a/src/biz/user/user_read_biz.js b/src/biz/user/user_read_biz.js index b665c91..38baf33 100644 --- a/src/biz/user/user_read_biz.js +++ b/src/biz/user/user_read_biz.js @@ -1,11 +1,12 @@ const { - tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess + tlResponseArgsError, tlResponseSvrError, + tlResponseNotFound, tlResponseSuccess, checkIsId } = require('../../utils/utils') const userReadService = require('../../service/user/tl_user_read_service') -const userSessionService = require('../../service/user/tl_user_session_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') + + const { fields: userReadDef } = require('../../tables/tl_user_read') -const { fields: channelDef } = require('../../tables/tl_channel') const { Def: TlUserReadDef, Type: TlUserReadType } = userReadDef @@ -21,21 +22,42 @@ const updateChannelUserRead = async function({ loginInfo, channelId, latestReadId, type }){ if (!latestReadId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + latestReadId = parseInt(latestReadId) + if(!checkIsId(latestReadId)){ + return tlResponseArgsError("请求参数错误") } if (!channelId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + channelId = parseInt(channelId) + if(!checkIsId(channelId)){ + return tlResponseArgsError("请求参数错误") } if(!type){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } - + const { loginUserCompanyId, loginUserId, loginUsername } = loginInfo + // 当前用户是否存在频道 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId + }) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("非法操作") + } + const userReadList = await userReadService.getListByChannelUserId({ companyId: loginUserCompanyId, userId: loginUserId, @@ -60,7 +82,7 @@ const updateChannelUserRead = async function({ // 聊天消息已读记录不存在,新增, 否则更新已读消息最新ID if(type === TlUserReadType.CHAT){ - if(!chatReadRecord){ + if(!chatReadRecord || Object.keys(chatReadRecord).length === 0){ chatReadRecord = await userReadService.addInfo({ companyId: loginUserCompanyId, userId: loginUserId, @@ -72,29 +94,29 @@ const updateChannelUserRead = async function({ if(Object.keys(chatReadRecord).length === 0){ return tlResponseSvrError("更新失败") } - } - - const readId = chatReadRecord[TlUserReadDef.id] - if(!readId){ - return tlResponseSvrError("更新失败") - } - - // 更新聊天消息已读记录 - const updateInfo = await userReadService.updateInfoById({ - companyId: loginUserCompanyId, - id: readId - }, { - [TlUserReadDef.latestReadId]: latestReadId - }) - - if(Object.keys(updateInfo).length === 0){ - return tlResponseSvrError("更新失败") + }else{ + const readId = chatReadRecord[TlUserReadDef.id] + if(!readId){ + return tlResponseSvrError("更新失败") + } + + // 更新聊天消息已读记录 + const updateInfo = await userReadService.updateInfoById({ + companyId: loginUserCompanyId, + id: readId + }, { + [TlUserReadDef.latestReadId]: latestReadId + }) + + if(Object.keys(updateInfo).length === 0){ + return tlResponseSvrError("更新失败") + } } } // 媒体消息已读记录不存在,新增, 否则更新已读消息最新ID if(type === TlUserReadType.MEDIA){ - if(!mediaReadRecord){ + if(!mediaReadRecord || Object.keys(mediaReadRecord).length === 0){ mediaReadRecord = await userReadService.addInfo({ companyId: loginUserCompanyId, userId: loginUserId, @@ -106,29 +128,29 @@ const updateChannelUserRead = async function({ if(Object.keys(mediaReadRecord).length === 0){ return tlResponseSvrError("更新失败") } - } + }else{ + const readId = mediaReadRecord[TlUserReadDef.id] + if(!readId){ + return tlResponseSvrError("更新失败") + } - const readId = mediaReadRecord[TlUserReadDef.id] - if(!readId){ - return tlResponseSvrError("更新失败") - } + // 更新媒体消息已读记录 + const updateInfo = await userReadService.updateInfoById({ + companyId: loginUserCompanyId, + id: readId + }, { + [TlUserReadDef.latestReadId]: latestReadId + }) - // 更新媒体消息已读记录 - const updateInfo = await userReadService.updateInfoById({ - companyId: loginUserCompanyId, - id: readId - }, { - [TlUserReadDef.latestReadId]: latestReadId - }) - - if(Object.keys(updateInfo).length === 0){ - return tlResponseSvrError("更新失败") + if(Object.keys(updateInfo).length === 0){ + return tlResponseSvrError("更新失败") + } } } // 文件消息已读记录不存在,新增, 否则更新已读消息最新ID if(type === TlUserReadType.FILE){ - if(!fileReadRecord){ + if(!fileReadRecord || Object.keys(fileReadRecord).length === 0){ fileReadRecord = await userReadService.addInfo({ companyId: loginUserCompanyId, userId: loginUserId, @@ -140,23 +162,23 @@ const updateChannelUserRead = async function({ if(Object.keys(fileReadRecord).length === 0){ return tlResponseSvrError("更新失败") } - } + }else{ + const readId = fileReadRecord[TlUserReadDef.id] + if(!readId){ + return tlResponseSvrError("更新失败") + } - const readId = fileReadRecord[TlUserReadDef.id] - if(!readId){ - return tlResponseSvrError("更新失败") - } + // 更新文件消息已读记录 + const updateInfo = await userReadService.updateInfoById({ + companyId: loginUserCompanyId, + id: readId + }, { + [TlUserReadDef.latestReadId]: latestReadId + }) - // 更新文件消息已读记录 - const updateInfo = await userReadService.updateInfoById({ - companyId: loginUserCompanyId, - id: readId - }, { - [TlUserReadDef.latestReadId]: latestReadId - }) - - if(Object.keys(updateInfo).length === 0){ - return tlResponseSvrError("更新失败") + if(Object.keys(updateInfo).length === 0){ + return tlResponseSvrError("更新失败") + } } } @@ -174,8 +196,13 @@ const updateChannelUserRead = async function({ */ const updateChannelMuiltRead = async function({ loginInfo, channelId, latestChatReadId, latestMediaReadId, latestFileReadId -}){ +}){ if(latestChatReadId){ + latestChatReadId = parseInt(latestChatReadId) + if(!checkIsId(latestChatReadId)){ + return tlResponseArgsError("请求参数错误") + } + const chatResult = await updateChannelChatRead({ loginInfo, channelId, latestReadId: latestChatReadId }); @@ -186,6 +213,11 @@ const updateChannelMuiltRead = async function({ } if(latestMediaReadId){ + latestMediaReadId = parseInt(latestMediaReadId) + if(!checkIsId(latestMediaReadId)){ + return tlResponseArgsError("请求参数错误") + } + const mediaResult = await updateChannelMediaRead({ loginInfo, channelId, latestReadId: latestMediaReadId }); @@ -196,6 +228,11 @@ const updateChannelMuiltRead = async function({ } if(latestFileReadId){ + latestFileReadId = parseInt(latestFileReadId) + if(!checkIsId(latestFileReadId)){ + return tlResponseArgsError("请求参数错误") + } + const fileResult = await updateChannelFileRead({ loginInfo, channelId, latestReadId: latestFileReadId }); @@ -264,7 +301,12 @@ const addUserFriendApplyRead = async function({ loginInfo, recordId }){ if (!recordId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + recordId = parseInt(recordId) + if(!checkIsId(recordId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -296,7 +338,12 @@ const addUserFriendApplyPassRead = async function({ loginInfo, recordId }){ if (!recordId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + recordId = parseInt(recordId) + if(!checkIsId(recordId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -328,7 +375,12 @@ const addUserFriendApplyRejectRead = async function({ loginInfo, recordId }){ if (!recordId) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + recordId = parseInt(recordId) + if(!checkIsId(recordId)){ + return tlResponseArgsError("请求参数错误") } const { @@ -349,6 +401,118 @@ const addUserFriendApplyRejectRead = async function({ return tlResponseSuccess("更新成功") } +/** + * 新增群申请消息已读记录 + * @param {*} loginInfo + * @param {*} recordId + * @param {*} type + * @returns + */ +const addUserGroupApplyRead = async function({ + loginInfo, recordId +}){ + if (!recordId) { + return tlResponseArgsError("请求参数错误") + } + + recordId = parseInt(recordId) + if(!checkIsId(recordId)){ + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const addInfo = await userReadService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + recordId, + type: TlUserReadType.GROUP_APPLY + }) + + if(Object.keys(addInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") +} + +/** + * 新增群同意消息已读记录 + * @param {*} loginInfo + * @param {*} recordId + * @param {*} type + * @returns + */ +const addUserGroupApplyPassRead = async function({ + loginInfo, recordId +}){ + if (!recordId) { + return tlResponseArgsError("请求参数错误") + } + + recordId = parseInt(recordId) + if(!checkIsId(recordId)){ + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const addInfo = await userReadService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + recordId, + type: TlUserReadType.GROUP_APPLY_PASS + }) + + if(Object.keys(addInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") +} + +/** + * 新增群拒绝消息已读记录 + * @param {*} loginInfo + * @param {*} recordId + * @param {*} type + * @returns + */ +const addUserGroupApplyRejectRead = async function({ + loginInfo, recordId +}){ + if (!recordId) { + return tlResponseArgsError("请求参数错误") + } + + recordId = parseInt(recordId) + if(!checkIsId(recordId)){ + return tlResponseArgsError("请求参数错误") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const addInfo = await userReadService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + recordId, + type: TlUserReadType.GROUP_APPLY_REJECT + }) + + if(Object.keys(addInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") +} + + module.exports = { updateChannelChatRead, updateChannelMediaRead, @@ -357,5 +521,9 @@ module.exports = { addUserFriendApplyRead, addUserFriendApplyPassRead, - addUserFriendApplyRejectRead + addUserFriendApplyRejectRead, + + addUserGroupApplyRead, + addUserGroupApplyPassRead, + addUserGroupApplyRejectRead, } \ No newline at end of file diff --git a/src/biz/user/user_register_biz.js b/src/biz/user/user_register_biz.js index 47d9f42..7f76b56 100644 --- a/src/biz/user/user_register_biz.js +++ b/src/biz/user/user_register_biz.js @@ -1,14 +1,14 @@ const crypto = require('crypto') const { tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + tlResponseSuccess, tlConsole, checkIsEmail, checkIsMobile, tlConsoleError, encryptStr } = require('../../utils/utils'); const { - sendVerificationCodeEmail + sendVerificationCodeEmail, sendResetPasswordEmail } = require('../../utils/mail/mail'); const companyService = require('../../service/company/tl_company_service') @@ -21,7 +21,7 @@ const { inner: TlRoleInner } = require('../../tables/tl_role') const { fields: userFields } = require('../../tables/tl_user') const { fields: userAuthFields } = require('../../tables/tl_user_auth'); const { Def: TlUserDef } = userFields -const { Def: TlUserAuthDef, Type: TlUserAuthType } = userAuthFields +const { Type: TlUserAuthType } = userAuthFields const { Def: TlCompanyFields } = companyFields @@ -31,7 +31,9 @@ const { Def: TlCompanyFields } = companyFields * @param {*} password * @param {*} invite_code */ -const userRegisterByAccount = async function({account, password, invite_code}){ +const userRegisterByAccount = async function({ + account, password, invite_code +}){ if(!account){ return tlResponseArgsError("帐号不能为空") } @@ -48,6 +50,14 @@ const userRegisterByAccount = async function({account, password, invite_code}){ return tlResponseArgsError("邀请码不能为空") } + if(account.length > 20){ + return tlResponseArgsError("帐号长度不能超过20") + } + + if(password.length > 64){ + return tlResponseArgsError("密码长度不能超过64") + } + const company = await companyService.getInfoByCode({ code: invite_code }, [ @@ -95,72 +105,6 @@ const userRegisterByAccount = async function({account, password, invite_code}){ return tlResponseSuccess("注册成功") } -/** - * 通过手机号注册接口 - * @param {*} mobile - * @param {*} code - * @param {*} invite_code - */ -const userRegisterByMobile = async function({mobile, code, invite_code}){ - if(!mobile){ - return tlResponseArgsError("手机号不能为空") - } - if(!code){ - return tlResponseArgsError("验证码不能为空") - } - if(!invite_code){ - return tlResponseArgsError("邀请码不能为空") - } - if(!checkIsMobile(mobile)){ - return tlResponseArgsError("手机号格式不正确") - } - - const company = await companyService.getInfoByCode({ - code: invite_code - }, [ - TlCompanyFields.id - ]) - - if(Object.keys(company).length === 0){ - return tlResponseArgsError("邀请码无效") - } - - // 检查code - const checkCode = await userSessionService.getMobileCode({ - mobile - }) - if (checkCode !== code) { - return tlResponseArgsError("手机验证码错误") - } - - const companyId = company.id - - const user = await userService.getInfoByMobile({ - companyId: companyId, - mobile - }, [ - TlUserDef.id - ]) - if(user[TlUserDef.id]){ - return tlResponseArgsError("手机号已存在") - } - - const salt = crypto.randomBytes(16).toString('hex') - - const result = await userService.addInfo({ - companyId : companyId, - name : '手机用户-' + Math.floor(Math.random() * 1000000), - mobile, - roleId : TlRoleInner.user.normal.id, - salt, - }) - - if (Object.keys(result).length === 0) { - return tlResponseSvrError("注册失败") - } - - return tlResponseSuccess("注册成功") -} /** * 通过邮箱注册接口 @@ -169,19 +113,25 @@ const userRegisterByMobile = async function({mobile, code, invite_code}){ * @param {*} invite_code * @param {*} password */ -const userRegisterByEmail = async function({email, code, invite_code, password}){ +const userRegisterByEmail = async function({ + email, code, invite_code, password +}){ if(!email){ return tlResponseArgsError("邮箱不能为空") } + if(!code){ return tlResponseArgsError("验证码不能为空") } + if(!invite_code){ return tlResponseArgsError("邀请码不能为空") } + if (!password) { return tlResponseArgsError("密码不能为空") } + // base64解码 email = Buffer.from(email, 'base64').toString() password = Buffer.from(password, 'base64').toString() @@ -244,45 +194,6 @@ const userRegisterByEmail = async function({email, code, invite_code, password}) return tlResponseSuccess("注册成功") } -/** - * 通过微信注册接口 - * @param {*} code - * @param {*} openId - */ -const userRegisterByWechat = async function({openId, code}){ - const params = { - code, openId - } - - return tlResponseSuccess("注册成功", params) -} - -/** - * 通过qq注册接口 - * @param {*} code - * @param {*} openId - */ -const userRegisterByQQ = async function({openId, code}){ - const params = { - code, openId - } - - return tlResponseSuccess("注册成功", params) -} - -/** - * 通过企业微信注册接口 - * @param {*} code - * @param {*} openId - */ -const userRegisterByWechatWork = async function({openId, code}){ - const params = { - code, openId - } - - return tlResponseSuccess("注册成功", params) -} - /** * 获取邮箱验证码 * @param {*} email @@ -339,42 +250,51 @@ const getEmailCode = async function({email}){ }) if (Object.keys(result).length === 0) { - tlConsoleError("验证码发送添加记录失败") + tlConsoleError("发送异常") } - return tlResponseSuccess("验证码发送成功", { - code + return tlResponseSuccess("发送成功", { + // code }) } /** - * 注册官网用户 - * @param {*} email - * @param {*} code - * @param {*} password - * @returns + * 通过邮箱重置密码接口 + * @param {*} email + * @param {*} code + * @param {*} invite_code */ -const registerWebsiteUser = async function({ email, code, password }){ - // 默认挂在首个企业下 - const companyId = 1 - +const resetPasswordByEmail = async function({ + email, code, invite_code +}){ if(!email){ return tlResponseArgsError("邮箱不能为空") } + if(!code){ return tlResponseArgsError("验证码不能为空") } - if(!password) { - return tlResponseArgsError("密码不能为空") + + if(!invite_code){ + return tlResponseArgsError("邀请码不能为空") } - // base64解码 - email = Buffer.from(email, 'base64').toString() - password = Buffer.from(password, 'base64').toString() + // base64解码 + email = Buffer.from(email, 'base64').toString() if(!checkIsEmail(email)){ return tlResponseArgsError("邮箱格式不正确") } + const company = await companyService.getInfoByCode({ + code: invite_code + }, [ + TlCompanyFields.id + ]) + + if(Object.keys(company).length === 0){ + return tlResponseArgsError("邀请码无效") + } + // 检查code const checkCode = await userSessionService.getEmailCode({ email @@ -383,6 +303,18 @@ const registerWebsiteUser = async function({ email, code, password }){ return tlResponseArgsError("邮箱验证码错误") } + // 检查次数, 一天之内重置一次 + const count = await userAuthService.getDayCountByTypeAndKey({ + type: TlUserAuthType.EMAIL_RESET_PASSWORD, + key: email + }) + + if(count >= 1){ + return tlResponseForbidden("当天获重置次数已达上限") + } + + const companyId = company[TlCompanyFields.id] + const user = await userService.getInfoByEmail({ companyId: companyId, email @@ -390,41 +322,61 @@ const registerWebsiteUser = async function({ email, code, password }){ TlUserDef.id ]) - if(user.id){ - return tlResponseArgsError("邮箱已注册") + if(Object.keys(user).length === 0){ + return tlResponseArgsError("邮箱不存在") } + const userId = user[TlUserDef.id] + const newPassword = Math.floor(Math.random() * 100000000) + "" + const salt = crypto.randomBytes(16).toString('hex') const saltPassword = encryptStr({ - str: password, + str: newPassword, salt: salt }) - const result = await userService.addInfo({ + const updateRes = await userService.updateInfoById({ companyId : companyId, - name : "官网用户-" + String(Math.floor(Math.random() * 1000000)), - email, - password: saltPassword, - roleId : TlRoleInner.website.user.id, - salt, - avatarUrl: "/image/default-avatar.png" + id: userId + }, { + [TlUserDef.password]: saltPassword, + [TlUserDef.salt]: salt + }) + + if (Object.keys(updateRes).length === 0) { + return tlResponseSvrError("重置密码失败") + } + + // 发送重置密码邮件 + await sendResetPasswordEmail({ + to: email, + password: newPassword, + companyName: "tl-open-source开源团队", + companyUrl: "https://tl-open-source.github.com/" + }).then((res) => { + tlConsole("重置密码邮件发送成功", res) + }) + + // 添加重置记录 + const result = await userAuthService.addInfo({ + key: email, + type: TlUserAuthType.EMAIL_RESET_PASSWORD, + code: String(newPassword) }) if (Object.keys(result).length === 0) { - return tlResponseSvrError("注册失败") + tlConsoleError("重置密码添加记录失败") } - return tlResponseSuccess("注册成功") + return tlResponseSuccess("重置成功") } + + module.exports = { userRegisterByAccount, - userRegisterByMobile, userRegisterByEmail, - userRegisterByWechat, - userRegisterByQQ, - userRegisterByWechatWork, getEmailCode, - registerWebsiteUser + resetPasswordByEmail } \ No newline at end of file diff --git a/src/biz/user/user_tag_biz.js b/src/biz/user/user_tag_biz.js index 2ad3d61..a31be61 100644 --- a/src/biz/user/user_tag_biz.js +++ b/src/biz/user/user_tag_biz.js @@ -1,6 +1,6 @@ const { - tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess + tlResponseArgsError, tlResponseSvrError, + tlResponseSuccess, checkIsId } = require('../../utils/utils') const userTagService = require('../../service/user/tl_user_tag_service') const { fields: userTagDef } = require('../../tables/tl_user_tag') @@ -19,11 +19,15 @@ const addUserTag = async function({ loginInfo, name, type }){ if(!name) { - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + if(name.length > 255){ + return tlResponseArgsError("请求参数过长") } if(!type){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } const { @@ -53,7 +57,7 @@ const getUserTagList = async function({ loginInfo, type }){ if(!type){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") } const { @@ -87,7 +91,12 @@ const delUserTag = async function({ loginInfo, id }){ if(!id){ - return tlResponseArgsError("请求参数为空") + return tlResponseArgsError("请求参数错误") + } + + id = parseInt(id) + if(!checkIsId(id)){ + return tlResponseArgsError("请求参数错误") } const { @@ -135,20 +144,6 @@ const addFriendTag = async function({ }) } -/** - * 添加资源库标签 - * @param {*} loginInfo - * @param {*} name - * @returns - */ -const addCloudTag = async function({ - loginInfo, name -}){ - return await addUserTag({ - loginInfo, name, type: TlUserTagType.CLOUD - }) -} - /** * 获取频道标签列表 * @param {*} loginInfo @@ -175,18 +170,6 @@ const getFriendTagList = async function({ }) } -/** - * 获取资源库标签列表 - * @param {*} loginInfo - * @returns - */ -const getCloudTagList = async function({ - loginInfo -}){ - return await getUserTagList({ - loginInfo, type: TlUserTagType.CLOUD - }) -} module.exports = { @@ -195,8 +178,6 @@ module.exports = { delUserTag, addChannelTag, addFriendTag, - addCloudTag, getChannelTagList, getFriendTagList, - getCloudTagList } \ No newline at end of file diff --git a/src/controller/app/app.js b/src/controller/app/app.js deleted file mode 100644 index 7c6d6c7..0000000 --- a/src/controller/app/app.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = {} \ No newline at end of file diff --git a/src/controller/desktop/desktop.js b/src/controller/desktop/desktop.js deleted file mode 100644 index 7c6d6c7..0000000 --- a/src/controller/desktop/desktop.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = {} \ No newline at end of file diff --git a/src/controller/web/channel/channel_chat_controller.js b/src/controller/web/channel/channel_chat_controller.js index 9db6cb6..8f6a9a9 100644 --- a/src/controller/web/channel/channel_chat_controller.js +++ b/src/controller/web/channel/channel_chat_controller.js @@ -1,10 +1,13 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, - checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, + checkRequestParams, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); const channelChatBiz = require('../../../biz/channel/channel_chat_biz'); +const { + contentFilter, objectContentFilter +} = require('../../../utils/sensitive/content') /** @@ -27,8 +30,10 @@ router.post('/add-friend-channel-chat', async function(request, response) { const loginInfo = request.ctx || {} const result = await channelChatBiz.addFriendChannelChat({ - loginInfo, message, toUserId, toUserName, channelId, atUserId, atUserName + loginInfo, message: contentFilter(message), + toUserId, toUserName, channelId, atUserId, atUserName }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -56,8 +61,9 @@ router.post('/add-group-channel-chat', async function(request, response) { const loginInfo = request.ctx || {} const result = await channelChatBiz.addGroupChannelChat({ - loginInfo, message, channelId, atUserId, atUserName, isAtAll + loginInfo, message: contentFilter(message), channelId, atUserId, atUserName, isAtAll }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -85,8 +91,9 @@ router.post('/add-reply-friend-channel-chat', async function(request, response) const loginInfo = request.ctx || {} const result = await channelChatBiz.addReplyFriendChannelChat({ - loginInfo, message, channelId, messageId, messageType, atUserId, atUserName + loginInfo, message: contentFilter(message), channelId, messageId, messageType, atUserId, atUserName }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -114,8 +121,9 @@ router.post('/add-reply-group-channel-chat', async function(request, response) { const loginInfo = request.ctx || {} const result = await channelChatBiz.addReplyGroupChannelChat({ - loginInfo, message, channelId, messageId, messageType, atUserId, atUserName, atAll + loginInfo, message: contentFilter(message), channelId, messageId, messageType, atUserId, atUserName, atAll }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -123,34 +131,5 @@ router.post('/add-reply-group-channel-chat', async function(request, response) { } }); -/** - * #controller post /api/web/channel-chat/rollback-channel-chat - * #desc 撤回消息 - * @param {*} request - * @param {*} response - */ -router.post('/rollback-channel-chat', async function(request, response) { - try { - const { channelId, messageId, messageType } = request.body; - - if (!checkRequestParams({ - channelId, messageId, messageType - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const loginInfo = request.ctx || {} - const result = await channelChatBiz.rollbackChannelChat({ - loginInfo, channelId, messageId, messageType - }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()) - } -}); - - module.exports = router; diff --git a/src/controller/web/channel/channel_controller.js b/src/controller/web/channel/channel_controller.js index 2577be1..b2b1b05 100644 --- a/src/controller/web/channel/channel_controller.js +++ b/src/controller/web/channel/channel_controller.js @@ -1,9 +1,12 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, checkRequestParams, tlResponseArgsError + tlResponseSvrError, tlConsoleError, checkRequestParams, tlResponseArgsError, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); const channelBiz = require('../../../biz/channel/channel_biz'); +const { + contentFilter, objectContentFilter +} = require('../../../utils/sensitive/content') /** @@ -14,10 +17,10 @@ const channelBiz = require('../../../biz/channel/channel_biz'); */ router.post('/search-channel-by-id', async function(request, response) { try{ - const { channelId } = request.body; + const { channelId, shareUserId } = request.body; if (!checkRequestParams({ - channelId, + channelId, shareUserId })) { response.json(tlResponseArgsError("请求参数非法")); return; @@ -25,7 +28,7 @@ router.post('/search-channel-by-id', async function(request, response) { const loginInfo = request.ctx || {} const result = await channelBiz.searchChannelById({ - channelId, loginInfo + channelId, loginInfo, shareUserId }); response.json(result); @@ -54,7 +57,7 @@ router.post('/add-channel', async function(request, response) { const loginInfo = request.ctx || {} const result = await channelBiz.addChannel({ - channelName, loginInfo + channelName: contentFilter(channelName), loginInfo }); response.json(result); @@ -75,7 +78,7 @@ router.get('/get-channel-list', async function(request, response) { try { const loginInfo = request.ctx || {} const result = await channelBiz.getChannelList({ loginInfo }); - + response.json(result); } catch (error) { tlConsoleError(error) @@ -103,7 +106,7 @@ router.get('/get-channel-info', async function(request, response) { const loginInfo = request.ctx || {} const result = await channelBiz.getChannelInfo({ loginInfo, channelId }); - + response.json(result); } catch (error) { tlConsoleError(error) @@ -113,14 +116,14 @@ router.get('/get-channel-info', async function(request, response) { /** - * #controller get /api/web/channel/get-channel-name + * #controller post /api/web/channel/get-channel-name * #desc 获取频道名称 * @param {*} request * @param {*} response */ -router.get('/get-channel-name', async function(request, response) { +router.post('/get-channel-name', async function(request, response) { try { - const { channelId } = request.query; + const { channelId } = request.body; if (!checkRequestParams({ channelId, @@ -159,7 +162,36 @@ router.post('/update-channel-name', async function(request, response) { const loginInfo = request.ctx || {} const result = await channelBiz.updateChannelName({ - channelId, channelName, loginInfo + channelId, channelName: contentFilter(channelName), loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/channel/update-channel-can-search + * #desc 修改频道是否可以被搜索 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-can-search', async function(request, response) { + try { + const { channelId, canSearch } = request.body; + + if (!checkRequestParams({ + channelId, canSearch + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.updateChannelCanSearch({ + channelId, canSearch, loginInfo }); response.json(result); @@ -169,26 +201,6 @@ router.post('/update-channel-name', async function(request, response) { } }); - -/** - * #controller get /api/web/channel/get-group-channel-list - * #desc 获取群组频道列表 - * @param {*} request - * @param {*} response - */ -router.get('/get-group-channel-list', async function(request, response) { - try { - const loginInfo = request.ctx || {} - const result = await channelBiz.getChannelGroupList({ loginInfo }); - - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()); - } -}); - - /** * #controller post /api/web/channel/get-channel-message * #desc 获取频道聊天记录 @@ -249,6 +261,57 @@ router.post('/get-channel-message-list', async function(request, response) { } }); +/** + * #controller post /api/web/channel/search-channel-message + * #desc 搜索频道聊天记录 + * @param {*} request + * @param {*} response + */ +router.post('/search-channel-message', async function(request, response) { + try { + const { + channelId, keyword, startTime, endTime, + types, chatMinId, fileMinId, mediaMinId + } = request.body; + + if (!checkRequestParams({ + channelId, keyword, startTime, endTime, + types, chatMinId, fileMinId, mediaMinId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.searchChannelChatList({ + loginInfo, channelId, startTimeStamp: startTime, endTimeStamp: endTime, types, keyword, + chatMinId, fileMinId, mediaMinId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller get /api/web/channel/get-group-channel-list + * #desc 获取群组频道列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-group-channel-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await channelBiz.getChannelGroupList({ loginInfo }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + module.exports = router; - diff --git a/src/controller/web/channel/channel_file_controller.js b/src/controller/web/channel/channel_file_controller.js new file mode 100644 index 0000000..5c9344f --- /dev/null +++ b/src/controller/web/channel/channel_file_controller.js @@ -0,0 +1,70 @@ +const { + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const channelFileBiz = require('../../../biz/channel/channel_file_biz'); + + + +/** + * #controller post /api/web/channel-file/add-friend-channel-offline-file + * #desc 发送好友频道离线文件消息 + * @param {*} request + * @param {*} response + */ +router.post('/add-friend-channel-offline-file', async function(request, response) { + try { + const { channelId, cloudFileId } = request.body; + + if (!checkRequestParams({ + channelId, cloudFileId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelFileBiz.addFriendChannelOfflineFile({ + loginInfo, cloudFileId, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + +/** + * #controller post /api/web/channel-file/add-group-channel-offline-file + * #desc 发送群聊频道离线文件消息 + * @param {*} request + * @param {*} response + */ +router.post('/add-group-channel-offline-file', async function(request, response) { + try { + const { channelId, cloudFileId } = request.body; + + if (!checkRequestParams({ + channelId, cloudFileId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelFileBiz.addGroupChannelOfflineFile({ + loginInfo, cloudFileId, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/channel/channel_media_controller.js b/src/controller/web/channel/channel_media_controller.js new file mode 100644 index 0000000..642d3c7 --- /dev/null +++ b/src/controller/web/channel/channel_media_controller.js @@ -0,0 +1,126 @@ +const { + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const channelMediaBiz = require('../../../biz/channel/channel_media_biz'); + + +/** + * #controller post /api/web/channel-media/add-friend-channel-audio + * #desc 发送好友频道语音聊天消息 + * @param {*} request + * @param {*} response + */ +router.post('/add-friend-channel-audio', async function(request, response) { + try { + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelMediaBiz.addFriendChannelAudio({ + loginInfo, media : {}, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/channel-media/add-friend-channel-video + * #desc 发送好友频道视频消息 + * @param {*} request + * @param {*} response + */ +router.post('/add-friend-channel-video', async function(request, response) { + try { + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelMediaBiz.addFriendChannelVideo({ + loginInfo, media: {}, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/channel-media/add-group-channel-audio + * #desc 发送多人频道语音聊天消息 + * @param {*} request + * @param {*} response + */ +router.post('/add-group-channel-audio', async function(request, response) { + try { + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelMediaBiz.addGroupChannelAudio({ + loginInfo, media: {}, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/channel-media/add-group-channel-video + * #desc 发送多人频道视频消息 + * @param {*} request + * @param {*} response + */ +router.post('/add-group-channel-video', async function(request, response) { + try { + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelMediaBiz.addGroupChannelVideo({ + loginInfo, media: {}, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/channel/channel_notice_controller.js b/src/controller/web/channel/channel_notice_controller.js new file mode 100644 index 0000000..20610d2 --- /dev/null +++ b/src/controller/web/channel/channel_notice_controller.js @@ -0,0 +1,68 @@ +const { + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const channelNoticeBiz = require('../../../biz/channel/channel_notice_biz'); + + +/** + * #controller post /api/web/channel-notice/add-channel-notice + * #desc 发布频道公告 + * @param {*} request + * @param {*} response + */ +router.post('/add-channel-notice', async function(request, response) { + try { + const { channelId, content } = request.body; + + if (!checkRequestParams({ + channelId, content + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelNoticeBiz.addNotice({ + loginInfo, channelId, content + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller get /api/web/channel-notice/get-channel-notice-list + * #desc 获取频道公告 + * @param {*} request + * @param {*} response + */ +router.get('/get-channel-notice-list', async function(request, response) { + try { + const { channelId } = request.query; + + if (!checkRequestParams({ + channelId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelNoticeBiz.getNoticeList({ + loginInfo, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/channel/channel_user_controller.js b/src/controller/web/channel/channel_user_controller.js index 8b2c96e..2fcd7de 100644 --- a/src/controller/web/channel/channel_user_controller.js +++ b/src/controller/web/channel/channel_user_controller.js @@ -1,5 +1,5 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); @@ -34,32 +34,6 @@ router.post('/add-channel-user', async function(request, response){ }); -/** - * #controller post /api/web/channel-user/share-join-channel - * #desc 分享加入群聊 - * @param {*} request - * @param {*} response - */ -router.post('/share-join-channel', async function(request, response){ - try { - const { channelId } = request.body; - if (!checkRequestParams({ - channelId - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const loginInfo = request.ctx || {} - const result = await channelUserBiz.shareJoinGroupChannel({ loginInfo, channelId }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()); - } -}); - - /** * #controller post /api/web/channel-user/add-channel-user-normal * #desc 添加频道普通身份用户 @@ -78,6 +52,7 @@ router.post('/add-channel-user-normal', async function(request, response){ const loginInfo = request.ctx || {} const result = await channelUserBiz.addChannelUserNormal({ loginInfo, channelId, userId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -104,32 +79,7 @@ router.post('/add-channel-user-list-normal', async function(request, response){ const loginInfo = request.ctx || {} const result = await channelUserBiz.addChannelUserListNormal({ loginInfo, channelId, userIdList }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()); - } -}); - -/** - * #controller post /api/web/channel-user/add-channel-user-admin - * #desc 添加频道管理员身份用户 - * @param {*} request - * @param {*} response - */ -router.post('/add-channel-user-admin', async function(request, response){ - try { - const { channelId, userId } = request.body; - if (!checkRequestParams({ - channelId, userId - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const loginInfo = request.ctx || {} - const result = await channelUserBiz.addChannelUserAdmin({ loginInfo, channelId, userId }); response.json(result); } catch (error) { tlConsoleError(error) @@ -156,6 +106,7 @@ router.post('/delete-channel-user', async function(request, response){ const loginInfo = request.ctx || {} const result = await channelUserBiz.removeChannelUser({ loginInfo, channelId, userId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -182,6 +133,7 @@ router.post('/update-channel-user-role-admin', async function(request, response) const loginInfo = request.ctx || {} const result = await channelUserBiz.updateChannelUserRoleAdmin({ loginInfo, channelId, userId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -208,6 +160,7 @@ router.post('/update-channel-user-role-normal', async function(request, response const loginInfo = request.ctx || {} const result = await channelUserBiz.updateChannelUserRoleNormal({ loginInfo, channelId, userId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -227,6 +180,7 @@ router.get('/get-channel-list-user-list', async function(request, response) { const loginInfo = request.ctx || {} const result = await channelUserBiz.getChannelListUserList({ loginInfo }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -254,6 +208,7 @@ router.get('/get-channel-user-list', async function(request, response) { const loginInfo = request.ctx || {} const result = await channelUserBiz.getChannelUserList({ loginInfo, channelId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -283,7 +238,7 @@ router.post('/update-channel-top', async function(request, response) { const result = await channelUserBiz.updateChannelToTop({ channelId, top, loginInfo }); - + response.json(result); } catch (error) { tlConsoleError(error) @@ -291,6 +246,7 @@ router.post('/update-channel-top', async function(request, response) { } }); + /** * #controller get /api/web/channel-user/update-channel-black * #desc 修改频道是否拉黑 @@ -320,6 +276,7 @@ router.post('/update-channel-black', async function(request, response) { } }); + /** * #controller get /api/web/channel-user/exit-channel * #desc 退出频道 diff --git a/src/controller/web/cloud/cloud_file_controller.js b/src/controller/web/cloud/cloud_file_controller.js new file mode 100644 index 0000000..6068dd4 --- /dev/null +++ b/src/controller/web/cloud/cloud_file_controller.js @@ -0,0 +1,76 @@ +const { + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const cloudFileBiz = require('../../../biz/cloud/cloud_file_biz'); + + +/** + * #controller post /api/web/cloud-file/upload-file + * #desc 上传文件 + * @param {*} request + * @param {*} response + */ +router.post('/upload-file', async function(request, response) { + try { + const file = request.files[0]; + const { channelId, dirId } = request.body; + + if (!checkRequestParams({ + channelId, dirId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const fileId = request.fileId + const result = await cloudFileBiz.uploadFile({ + loginInfo, file, channelId, dirId, fileId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/cloud-file/download-server-file + * #desc 下载服务器云文件 + * @param {*} request + * @param {*} response + */ +router.get('/download-server-file', async function(request, response) { + try { + const { fileId, key } = request.query; + + if (!checkRequestParams({ + fileId, key + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await cloudFileBiz.downloadCloudFile({ + loginInfo, fileId, key + }); + + if (!result.success) { + response.json(result); + return; + } + + response.download(result.data); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/company/company_controller.js b/src/controller/web/company/company_controller.js index d8cb7a2..d4fbc01 100644 --- a/src/controller/web/company/company_controller.js +++ b/src/controller/web/company/company_controller.js @@ -1,42 +1,14 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); const companyBiz = require('../../../biz/company/company_biz'); -/** - * #controller post /api/web/company/add-company - * #desc 添加企业 - * @param {*} request - * @param {*} response - */ -router.post('/add-company', async function(request, response) { - try { - const { name, address, phone, email, website, logo, description } = request.body; - - if (!checkRequestParams({ - name, address, phone, email, website, logo, description - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const loginInfo = request.ctx || {} - const result = await companyBiz.addCompany({ - name, address, phone, email, website, logo, description, loginInfo - }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()); - } -}); - /** * #controller post /api/web/company/get-company - * #desc 获取企业 + * #desc 获取企业信息 * @param {*} request * @param {*} response */ @@ -46,6 +18,7 @@ router.post('/get-company', async function(request, response) { const result = await companyBiz.getCompanyInfo({ loginInfo }); + response.json(result); } catch (error) { tlConsoleError(error) diff --git a/src/controller/web/config/init_controller.js b/src/controller/web/config/init_controller.js index 1247d38..fd0ca80 100644 --- a/src/controller/web/config/init_controller.js +++ b/src/controller/web/config/init_controller.js @@ -1,5 +1,5 @@ const { - getClientIP, getLocalIP, tlConsole, tlResponseSvrError, tlConsoleError + getClientIP, getLocalIP, tlConsole, tlResponseSvrError, tlConsoleError, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); diff --git a/src/controller/web/config/skin_controller.js b/src/controller/web/config/skin_controller.js new file mode 100644 index 0000000..9298633 --- /dev/null +++ b/src/controller/web/config/skin_controller.js @@ -0,0 +1,53 @@ +const { + tlResponseSvrError, tlConsoleError, + checkRequestParams, tlResponseArgsError, + tlResponseSuccess +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const { + LOGIN : { + LOGIN_TOKEN_KEY + } +} = require('../../../utils/constant'); +const darkConf = require('../../../../conf/skin/dark'); +const lightConf = require('../../../../conf/skin/light'); + + +/** + * #controller get /api/web/config-skin/detail + * #desc 获取皮肤配置 + * @param {*} request + * @param {*} response + */ +router.get("/get-detail", async function(request, response){ + try { + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + const { skin } = request.query; + + if (!checkRequestParams({ + skin + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + if(skin === 'dark'){ + response.json(tlResponseSuccess("获取成功", darkConf)) + return + } + + if(skin === 'light'){ + response.json(tlResponseSuccess("获取成功", lightConf)) + return + } + + response.json(tlResponseArgsError("请求参数非法")); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + + +module.exports = router \ No newline at end of file diff --git a/src/controller/web/system/system_web_channel_controller.js b/src/controller/web/system/system_web_channel_controller.js new file mode 100644 index 0000000..54df14e --- /dev/null +++ b/src/controller/web/system/system_web_channel_controller.js @@ -0,0 +1,165 @@ +const { + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const channelBiz = require('../../../biz/channel/channel_biz'); + + +/** + * #controller post /api/web/system-web-channel/add-channel + * #desc 添加频道 + * @param {*} request + * @param {*} response + */ +router.post('/add-channel', async function(request, response) { + try { + const { + channelName, companyId, userId, canSearch + } = request.body; + + if (!checkRequestParams({ + channelName, companyId, userId, canSearch + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.adminAddChannel({ + channelName, loginInfo, companyId, userId, canSearch + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/system-web-channel/update-channel + * #desc 更新频道 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel', async function(request, response) { + try { + const { + companyId, channelName, id, canSearch + } = request.body; + + if (!checkRequestParams({ + companyId, channelName, id, canSearch + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.adminUpdateChannel({ + companyId, channelName, channelId: id, loginInfo, canSearch + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}) + + +/** + * #controller post /api/web/system-web-channel/delete-channel + * #desc 删除频道 + * @param {*} request + * @param {*} response + */ +router.post('/delete-channel', async function(request, response) { + try { + const { id, companyId } = request.body; + + if (!checkRequestParams({ id, companyId })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.adminDeleteChannel({ channelId: id, companyId, loginInfo }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}) + + +/** + * #controller post /api/web/system-web-channel/get-channel-list + * #desc 获取频道列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-channel-list', async function(request, response) { + try { + const { + keyword, page, limit + } = request.query; + + if (!checkRequestParams({ + keyword, page, limit + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.adminGetChannelList({ + keyword, page, limit, loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}) + + +/** + * #controller post /api/web/system-web-channel/get-channel-user-list + * #desc 获取频道用户列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-channel-user-list', async function(request, response) { + try { + const { + keyword, page, limit, channelId + } = request.query; + + if (!checkRequestParams({ + keyword, page, limit, channelId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.adminGetChannelUserList({ + keyword, page, limit, loginInfo, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}) + + + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/system/system_web_company_controller.js b/src/controller/web/system/system_web_company_controller.js new file mode 100644 index 0000000..e9cca2c --- /dev/null +++ b/src/controller/web/system/system_web_company_controller.js @@ -0,0 +1,163 @@ +const { + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const companyBiz = require('../../../biz/company/company_biz'); + + +/** + * #controller post /api/web/system-web-company/add-company + * #desc 添加企业 + * @param {*} request + * @param {*} response + */ +router.post('/add-company', async function(request, response) { + try { + const { name, address, phone, email, website, logo, description } = request.body; + + if (!checkRequestParams({ + name, address, phone, email, website, logo, description + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await companyBiz.adminAddCompany({ + name, address, phone, email, website, logo, description, loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/system-web-company/update-company + * #desc 更新企业信息 + * @param {*} request + * @param {*} response + */ +router.post('/update-company', async function(request, response) { + try { + const { + id, name, address, phone, email, website, logo, + description, code, authStatus, expiredStatus + } = request.body; + + if (!checkRequestParams({ + id, name, address, phone, email, website, logo, description, + code, authStatus, expiredStatus + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await companyBiz.adminUpdateCompany({ + id, name, address, phone, email, website, + logo, description, loginInfo, code, authStatus, expiredStatus + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/system-web-company/get-company-list + * #desc 获取企业列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-company-list', async function(request, response) { + try { + const { page, limit, keyword } = request.query; + + if (!checkRequestParams({ + page, limit, keyword + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await companyBiz.adminGetCompanyList({ + loginInfo, page, limit, keyword + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/system-web-company/get-company-info + * #desc 获取企业详情 + * @param {*} request + * @param {*} response + */ +router.get('/get-company-info', async function(request, response) { + try { + const { id } = request.query; + + if (!checkRequestParams({ + id + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await companyBiz.adminGetCompanyInfo({ + loginInfo, id + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/system-web-company/delete-company + * #desc 删除企业 + * @param {*} request + * @param {*} response + */ +router.post('/delete-company', async function(request, response) { + try { + const { id } = request.body; + + if (!checkRequestParams({ + id + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await companyBiz.adminDeleteCompany({ + loginInfo, id + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/system/system_web_config_controller.js b/src/controller/web/system/system_web_config_controller.js new file mode 100644 index 0000000..e7b2306 --- /dev/null +++ b/src/controller/web/system/system_web_config_controller.js @@ -0,0 +1,74 @@ +const { + tlResponseSvrError, tlConsoleError, checkRequestParams, tlResponseArgsError, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const configBiz = require('../../../biz/config/config_biz'); +const { + contentFilter, objectContentFilter +} = require('../../../utils/sensitive/content') + + +/** + * #controller post /api/web/system-web-config/get-system-config + * #desc 获取系统配置 + * @param {*} request + * @param {*} response + */ +router.get('/get-system-config', async function(request, response) { + try{ + const loginInfo = request.ctx || {} + const result = await configBiz.adminGetSystemEnvConfig({ + loginInfo + }); + response.json(result); + }catch(error){ + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/system-web-config/update-system-config + * #desc 修改系统配置 + * @param {*} request + * @param {*} response + */ +router.post('/update-system-config', async function(request, response) { + try{ + const { + redisConfig, + webrtcConfig, + mysqlConfig, + emailConfig, + } = request.body; + + if (!checkRequestParams({ + redisConfig, + webrtcConfig, + mysqlConfig, + emailConfig, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await configBiz.adminSetSystemEnvConfig({ + loginInfo, + redisConfig, + webrtcConfig, + mysqlConfig, + emailConfig, + }); + + response.json(result); + }catch(error){ + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/system/system_web_service_controller.js b/src/controller/web/system/system_web_service_controller.js new file mode 100644 index 0000000..db21c70 --- /dev/null +++ b/src/controller/web/system/system_web_service_controller.js @@ -0,0 +1,112 @@ +const { + tlResponseSvrError, tlConsoleError, checkRequestParams, tlResponseArgsError, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const systemServiceBiz = require("../../../biz/system/system_service_biz"); + + +/** + * #controller post /api/web/system-web-service/restart-service + * #desc 重启服务 + * @param {*} request + * @param {*} response + */ +router.post('/restart-service', async function(request, response) { + try{ + const { serviceName } = request.body; + + if (!checkRequestParams({ + serviceName + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + const loginInfo = request.ctx || {} + const result = await systemServiceBiz.adminReadminStartPm2Service({ + loginInfo, services: serviceName + }); + response.json(result); + }catch(error){ + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/system-web-service/stop-service + * #desc 停止服务服务 + * @param {*} request + * @param {*} response + */ +router.post('/stop-service', async function(request, response) { + try{ + const { serviceName } = request.body; + + if (!checkRequestParams({ + serviceName + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + const loginInfo = request.ctx || {} + const result = await systemServiceBiz.adminStopPm2Service({ + loginInfo, services: serviceName + }); + response.json(result); + }catch(error){ + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/system-web-service/start-service + * #desc 启动服务 + * @param {*} request + * @param {*} response + */ +router.post('/start-service', async function(request, response) { + try{ + const { serviceName } = request.body; + + if (!checkRequestParams({ + serviceName + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + const loginInfo = request.ctx || {} + const result = await systemServiceBiz.adminStartPm2Service({ + loginInfo, services: serviceName + }); + response.json(result); + }catch(error){ + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/system-web-service/get-service-status + * #desc 获取服务状态 + * @param {*} request + * @param {*} response + */ +router.get('/get-service-status', async function(request, response) { + try{ + const loginInfo = request.ctx || {} + const result = await systemServiceBiz.adminGetServiceStatus({ + loginInfo, + }); + response.json(result); + }catch(error){ + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/system/system_web_user_controller.js b/src/controller/web/system/system_web_user_controller.js new file mode 100644 index 0000000..376591c --- /dev/null +++ b/src/controller/web/system/system_web_user_controller.js @@ -0,0 +1,168 @@ +const { + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userBiz = require('../../../biz/user/user_biz'); + + +/** + * #controller post /api/web/system-web-user/add-user + * #desc 添加用户 + * @param {*} request + * @param {*} response + */ +router.post('/add-user', async function(request, response) { + try { + const { + companyId, name, password, email, mobile, avatarUrl, roleId, + } = request.body; + + if (!checkRequestParams({ + companyId, name, password, email, mobile, avatarUrl, roleId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userBiz.adminAddUser({ + companyId, name, password, email, mobile, avatarUrl, roleId, loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/system-web-user/update-user + * #desc 更新用户 + * @param {*} request + * @param {*} response + */ +router.post('/update-user', async function(request, response) { + try { + const { + id, companyId, name, password, email, mobile, avatarUrl, roleId, + wchatName, wchatOpenId, wchatUnionId, wchatAvatarUrl, + } = request.body; + + if (!checkRequestParams({ + id, companyId, name, password, email, mobile, avatarUrl, roleId, + wchatName, wchatOpenId, wchatUnionId, wchatAvatarUrl, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userBiz.adminUpdateUser({ + id, companyId, name, password, email, mobile, avatarUrl, roleId, + wchatName, wchatOpenId, wchatUnionId, wchatAvatarUrl, loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}) + + +/** + * #controller post /api/web/system-web-user/delete-user + * #desc 删除用户 + * @param {*} request + * @param {*} response + */ +router.post('/delete-user', async function(request, response) { + try { + const { id, companyId } = request.body; + + if (!checkRequestParams({ id, companyId })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userBiz.adminDeleteUser({ id, companyId, loginInfo }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}) + + +/** + * #controller post /api/web/system-web-user/get-user-list + * #desc 获取用户列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-user-list', async function(request, response) { + try { + const { + keyword, page, limit, companyId + } = request.query; + + if (!checkRequestParams({ + keyword, page, limit, companyId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userBiz.adminGetUserList({ + keyword, page, limit, loginInfo, companyId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}) + +/** + * #controller post /api/web/system-web-user/get-user-info + * #desc 获取用户信息 + * @param {*} request + * @param {*} response + */ +router.get('/get-user-info', async function(request, response) { + try { + const { + companyId, id + } = request.query; + + if (!checkRequestParams({ + companyId, id + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userBiz.adminGetUserInfo({ + loginInfo, companyId, id + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}) + + + + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/user/user_apply_controller.js b/src/controller/web/user/user_apply_controller.js index 230c38c..8bedea4 100644 --- a/src/controller/web/user/user_apply_controller.js +++ b/src/controller/web/user/user_apply_controller.js @@ -1,5 +1,5 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); @@ -14,10 +14,10 @@ const userApplyBiz = require('../../../biz/user/user_apply_biz'); */ router.post('/add-user-friend-apply', async function(request, response) { try { - const { friendId, remark, origin } = request.body; + const { friendId, remark } = request.body; if (!checkRequestParams({ - friendId, remark, origin + friendId, remark })) { response.json(tlResponseArgsError("请求参数非法")); return; @@ -25,8 +25,9 @@ router.post('/add-user-friend-apply', async function(request, response) { const loginInfo = request.ctx || {} const result = await userApplyBiz.applyAddFriend({ - loginInfo, friendId, remark, origin + loginInfo, friendId, remark }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -56,6 +57,7 @@ router.post('/pass-user-friend', async function(request, response) { const result = await userApplyBiz.passUserFriendApply({ loginInfo, id, remark }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -84,6 +86,7 @@ router.post('/reject-user-friend', async function(request, response) { const result = await userApplyBiz.rejectUserFriendApply({ loginInfo, id, remark }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -104,6 +107,7 @@ router.get('/get-user-friend-other-apply-list', async function(request, response const result = await userApplyBiz.getUserFriendListFromOther({ loginInfo }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -124,6 +128,7 @@ router.get('/get-user-friend-self-apply-list', async function(request, response) const result = await userApplyBiz.getUserFriendApplyListFromSelf({ loginInfo }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -132,6 +137,135 @@ router.get('/get-user-friend-self-apply-list', async function(request, response) }); +/** + * #controller get /api/web/user-apply/get-user-group-other-apply-list + * #desc 获取自己收到的群聊申请列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-user-group-other-apply-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await userApplyBiz.getUserGroupListFromOther({ + loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/user-apply/get-user-group-self-apply-list + * #desc 获取自己发出的群聊申请列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-user-group-self-apply-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await userApplyBiz.getUserGroupApplyListFromSelf({ + loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/user-apply/add-user-group-apply + * #desc 添加群聊申请 + * @param {*} request + * @param {*} response + */ +router.post('/add-user-group-apply', async function(request, response) { + try { + const { channelId, remark, shareUserId } = request.body; + + if (!checkRequestParams({ + channelId, remark, shareUserId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userApplyBiz.applyAddGroup({ + loginInfo, channelId, remark, shareUserId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/user-apply/pass-user-group + * #desc 通过群聊申请 + * @param {*} request + * @param {*} response + */ +router.post('/pass-user-group', async function(request, response) { + try { + const { id, remark } = request.body; + + if (!checkRequestParams({ + id, remark + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userApplyBiz.passUserGroupApply({ + loginInfo, id, remark + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/user-apply/reject-user-group + * #desc 拒绝群聊申请 + * @param {*} request + * @param {*} response + */ +router.post('/reject-user-group', async function(request, response) { + try { + const { id, remark } = request.body; + + if (!checkRequestParams({ + id, remark + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userApplyBiz.rejectUserGroupApply({ + loginInfo, id, remark + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); module.exports = router; \ No newline at end of file diff --git a/src/controller/web/user/user_clear_controller.js b/src/controller/web/user/user_clear_controller.js new file mode 100644 index 0000000..a26c6bf --- /dev/null +++ b/src/controller/web/user/user_clear_controller.js @@ -0,0 +1,129 @@ +const { + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userClearBiz = require('../../../biz/user/user_clear_biz'); + + +/** + * #controller post /api/web/user-clear/update-channel-mutil-clear + * #desc 更新频道文件/媒体/聊天消息清理记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-mutil-clear', async function(request, response) { + try { + const { + channelId + } = request.body; + + if (!checkRequestParams({ + channelId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userClearBiz.updateChannelMuiltClear({ + loginInfo, channelId + }) + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/user-clear/update-channel-chat-clear + * #desc 更新频道聊天消息清理记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-chat-read', async function(request, response) { + try { + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userClearBiz.updateChannelChatClear({ + loginInfo, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/user-clear/update-channel-media-clear + * #desc 更新频道媒体消息清理记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-media-clear', async function(request, response) { + try { + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userClearBiz.updateChannelMediaClear({ + loginInfo, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/user-clear/update-channel-file-clear + * #desc 更新频道文件消息清理记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-file-clear', async function(request, response) { + try { + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userClearBiz.updateChannelFileClear({ + loginInfo, channelId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/user/user_config_controller.js b/src/controller/web/user/user_config_controller.js index f6c3eca..822ad6d 100644 --- a/src/controller/web/user/user_config_controller.js +++ b/src/controller/web/user/user_config_controller.js @@ -1,5 +1,5 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); @@ -18,6 +18,7 @@ router.get('/get-user-config', async function(request, response) { const result = await userConfigBiz.getUserConfigSetting({ loginInfo }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -47,6 +48,7 @@ router.post('/update-user-config-normal', async function(request, response) { const result = await userConfigBiz.updateUserConfigNormal({ loginInfo, normal }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -54,6 +56,37 @@ router.post('/update-user-config-normal', async function(request, response) { } }); + +/** + * #controller post /api/web/user-config/update-user-config-skin + * #desc 更新用户皮肤设置 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-config-skin', async function(request, response) { + try { + const { skin } = request.body; + + if (!checkRequestParams({ + skin + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userConfigBiz.updateUserConfigSkin({ + loginInfo, skin + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + /** * #controller post /api/web/user-config/update-user-config-account * #desc 更新用户账号设置 @@ -75,6 +108,7 @@ router.post('/update-user-config-account', async function(request, response) { const result = await userConfigBiz.updateUserConfigAccount({ loginInfo, account }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -104,6 +138,7 @@ router.post('/update-user-config-message', async function(request, response) { const result = await userConfigBiz.updateUserConfigMessage({ loginInfo, message }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -133,6 +168,7 @@ router.post('/update-user-config-other', async function(request, response) { const result = await userConfigBiz.updateUserConfigOther({ loginInfo, other }); + response.json(result); } catch (error) { tlConsoleError(error) diff --git a/src/controller/web/user/user_controller.js b/src/controller/web/user/user_controller.js index 6da2efd..8710271 100644 --- a/src/controller/web/user/user_controller.js +++ b/src/controller/web/user/user_controller.js @@ -1,5 +1,5 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); @@ -33,6 +33,7 @@ router.get('/search-user-by-name', async function(request, response) { const result = await userBiz.searchUserByName({ loginInfo, name, }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -62,6 +63,7 @@ router.post('/search-user-by-id', async function(request, response) { const result = await userBiz.searchUserById({ loginInfo, id, }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -69,6 +71,36 @@ router.post('/search-user-by-id', async function(request, response) { } }); +/** + * #controller post /api/web/user/update-user-avatar + * #desc 更新用户头像 + * @param {*} request + * @param {*} response + * @return {*} + */ +router.post('/update-user-avatar', async function(request, response) { + try { + const { cloudFileId } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if (!checkRequestParams({ + cloudFileId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userBiz.updateUserAvatar({ + loginInfo, cloudFileId, token + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); /** * #controller post /api/web/user/bind-email @@ -92,6 +124,7 @@ router.post('/bind-email', async function(request, response) { const result = await userBiz.bindEmail({ loginInfo, email, code, token }); + response.json(result); } catch (error) { tlConsoleError(error) diff --git a/src/controller/web/user/user_friend_controller.js b/src/controller/web/user/user_friend_controller.js index 54de044..c5f4cfc 100644 --- a/src/controller/web/user/user_friend_controller.js +++ b/src/controller/web/user/user_friend_controller.js @@ -1,5 +1,5 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); @@ -27,6 +27,7 @@ router.post('/delete-user-friend', async function(request, response) { const result = await userFriendBiz.deleteFriend({ loginInfo, channelId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -55,6 +56,7 @@ router.post('/update-user-friend-remark', async function(request, response) { const result = await userFriendBiz.updateRemark({ loginInfo, channelId, remark }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -83,34 +85,7 @@ router.post('/update-user-friend-rename', async function(request, response) { const result = await userFriendBiz.updateRename({ loginInfo, channelId, rename }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError(error)); - } -}); -/** - * #controller post /api/web/user-friend/update-user-special - * #desc 关注好友 - * @param {*} request - * @param {*} response - */ -router.post('/update-user-friend-special', async function(request, response) { - try { - const { channelId, special } = request.body; - - if (!checkRequestParams({ - channelId, special - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const loginInfo = request.ctx || {} - const result = await userFriendBiz.updateFriendSpecical({ - loginInfo, channelId, special - }); response.json(result); } catch (error) { tlConsoleError(error) @@ -130,6 +105,7 @@ router.get('/get-user-friend-list', async function(request, response) { const result = await userFriendBiz.getFriendList({ loginInfo }); + response.json(result); } catch (error) { tlConsoleError(error) diff --git a/src/controller/web/user/user_login_controller.js b/src/controller/web/user/user_login_controller.js index 86df2b2..6b576fd 100644 --- a/src/controller/web/user/user_login_controller.js +++ b/src/controller/web/user/user_login_controller.js @@ -1,5 +1,4 @@ -const { - tlConsole, +const { tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, tlResponseSuccess @@ -12,9 +11,9 @@ const { LOGIN : { LOGIN_TOKEN_KEY, LOGIN_TOKEN_EXPIRE, - - WEBSITE_LOGIN_TOKEN_KEY, - WEBSITE_LOGIN_TOKEN_EXPIRE + + SYSTEM_LOGIN_TOKEN_EXPIRE, + SYSTEM_LOGIN_TOKEN_KEY } } = require('../../../utils/constant'); @@ -31,6 +30,7 @@ router.get('/login-state', async function(request, response) { const result = await userLoginStateBiz.userIsLogin({ token }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -80,48 +80,6 @@ router.post('/login-by-account', async function(request, response) { } }); -/** - * #controller post /api/web/user-login/login-by-mobile - * #desc 通过手机号登录 - * @param {*} request - * @param {*} response - */ -router.post('/login-by-mobile', async function(request, response) { - try { - const { mobile, code, fps } = request.body; - const { [LOGIN_TOKEN_KEY]: token } = request.cookies; - - if(token){ - const loginResult = await userLoginStateBiz.userIsLogin({ - token - }); - if(loginResult.success){ - return response.json(loginResult) - } - } - - if (!checkRequestParams({ - mobile, code, fps - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const result = await userLoginBiz.userLoginByMobile({ - mobile, code, fps - }); - - response.cookie(LOGIN_TOKEN_KEY, result.data, { - maxAge: LOGIN_TOKEN_EXPIRE, httpOnly: true - }); - - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()) - } -}) - /** * #controller post /api/web/user-login/login-by-email * #desc 通过邮箱登录 @@ -164,154 +122,6 @@ router.post('/login-by-email', async function(request, response) { } }); -/** - * #controller post /api/web/user-login/login-by-code - * #desc 游客登录 - * @param {*} request - * @param {*} response - */ -router.post('/login-by-guest', async function(request, response) { - try { - const { code } = request.body; - const { [LOGIN_TOKEN_KEY]: token } = request.cookies; - - if(token){ - const loginResult = await userLoginStateBiz.userIsLogin({ - token - }); - if(loginResult.success){ - return response.json(loginResult) - } - } - - if (!checkRequestParams({ - code - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const result = await userLoginBiz.userLoginByGuest({ - code - }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()) - } -}); - -/** - * #controller post /api/web/user-login/login-by-wechat - * #desc 微信登录 - * @param {*} request - * @param {*} response - */ -router.post('/login-by-wechat', async function(request, response) { - try { - const { openId, code } = request.body; - const { [LOGIN_TOKEN_KEY]: token } = request.cookies; - - if(token){ - const loginResult = await userLoginStateBiz.userIsLogin({ - token - }); - if(loginResult.success){ - return response.json(loginResult) - } - } - - if (!checkRequestParams({ - openId, code - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const result = await userLoginBiz.userLoginByWechat({ - openId, code - }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()) - } -}); - -/** - * #controller post /api/web/user-login/login-by-qq - * #desc QQ登录 - * @param {*} request - * @param {*} response - */ -router.post('/login-by-qq', async function(request, response) { - try { - const { openId, code } = request.body; - const { [LOGIN_TOKEN_KEY]: token } = request.cookies; - - if(token){ - const loginResult = await userLoginStateBiz.userIsLogin({ - token - }); - if(loginResult.success){ - return response.json(loginResult) - } - } - - if (!checkRequestParams({ - openId, code - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const result = await userLoginBiz.userLoginByQQ({ - openId, code - }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()) - } -}); - -/** - * #controller post /api/web/user-login/login-by-qy-wechat - * #desc 企业微信登录 - * @param {*} request - * @param {*} response - */ -router.post('/login-by-qy-wechat', async function(request, response) { - try { - const { openId, code } = request.body; - const { [LOGIN_TOKEN_KEY]: token } = request.cookies; - - if(token){ - const loginResult = await userLoginStateBiz.userIsLogin({ - token - }); - if(loginResult.success){ - return response.json(loginResult) - } - } - - if (!checkRequestParams({ - openId, code - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const result = await userLoginBiz.userLoginByQyWechat({ - openId, code - }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()) - } -}); - /** * #controller post /api/web/user-login/login-by-fp @@ -358,14 +168,14 @@ router.post('/login-by-fp', async function(request, response) { /** - * #controller get /api/web/user-login/website-login-state - * #desc 获取官网登录状态 + * #controller get /api/web/user-login/system-login-state + * #desc 获取管理员登录状态 * @param {*} request * @param {*} response */ -router.get('/website-login-state', async function(request, response) { +router.get('/system-login-state', async function(request, response) { try { - const { [WEBSITE_LOGIN_TOKEN_KEY]: token } = request.cookies; + const { [SYSTEM_LOGIN_TOKEN_KEY]: token } = request.cookies; const result = await userLoginStateBiz.userIsLogin({ token }); @@ -391,15 +201,15 @@ router.get('/website-login-state', async function(request, response) { /** - * #controller post /api/web/user-login/login-by-website - * #desc 官网登录 + * #controller post /api/web/user-login/login-by-system + * #desc 管理员登录 * @param {*} request * @param {*} response */ -router.post('/login-by-website', async function(request, response) { +router.post('/login-by-system', async function(request, response) { try { - const { name, email, password } = request.body; - const { [WEBSITE_LOGIN_TOKEN_KEY]: token } = request.cookies; + const { email, password } = request.body; + const { [SYSTEM_LOGIN_TOKEN_KEY]: token } = request.cookies; if(token){ const loginResult = await userLoginStateBiz.userIsLogin({ @@ -411,18 +221,18 @@ router.post('/login-by-website', async function(request, response) { } if (!checkRequestParams({ - name, email, password + email, password })) { response.json(tlResponseArgsError("请求参数非法")); return; } - const result = await userLoginBiz.userLoginByWebsite({ - name, email, password + const result = await userLoginBiz.userLoginBySystem({ + email, password }); - response.cookie(WEBSITE_LOGIN_TOKEN_KEY, result.data, { - maxAge: WEBSITE_LOGIN_TOKEN_EXPIRE, httpOnly: true + response.cookie(SYSTEM_LOGIN_TOKEN_KEY, result.data, { + maxAge: SYSTEM_LOGIN_TOKEN_EXPIRE, httpOnly: true }); response.json(result); @@ -432,4 +242,8 @@ router.post('/login-by-website', async function(request, response) { } }); + + + + module.exports = router \ No newline at end of file diff --git a/src/controller/web/user/user_logout_controller.js b/src/controller/web/user/user_logout_controller.js index d119030..4c88faa 100644 --- a/src/controller/web/user/user_logout_controller.js +++ b/src/controller/web/user/user_logout_controller.js @@ -1,5 +1,5 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError + tlResponseSvrError, tlConsoleError } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); @@ -8,7 +8,7 @@ const { LOGIN : { LOGIN_TOKEN_KEY, - WEBSITE_LOGIN_TOKEN_KEY + SYSTEM_LOGIN_TOKEN_KEY } } = require('../../../utils/constant'); @@ -39,19 +39,19 @@ router.get('/logout', async function(request, response) { /** - * #controller get /api/web/user-logout/website-logout + * #controller get /api/web/user-logout/system-logout * #desc 退出登录 * @param {*} request * @param {*} response */ -router.get('/website-logout', async function(request, response) { +router.get('/system-logout', async function(request, response) { try { - const { [WEBSITE_LOGIN_TOKEN_KEY]: token } = request.cookies; + const { [SYSTEM_LOGIN_TOKEN_KEY]: token } = request.cookies; const result = await userLogoutBiz.userLogout({ token }); - response.clearCookie(WEBSITE_LOGIN_TOKEN_KEY); + response.clearCookie(SYSTEM_LOGIN_TOKEN_KEY); response.json(result); } catch (error) { diff --git a/src/controller/web/user/user_read_controller.js b/src/controller/web/user/user_read_controller.js index a8bad87..6011945 100644 --- a/src/controller/web/user/user_read_controller.js +++ b/src/controller/web/user/user_read_controller.js @@ -1,5 +1,6 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, + encryptData } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); @@ -29,6 +30,7 @@ router.post('/update-channel-mutil-read', async function(request, response) { const result = await userReadBiz.updateChannelMuiltRead({ loginInfo, channelId, latestChatReadId, latestMediaReadId, latestFileReadId }) + response.json(result); } catch (error) { tlConsoleError(error) @@ -57,6 +59,7 @@ router.post('/update-channel-chat-read', async function(request, response) { const result = await userReadBiz.updateChannelChatRead({ loginInfo, channelId, latestReadId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -85,6 +88,7 @@ router.post('/update-channel-media-read', async function(request, response) { const result = await userReadBiz.updateChannelMediaRead({ loginInfo, channelId, latestReadId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -113,6 +117,7 @@ router.post('/update-channel-file-read', async function(request, response) { const result = await userReadBiz.updateChannelFileRead({ loginInfo, channelId, latestReadId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -122,7 +127,7 @@ router.post('/update-channel-file-read', async function(request, response) { /** * #controller post /api/web/user-read/update-user-friend-apply-read - * #desc 新增申请消息已读记录 + * #desc 新增好友申请消息已读记录 * @param {*} request * @param {*} response */ @@ -141,6 +146,7 @@ router.post('/update-user-friend-apply-read', async function(request, response) const result = await userReadBiz.addUserFriendApplyRead({ loginInfo, recordId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -151,7 +157,7 @@ router.post('/update-user-friend-apply-read', async function(request, response) /** * #controller post /api/web/user-read/update-user-friend-apply-pass-read - * #desc 新增通过申请消息已读记录 + * #desc 新增通过好友申请消息已读记录 * @param {*} request * @param {*} response */ @@ -170,6 +176,7 @@ router.post('/update-user-friend-apply-pass-read', async function(request, respo const result = await userReadBiz.addUserFriendApplyPassRead({ loginInfo, recordId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -179,7 +186,7 @@ router.post('/update-user-friend-apply-pass-read', async function(request, respo /** * #controller post /api/web/user-read/update-user-friend-apply-reject-read - * #desc 新增拒绝申请消息已读记录 + * #desc 新增拒绝好友申请消息已读记录 * @param {*} request * @param {*} response */ @@ -198,6 +205,7 @@ router.post('/update-user-friend-apply-reject-read', async function(request, res const result = await userReadBiz.addUserFriendApplyRejectRead({ loginInfo, applyId }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -206,4 +214,91 @@ router.post('/update-user-friend-apply-reject-read', async function(request, res }) +/** + * #controller post /api/web/user-read/update-user-group-apply-read + * 新增群聊申请消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-group-apply-read', async function(request, response) { + try { + const { recordId } = request.body; + + if (!checkRequestParams({ + recordId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.addUserGroupApplyRead({ + loginInfo, recordId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/user-read/update-user-group-apply-pass-read + * 新增通过群聊申请消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-group-apply-pass-read', async function(request, response) { + try { + const { recordId } = request.body; + + if (!checkRequestParams({ + recordId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.addUserGroupApplyPassRead({ + loginInfo, recordId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/user-read/update-user-group-apply-reject-read + * 新增拒绝群聊申请消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-group-apply-reject-read', async function(request, response) { + try { + const { recordId } = request.body; + + if (!checkRequestParams({ + recordId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.addUserGroupApplyRejectRead({ + loginInfo, recordId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + module.exports = router; \ No newline at end of file diff --git a/src/controller/web/user/user_register_controller.js b/src/controller/web/user/user_register_controller.js index c487222..6f4473a 100644 --- a/src/controller/web/user/user_register_controller.js +++ b/src/controller/web/user/user_register_controller.js @@ -1,5 +1,5 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); @@ -10,6 +10,9 @@ const { LOGIN_TOKEN_KEY } } = require('../../../utils/constant'); +const { + contentFilter, objectContentFilter +} = require('../../../utils/sensitive/content') /** @@ -40,44 +43,7 @@ router.post('/register-by-account', async function(request, response) { } const result = await bizUserRegister.userRegisterByAccount({ - account, password, invite_code - }); - response.json(result); - } catch (error) { - tlConsoleError(error) - response.json(tlResponseSvrError()); - } -}); - -/** - * #controller post /api/web/user-register/register-by-mobile - * #desc 通过手机号注册 - * @param {*} request - * @param {*} response - */ -router.post('/register-by-mobile', async function(request, response) { - try { - const { mobile, code, invite_code } = request.body; - const { [LOGIN_TOKEN_KEY]: token } = request.cookies; - - if(token){ - const loginResult = await bizUserLoginState.userIsLogin({ - token - }); - if(loginResult.success){ - return response.json(loginResult) - } - } - - if (!checkRequestParams({ - mobile, code, invite_code - })) { - response.json(tlResponseArgsError("请求参数非法")); - return; - } - - const result = await bizUserRegister.userRegisterByMobile({ - mobile, code, invite_code + account: contentFilter(account), password, invite_code }); response.json(result); } catch (error) { @@ -152,35 +118,24 @@ router.post('/get-email-code', async function(request, response) { /** - * #controller post /api/web/user-register/register-website-user - * #desc 注册官网用户 + * #controller post /api/web/user-register/reset-by-email + * #desc 重置邮箱用户密码 * @param {*} request * @param {*} response */ -router.post('/register-website-user', async function(request, response) { +router.post('/reset-by-email', async function(request, response) { try { - const { code, email, password } = request.body; - const { [LOGIN_TOKEN_KEY]: token } = request.cookies; - - if(token){ - const loginResult = await bizUserLoginState.userIsLogin({ - token - }); - - if(loginResult.success){ - return response.json(loginResult) - } - } + const { code, email, invite_code } = request.body; if (!checkRequestParams({ - code, email, password + code, email, invite_code })) { response.json(tlResponseArgsError("请求参数非法")); return; } - const result = await bizUserRegister.registerWebsiteUser({ - code, email, password + const result = await bizUserRegister.resetPasswordByEmail({ + code, email, invite_code }); response.json(result); } catch (error) { @@ -189,4 +144,5 @@ router.post('/register-website-user', async function(request, response) { } }); + module.exports = router \ No newline at end of file diff --git a/src/controller/web/user/user_tag_controller.js b/src/controller/web/user/user_tag_controller.js index e17b284..70eb85d 100644 --- a/src/controller/web/user/user_tag_controller.js +++ b/src/controller/web/user/user_tag_controller.js @@ -1,5 +1,5 @@ const { - tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams + tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams, } = require("../../../utils/utils"); const express = require('express'); const router = express.Router(); @@ -27,6 +27,7 @@ router.post('/add-channel-tag', async function(request, response) { const result = await userTagBiz.addChannelTag({ loginInfo, name }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -55,6 +56,7 @@ router.post('/add-friend-tag', async function(request, response) { const result = await userTagBiz.addFriendTag({ loginInfo, name }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -83,6 +85,7 @@ router.post('/add-cloud-tag', async function(request, response) { const result = await userTagBiz.addCloudTag({ loginInfo, name }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -102,6 +105,7 @@ router.get('/get-channel-tag-list', async function(request, response) { const result = await userTagBiz.getChannelTagList({ loginInfo }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -121,6 +125,7 @@ router.get('/get-friend-tag-list', async function(request, response) { const result = await userTagBiz.getFriendTagList({ loginInfo }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -140,6 +145,7 @@ router.get('/get-cloud-tag-list', async function(request, response) { const result = await userTagBiz.getCloudTagList({ loginInfo }); + response.json(result); } catch (error) { tlConsoleError(error) @@ -168,6 +174,7 @@ router.post('/delete-tag', async function(request, response) { const result = await userTagBiz.delUserTag({ loginInfo, id }); + response.json(result); } catch (error) { tlConsoleError(error) diff --git a/src/controller/web/web.js b/src/controller/web/web.js index c23f7e3..2b509c8 100644 --- a/src/controller/web/web.js +++ b/src/controller/web/web.js @@ -2,8 +2,16 @@ // web包含的controller定义 // Date: 2024-01-13 +// 系统 +const systemWebConfig = require('./system/system_web_config_controller') +const systemWebCompany = require('./system/system_web_company_controller') +const systemWebUser = require('./system/system_web_user_controller') +const systemWebChannel = require('./system/system_web_channel_controller') +const systemWebService = require('./system/system_web_service_controller') + // 配置 const configInit = require('./config/init_controller') +const configSkin = require('./config/skin_controller') // 企业 const company = require('./company/company_controller') @@ -18,15 +26,29 @@ const userApply = require('./user/user_apply_controller') const userRead = require('./user/user_read_controller') const userConfig = require('./user/user_config_controller') const userTag = require('./user/user_tag_controller') +const userClear = require('./user/user_clear_controller') // 频道 const channel = require('./channel/channel_controller') const channelChat = require('./channel/channel_chat_controller') +const channelNotice = require('./channel/channel_notice_controller') const channelUser = require('./channel/channel_user_controller') +const channelFile = require('./channel/channel_file_controller') +const channelMedia = require('./channel/channel_media_controller') +// 文件 +const cloudFile = require('./cloud/cloud_file_controller') module.exports = { + "system-web-config" : systemWebConfig, + "system-web-company" : systemWebCompany, + "system-web-user" : systemWebUser, + "system-web-channel" : systemWebChannel, + "system-web-service" : systemWebService, + "config" : configInit, + "config-skin" : configSkin, + "company" : company, "user" : user, @@ -38,7 +60,13 @@ module.exports = { "user-read" : userRead, "user-config" : userConfig, "user-tag" : userTag, + "user-clear" : userClear, "channel" : channel, "channel-chat" : channelChat, "channel-user" : channelUser, + "channel-notice" : channelNotice, + "channel-file" : channelFile, + "channel-media" : channelMedia, + + "cloud-file" : cloudFile, } diff --git a/src/dao/tl_channel_chat_dao.js b/src/dao/tl_channel_chat_dao.js index a0ada9a..9c38c30 100644 --- a/src/dao/tl_channel_chat_dao.js +++ b/src/dao/tl_channel_chat_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_channel_chat') const Table = model(dbClient, DataTypes).TlChannelChat @@ -155,7 +155,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_channel_dao.js b/src/dao/tl_channel_dao.js index d81e179..725f9c6 100644 --- a/src/dao/tl_channel_dao.js +++ b/src/dao/tl_channel_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where, or } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_channel') const Table = model(dbClient, DataTypes).TlChannel @@ -155,7 +155,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_channel_file_dao.js b/src/dao/tl_channel_file_dao.js new file mode 100644 index 0000000..80e6e90 --- /dev/null +++ b/src/dao/tl_channel_file_dao.js @@ -0,0 +1,239 @@ +const { DataTypes } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_channel_file') +const Table = model(dbClient, DataTypes).TlChannelFile +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType} = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +/** + * getGroupCount 接口 + * @param {*} params + * @param {*} group + */ +const getGroupCount = async function(params, group){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + if(Object.keys(group).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params, + attributes: [group], + group: group, + }) + + return count +} + + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, + getGroupCount +} \ No newline at end of file diff --git a/src/dao/tl_channel_media_dao.js b/src/dao/tl_channel_media_dao.js new file mode 100644 index 0000000..774102b --- /dev/null +++ b/src/dao/tl_channel_media_dao.js @@ -0,0 +1,211 @@ +const { DataTypes } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_channel_media') +const Table = model(dbClient, DataTypes).TlChannelMedia +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + offset: (page - 1) * pageSize, + limit: pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_channel_message_dao.js b/src/dao/tl_channel_message_dao.js new file mode 100644 index 0000000..5e1acba --- /dev/null +++ b/src/dao/tl_channel_message_dao.js @@ -0,0 +1,62 @@ +const { QueryTypes } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { tlConsoleError } = require("../../src/utils/utils"); +const TableName = "TlChannelMessageDao" + +/** + * getListBySql 接口 + * @param {*} querySql + * @param {*} params + */ +const getListBySql = async function( + querySql, params, +){ + if(!querySql){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await dbClient.query(querySql, { + replacements: params, + type: QueryTypes.SELECT, + }); + + return list +} + +/** + * getCountBySql 接口 + * @param {*} querySql + * @param {*} params + */ +const getCountBySql = async function( + querySql, params, +){ + if(!querySql){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await dbClient.query(querySql, { + replacements: params, + type: QueryTypes.SELECT, + }); + + return count +} + + +module.exports = { + getListBySql, + getCountBySql, +} \ No newline at end of file diff --git a/src/dao/tl_channel_notice_dao.js b/src/dao/tl_channel_notice_dao.js new file mode 100644 index 0000000..cc4d641 --- /dev/null +++ b/src/dao/tl_channel_notice_dao.js @@ -0,0 +1,211 @@ +const { DataTypes } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_channel_notice') +const Table = model(dbClient, DataTypes).TlChannelNotice +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_channel_user_dao.js b/src/dao/tl_channel_user_dao.js index f6fa134..0934eff 100644 --- a/src/dao/tl_channel_user_dao.js +++ b/src/dao/tl_channel_user_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, Sequelize } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_channel_user') const Table = model(dbClient, DataTypes).TlChannelUser @@ -201,7 +201,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_cloud_file_dao.js b/src/dao/tl_cloud_file_dao.js new file mode 100644 index 0000000..4d8e17f --- /dev/null +++ b/src/dao/tl_cloud_file_dao.js @@ -0,0 +1,339 @@ +const { DataTypes } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_cloud_file') +const Table = model(dbClient, DataTypes).TlCloudFile +const TableName = fields.Name +const TableDef = fields.Def +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getInfoDeleted 接口 + * @param {*} params + * @param {*} fields + * @returns + */ +const getInfoDeleted = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + paranoid: false, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * getListDeleted 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getListDeleted = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + paranoid: false, + attributes: fields, + order: order + }) + + return list +} + +/** + * getListDeletedForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListDeletedForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + paranoid: false, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * restoreInfo 接口 + * @param {*} params + */ +const restoreInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.restore({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + +/** + * getCountDeleted 接口 + * @param {*} params + */ +const getCountDeleted = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params, + paranoid: false + }) + + return count +} + +/** + * deleteInfoForce 接口 + * @param {*} params + * @returns + */ +const deleteInfoForce = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params, + force: true, + }) + + tlConsole(TableName, params, info) + + return info +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListDeleted, getListForPage, getListDeletedForPage, getInfoDeleted, + updateInfo, + deleteInfo, restoreInfo, deleteInfoForce, + getCount, getCountDeleted +} \ No newline at end of file diff --git a/src/dao/tl_company_dao.js b/src/dao/tl_company_dao.js index 0ee6c6b..e3f604a 100644 --- a/src/dao/tl_company_dao.js +++ b/src/dao/tl_company_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_company') const Table = model(dbClient, DataTypes).TlCompany @@ -156,7 +156,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_role_dao.js b/src/dao/tl_role_dao.js index 87bf115..4e66f58 100644 --- a/src/dao/tl_role_dao.js +++ b/src/dao/tl_role_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_role') const Table = model(dbClient, DataTypes).TlRole @@ -156,7 +156,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_user_apply_dao.js b/src/dao/tl_user_apply_dao.js index ad693c4..00fc9d8 100644 --- a/src/dao/tl_user_apply_dao.js +++ b/src/dao/tl_user_apply_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_user_apply') const Table = model(dbClient, DataTypes).TlUserApply @@ -156,7 +156,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_user_auth_dao.js b/src/dao/tl_user_auth_dao.js index 551f237..5598a5c 100644 --- a/src/dao/tl_user_auth_dao.js +++ b/src/dao/tl_user_auth_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_user_auth') const Table = model(dbClient, DataTypes).TlUserAuth @@ -156,7 +156,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_user_clear_dao.js b/src/dao/tl_user_clear_dao.js new file mode 100644 index 0000000..cb667ea --- /dev/null +++ b/src/dao/tl_user_clear_dao.js @@ -0,0 +1,211 @@ +const { DataTypes } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_user_clear') +const Table = model(dbClient, DataTypes).TlUserClear +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + offset: (page - 1) * pageSize, + limit: pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_user_config_dao.js b/src/dao/tl_user_config_dao.js index a7f433e..c2f2900 100644 --- a/src/dao/tl_user_config_dao.js +++ b/src/dao/tl_user_config_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_user_config') const Table = model(dbClient, DataTypes).TlUserConfig @@ -156,7 +156,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_user_dao.js b/src/dao/tl_user_dao.js index f6df9a6..d9f31ec 100644 --- a/src/dao/tl_user_dao.js +++ b/src/dao/tl_user_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_user') const Table = model(dbClient, DataTypes).TlUser @@ -157,7 +157,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_user_finger_print_dao.js b/src/dao/tl_user_finger_print_dao.js index 5dedd3b..106bcee 100644 --- a/src/dao/tl_user_finger_print_dao.js +++ b/src/dao/tl_user_finger_print_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_user_finger_print') const Table = model(dbClient, DataTypes).TlUserFingerPrint @@ -156,7 +156,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_user_friend_dao.js b/src/dao/tl_user_friend_dao.js index b615cf0..bfb7838 100644 --- a/src/dao/tl_user_friend_dao.js +++ b/src/dao/tl_user_friend_dao.js @@ -156,7 +156,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_user_read_dao.js b/src/dao/tl_user_read_dao.js index 3209ec8..252027f 100644 --- a/src/dao/tl_user_read_dao.js +++ b/src/dao/tl_user_read_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_user_read') const Table = model(dbClient, DataTypes).TlUserRead @@ -156,7 +156,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/dao/tl_user_tag_dao.js b/src/dao/tl_user_tag_dao.js index ec1f560..88e2538 100644 --- a/src/dao/tl_user_tag_dao.js +++ b/src/dao/tl_user_tag_dao.js @@ -1,4 +1,4 @@ -const { DataTypes, where } = require('sequelize'); +const { DataTypes } = require('sequelize'); const { dbClient } = require('../tables/db') const { model, fields } = require('../tables/tl_user_tag') const Table = model(dbClient, DataTypes).TlUserTag @@ -156,7 +156,13 @@ const updateInfo = async function(params, data){ tlConsole(TableName, params, data, info) - return info + if(info[0] === 0){ + return null + } + + return { + count: info[0] + } } diff --git a/src/middleware/checkAdmin.js b/src/middleware/checkAdmin.js new file mode 100644 index 0000000..2f0f914 --- /dev/null +++ b/src/middleware/checkAdmin.js @@ -0,0 +1,131 @@ +const crypto = require('crypto'); +const { get_env_config } = require("./../../conf/env_config"); +const { + tlConsoleWarn, encryptStr, verifyEncryptStr, +} = require("./../../src/utils/utils"); +//获取环境变量 +const conf = get_env_config(); +const userService = require('../service/user/tl_user_service') +const companyService = require('../service/company/tl_company_service') + +const { fields: userFields } = require('../tables/tl_user') +const { inner: TlRoleInner } = require('../tables/tl_role') +const { fields: companyFields } = require('../tables/tl_company') + +const TlUserDef = userFields.Def +const TlCompanyDef = companyFields.Def + + +/** + * 检查默认数据是否已经初始化,默认企业、默认管理员 + */ +const checkDefaultBeforStartServer = async function(){ + const adminUserEmail = conf.admin_user_email; + const adminPassword = conf.admin_password; + + if(!adminUserEmail || !adminPassword){ + tlConsoleWarn('please set admin_user_email and admin_password in tlrtcapp.env file'); + process.exit(1); + } + + // 检查公司是否已经初始化 + const companyInfo = await companyService.getInfoByCode({ + code: 'tl-rtc-app' + }) + + let companyId = 0; + + // 默认创建一个公司 + if(Object.keys(companyInfo).length === 0){ + const result = await companyService.addInfo({ + name: 'TL-RTC-APP默认企业', + address: '广州市海珠区', + phone: '1234567890', + email: adminUserEmail, + website: 'https://github.com/tl-open-source/tl-rtc-app', + description: 'TL-RTC-APP默认企业', + logo: '/image/tlrtcapp-logo.svg', + code: 'tl-rtc-app' + }) + + if(Object.keys(result).length === 0){ + tlConsoleWarn('auto init default company failed'); + process.exit(1); + } + + companyId = result[TlCompanyDef.id]; + + tlConsoleWarn('auto init default company success...', companyId); + }else{ + companyId = companyInfo[TlCompanyDef.id]; + } + + tlConsoleWarn("auto check company done...", companyId); + + // 检查管理员是否已经初始化 + const adminUserInfo = await userService.getAdminUser({ + email: adminUserEmail + }) + + if(Object.keys(adminUserInfo).length === 0){ + const salt = crypto.randomBytes(16).toString('hex') + const saltPassword = encryptStr({ + str: adminPassword, + salt: salt + }) + + const result = await userService.addInfo({ + companyId, + email: adminUserEmail, + password: saltPassword, + salt, + name: '管理员', + roleId: TlRoleInner.user.admin.id, + }) + + if(Object.keys(result).length === 0){ + tlConsoleWarn('auto init admin failed'); + process.exit(1); + } + + tlConsoleWarn('auto init admin success...', result[TlUserDef.id]); + }else{ + // 检查是否需要更新管理员密码 + if(!verifyEncryptStr({ + inputStr: adminPassword, + hashedStr: adminUserInfo[TlUserDef.password], + salt: adminUserInfo[TlUserDef.salt] + })){ + + const salt = crypto.randomBytes(16).toString('hex') + const saltPassword = encryptStr({ + str: adminPassword, + salt: salt + }) + + const result = await userService.updateInfoById({ + companyId: adminUserInfo[TlUserDef.companyId], + id: adminUserInfo[TlUserDef.id], + }, { + [TlUserDef.password]: saltPassword, + [TlUserDef.salt]: salt + }) + + if(Object.keys(result).length === 0){ + tlConsoleWarn('auto update admin password failed'); + process.exit(1); + } + + tlConsoleWarn('auto update admin password success...'); + } + } + + tlConsoleWarn("auto check admin done...", adminUserEmail); + + return true; +} + + +module.exports = { + checkDefaultBeforStartServer +} \ No newline at end of file diff --git a/src/middleware/loginAuth.js b/src/middleware/loginAuth.js index aca09a2..53e1282 100644 --- a/src/middleware/loginAuth.js +++ b/src/middleware/loginAuth.js @@ -1,12 +1,10 @@ const { - tlConsoleApiIcon, tlConsole, tlConsoleError, - tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess + tlConsole, tlResponseForbidden, } = require("../utils/utils"); const { LOGIN : { LOGIN_TOKEN_KEY, - WEBSITE_LOGIN_TOKEN_KEY + SYSTEM_LOGIN_TOKEN_KEY } } = require('../utils/constant'); const userSessionService = require('../service/user/tl_user_session_service') @@ -18,27 +16,18 @@ const loginAuthIngoreApi = [ // 登录 '/api/web/user-login/login-state', - '/api/web/user-login/website-login-state', + '/api/web/user-login/system-login-state', '/api/web/user-login/login-by-account', - '/api/web/user-login/login-by-mobile', '/api/web/user-login/login-by-email', - '/api/web/user-login/login-by-code', - '/api/web/user-login/login-by-wechat', - '/api/web/user-login/login-by-qq', - '/api/web/user-login/login-by-qy-wechat', - '/api/web/user-login/login-by-fp', - '/api/web/user-login/login-by-website', + '/api/web/user-login/login-by-system', // 注册 '/api/web/user-register/register-by-account', - '/api/web/user-register/register-by-mobile', '/api/web/user-register/register-by-email', - '/api/web/user-register/get-email-code', - '/api/web/user-register/register-website-user', // 退出 '/api/web/user-logout/logout', - '/api/web/user-logout/website-logout', + '/api/web/user-logout/system-logout', ] @@ -62,16 +51,21 @@ const loginAuthHandler = async function(request, response, next) { } } - const isWebsite = request.url.includes("/website-") - let tokenKey = LOGIN_TOKEN_KEY - if(isWebsite){ - tokenKey = WEBSITE_LOGIN_TOKEN_KEY + + const isSystem = request.url.includes("/system-") + if(isSystem){ + tokenKey = SYSTEM_LOGIN_TOKEN_KEY } - const { [tokenKey]: token } = request.cookies; + let { [tokenKey]: token } = request.cookies; if (!token) { - return response.json(tlResponseForbidden("不在线, 请先登录")) + // 如果没有token,尝试从请求头中获取 + token = request.headers[tokenKey]; + if (!token) { + // 如果请求头中也没有token,返回401 + return response.json(tlResponseForbidden("不在线, 请先登录")) + } } const { @@ -86,11 +80,7 @@ const loginAuthHandler = async function(request, response, next) { loginUserMobile } = await userSessionService.getUserInfoByToken({token}) - if(isWebsite){ - tlConsole("website login check:", request.url, token, loginUserCompanyId, loginUserId) - }else{ - tlConsole("login check:", request.url, token, loginUserCompanyId, loginUserId) - } + tlConsole("login check:", request.url, token, loginUserCompanyId, loginUserId) if (!loginUserCompanyId) { return response.json(tlResponseForbidden("不在线, 请先登录")) diff --git a/src/middleware/loginRole.js b/src/middleware/loginRole.js index f7ebb78..6a5bc7c 100644 --- a/src/middleware/loginRole.js +++ b/src/middleware/loginRole.js @@ -1,7 +1,5 @@ const { - tlConsoleApiIcon, tlConsole, tlConsoleError, - tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess + tlConsole, tlConsoleError, tlResponseForbidden, } = require("../utils/utils"); const { LOGIN : { @@ -21,27 +19,25 @@ const loginRoleIngoreApi = [ // 登录 '/api/web/user-login/login-state', - '/api/web/user-login/website-login-state', + '/api/web/user-login/system-login-state', '/api/web/user-login/login-by-account', - '/api/web/user-login/login-by-mobile', '/api/web/user-login/login-by-email', - '/api/web/user-login/login-by-code', - '/api/web/user-login/login-by-wechat', - '/api/web/user-login/login-by-qq', - '/api/web/user-login/login-by-qy-wechat', - '/api/web/user-login/login-by-fp', - '/api/web/user-login/login-by-website', + '/api/web/user-login/login-by-system', // 注册 '/api/web/user-register/register-by-account', - '/api/web/user-register/register-by-mobile', '/api/web/user-register/register-by-email', - '/api/web/user-register/get-email-code', - '/api/web/user-register/register-website-user', // 退出 '/api/web/user-logout/logout', - '/api/web/user-logout/website-logout', + '/api/web/user-logout/system-logout', + + // 获取频道名称 + '/api/web/channel/get-channel-name', + // 获取频道信息 + '/api/web/channel/search-channel-by-id', + // 分享加入频道 + '/api/web/channel-user/share-join-channel', ] @@ -55,7 +51,7 @@ const getRoleInfoById = function({roleId}){ const roleList = [ TlRoleInner.user.normal, TlRoleInner.user.admin, - + TlRoleInner.channel.creator, TlRoleInner.channel.admin, TlRoleInner.channel.member, @@ -172,14 +168,12 @@ const loginRoleHandler = async function(request, response, next) { return next() } - const isWebsite = request.url.includes("/website-") - const { loginUserCompanyId, loginUserCompanyName, loginUserId, loginUsername, - loginUserRoleId, + loginUserRoleId, loginUserAvatar, loginTime, loginUserEmail, @@ -192,11 +186,7 @@ const loginRoleHandler = async function(request, response, next) { let permissionId = getRequestApiPermissionId(request.url) - if(isWebsite){ - tlConsole("website role check:", request.url, loginUserCompanyId, loginUserId, loginUserRoleId, permissionId) - }else{ - tlConsole("role check:", request.url, loginUserCompanyId, loginUserId, loginUserRoleId, permissionId) - } + tlConsole("role check:", request.url, loginUserCompanyId, loginUserId, loginUserRoleId, permissionId) if(!permissionId){ return response.json(tlResponseForbidden("请求无权限")) @@ -206,6 +196,7 @@ const loginRoleHandler = async function(request, response, next) { roleId: loginUserRoleId, permissionId: permissionId }) + if(!hasPermission){ return response.json(tlResponseForbidden("操作无权限")) } @@ -274,6 +265,7 @@ const loginChannelRoleHandler = async function(request, response, next) { permissionId: permissionId, channelId: channelId }) + if(!hasPermission){ return response.json(tlResponseForbidden("操作无权限")) } diff --git a/src/middleware/multerConfig.js b/src/middleware/multerConfig.js new file mode 100644 index 0000000..c2b30ff --- /dev/null +++ b/src/middleware/multerConfig.js @@ -0,0 +1,58 @@ +const multer = require('multer') +const fs = require('fs') +const uuid = require('uuid') +const { get_env_config } = require("../../conf/env_config"); +//获取环境变量 +const conf = get_env_config(); +const { genServiceSaveFileFolder } = require('../utils/oss/oss') + +/** + * 配置 multer 存储 + * @returns {Object} - multer 存储配置 + */ +const storageConfig = function () { + // 配置 multer 存储 + return multer.diskStorage({ + // 设置文件存储路径 + destination: function (request, file, callback) { + const loginInfo = request.ctx || {} + const { + loginUserCompanyId, loginUserId, + } = loginInfo + + let path = genServiceSaveFileFolder({ + companyId: loginUserCompanyId, userId: loginUserId + }) + + // 如果文件夹不存在则创建 + if (!fs.existsSync(path)) { + fs.mkdirSync(path, { + recursive: true + }) + } + + callback(null, path) + }, + // 设置文件名 + filename: function (request, file, callback) { + // 获取文件后缀 + const ext = file.originalname.split('.').pop() + // 生成文件名: 时间戳-随机数.后缀 + const filename = `${uuid.v4()}.${ext}` + + request.fileId = filename + + callback(null, filename) + }, + limits: { + fileSize: 1024 * 1024 * 5 // 5MB + }, + }) +} + + + + +module.exports = { + storageConfig, +} \ No newline at end of file diff --git a/src/role/accountRole.js b/src/role/accountRole.js index a43331c..026f78a 100644 --- a/src/role/accountRole.js +++ b/src/role/accountRole.js @@ -1,10 +1,13 @@ const { + systemPermission, channelPermission, + cloudPermission, userPermission, companyPermission, configPermission, channelPerfix, + channelNoticePerfix, channelUserPerfix, } = require('./permission'); @@ -19,13 +22,23 @@ const userNormalPermissions = function(){ // 频道权限 const channelKeys = Object.keys(channelPermission.channel).filter((key) => { return ![ - channelPerfix + "UPDATE_CHANNEL_NAME" + channelPerfix + "UPDATE_CHANNEL_NAME", + channelPerfix + "UPDATE_CHANNEL_CAN_SEARCH", ].includes(key) }) channelKeys.forEach((key) => { returnPermission.push(channelPermission.channel[key]); }) + const channelNoticeKeys = Object.keys(channelPermission.channelNotice).filter((key) => { + return ![ + channelNoticePerfix + "ADD_CHANNEL_NOTICE" + ].includes(key) + }) + channelNoticeKeys.forEach((key) => { + returnPermission.push(channelPermission.channelNotice[key]); + }) + const channelUserKeys = Object.keys(channelPermission.channelUser).filter((key) => { return ![ channelUserPerfix + "ADD_CHANNEL_USER_ADMIN", @@ -39,7 +52,13 @@ const userNormalPermissions = function(){ returnPermission.push(channelPermission.channelUser[key]); }) returnPermission.push(...Object.values(channelPermission.channelChat)) + returnPermission.push(...Object.values(channelPermission.channelMedia)) + returnPermission.push(...Object.values(channelPermission.channelFile)) + // 资源库权限 + Object.keys(cloudPermission).forEach((key) => { + returnPermission.push(...Object.values(cloudPermission[key])); + }) // 用户权限 Object.keys(userPermission).forEach((key) => { returnPermission.push(...Object.values(userPermission[key])); @@ -53,17 +72,25 @@ const userNormalPermissions = function(){ } /** - * 系统管理员权限 - 所有权限 + * 系统超级管理员权限 - 所有权限 * @returns */ const userAdminPermissions = function(){ let returnPermission = []; + // 系统管理员权限 + Object.keys(systemPermission).forEach((key) => { + returnPermission.push(...Object.values(systemPermission[key])); + }) // 频道权限 Object.keys(channelPermission).forEach((key) => { returnPermission.push(...Object.values(channelPermission[key])); }) - // 用户权限 + // 资源库权限 + Object.keys(cloudPermission).forEach((key) => { + returnPermission.push(...Object.values(cloudPermission[key])); + }) + // 企业权限 Object.keys(companyPermission).forEach((key) => { returnPermission.push(...Object.values(companyPermission[key])); }) diff --git a/src/role/channelRole.js b/src/role/channelRole.js index d1c1516..79c6ea3 100644 --- a/src/role/channelRole.js +++ b/src/role/channelRole.js @@ -17,6 +17,9 @@ const userChannelCreatorPermissions = function(){ // 频道权限 returnPermission.push(...Object.values(channelPermission.channel)) returnPermission.push(...Object.values(channelPermission.channelChat)) + returnPermission.push(...Object.values(channelPermission.channelMedia)) + returnPermission.push(...Object.values(channelPermission.channelFile)) + returnPermission.push(...Object.values(channelPermission.channelNotice)) returnPermission.push(...Object.values(channelPermission.channelUser)) return returnPermission; @@ -32,7 +35,8 @@ const userChannelAdminPermissions = function(){ // 频道权限 const channelKeys = Object.keys(channelPermission.channel).filter((key) => { return ![ - channelPerfix + "UPDATE_CHANNEL_NAME" + channelPerfix + "UPDATE_CHANNEL_NAME", + channelPerfix + "UPDATE_CHANNEL_CAN_SEARCH", ].includes(key) }) channelKeys.forEach((key) => { @@ -52,6 +56,9 @@ const userChannelAdminPermissions = function(){ }) returnPermission.push(...Object.values(channelPermission.channelChat)) + returnPermission.push(...Object.values(channelPermission.channelMedia)) + returnPermission.push(...Object.values(channelPermission.channelFile)) + returnPermission.push(...Object.values(channelPermission.channelNotice)) return returnPermission; } @@ -66,13 +73,23 @@ const userChannelNormalPermissions = function(){ // 频道权限 const channelKeys = Object.keys(channelPermission.channel).filter((key) => { return ![ - channelPerfix + "UPDATE_CHANNEL_NAME" + channelPerfix + "UPDATE_CHANNEL_NAME", + channelPerfix + "UPDATE_CHANNEL_CAN_SEARCH", ].includes(key) }) channelKeys.forEach((key) => { returnPermission.push(channelPermission.channel[key]); }) + const channelNoticeKeys = Object.keys(channelPermission.channelNotice).filter((key) => { + return ![ + channelNoticePerfix + "ADD_CHANNEL_NOTICE" + ].includes(key) + }) + channelNoticeKeys.forEach((key) => { + returnPermission.push(channelPermission.channelNotice[key]); + }) + const channelUserKeys = Object.keys(channelPermission.channelUser).filter((key) => { return ![ channelUserPerfix + "ADD_CHANNEL_USER_ADMIN", @@ -87,11 +104,14 @@ const userChannelNormalPermissions = function(){ }) returnPermission.push(...Object.values(channelPermission.channelChat)) + returnPermission.push(...Object.values(channelPermission.channelMedia)) + returnPermission.push(...Object.values(channelPermission.channelFile)) return returnPermission; } + module.exports = { userChannelCreatorPermissions, userChannelAdminPermissions, diff --git a/src/role/permission.js b/src/role/permission.js index 6395a03..2b2435c 100644 --- a/src/role/permission.js +++ b/src/role/permission.js @@ -7,15 +7,24 @@ // 权限id基数 const systemPermissionIdBase = 1 const channelPermissionIdBase = 100000 +const cloudPermissionIdBase = 200000 const companyPermissionIdBase = 300000 -const userPermissionIdBase = 600000 -const configPermissionIdBase = 700000 +const userPermissionIdBase = 400000 +const configPermissionIdBase = 500000 // key前缀 -const systemPerfix = 'SYSTEM:' +const systemWebConfigPerfix = 'SYSTEM_WEB_CONFIG:' +const systemWebCompanyPerfix = 'SYSTEM_WEB_COMPANY:' +const systemWebUserPerfix = 'SYSTEM_WEB_USER:' +const systemWebChannelPerfix = 'SYSTEM_WEB_CHANNEL:' +const systemWebServicePerfix = 'SYSTEM_WEB_SERVICE:' const channelPerfix = 'CHANNEL:' const channelChatPerfix = 'CHANNEL_CHAT:' +const channelMediaPerfix = 'CHANNEL_MEDIA:' +const channelFilePerfix = 'CHANNEL_FILE:' +const channelNoticePerfix = 'CHANNEL_NOTICE:' const channelUserPerfix = 'CHANNEL_USER:' +const cloudFilePerfix = 'CLOUD_FILE:' const companyPerfix = 'COMPANY:' const userPerfix = 'USER:' const userApplyPerfix = 'USER_APPLY:' @@ -26,6 +35,8 @@ const userTagPerfix = 'USER_TAG:' const userRegisterPerfix = 'USER_REGISTER:' const userLoginPerfix = 'USER_LOGIN:' const userLogoutPerfix = 'USER_LOGOUT:' +const userClearPerfix = 'USER_CLEAR:' +const configSkinPerfix = 'CONFIG_SKIN:' // 补充前缀 @@ -38,7 +49,60 @@ const addPerfix = function(permission, perfix){ // 系统默认预设权限 1-999999 let systemPermission = { - + systemWebConfig: { // 1 ~ 9999 + // 获取网站配置 + GET_SYSTEM_CONFIG: systemPermissionIdBase + 1, + // 更新网站配置 + UPDATE_SYSTEM_CONFIG: systemPermissionIdBase + 2, + }, + systemWebService: { // 10000 ~ 19999 + // 重启服务 + RESTART_SERVICE: systemPermissionIdBase + 10000, + // 获取服务状态 + GET_SERVICE_STATUS: systemPermissionIdBase + 10001, + // 停止服务 + STOP_SERVICE: systemPermissionIdBase + 10002, + // 启动服务 + START_SERVICE: systemPermissionIdBase + 10003, + // 启动socket + START_SOCKET: systemPermissionIdBase + 10004, + }, + systemWebCompany: { // 20000 ~ 29999 + // 获取公司信息 + GET_COMPANY_LIST: systemPermissionIdBase + 20000, + // 更新公司信息 + UPDATE_COMPANY: systemPermissionIdBase + 20001, + // 添加公司 + ADD_COMPANY: systemPermissionIdBase + 20002, + // 删除公司 + DELETE_COMPANY: systemPermissionIdBase + 20003, + // 获取公司信息 + GET_COMPANY_INFO: systemPermissionIdBase + 20004, + }, + systemWebUser: { // 30000 ~ 39999 + // 删除用户 + DELETE_USER: systemPermissionIdBase + 30000, + // 获取用户列表 + GET_USER_LIST: systemPermissionIdBase + 30001, + // 更新用户信息 + UPDATE_USER: systemPermissionIdBase + 30002, + // 添加用户 + ADD_USER: systemPermissionIdBase + 30003, + // 获取用户信息 + GET_USER_INFO: systemPermissionIdBase + 30004, + }, + systemWebChannel: { // 40000 ~ 49999 + // 添加频道 + ADD_CHANNEL: systemPermissionIdBase + 40000, + // 更新频道 + UPDATE_CHANNEL: systemPermissionIdBase + 40001, + // 删除频道 + DELETE_CHANNEL: systemPermissionIdBase + 40002, + // 获取频道列表 + GET_CHANNEL_LIST: systemPermissionIdBase + 40003, + // 获取频道用户列表 + GET_CHANNEL_USER_LIST: systemPermissionIdBase + 40004, + }, } // 频道权限 100000 - 199999 @@ -49,19 +113,23 @@ let channelPermission = { // 获取频道列表 GET_CHANNEL_LIST: channelPermissionIdBase + 2, // 获取频道信息 - GET_CHANNEL_INFO: channelPermissionIdBase + 4, + GET_CHANNEL_INFO: channelPermissionIdBase + 3, // 获取频道名称 - GET_CHANNEL_NAME: channelPermissionIdBase + 5, + GET_CHANNEL_NAME: channelPermissionIdBase + 4, // 修改频道名称 - UPDATE_CHANNEL_NAME: channelPermissionIdBase + 6, + UPDATE_CHANNEL_NAME: channelPermissionIdBase + 5, // 获取频道聊天记录 - GET_CHANNEL_MESSAGE: channelPermissionIdBase + 7, + GET_CHANNEL_MESSAGE: channelPermissionIdBase + 6, // 获取频道列表聊天记录 - GET_CHANNEL_MESSAGE_LIST: channelPermissionIdBase + 8, + GET_CHANNEL_MESSAGE_LIST: channelPermissionIdBase + 7, + // 搜索频道聊天记录 + SEARCH_CHANNEL_MESSAGE: channelPermissionIdBase + 8, // 通过频道id获取频道信息 - SEARCH_CHANNEL_BY_ID: channelPermissionIdBase + 10, + SEARCH_CHANNEL_BY_ID: channelPermissionIdBase + 9, // 获取群组频道列表 - GET_GROUP_CHANNEL_LIST: channelPermissionIdBase + 11, + GET_GROUP_CHANNEL_LIST: channelPermissionIdBase + 10, + // 修改频道是否可以被搜索 + UPDATE_CHANNEL_CAN_SEARCH: channelPermissionIdBase + 11, }, channelChat: { // 101000 ~ 101999 // 发送好友频道聊天 @@ -72,14 +140,33 @@ let channelPermission = { ADD_REPLY_FRIEND_CHANNEL_CHAT: channelPermissionIdBase + 1002, // 回复多人频道聊天 ADD_REPLY_GROUP_CHANNEL_CHAT: channelPermissionIdBase + 1003, - // 撤回聊天消息 - ROLLBACK_CHANNEL_CHAT: channelPermissionIdBase + 1004, + }, + channelFile: { // 102000 ~ 102999 + // 发送好友频道离线文件消息 + ADD_FRIEND_CHANNEL_OFFLINE_FILE: channelPermissionIdBase + 2001, + // 发送群聊频道离线文件消息 + ADD_GROUP_CHANNEL_OFFLINE_FILE: channelPermissionIdBase + 2002, + }, + channelMedia: { // 103000 ~ 103999 + // 发送好友频道语音聊天消息 + ADD_FRIEND_CHANNEL_AUDIO: channelPermissionIdBase + 3001, + // 发送好友频道视频消息 + ADD_FRIEND_CHANNEL_VIDEO: channelPermissionIdBase + 3002, + + // 发送多人频道语音聊天消息 + ADD_GROUP_CHANNEL_AUDIO: channelPermissionIdBase + 3003, + // 发送多人频道视频消息 + ADD_GROUP_CHANNEL_VIDEO: channelPermissionIdBase + 3004, + }, + channelNotice: { // 104000 ~ 104999 + // 发布频道公告 + ADD_CHANNEL_NOTICE: channelPermissionIdBase + 4001, + // 获取频道公告 + GET_CHANNEL_NOTICE_LIST: channelPermissionIdBase + 4002, }, channelUser: { // 105000 ~ 105999 // 系统管理员添加频道用户 ADD_CHANNEL_USER: channelPermissionIdBase + 5001, - // 分享加入群聊 - SHARE_JOIN_CHANNEL: channelPermissionIdBase + 5002, // 添加频道普通身份用户 ADD_CHANNEL_USER_NORMAL: channelPermissionIdBase + 5003, // 批量添加频道普通身份用户 @@ -105,19 +192,27 @@ let channelPermission = { } } +// 资源库权限 200000 - 299999 +let cloudPermission = { + cloudFile: { // 200000 ~ 200999 + // 上传文件 + UPLOAD_FILE: cloudPermissionIdBase + 1, + // 从服务器获取云文件 + DOWNLOAD_SERVER_FILE: cloudPermissionIdBase + 2, + }, +} + // 企业权限 300000 - 399999 let companyPermission = { company: { // 300000 ~ 300999 - // 添加企业 - ADD_COMPANY: companyPermissionIdBase + 1, - // 获取企业 - GET_COMPANY: companyPermissionIdBase + 2, + // 获取企业信息 + GET_COMPANY: companyPermissionIdBase + 1, } } -// 用户权限 600000 - 699999 +// 用户权限 400000 - 499999 let userPermission = { - user: { // 600000 ~ 600999 + user: { // 400000 ~ 400999 // 搜索用户 SEARCH_USER_BY_NAME: userPermissionIdBase + 1, // 搜索用户通过id @@ -127,7 +222,7 @@ let userPermission = { // 绑定邮箱 BIND_EMAIL: userPermissionIdBase + 4 }, - userApply: { // 601000 ~ 601999 + userApply: { // 401000 ~ 401999 // 添加好友申请 ADD_USER_FRIEND_APPLY: userPermissionIdBase + 1000, // 通过好友申请 @@ -138,8 +233,18 @@ let userPermission = { GET_USER_FRIEND_OTHER_APPLY_LIST: userPermissionIdBase + 1003, // 获取自己发出的用户好友申请列表 GET_USER_FRIEND_SELF_APPLY_LIST: userPermissionIdBase + 1004, + // 获取自己收到的群聊申请列表 + GET_USER_GROUP_OTHER_APPLY_LIST: userPermissionIdBase + 1005, + // 获取自己发出的群聊申请列表 + GET_USER_GROUP_SELF_APPLY_LIST: userPermissionIdBase + 1006, + // 通过群聊申请 + PASS_USER_GROUP: userPermissionIdBase + 1007, + // 拒绝群聊申请 + REJECT_USER_GROUP: userPermissionIdBase + 1008, + // 添加群聊申请 + ADD_USER_GROUP_APPLY: userPermissionIdBase + 1009, }, - userFriend: { // 602000 ~ 602999 + userFriend: { // 402000 ~ 402999 // 删除好友 DELETE_USER_FRIEND: userPermissionIdBase + 2000, // 更新好友信息备注 @@ -151,7 +256,7 @@ let userPermission = { // 关注好友 UPDATE_USER_FRIEND_SPECIAL: userPermissionIdBase + 2004, }, - userConfig: { // 603000 ~ 603999 + userConfig: { // 403000 ~ 403999 // 获取用户配置 GET_USER_CONFIG: userPermissionIdBase + 3000, // 更新用户通用设置 @@ -167,7 +272,7 @@ let userPermission = { // 更新用户其他设置 UPDATE_USER_CONFIG_OTHER: userPermissionIdBase + 3006, }, - userRead: { // 604000 ~ 604999 + userRead: { // 404000 ~ 404999 // 更新频道文件/媒体/聊天消息已读记录 UPDATE_CHANNEL_MUTIL_READ: userPermissionIdBase + 4000, // 更新频道聊天消息已读记录 @@ -182,45 +287,70 @@ let userPermission = { UPDATE_USER_FRIEND_APPLY_PASS_READ: userPermissionIdBase + 4005, // 新增拒绝申请消息已读记录 UPDATE_USER_FRIEND_APPLY_REJECT_READ: userPermissionIdBase + 4006, + // 新增群聊申请消息已读记录 + UPDATE_USER_GROUP_APPLY_READ: userPermissionIdBase + 4007, + // 新增通过群聊申请消息已读记录 + UPDATE_USER_GROUP_APPLY_PASS_READ: userPermissionIdBase + 4008, + // 新增拒绝群聊申请消息已读记录 + UPDATE_USER_GROUP_APPLY_REJECT_READ: userPermissionIdBase + 4009, }, - userTag: { // 605000 ~ 605999 + userTag: { // 405000 ~ 405999 // 添加频道分组标签 ADD_CHANNEL_TAG: userPermissionIdBase + 5000, // 添加好友分组标签 ADD_FRIEND_TAG: userPermissionIdBase + 5001, - // 添加资源库分组标签 - ADD_CLOUD_TAG: userPermissionIdBase + 5002, // 获取频道分组标签列表 - GET_CHANNEL_TAG_LIST: userPermissionIdBase + 5003, + GET_CHANNEL_TAG_LIST: userPermissionIdBase + 5002, // 获取好友分组标签列表 - GET_FRIEND_TAG_LIST: userPermissionIdBase + 5004, - // 获取资源库分组标签列表 - GET_CLOUD_TAG_LIST: userPermissionIdBase + 5005, + GET_FRIEND_TAG_LIST: userPermissionIdBase + 5003, // 删除标签 - DELETE_TAG: userPermissionIdBase + 5006, + DELETE_TAG: userPermissionIdBase + 5004, }, - userRegister: { // 606000 ~ 606999 + userRegister: { // 406000 ~ 406999 }, - userLogin: { // 607000 ~ 607999 + userLogin: { // 407000 ~ 407999 }, - userLogout: { // 608000 ~ 608999 + userLogout: { // 408000 ~ 408999 }, + userClear: { // 409000 ~ 409999 + // 更新频道聊天清理记录 + UPDATE_CHANNEL_CHAT_CLEAR: userPermissionIdBase + 9000, + // 更新频道媒体清理记录 + UPDATE_CHANNEL_MEDIA_CLEAR: userPermissionIdBase + 9001, + // 更新频道文件清理记录 + UPDATE_CHANNEL_FILE_CLEAR: userPermissionIdBase + 9002, + // 更新频道多消息清理记录 + UPDATE_CHANNEL_MUTIL_CLEAR: userPermissionIdBase + 9003, + } } -// 配置权限 700000 - 799999 +// 配置权限 500000 - 599999 const configPermission = { - + skin: { // 700000 ~ 700999 + GET_DETAIL: configPermissionIdBase + 1, + } } + +addPerfix(systemPermission.systemWebConfig, systemWebConfigPerfix) +addPerfix(systemPermission.systemWebCompany, systemWebCompanyPerfix) +addPerfix(systemPermission.systemWebUser, systemWebUserPerfix) +addPerfix(systemPermission.systemWebChannel, systemWebChannelPerfix) +addPerfix(systemPermission.systemWebService, systemWebServicePerfix) + addPerfix(channelPermission.channel, channelPerfix) addPerfix(channelPermission.channelChat, channelChatPerfix) +addPerfix(channelPermission.channelMedia, channelMediaPerfix) +addPerfix(channelPermission.channelFile, channelFilePerfix) +addPerfix(channelPermission.channelNotice, channelNoticePerfix) addPerfix(channelPermission.channelUser, channelUserPerfix) -addPerfix(companyPermission.company, companyPerfix) +addPerfix(cloudPermission.cloudFile, cloudFilePerfix) +addPerfix(companyPermission.company, companyPerfix) addPerfix(userPermission.user, userPerfix) addPerfix(userPermission.userApply, userApplyPerfix) @@ -231,18 +361,29 @@ addPerfix(userPermission.userRegister, userRegisterPerfix) addPerfix(userPermission.userLogin, userLoginPerfix) addPerfix(userPermission.userLogout, userLogoutPerfix) addPerfix(userPermission.userTag, userTagPerfix) +addPerfix(userPermission.userClear, userClearPerfix) +addPerfix(configPermission.skin, configSkinPerfix) module.exports = { systemPermission, channelPermission, + cloudPermission, companyPermission, userPermission, configPermission, - systemPerfix, + systemWebConfigPerfix, + systemWebCompanyPerfix, + systemWebUserPerfix, + systemWebChannelPerfix, + systemWebServicePerfix, channelPerfix, channelChatPerfix, + channelFilePerfix, + channelNoticePerfix, + channelUserPerfix, + cloudFilePerfix, companyPerfix, userPerfix, userApplyPerfix, @@ -253,4 +394,5 @@ module.exports = { userLoginPerfix, userLogoutPerfix, userTagPerfix, + configSkinPerfix, } \ No newline at end of file diff --git a/src/role/role.js b/src/role/role.js index 1a944cc..0bdd802 100644 --- a/src/role/role.js +++ b/src/role/role.js @@ -1,5 +1,7 @@ const { + systemPermission, channelPermission, + cloudPermission, userPermission, companyPermission, configPermission, @@ -25,10 +27,21 @@ const { const getAllPermissionsMap = function(){ let returnPermissionMap = {}; + // 系统权限 + returnPermissionMap = Object.assign(returnPermissionMap, systemPermission.systemWebConfig) + returnPermissionMap = Object.assign(returnPermissionMap, systemPermission.systemWebService) + returnPermissionMap = Object.assign(returnPermissionMap, systemPermission.systemWebCompany) + returnPermissionMap = Object.assign(returnPermissionMap, systemPermission.systemWebUser) + returnPermissionMap = Object.assign(returnPermissionMap, systemPermission.systemWebChannel) // 频道权限 returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channel) returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channelChat) + returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channelMedia) + returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channelFile) + returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channelNotice) returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channelUser) + // 资源库权限 + returnPermissionMap = Object.assign(returnPermissionMap, cloudPermission.cloudFile) // 企业权限 returnPermissionMap = Object.assign(returnPermissionMap, companyPermission.company) // 用户权限 @@ -41,8 +54,10 @@ const getAllPermissionsMap = function(){ returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userLogout) returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userRegister) returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userTag) + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userClear) // 配置权限 - + returnPermissionMap = Object.assign(returnPermissionMap, configPermission.skin) + return returnPermissionMap; } diff --git a/src/service/channel/tl_channel_chat_service.js b/src/service/channel/tl_channel_chat_service.js index 3e1200a..95fb5c3 100644 --- a/src/service/channel/tl_channel_chat_service.js +++ b/src/service/channel/tl_channel_chat_service.js @@ -1,10 +1,8 @@ -const { Op } = require('sequelize') const { fields } = require('../../tables/tl_channel_chat') const TlChannelChatDao = require('../../dao/tl_channel_chat_dao') const TlChannelChatDef = fields.Def const TlChannelChatType = fields.Type const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); @@ -47,11 +45,7 @@ const addInfo = async function({ return {} } - if(![ - TlChannelChatType.SYSTEM, - TlChannelChatType.FRIEND, - TlChannelChatType.GROUP - ].includes(type)){ + if(Object.values(TlChannelChatType).indexOf(type) === -1){ tlConsoleError(TableName, "请求service参数type不合法") return {} } @@ -252,680 +246,6 @@ const getInfoById = async function({companyId, id}, fields){ return info } -/** - * getListByChannelId 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} fields - */ -const getListByChannelId = async function({companyId, channelId}, fields){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - const list = await TlChannelChatDao.getList({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ]) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByChannelIdForPage 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlChannelChatDao.getListForPage({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - - -/** - * getListByChannelIdAndMinIdForPage 接口 - * @desc 查看频道历史聊天记录 - * @param {*} companyId - * @param {*} channelId - * @param {*} fields - * @param {*} minId - * @param {*} page - * @param {*} pageSize - */ -const getListByChannelIdAndMinIdForPage = async function({ - companyId, channelId, minId -}, fields, page, pageSize){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!minId){ - tlConsoleError(TableName, "请求service参数minId为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlChannelChatDao.getListForPage({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - [TlChannelChatDef.id]: { - [Op.lt]: minId - } - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - - -/** - * getListByChannelIdAndMinIdTimeRangeForPage 接口 - * @desc 搜索频道聊天记录 - * @param {*} companyId - * @param {*} channelId - * @param {*} fields - * @param {*} minId - * @param {*} startTimeStamp - * @param {*} endTimeStamp - * @param {*} keyword - * @param {*} page - * @param {*} pageSize - */ -const getListByChannelIdAndMinIdTimeRangeForPage = async function({ - companyId, channelId, minId, startTimeStamp, endTimeStamp, keyword -}, fields, page, pageSize){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!minId){ - tlConsoleError(TableName, "请求service参数minId为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - let query = { - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - [TlChannelChatDef.id]: { - [Op.lte]: minId, - } - } - - if(startTimeStamp && endTimeStamp){ - query[TlChannelChatDef.messageTimeStamp] = { - [Op.between]: [startTimeStamp, endTimeStamp] - } - } - - if(keyword !== '' && keyword !== undefined && keyword !== null){ - query[TlChannelChatDef.message] = { - [Op.like]: `%${keyword}%` - } - } - - const list = await TlChannelChatDao.getListForPage(query, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByChannelIdAndMaxIdForPage 接口 - * @desc 查看频道最新聊天记录 - * @param {*} companyId - * @param {*} channelId - * @param {*} fields - * @param {*} maxId - * @param {*} page - * @param {*} pageSize - */ -const getListByChannelIdAndMaxIdForPage = async function({ - companyId, channelId, maxId -}, fields, page, pageSize){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!maxId){ - tlConsoleError(TableName, "请求service参数maxId为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlChannelChatDao.getListForPage({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - [TlChannelChatDef.id]: { - [Op.gte]: maxId - } - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - - -/** - * getListByChannelIdList 接口 - * @param {*} companyId - * @param {*} channelIdList - * @param {*} fields - */ -const getListByChannelIdList = async function({companyId, channelIdList}, fields){ - if(!channelIdList){ - tlConsoleError(TableName, "请求service参数channelIdList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - const list = await TlChannelChatDao.getList({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelIdList, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ]) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByChannelIdListForPage 接口 - * @param {*} companyId - * @param {*} channelIdList - * @param {*} page - * @param {*} pageSize - * @param {*} fields - */ -const getListByChannelIdListForPage = async function({companyId, channelIdList}, fields, page, pageSize){ - if(!channelIdList){ - tlConsoleError(TableName, "请求service参数channelIdList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlChannelChatDao.getListForPage({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelIdList, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByChannelFromUserId 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} fromUserId - * @param {*} fields - */ -const getListByChannelFromUserId = async function({companyId, channelId, fromUserId}, fields){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!fromUserId){ - tlConsoleError(TableName, "请求service参数fromUserId为空") - return [] - } - - const list = await TlChannelChatDao.getList({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - [TlChannelChatDef.fromUserId]: fromUserId, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ]) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByChannelFromUserIdForPage 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} fromUserId - * @param {*} page - * @param {*} pageSize - * @param {*} fields - */ -const getListByChannelFromUserIdForPage = async function({companyId, channelId, fromUserId}, fields, page, pageSize){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!fromUserId){ - tlConsoleError(TableName, "请求service参数fromUserId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlChannelChatDao.getListForPage({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - [TlChannelChatDef.fromUserId]: fromUserId, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByChannelToUserId 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} toUserId - * @param {*} fields - */ -const getListByChannelToUserId = async function({companyId, channelId, toUserId}, fields){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!toUserId){ - tlConsoleError(TableName, "请求service参数toUserId为空") - return [] - } - - const list = await TlChannelChatDao.getList({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - [TlChannelChatDef.toUserId]: toUserId, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ]) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByChannelToUserIdForPage 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} toUserId - * @param {*} page - * @param {*} pageSize - * @param {*} fields - */ -const getListByChannelToUserIdForPage = async function({companyId, channelId, toUserId}, fields, page, pageSize){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!toUserId){ - tlConsoleError(TableName, "请求service参数toUserId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlChannelChatDao.getListForPage({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - [TlChannelChatDef.toUserId]: toUserId, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByCompanyId 接口 - * @param {*} companyId - * @param {*} fields - */ -const getListByCompanyId = async function({companyId}, fields){ - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - const list = await TlChannelChatDao.getList({ - [TlChannelChatDef.companyId]: companyId, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ]) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByCompanyIdForPage 接口 - * @param {*} companyId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByCompanyIdForPage = async function({companyId}, fields, page, pageSize){ - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlChannelChatDao.getListForPage({ - [TlChannelChatDef.companyId]: companyId, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - /** * getListByChannelIdAndIdList 接口 * @param {*} companyId @@ -962,66 +282,6 @@ const getListByChannelIdAndIdList = async function({companyId, channelId, idList return list } -/** - * getListByChannelIdAndIdListForPage 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} idList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByChannelIdAndIdListForPage = async function({companyId, channelId, idList}, fields, page, pageSize){ - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - const list = await TlChannelChatDao.getListForPage({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - [TlChannelChatDef.id]: idList - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - /** * getListByIdList 接口 * @param {*} companyId @@ -1051,151 +311,6 @@ const getListByIdList = async function({companyId, idList}, fields){ return list } -/** - * getListByIdListForPage 接口 - * @param {*} companyId - * @param {*} idList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){ - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - const list = await TlChannelChatDao.getListForPage({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.id]: idList, - }, fields, [ - [TlChannelChatDef.messageTimeStamp, 'DESC'] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - -/** - * updateInfoById 接口 - * @param {*} id - * @param {*} companyId - * @param {*} data - */ -const updateInfoById = async function({id, companyId}, data){ - if(Object.keys(data).length === 0){ - tlConsoleError(TableName, "请求service参数为空") - return {} - } - - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlChannelChatDao.updateInfo({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.id]: id, - }, data) - - if(info == null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * deleteInfoById 接口 - * @param {*} id - * @param {*} companyId - */ -const deleteInfoById = async function({id, companyId}){ - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlChannelChatDao.deleteInfo({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.id]: id, - }) - - if(info == null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * getCountByChannelId 接口 - * @param {*} companyId - * @param {*} channelId - */ -const getCountByChannelId = async function({companyId, channelId}){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return 0 - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return 0 - } - - const count = await TlChannelChatDao.getCount({ - [TlChannelChatDef.companyId]: companyId, - [TlChannelChatDef.channelId]: channelId, - }) - - if(count == null){ - return 0 - } - - return count -} - /** * getCountByChannelIdList 接口 * @param {*} companyId @@ -1257,37 +372,44 @@ const getChannelChatLatestId = async function({companyId, channelId}, fields){ return latestId } +/** + * 删除聊天记录 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return 0 + } + + const info = await TlChannelChatDao.deleteInfo({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.id]: id + }) + + if(info == null){ + return 0 + } + + return info +} + module.exports = { addInfo, getInfoById, getChannelChatLatestId, - updateInfoById, - deleteInfoById, addSystemChatnfo, addFriendChatInfo, addGroupChatInfo, - getCountByChannelId, getCountByChannelIdList, - - getListByChannelId, - getListByChannelIdForPage, - getListByChannelFromUserId, - getListByChannelFromUserIdForPage, - getListByChannelToUserId, - getListByChannelToUserIdForPage, - getListByCompanyId, - getListByCompanyIdForPage, - getListByChannelIdList, - getListByChannelIdListForPage, - - getListByChannelIdAndMinIdForPage, - getListByChannelIdAndMinIdTimeRangeForPage, - - getListByChannelIdAndMaxIdForPage, + deleteInfoById, getListByChannelIdAndIdList, - getListByChannelIdAndIdListForPage, - getListByIdList, - getListByIdListForPage, } \ No newline at end of file diff --git a/src/service/channel/tl_channel_file_service.js b/src/service/channel/tl_channel_file_service.js new file mode 100644 index 0000000..e723dac --- /dev/null +++ b/src/service/channel/tl_channel_file_service.js @@ -0,0 +1,272 @@ +const { fields } = require('../../tables/tl_channel_file') +const TlChannelFileDao = require('../../dao/tl_channel_file_dao') +const TlChannelFileDef = fields.Def +const TlChannelFileType = fields.Type +const TlChannelFileStatus = fields.Status +const TableName = fields.Name +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, channelId, flag, cloudFileId, other, fromUserId, fromUserName, + type, status, messageTimeStamp, messageVersion +}){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(!messageTimeStamp){ + tlConsoleError(TableName, "请求service参数messageTimeStamp为空") + return {} + } + + if(!messageVersion){ + tlConsoleError(TableName, "请求service参数messageVersion为空") + return {} + } + + if(flag === undefined || flag === null){ + tlConsoleError(TableName, "请求service参数flag为空") + return {} + } + + if(!cloudFileId){ + tlConsoleError(TableName, "请求service参数file为空") + return {} + } + + if(!other){ + tlConsoleError(TableName, "请求service参数other为空") + return {} + } + + if(!fromUserId){ + tlConsoleError(TableName, "请求service参数fromUserId为空") + return {} + } + + if(!fromUserName){ + tlConsoleError(TableName, "请求service参数fromUserName为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlChannelFileType.OFFLINE, + TlChannelFileType.P2P, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return {} + } + + if(![ + TlChannelFileStatus.INIT, + TlChannelFileStatus.RECEIVED, + TlChannelFileStatus.RECEIVING, + ].includes(status)){ + tlConsoleError(TableName, "请求service参数status不合法") + return {} + } + + const info = await TlChannelFileDao.addInfo({ + [TlChannelFileDef.companyId]: companyId, + [TlChannelFileDef.channelId]: channelId, + [TlChannelFileDef.flag]: flag, + [TlChannelFileDef.cloudFileId]: cloudFileId, + [TlChannelFileDef.other]: other, + [TlChannelFileDef.fromUserId]: fromUserId, + [TlChannelFileDef.fromUserName]: fromUserName, + [TlChannelFileDef.type]: type, + [TlChannelFileDef.status]: status, + [TlChannelFileDef.messageTimeStamp]: messageTimeStamp, + [TlChannelFileDef.messageVersion]: messageVersion, + }) + + if(info == null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlChannelFileDao.getInfo({ + [TlChannelFileDef.companyId] : companyId, + [TlChannelFileDef.id] : id, + }, fields) + + if(info == null){ + return {} + } + + return info +} + +/** + * getListByChannelId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getListByChannelId = async function({companyId, channelId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlChannelFileDao.getList({ + [TlChannelFileDef.companyId]: companyId, + [TlChannelFileDef.channelId]: channelId, + }, fields, [ + [TlChannelFileDef.messageTimeStamp, 'DESC'] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelIdList 接口 + * @param {*} companyId + * @param {*} channelIdList + * @param {*} fields + */ +const getListByChannelIdList = async function({companyId, channelIdList}, fields){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlChannelFileDao.getList({ + [TlChannelFileDef.companyId]: companyId, + [TlChannelFileDef.channelId]: channelIdList, + }, fields, [ + [TlChannelFileDef.messageTimeStamp, 'DESC'] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * deleteInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return 0 + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + const info = await TlChannelFileDao.deleteInfo({ + [TlChannelFileDef.companyId]: companyId, + [TlChannelFileDef.id]: id, + }) + + if(info == null){ + return 0 + } + + return info +} + +/** + * 获取频道文件最新id + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getChannelFileLatestId = async function({companyId, channelId}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return 0 + } + + const list = await TlChannelFileDao.getListForPage({ + [TlChannelFileDef.companyId]: companyId, + [TlChannelFileDef.channelId]: channelId, + }, fields, [ + [TlChannelFileDef.id, 'DESC'] + ], 1, 1) + + if(list == null || list.length === 0){ + return 0 + } + + const latestId = list[0][TlChannelFileDef.id] + + return latestId +} + + +module.exports = { + addInfo, + getInfoById, + deleteInfoById, + getChannelFileLatestId, + + getListByChannelId, + getListByChannelIdList, +} \ No newline at end of file diff --git a/src/service/channel/tl_channel_media_service.js b/src/service/channel/tl_channel_media_service.js new file mode 100644 index 0000000..84a9359 --- /dev/null +++ b/src/service/channel/tl_channel_media_service.js @@ -0,0 +1,206 @@ +const { fields } = require('../../tables/tl_channel_media') +const TlChannelMediaDao = require('../../dao/tl_channel_media_dao') +const TlChannelMediaDef = fields.Def +const TlChannelMediaType = fields.Type +const TlChannelMediaStatus = fields.Status +const TableName = fields.Name +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, channelId, flag, media, other, fromUserId, fromUserName, + type, status, messageTimeStamp, messageVersion +}){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(!messageTimeStamp){ + tlConsoleError(TableName, "请求service参数messageTimeStamp为空") + return {} + } + + if(!messageVersion){ + tlConsoleError(TableName, "请求service参数messageVersion为空") + return {} + } + + if(flag === undefined || flag === null){ + tlConsoleError(TableName, "请求service参数flag为空") + return {} + } + + if(!media){ + tlConsoleError(TableName, "请求service参数media为空") + return {} + } + + if(!other){ + tlConsoleError(TableName, "请求service参数other为空") + return {} + } + + if(!fromUserId){ + tlConsoleError(TableName, "请求service参数fromUserId为空") + return {} + } + + if(!fromUserName){ + tlConsoleError(TableName, "请求service参数fromUserName为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlChannelMediaType.AUDIO, + TlChannelMediaType.VIDEO, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return {} + } + + if(![ + TlChannelMediaStatus.INIT, + TlChannelMediaStatus.RECEIVED, + TlChannelMediaStatus.RECEIVING, + ].includes(status)){ + tlConsoleError(TableName, "请求service参数status不合法") + return {} + } + + const info = await TlChannelMediaDao.addInfo({ + [TlChannelMediaDef.companyId]: companyId, + [TlChannelMediaDef.channelId]: channelId, + [TlChannelMediaDef.flag]: flag, + [TlChannelMediaDef.media]: media, + [TlChannelMediaDef.other]: other, + [TlChannelMediaDef.fromUserId]: fromUserId, + [TlChannelMediaDef.fromUserName]: fromUserName, + [TlChannelMediaDef.type]: type, + [TlChannelMediaDef.status]: status, + [TlChannelMediaDef.messageTimeStamp]: messageTimeStamp, + [TlChannelMediaDef.messageVersion]: messageVersion, + }) + + if(info == null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlChannelMediaDao.getInfo({ + [TlChannelMediaDef.companyId] : companyId, + [TlChannelMediaDef.id] : id, + }, fields) + + if(info == null){ + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return 0 + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + const info = await TlChannelMediaDao.deleteInfo({ + [TlChannelMediaDef.companyId]: companyId, + [TlChannelMediaDef.id]: id, + }) + + if(info == null){ + return 0 + } + + return info +} + +/** + * 获取频道媒体最新id + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getChannelMediaLatestId = async function({companyId, channelId}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return 0 + } + + const list = await TlChannelMediaDao.getListForPage({ + [TlChannelMediaDef.companyId]: companyId, + [TlChannelMediaDef.channelId]: channelId, + }, fields, [ + [TlChannelMediaDef.id, 'DESC'] + ], 1, 1) + + if(list == null || list.length === 0){ + return 0 + } + + const latestId = list[0][TlChannelMediaDef.id] + + return latestId +} + +module.exports = { + addInfo, + getInfoById, + deleteInfoById, + getChannelMediaLatestId, +} \ No newline at end of file diff --git a/src/service/channel/tl_channel_message_service.js b/src/service/channel/tl_channel_message_service.js new file mode 100644 index 0000000..f4d187d --- /dev/null +++ b/src/service/channel/tl_channel_message_service.js @@ -0,0 +1,829 @@ +const { tlConsoleError } = require("../../../src/utils/utils"); +const TlChannelMessageDao = require('../../dao/tl_channel_message_dao') +const { fields: TlChannelChatFields } = require('../../tables/tl_channel_chat') +const { fields: TlChannelFileFields } = require('../../tables/tl_channel_file') +const { fields: TlChannelMediaFields } = require('../../tables/tl_channel_media') + +const TlChannelChatDef = TlChannelChatFields.Def +const TlChannelChatType = TlChannelChatFields.Type +const TlChannelChatTableName = TlChannelChatFields.Name + +const TlChannelFileDef = TlChannelFileFields.Def +const TlChannelFileType = TlChannelFileFields.Type +const TlChannelFileTableName = TlChannelFileFields.Name + +const TlChannelMediaDef = TlChannelMediaFields.Def +const TlChannelMediaType = TlChannelMediaFields.Type +const TlChannelMediaTableName = TlChannelMediaFields.Name + +const TableName = "TlChannelMessageService" + + +/** + * 查询频道最新消息接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} chatClearId + * @param {*} fileClearId + * @param {*} mediaClearId + * @param {*} chatFields + * @param {*} fileFields + * @param {*} mediaFields + * @param {*} page + * @param {*} pageSize + */ +const getCombinedChannelMessageListForPage = async function({ + companyId, channelId, chatClearId, fileClearId, mediaClearId +}, commonFields, chatFields, fileFields, mediaFields, page, pageSize){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!chatClearId){ + tlConsoleError(TableName, "请求service参数chatClearId为空") + return [] + } + + if(!fileClearId){ + tlConsoleError(TableName, "请求service参数fileClearId为空") + return [] + } + + if(!mediaClearId){ + tlConsoleError(TableName, "请求service参数mediaClearId为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + let searchChatFields = [] + let searchFileFields = [] + let searchMediaFields = [] + + const chatFieldsPerfix = "field_chat_" + const fileFieldsPerfix = "field_file_" + const mediaFieldsPerfix = "field_media_" + + if(chatFields){ + if(commonFields){ + commonFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`${field} AS \`${field}\``) + }) + } + + chatFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`${field} AS \`${chatFieldsPerfix + field}\``) + }) + + // 如果三个表字段不一致,需要补齐处理 + if(fileFields){ + fileFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`NULL AS \`${fileFieldsPerfix + field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(mediaFields){ + mediaFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`NULL AS \`${mediaFieldsPerfix + field}\``) + }) + } + } + + if(fileFields){ + if(commonFields){ + commonFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`${field} AS \`${field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(chatFields){ + chatFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`NULL AS \`${chatFieldsPerfix + field}\``) + }) + } + + fileFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`${field} AS \`${fileFieldsPerfix + field}\``) + }) + + // 如果三个表字段不一致,需要补齐处理 + if(mediaFields){ + mediaFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`NULL AS \`${mediaFieldsPerfix + field}\``) + }) + } + } + + if(mediaFields){ + if(commonFields){ + commonFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`${field} AS \`${field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(chatFields){ + chatFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`NULL AS \`${chatFieldsPerfix + field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(fileFields){ + fileFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`NULL AS \`${fileFieldsPerfix + field}\``) + }) + } + + mediaFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`${field} AS \`${mediaFieldsPerfix + field}\``) + }) + } + + // 补充 null 字段 + const querySql = ` + SELECT * FROM ( + ( + SELECT + ${searchChatFields.map(field => `${field}`).join(", ")} + FROM \`${TlChannelChatTableName}\` + WHERE + \`${TlChannelChatDef.companyId}\` = :companyId + AND \`${TlChannelChatDef.channelId}\` = :channelId + AND \`${TlChannelChatDef.id}\` > :chatClearId + AND \`deleted_at\` IS NULL + ) + UNION ALL + ( + SELECT + ${searchFileFields.map(field => `${field}`).join(", ")} + FROM \`${TlChannelFileTableName}\` + WHERE + \`${TlChannelFileDef.companyId}\` = :companyId + AND \`${TlChannelFileDef.channelId}\` = :channelId + AND \`${TlChannelFileDef.id}\` > :fileClearId + AND \`deleted_at\` IS NULL + ) + UNION ALL + ( + SELECT + ${searchMediaFields.map(field => `${field}`).join(", ")} + FROM \`${TlChannelMediaTableName}\` + WHERE + \`${TlChannelMediaDef.companyId}\` = :companyId + AND \`${TlChannelMediaDef.channelId}\` = :channelId + AND \`${TlChannelMediaDef.id}\` > :mediaClearId + AND \`deleted_at\` IS NULL + ) + ) AS \`combined\` + ORDER BY \`${TlChannelMediaDef.messageTimeStamp}\` DESC + LIMIT :limit + OFFSET :offset; + `; + + const list = await TlChannelMessageDao.getListBySql(querySql, { + companyId, channelId, chatClearId, fileClearId, mediaClearId, limit: pageSize, offset: (page - 1) * pageSize + }) + + if(list == null){ + return [] + } + + // 处理字段 + list.forEach(item => { + const type = item[TlChannelChatDef.type] + + if(Object.values(TlChannelChatType).includes(type)){ + for(let key in item){ + if(key.startsWith(chatFieldsPerfix)){ + item[key.replace(chatFieldsPerfix, "")] = item[key] + delete item[key] + } + } + }else if(Object.values(TlChannelFileType).includes(type)){ + for(let key in item){ + if(key.startsWith(fileFieldsPerfix)){ + item[key.replace(fileFieldsPerfix, "")] = item[key] + delete item[key] + } + } + }else if(Object.values(TlChannelMediaType).includes(type)){ + for(let key in item){ + if(key.startsWith(mediaFieldsPerfix)){ + item[key.replace(mediaFieldsPerfix, "")] = item[key] + delete item[key] + } + } + } + }) + + return list +} + + +/** + * 查询频道历史消息接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} chatClearId + * @param {*} fileClearId + * @param {*} mediaClearId + * @param {*} chatMinId + * @param {*} fileMinId + * @param {*} mediaMinId + * @param {*} chatFields + * @param {*} fileFields + * @param {*} mediaFields + * @param {*} page + * @param {*} pageSize + */ +const getCombinedChannelHistoryMessageListForPage = async function({ + companyId, channelId, chatClearId, fileClearId, mediaClearId, + chatMinId, fileMinId, mediaMinId +}, commonFields, chatFields, fileFields, mediaFields, page, pageSize){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!chatClearId){ + tlConsoleError(TableName, "请求service参数chatClearId为空") + return [] + } + + if(!fileClearId){ + tlConsoleError(TableName, "请求service参数fileClearId为空") + return [] + } + + if(!mediaClearId){ + tlConsoleError(TableName, "请求service参数mediaClearId为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + if(!chatMinId){ + tlConsoleError(TableName, "请求service参数chatMinId为空") + return [] + } + + if(!fileMinId){ + tlConsoleError(TableName, "请求service参数fileMinId为空") + return [] + } + + if(!mediaMinId){ + tlConsoleError(TableName, "请求service参数mediaMinId为空") + return [] + } + + let searchChatFields = [] + let searchFileFields = [] + let searchMediaFields = [] + + const chatFieldsPerfix = "field_chat_" + const fileFieldsPerfix = "field_file_" + const mediaFieldsPerfix = "field_media_" + + if(chatFields){ + if(commonFields){ + commonFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`${field} AS \`${field}\``) + }) + } + + chatFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`${field} AS \`${chatFieldsPerfix + field}\``) + }) + + // 如果三个表字段不一致,需要补齐处理 + if(fileFields){ + fileFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`NULL AS \`${fileFieldsPerfix + field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(mediaFields){ + mediaFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`NULL AS \`${mediaFieldsPerfix + field}\``) + }) + } + } + + if(fileFields){ + if(commonFields){ + commonFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`${field} AS \`${field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(chatFields){ + chatFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`NULL AS \`${chatFieldsPerfix + field}\``) + }) + } + + fileFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`${field} AS \`${fileFieldsPerfix + field}\``) + }) + + // 如果三个表字段不一致,需要补齐处理 + if(mediaFields){ + mediaFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`NULL AS \`${mediaFieldsPerfix + field}\``) + }) + } + } + + if(mediaFields){ + if(commonFields){ + commonFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`${field} AS \`${field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(chatFields){ + chatFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`NULL AS \`${chatFieldsPerfix + field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(fileFields){ + fileFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`NULL AS \`${fileFieldsPerfix + field}\``) + }) + } + + mediaFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`${field} AS \`${mediaFieldsPerfix + field}\``) + }) + } + + // 补充 null 字段 + const querySql = ` + SELECT * FROM ( + ( + SELECT + ${searchChatFields.map(field => `${field}`).join(", ")} + FROM \`${TlChannelChatTableName}\` + WHERE + \`${TlChannelChatDef.companyId}\` = :companyId + AND \`${TlChannelChatDef.channelId}\` = :channelId + AND \`${TlChannelChatDef.id}\` > :chatClearId + AND \`${TlChannelChatDef.id}\` < :chatMinId + AND \`deleted_at\` IS NULL + ) + UNION ALL + ( + SELECT + ${searchFileFields.map(field => `${field}`).join(", ")} + FROM \`${TlChannelFileTableName}\` + WHERE + \`${TlChannelFileDef.companyId}\` = :companyId + AND \`${TlChannelFileDef.channelId}\` = :channelId + AND \`${TlChannelFileDef.id}\` > :fileClearId + AND \`${TlChannelFileDef.id}\` < :fileMinId + AND \`deleted_at\` IS NULL + ) + UNION ALL + ( + SELECT + ${searchMediaFields.map(field => `${field}`).join(", ")} + FROM \`${TlChannelMediaTableName}\` + WHERE + \`${TlChannelMediaDef.companyId}\` = :companyId + AND \`${TlChannelMediaDef.channelId}\` = :channelId + AND \`${TlChannelMediaDef.id}\` > :mediaClearId + AND \`${TlChannelMediaDef.id}\` < :mediaMinId + AND \`deleted_at\` IS NULL + ) + ) AS \`combined\` + ORDER BY \`${TlChannelMediaDef.messageTimeStamp}\` DESC + LIMIT :limit + OFFSET :offset; + `; + + const list = await TlChannelMessageDao.getListBySql(querySql, { + companyId, channelId, chatClearId, fileClearId, mediaClearId, + chatMinId, fileMinId, mediaMinId, + limit: pageSize, offset: (page - 1) * pageSize, + }) + + if(list == null){ + return [] + } + + // 处理字段 + list.forEach(item => { + const type = item[TlChannelChatDef.type] + + if(Object.values(TlChannelChatType).includes(type)){ + for(let key in item){ + if(key.startsWith(chatFieldsPerfix)){ + item[key.replace(chatFieldsPerfix, "")] = item[key] + delete item[key] + } + } + }else if(Object.values(TlChannelFileType).includes(type)){ + for(let key in item){ + if(key.startsWith(fileFieldsPerfix)){ + item[key.replace(fileFieldsPerfix, "")] = item[key] + delete item[key] + } + } + }else if(Object.values(TlChannelMediaType).includes(type)){ + for(let key in item){ + if(key.startsWith(mediaFieldsPerfix)){ + item[key.replace(mediaFieldsPerfix, "")] = item[key] + delete item[key] + } + } + } + }) + + return list +} + + +/** + * 搜索频道消息接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} chatClearId + * @param {*} fileClearId + * @param {*} mediaClearId + * @param {*} startTimeStamp + * @param {*} endTimeStamp + * @param {*} chatMinId + * @param {*} fileMinId + * @param {*} mediaMinId + * @param {*} chatFields + * @param {*} fileFields + * @param {*} mediaFields + * @param {*} page + * @param {*} pageSize + */ +const searchCombinedChannelMessageListForPage = async function({ + companyId, channelId, chatClearId, fileClearId, mediaClearId, + startTimeStamp, endTimeStamp, chatMinId, fileMinId, mediaMinId +}, commonFields, chatFields, fileFields, mediaFields, page, pageSize){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!chatClearId){ + tlConsoleError(TableName, "请求service参数chatClearId为空") + return [] + } + + if(!fileClearId){ + tlConsoleError(TableName, "请求service参数fileClearId为空") + return [] + } + + if(!mediaClearId){ + tlConsoleError(TableName, "请求service参数mediaClearId为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + if(!startTimeStamp){ + tlConsoleError(TableName, "请求service参数startTimeStamp为空") + return [] + } + + if(!endTimeStamp){ + tlConsoleError(TableName, "请求service参数endTimeStamp为空") + return [] + } + + let searchChatFields = [] + let searchFileFields = [] + let searchMediaFields = [] + + const chatFieldsPerfix = "field_chat_" + const fileFieldsPerfix = "field_file_" + const mediaFieldsPerfix = "field_media_" + + if(chatFields){ + if(commonFields){ + commonFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`${field} AS \`${field}\``) + }) + } + + chatFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`${field} AS \`${chatFieldsPerfix + field}\``) + }) + + // 如果三个表字段不一致,需要补齐处理 + if(fileFields){ + fileFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`NULL AS \`${fileFieldsPerfix + field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(mediaFields){ + mediaFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchChatFields.push(`NULL AS \`${mediaFieldsPerfix + field}\``) + }) + } + } + + if(fileFields){ + if(commonFields){ + commonFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`${field} AS \`${field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(chatFields){ + chatFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`NULL AS \`${chatFieldsPerfix + field}\``) + }) + } + + fileFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`${field} AS \`${fileFieldsPerfix + field}\``) + }) + + // 如果三个表字段不一致,需要补齐处理 + if(mediaFields){ + mediaFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchFileFields.push(`NULL AS \`${mediaFieldsPerfix + field}\``) + }) + } + } + + if(mediaFields){ + if(commonFields){ + commonFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`${field} AS \`${field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(chatFields){ + chatFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`NULL AS \`${chatFieldsPerfix + field}\``) + }) + } + + // 如果三个表字段不一致,需要补齐处理 + if(fileFields){ + fileFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`NULL AS \`${fileFieldsPerfix + field}\``) + }) + } + + mediaFields.forEach(field => { + // 如果字段是驼峰命名,需要转换为下划线命名 + field = field.replace(/([A-Z])/g, "_$1").toLowerCase() + searchMediaFields.push(`${field} AS \`${mediaFieldsPerfix + field}\``) + }) + } + + // 补充 null 字段 + const querySql = ` + SELECT * FROM ( + ( + SELECT + ${searchChatFields.map(field => `${field}`).join(", ")} + FROM \`${TlChannelChatTableName}\` + WHERE + \`${TlChannelChatDef.companyId}\` = :companyId + AND \`${TlChannelChatDef.channelId}\` = :channelId + AND \`${TlChannelChatDef.id}\` > :chatClearId + ${chatMinId !== -1 ? `AND \`${TlChannelChatDef.id}\` < :chatMinId` : ""} + AND \`${TlChannelChatDef.messageTimeStamp}\` >= :startTimeStamp + AND \`deleted_at\` IS NULL + ) + UNION ALL + ( + SELECT + ${searchFileFields.map(field => `${field}`).join(", ")} + FROM \`${TlChannelFileTableName}\` + WHERE + \`${TlChannelFileDef.companyId}\` = :companyId + AND \`${TlChannelFileDef.channelId}\` = :channelId + AND \`${TlChannelFileDef.id}\` > :fileClearId + ${fileMinId !== -1 ? `AND \`${TlChannelFileDef.id}\` < :fileMinId` : ""} + AND \`${TlChannelFileDef.messageTimeStamp}\` >= :startTimeStamp + AND \`deleted_at\` IS NULL + ) + UNION ALL + ( + SELECT + ${searchMediaFields.map(field => `${field}`).join(", ")} + FROM \`${TlChannelMediaTableName}\` + WHERE + \`${TlChannelMediaDef.companyId}\` = :companyId + AND \`${TlChannelMediaDef.channelId}\` = :channelId + AND \`${TlChannelMediaDef.id}\` > :mediaClearId + ${mediaMinId !== -1 ? `AND \`${TlChannelMediaDef.id}\` < :mediaMinId` : ""} + AND \`${TlChannelMediaDef.messageTimeStamp}\` >= :startTimeStamp + AND \`deleted_at\` IS NULL + ) + ) AS \`combined\` + ORDER BY \`${TlChannelMediaDef.messageTimeStamp}\` DESC + LIMIT :limit + OFFSET :offset; + `; + + const list = await TlChannelMessageDao.getListBySql(querySql, { + companyId, channelId, chatClearId, fileClearId, mediaClearId, limit: pageSize, offset: (page - 1) * pageSize, + startTimeStamp, endTimeStamp + }) + + if(list == null){ + return [] + } + + // 处理字段 + list.forEach(item => { + const type = item[TlChannelChatDef.type] + + if(Object.values(TlChannelChatType).includes(type)){ + for(let key in item){ + if(key.startsWith(chatFieldsPerfix)){ + item[key.replace(chatFieldsPerfix, "")] = item[key] + delete item[key] + } + } + }else if(Object.values(TlChannelFileType).includes(type)){ + for(let key in item){ + if(key.startsWith(fileFieldsPerfix)){ + item[key.replace(fileFieldsPerfix, "")] = item[key] + delete item[key] + } + } + }else if(Object.values(TlChannelMediaType).includes(type)){ + for(let key in item){ + if(key.startsWith(mediaFieldsPerfix)){ + item[key.replace(mediaFieldsPerfix, "")] = item[key] + delete item[key] + } + } + } + }) + + return list +} + + +module.exports = { + getCombinedChannelMessageListForPage, + getCombinedChannelHistoryMessageListForPage, + searchCombinedChannelMessageListForPage, +} \ No newline at end of file diff --git a/src/service/channel/tl_channel_notice_service.js b/src/service/channel/tl_channel_notice_service.js new file mode 100644 index 0000000..253e6f1 --- /dev/null +++ b/src/service/channel/tl_channel_notice_service.js @@ -0,0 +1,114 @@ +const { fields } = require('../../tables/tl_channel_notice') +const TlChannelNoticeDao = require('../../dao/tl_channel_notice_dao') +const TlChannelNoticeDef = fields.Def +const TableName = fields.Name +const { tlConsoleError } = require("../../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, channelId, userId, content +}){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!content){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + const info = await TlChannelNoticeDao.addInfo({ + [TlChannelNoticeDef.companyId] : companyId, + [TlChannelNoticeDef.channelId] : channelId, + [TlChannelNoticeDef.userId] : userId, + [TlChannelNoticeDef.content] : content, + [TlChannelNoticeDef.flag] : 0 + }) + + if(info == null){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + return info +} + +/** + * getListByChannelId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getListByChannelId = async function({companyId, channelId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlChannelNoticeDao.getList({ + [TlChannelNoticeDef.companyId]: companyId, + [TlChannelNoticeDef.channelId]: channelId, + }, fields, [ + [TlChannelNoticeDef.createdAt, 'DESC'] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * deleteInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return 0 + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + const info = await TlChannelNoticeDao.deleteInfo({ + [TlChannelNoticeDef.companyId]: companyId, + [TlChannelNoticeDef.id]: id, + }) + + if(info == null){ + return 0 + } + + return info +} + +module.exports = { + addInfo, + deleteInfoById, + + getListByChannelId, +} \ No newline at end of file diff --git a/src/service/channel/tl_channel_service.js b/src/service/channel/tl_channel_service.js index c427fc4..5cbf2ab 100644 --- a/src/service/channel/tl_channel_service.js +++ b/src/service/channel/tl_channel_service.js @@ -4,8 +4,8 @@ const TlChannelDef = fields.Def const TlChannelType = fields.Type const TlChannelStatus = fields.Status const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); +const { Op } = require('sequelize') /** @@ -87,6 +87,27 @@ const getInfoById = async function({companyId, id}){ return info } +/** + * getInfoByIdNoCompanyId 接口 + * @param {*} id + */ +const getInfoByIdNoCompanyId = async function({id}){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlChannelDao.getInfo({ + [TlChannelDef.id]: id, + }) + + if(info == null){ + return {} + } + + return info +} + /** * getListByIdList 接口 * @param {*} companyId @@ -118,6 +139,30 @@ const getListByIdList = async function({companyId, idList}, fields){ return list } +/** + * getListByIdListNoCompanyId 接口 + * @param {*} idList + * @param {*} fields + */ +const getListByIdListNoCompanyId = async function({ idList }, fields){ + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + const list = await TlChannelDao.getList({ + [TlChannelDef.id]: idList + }, fields, [ + [TlChannelDef.createdAt, "DESC"] + ]) + + if(list == null){ + return [] + } + + return list +} + /** * getListByIdListForPage 接口 * @param {*} companyId @@ -221,12 +266,12 @@ const deleteInfoById = async function({companyId, id}){ // 参数校验 if(!id){ tlConsoleError(TableName, "请求service参数id为空") - return {} + return 0 } if(!companyId){ tlConsoleError(TableName, "请求service参数companyId为空") - return {} + return 0 } const info = await TlChannelDao.deleteInfo({ @@ -236,19 +281,172 @@ const deleteInfoById = async function({companyId, id}){ if(info === null){ tlConsoleError(TableName, "请求dao异常") - return {} + return 0 } return info } +/** + * getListForPage 接口 + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function({ }, fields, page, pageSize){ + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelDao.getListForPage({ + [TlChannelDef.id]: { + [Op.gte]: 0 + } + }, fields, [ + [TlChannelDef.createdAt, "DESC"] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByKeywordForPage 接口 + * @param {*} keyword + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListByKeywordForPage = async function({ keyword }, fields, page, pageSize){ + if(!keyword){ + tlConsoleError(TableName, "请求service参数keyword为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelDao.getListForPage({ + [TlChannelDef.name]: { + [Op.like]: `%${keyword}%` + } + }, fields, [ + [TlChannelDef.createdAt, "DESC"] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + + +/** + * getCount 接口 + * @returns + */ +const getCount = async function({ }){ + const count = await TlChannelDao.getCount({ + [TlChannelDef.id]: { + [Op.gte]: 0 + } + }) + + if(count === null){ + return 0 + } + + return count +} + + +/** + * getCountByKeyword 接口 + * @param {*} keyword + * @returns + */ +const getCountByKeyword = async function({ keyword }){ + if(!keyword){ + tlConsoleError(TableName, "请求service参数keyword为空") + return 0 + } + + const count = await TlChannelDao.getCount({ + [TlChannelDef.name]: { + [Op.like]: `%${keyword}%` + } + }) + + if(count === null){ + return 0 + } + + return count +} + module.exports = { addInfo, updateInfoById, deleteInfoById, getInfoById, + getInfoByIdNoCompanyId, getListByIdList, - getListByIdListForPage + getListByIdListNoCompanyId, + getListByIdListForPage, + + getListForPage, + getListByKeywordForPage, + + getCount, + getCountByKeyword } \ No newline at end of file diff --git a/src/service/channel/tl_channel_user_service.js b/src/service/channel/tl_channel_user_service.js index 742506a..64fdc20 100644 --- a/src/service/channel/tl_channel_user_service.js +++ b/src/service/channel/tl_channel_user_service.js @@ -4,7 +4,6 @@ const TlChannelUserDef = fields.Def const TlChannelUserType = fields.Type const TlChannelUserStatus = fields.Status const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); @@ -142,36 +141,6 @@ const addInfoList = async function({ return list } - -/** - * getInfoById 接口 - * @param {*} companyId - * @param {*} id - * @param {*} fields - */ -const getInfoById = async function({companyId, id}, fields){ - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlChannelUserDao.getInfo({ - [TlChannelUserDef.companyId]: companyId, - [TlChannelUserDef.id]: id - }, fields) - - if(info == null) { - return {} - } - - return info -} - /** * getListByChannelId 接口 * @param {*} companyId @@ -210,6 +179,7 @@ const getListByChannelId = async function({companyId, channelId}, fields){ * @param {*} fields * @param {*} page * @param {*} pageSize + * @returns */ const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){ if(!channelId){ @@ -262,47 +232,18 @@ const getListByChannelIdForPage = async function({companyId, channelId}, fields, } /** - * getListByUserId 接口 + * getListByChannelIdAndUserIdListForPage 接口 * @param {*} companyId - * @param {*} userId - * @param {*} fields - */ -const getListByUserId = async function({companyId, userId}, fields){ - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - const infoList = await TlChannelUserDao.getList({ - [TlChannelUserDef.companyId]: companyId, - [TlChannelUserDef.userId]: userId - }, fields, [ - [TlChannelUserDef.createdAt, "DESC"] - ]) - - if(infoList == null) { - return [] - } - - return infoList -} - -/** - * getListByUserIdForPage 接口 - * @param {*} companyId - * @param {*} userId + * @param {*} channelId + * @param {*} userIdList * @param {*} fields * @param {*} page * @param {*} pageSize - */ -const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){ - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") + * @returns + **/ +const getListByChannelIdAndUserIdListForPage = async function({companyId, channelId, userIdList}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") return [] } @@ -311,6 +252,11 @@ const getListByUserIdForPage = async function({companyId, userId}, fields, page, return [] } + if(!userIdList){ + tlConsoleError(TableName, "请求service参数userIdList为空") + return [] + } + if(!page){ tlConsoleError(TableName, "请求service参数page为空") return [] @@ -338,7 +284,8 @@ const getListByUserIdForPage = async function({companyId, userId}, fields, page, const infoList = await TlChannelUserDao.getListForPage({ [TlChannelUserDef.companyId]: companyId, - [TlChannelUserDef.userId]: userId + [TlChannelUserDef.channelId]: channelId, + [TlChannelUserDef.userId]: userIdList }, fields, [ [TlChannelUserDef.createdAt, "DESC"] ], page, pageSize) @@ -350,6 +297,73 @@ const getListByUserIdForPage = async function({companyId, userId}, fields, page, return infoList } +/** + * getCountByChannelIdAndUserIdList 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} userIdList + * @returns + * */ +const getCountByChannelIdAndUserIdList = async function({companyId, channelId, userIdList}){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return 0 + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!userIdList){ + tlConsoleError(TableName, "请求service参数userIdList为空") + return 0 + } + + const count = await TlChannelUserDao.getCount({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId, + [TlChannelUserDef.userId]: userIdList + }) + + if(count == null) { + return 0 + } + + return count +} + +/** + * getListByUserId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + */ +const getListByUserId = async function({companyId, userId}, fields){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const infoList = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.userId]: userId + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ]) + + if(infoList == null) { + return [] + } + + return infoList +} + /** * getListByTypeUserIdList 接口 * @param {*} companyId @@ -388,71 +402,6 @@ const getListByTypeUserIdList = async function({companyId, type, userIdList}, fi return infoList } -/** - * getListByTypeUserIdListForPage 接口 - * @param {*} companyId - * @param {*} type - * @param {*} userIdList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByTypeUserIdListForPage = async function({companyId, type, userIdList}, fields, page, pageSize){ - if(!userIdList){ - tlConsoleError(TableName, "请求service参数userIdList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!type){ - tlConsoleError(TableName, "请求service参数type为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const infoList = await TlChannelUserDao.getListForPage({ - [TlChannelUserDef.companyId]: companyId, - [TlChannelUserDef.type]: type, - [TlChannelUserDef.userId]: userIdList - }, fields, [ - [TlChannelUserDef.createdAt, "DESC"] - ], page, pageSize) - - if(infoList == null) { - return [] - } - - return infoList -} - /** * getListByTypeUserId 接口 * @param {*} companyId @@ -491,71 +440,6 @@ const getListByTypeUserId = async function({companyId, type, userId}, fields){ return infoList } -/** - * getListByTypeUserIdForPage 接口 - * @param {*} companyId - * @param {*} type - * @param {*} userId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByTypeUserIdForPage = async function({companyId, type, userId}, fields, page, pageSize){ - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!type){ - tlConsoleError(TableName, "请求service参数type为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const infoList = await TlChannelUserDao.getListForPage({ - [TlChannelUserDef.companyId]: companyId, - [TlChannelUserDef.type]: type, - [TlChannelUserDef.userId]: userId - }, fields, [ - [TlChannelUserDef.createdAt, "DESC"] - ], page, pageSize) - - if(infoList == null) { - return [] - } - - return infoList -} - /** * getListByChannelUserIdList 接口 * @param {*} companyId @@ -594,172 +478,6 @@ const getListByChannelUserIdList = async function({companyId, channelId, userIdL return infoList } -/** - * getListByChannelUserIdListForPage 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} userIdList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByChannelUserIdListForPage = async function({companyId, channelId, userIdList}, fields, page, pageSize){ - if(!userIdList){ - tlConsoleError(TableName, "请求service参数userIdList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const infoList = await TlChannelUserDao.getListForPage({ - [TlChannelUserDef.companyId]: companyId, - [TlChannelUserDef.channelId]: channelId, - [TlChannelUserDef.userId]: userIdList - }, fields, [ - [TlChannelUserDef.createdAt, "DESC"] - ], page, pageSize) - - if(infoList == null) { - return [] - } - - return infoList -} - -/** - * getListByTypeChannelIdList 接口 - * @param {*} companyId - * @param {*} type - * @param {*} channelIdList - * @param {*} fields - */ -const getListByTypeChannelIdList = async function({companyId, type, channelIdList}, fields){ - if(!channelIdList){ - tlConsoleError(TableName, "请求service参数channelIdList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!type){ - tlConsoleError(TableName, "请求service参数type为空") - return [] - } - - const infoList = await TlChannelUserDao.getList({ - [TlChannelUserDef.companyId]: companyId, - [TlChannelUserDef.type]: type, - [TlChannelUserDef.channelId]: channelIdList - }, fields, [ - [TlChannelUserDef.createdAt, "DESC"] - ]) - - if(infoList == null) { - return [] - } - - return infoList -} - -/** - * getListByTypeChannelIdListForPage 接口 - * @param {*} companyId - * @param {*} type - * @param {*} channelIdList - * @param {*} fields - */ -const getListByTypeChannelIdListForPage = async function({companyId, type, channelIdList}, fields, page, pageSize){ - if(!channelIdList){ - tlConsoleError(TableName, "请求service参数channelIdList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!type){ - tlConsoleError(TableName, "请求service参数type为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const infoList = await TlChannelUserDao.getListForPage({ - [TlChannelUserDef.companyId]: companyId, - [TlChannelUserDef.type]: type, - [TlChannelUserDef.channelId]: channelIdList - }, fields, [ - [TlChannelUserDef.createdAt, "DESC"] - ], page, pageSize) - - if(infoList == null) { - return [] - } - - return infoList -} - /** * updateInfoById 接口 * @param {*} companyId @@ -803,12 +521,12 @@ const updateInfoById = async function({companyId, id}, data){ const deleteInfoById = async function({companyId, id}){ if(!id){ tlConsoleError(TableName, "请求service参数id为空") - return {} + return 0 } if(!companyId){ tlConsoleError(TableName, "请求service参数companyId为空") - return {} + return 0 } const info = await TlChannelUserDao.deleteInfo({ @@ -818,7 +536,7 @@ const deleteInfoById = async function({companyId, id}){ if(info == null) { tlConsoleError(TableName, "请求dao异常") - return {} + return 0 } return info @@ -880,6 +598,28 @@ const getCountByChannelIdList = async function({companyId, channelIdList}){ return counts } + +/** + * getCountByChannelIdListNoCompanyId 接口 + * @param {*} channelIdList + */ +const getCountByChannelIdListNoCompanyId = async function({channelIdList}){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return {} + } + + const counts = await TlChannelUserDao.getGroupCount({ + [TlChannelUserDef.channelId]: channelIdList + }, TlChannelUserDef.channelId) + + if(counts == null) { + return {} + } + + return counts +} + /** * getListByChannelIdList 接口 * @param {*} companyId @@ -911,64 +651,6 @@ const getListByChannelIdList = async function({companyId, channelIdList}, fields return infoList } -/** - * getListByChannelIdListForPage 接口 - * @param {*} companyId - * @param {*} channelIdList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByChannelIdListForPage = async function({companyId, channelIdList}, fields, page, pageSize){ - if(!channelIdList){ - tlConsoleError(TableName, "请求service参数channelIdList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const infoList = await TlChannelUserDao.getListForPage({ - [TlChannelUserDef.companyId]: companyId, - [TlChannelUserDef.channelId]: channelIdList - }, fields, [ - [TlChannelUserDef.createdAt, "DESC"] - ], page, pageSize) - - if(infoList == null) { - return [] - } - - return infoList -} - /** * getInfoByChannelIdAndUserId 接口 * @param {*} companyId @@ -1006,6 +688,156 @@ const getInfoByChannelIdAndUserId = async function({companyId, channelId, userId } +/** + * getListByUserIdAndChannelIdList 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} channelIdList + * @param {*} fields + * @returns + */ +const getListByUserIdAndChannelIdList = async function({ + companyId, userId, channelIdList +}, fields){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + const infoList = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.userId]: userId, + [TlChannelUserDef.channelId]: channelIdList + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ]) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByChannelIdAndRoleId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} roleId + * @returns + */ +const getListByChannelIdAndRoleId = async function({companyId, channelId, roleId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!roleId){ + tlConsoleError(TableName, "请求service参数roleId为空") + return [] + } + + const list = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId, + [TlChannelUserDef.roleId]: roleId + }, fields) + + if(list == null) { + return [] + } + + return list +} + +/** + * getListByUserIdAndRoleId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} roleId + * @param {*} fields + * @returns + */ +const getListByUserIdAndRoleId = async function({companyId, userId, roleId}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!roleId){ + tlConsoleError(TableName, "请求service参数roleId为空") + return {} + } + + const list = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.userId]: userId, + [TlChannelUserDef.roleId]: roleId + }, fields) + + if(list == null) { + return [] + } + + return list +} + + +/** + * deleteInfoByChannelIdAndUserId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} userId + * @returns + */ +const deleteInfoByChannelIdAndUserId = async function({companyId, channelId, userId}){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return 0 + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return 0 + } + + const info = await TlChannelUserDao.deleteInfo({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId, + [TlChannelUserDef.userId]: userId + }) + + if(info == null) { + return 0 + } + + return info +} module.exports = { @@ -1013,23 +845,23 @@ module.exports = { addInfoList, updateInfoById, deleteInfoById, - getInfoById, getInfoByChannelIdAndUserId, getCountByChannelId, getCountByChannelIdList, + getCountByChannelIdListNoCompanyId, + deleteInfoByChannelIdAndUserId, getListByChannelId, - getListByChannelIdForPage, - getListByUserId, - getListByUserIdForPage, - getListByChannelUserIdList, - getListByChannelUserIdListForPage, + getListByChannelIdForPage, + getListByUserId, + getListByUserIdAndChannelIdList, + getListByChannelUserIdList, getListByChannelIdList, - getListByChannelIdListForPage, getListByTypeUserIdList, - getListByTypeUserIdListForPage, - getListByTypeUserId, - getListByTypeUserIdForPage, - getListByTypeChannelIdList, - getListByTypeChannelIdListForPage, + getListByTypeUserId, + getListByChannelIdAndRoleId, + getListByUserIdAndRoleId, + + getCountByChannelIdAndUserIdList, + getListByChannelIdAndUserIdListForPage } \ No newline at end of file diff --git a/src/service/cloud/tl_cloud_file_service.js b/src/service/cloud/tl_cloud_file_service.js new file mode 100644 index 0000000..5b1ebbb --- /dev/null +++ b/src/service/cloud/tl_cloud_file_service.js @@ -0,0 +1,1141 @@ +const { literal, Op } = require('sequelize'); +const { fields } = require('../../tables/tl_cloud_file') +const TlCloudFileDao = require('../../dao/tl_cloud_file_dao') +const TlCloudFileDef = fields.Def +const TlCloudFileType = fields.Type +const TableName = fields.Name +const { tlConsoleError } = require("../../../src/utils/utils"); + + +/** + * 添加资源文件 + * @param {*} data + */ +const addInfo = async function({ + companyId, type, userId, flag, fileName, fileUrl, fileSize, + originFileName, originFileType, fileId, dirId, other +}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(Object.values(TlCloudFileType).indexOf(type) === -1){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(flag === undefined || flag === null){ + tlConsoleError(TableName, "请求service参数flag为空") + return {} + } + + if(!fileName){ + tlConsoleError(TableName, "请求service参数fileName为空") + return {} + } + + if(!fileUrl){ + tlConsoleError(TableName, "请求service参数fileUrl为空") + return {} + } + + if(fileSize === null || fileSize === undefined){ + tlConsoleError(TableName, "请求service参数fileSize为空") + return {} + } + + if(!originFileName){ + tlConsoleError(TableName, "请求service参数originFileName为空") + return {} + } + + if(!originFileType){ + tlConsoleError(TableName, "请求service参数originFileType为空") + return {} + } + + if(!fileId){ + tlConsoleError(TableName, "请求service参数fileId为空") + return {} + } + + const info = await TlCloudFileDao.addInfo({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.type]: type, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.flag]: flag, + [TlCloudFileDef.originFileName]: originFileName, + [TlCloudFileDef.originFileType]: originFileType, + [TlCloudFileDef.fileName]: fileName, + [TlCloudFileDef.fileUrl]: fileUrl, + [TlCloudFileDef.fileSize]: fileSize, + [TlCloudFileDef.fileId]: fileId, + [TlCloudFileDef.dirId]: dirId, + [TlCloudFileDef.other]: other + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 删除资源文件 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return 0 + } + + const info = await TlCloudFileDao.deleteInfo({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return 0 + } + + return info +} + +/** + * 撤销删除资源文件 + * @param {*} companyId + * @param {*} id + */ +const restoreInfoById = async function({companyId, id}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlCloudFileDao.restoreInfo({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 更新资源文件 + * @param {*} companyId + * @param {*} data + * @param {*} id + */ +const updateInfoById = async function({companyId, id}, data){ + // 参数校验 + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlCloudFileDao.updateInfo({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.id]: id + }, data) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 获取资源文件 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlCloudFileDao.getInfo({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * 获取资源文件 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoByIdNoCompanyId = async function({id}, fields){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlCloudFileDao.getInfo({ + [TlCloudFileDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * 获取资源文件列表 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + * @returns + */ +const getListByUserId = async function({companyId, userId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + const list = await TlCloudFileDao.getList({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId + }, fields, [ + [TlCloudFileDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件列表 + * @param {*} companyId + * @param {*} userId + * @param {*} dirId + * @param {*} fields + * @returns + */ +const getListByUserIdAndDirId = async function({companyId, userId, dirId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + let query = { + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + } + + if(dirId){ + query[TlCloudFileDef.dirId] = dirId + } + + const list = await TlCloudFileDao.getList(query, fields, [ + [TlCloudFileDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件列表 - 包括逻辑删除的 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + * @returns + */ +const getListByUserIdDeleted = async function({companyId, userId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + const list = await TlCloudFileDao.getListDeleted({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.deletedAt]: { + [Op.ne]: null + } + }, fields, [ + [TlCloudFileDef.deletedAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件列表 + * @param {*} companyId + * @param {*} userId + * @param {*} flagBit + * @param {*} fields + * @returns + */ +const getListByUserIdAndFlagBit = async function({companyId, userId, flagBit}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(flagBit === undefined || flagBit === null){ + tlConsoleError(TableName, "请求service参数flagBit为空") + return [] + } + + const list = await TlCloudFileDao.getList({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.flag]: literal(`${TlCloudFileDef.flag} & ${flagBit} = 1`) + }, fields, [ + [TlCloudFileDef.updatedAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件列表 + * @param {*} companyId + * @param {*} userId + * @param {*} flagBit + * @param {*} fields + * @returns + */ +const getListByUserIdAndFlagBitAndTypeList = async function({ + companyId, userId, flagBit, typeList +}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(flagBit === undefined || flagBit === null){ + tlConsoleError(TableName, "请求service参数flagBit为空") + return [] + } + + if(!typeList || typeList.length === 0){ + tlConsoleError(TableName, "请求service参数typeList为空") + return [] + } + + const list = await TlCloudFileDao.getList({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.type]: typeList, + [TlCloudFileDef.flag]: literal(`${TlCloudFileDef.flag} & ${flagBit} = 1`) + }, fields, [ + [TlCloudFileDef.updatedAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件列表 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + * @returns + */ +const getListByIdList = async function({companyId, idList}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!idList || idList.length === 0){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + const list = await TlCloudFileDao.getList({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.id]: idList + }, fields, [ + [TlCloudFileDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件列表 - 包括已删除的 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + * @returns + */ +const getListByIdListWithDeleted = async function({companyId, idList}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!idList || idList.length === 0){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + const list = await TlCloudFileDao.getList({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.id]: idList, + [TlCloudFileDef.deletedAt]: { + [Op.ne]: null + } + }, fields, [ + [TlCloudFileDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件列表 + * @param {*} companyId + * @param {*} userId + * @param {*} typeList + * @param {*} fields + * @returns + */ +const getListByUserIdAndTypeList = async function({companyId, userId, typeList}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!typeList || typeList.length === 0){ + tlConsoleError(TableName, "请求service参数typeList为空") + return [] + } + + const list = await TlCloudFileDao.getList({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.type]: typeList + }, fields, [ + [TlCloudFileDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件列表 + * @param {*} companyId + * @param {*} userId + * @param {*} typeList + * @param {*} dirId + * @param {*} fields + * @returns + */ +const getListByUserIdAndTypeListAndDirId = async function({companyId, userId, typeList, dirId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!typeList || typeList.length === 0){ + tlConsoleError(TableName, "请求service参数typeList为空") + return [] + } + + let query = { + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.type]: typeList, + } + + if(dirId){ + query[TlCloudFileDef.dirId] = dirId + } + + const list = await TlCloudFileDao.getList(query, fields, [ + [TlCloudFileDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件列表 + * @param {*} companyId + * @param {*} userId + * @param {*} typeList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListByUserIdAndTypeListForPage = async function({companyId, userId, typeList}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!typeList || typeList.length === 0){ + tlConsoleError(TableName, "请求service参数typeList为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlCloudFileDao.getListForPage({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.type]: typeList + }, fields, [ + [TlCloudFileDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取用户上传文件数量 + * @param {*} companyId + * @param {*} userId + * @param {*} dirId + * @returns + */ +const getCountByUserIdAndDirId = async function({companyId, userId, dirId}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return 0 + } + + let query = { + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + } + + if(dirId){ + query[TlCloudFileDef.dirId] = dirId + } + + const count = await TlCloudFileDao.getCount(query) + + if(count === null){ + return 0 + } + + return count +} + +/** + * 获取用户上传文件数量 + * @param {*} companyId + * @param {*} userId + * @returns + */ +const getCountByUserIdAndTypeList = async function({companyId, userId, typeList}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return 0 + } + + if(!typeList || typeList.length === 0){ + tlConsoleError(TableName, "请求service参数typeList为空") + return 0 + } + + const count = await TlCloudFileDao.getCount({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.type]: typeList + }) + + if(count === null){ + return 0 + } + + return count +} + +/** + * 获取用户上传文件数量 + * @param {*} companyId + * @param {*} userId + * @param {*} typeList + * @param {*} dirId + * @returns + */ +const getCountByUserIdAndTypeListAndDirId = async function({companyId, userId, typeList, dirId}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return 0 + } + + if(!typeList || typeList.length === 0){ + tlConsoleError(TableName, "请求service参数typeList为空") + return 0 + } + + let query = { + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.type]: typeList, + } + + if(dirId){ + query[TlCloudFileDef.dirId] = dirId + } + + const count = await TlCloudFileDao.getCount(query) + + if(count === null){ + return 0 + } + + return count +} + +/** + * 获取用户上传文件数量 + * @param {*} companyId + * @param {*} userId + * @param {*} flagBit + * @returns + */ +const getCountByUserIdAndFlagBit = async function({companyId, userId, flagBit}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return 0 + } + + if(flagBit === undefined || flagBit === null){ + tlConsoleError(TableName, "请求service参数flagBit为空") + return 0 + } + + const count = await TlCloudFileDao.getCount({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.flag]: literal(`${TlCloudFileDef.flag} & ${flagBit} = 1`) + }) + + if(count === null){ + return 0 + } + + return count +} + +/** + * 获取用户上传文件数量 + * @param {*} companyId + * @param {*} userId + * @param {*} flagBit + * @returns + */ +const getCountByUserIdAndFlagBitAndTypeList = async function({companyId, userId, flagBit, typeList}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return 0 + } + + if(flagBit === undefined || flagBit === null){ + tlConsoleError(TableName, "请求service参数flagBit为空") + return 0 + } + + if(!typeList || typeList.length === 0){ + tlConsoleError(TableName, "请求service参数typeList为空") + return 0 + } + + const count = await TlCloudFileDao.getCount({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.type]: typeList, + [TlCloudFileDef.flag]: literal(`${TlCloudFileDef.flag} & ${flagBit} = 1`) + }) + + if(count === null){ + return 0 + } + + return count +} + + +/** + * 获取用户删除文件数量 + * @param {*} companyId + * @param {*} userId + * @returns + */ +const getCountByUserIdDeleted = async function({companyId, userId}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return 0 + } + + const count = await TlCloudFileDao.getCountDeleted({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.userId]: userId, + [TlCloudFileDef.deletedAt]: { + [Op.ne]: null + } + }) + + if(count === null){ + return 0 + } + + return count +} + +/** + * 删除资源文件 - 物理删除 + * @param {*} companyId + * @param {*} id + * @returns + */ +const deleteInfoForce = async function({companyId, id}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return 0 + } + + const info = await TlCloudFileDao.deleteInfoForce({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return 0 + } + + return info +} + +/** + * 获取资源文件 + * @param {*} companyId + * @param {*} id + * @param {*} fields + * @returns + */ +const getInfoByIdDeleted = async function({companyId, id}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlCloudFileDao.getInfoDeleted({ + [TlCloudFileDef.companyId]: companyId, + [TlCloudFileDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + + +/** + * 获取资源文件列表 + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListForPage = async function({ }, fields, page, pageSize){ + // 参数校验 + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlCloudFileDao.getListForPage({ + [TlCloudFileDef.id]: { + [Op.gte]: 0 + } + }, fields, [ + [TlCloudFileDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件数量 + * @returns + */ +const getCount = async function({ }){ + const count = await TlCloudFileDao.getCount({ + [TlCloudFileDef.id]: { + [Op.gte]: 0 + } + }) + + if(count === null){ + return 0 + } + + return count +} + + +/** + * 获取资源文件列表 + * @param {*} keyword + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListByKeywordForPage = async function({ keyword }, fields, page, pageSize){ + // 参数校验 + if(!keyword){ + tlConsoleError(TableName, "请求service参数keyword为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlCloudFileDao.getListForPage({ + [TlCloudFileDef.originFileName]: { + [Op.like]: `%${keyword}%` + } + }, fields, [ + [TlCloudFileDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * 获取资源文件数量 + * @param {*} keyword + * @returns + */ +const getCountByKeyword = async function({ keyword }){ + // 参数校验 + if(!keyword){ + tlConsoleError(TableName, "请求service参数keyword为空") + return 0 + } + + const count = await TlCloudFileDao.getCount({ + [TlCloudFileDef.originFileName]: { + [Op.like]: `%${keyword}%` + } + }) + + if(count === null){ + return 0 + } + + return count +} + + +module.exports = { + addInfo, + deleteInfoById, + restoreInfoById, + deleteInfoForce, + updateInfoById, + getInfoById, + getInfoByIdNoCompanyId, + getInfoByIdDeleted, + getCountByUserIdAndFlagBit, + getCountByUserIdDeleted, + getCountByUserIdAndTypeList, + getCountByUserIdAndFlagBitAndTypeList, + getCountByUserIdAndDirId, + getCountByUserIdAndTypeListAndDirId, + + getListByIdList, + getListByUserId, + getListByUserIdAndTypeList, + getListByUserIdAndTypeListForPage, + getListByUserIdAndFlagBit, + getListByUserIdDeleted, + getListByUserIdAndFlagBitAndTypeList, + getListByUserIdAndDirId, + getListByUserIdAndTypeListAndDirId, + getListByIdListWithDeleted, + + getListForPage, + getCount, + getListByKeywordForPage, + getCountByKeyword +} \ No newline at end of file diff --git a/src/service/company/tl_company_service.js b/src/service/company/tl_company_service.js index e2e53b0..071a21a 100644 --- a/src/service/company/tl_company_service.js +++ b/src/service/company/tl_company_service.js @@ -2,8 +2,8 @@ const { fields } = require('../../tables/tl_company') const TlCompanyDao = require('../../dao/tl_company_dao') const TlCompanyDef = fields.Def const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); +const { Op } = require('sequelize') /** @@ -76,7 +76,7 @@ const deleteInfoById = async function ({ id }) { // 参数校验 if (!id) { tlConsoleError(TableName, "请求service参数id为空") - return {} + return 0 } const info = await TlCompanyDao.deleteInfo({ @@ -85,7 +85,7 @@ const deleteInfoById = async function ({ id }) { if (info === null) { tlConsoleError(TableName, "请求dao异常") - return {} + return 0 } return info @@ -120,24 +120,6 @@ const updateInfoById = async function ({ id }, data) { return info } -/** - * 获取企业列表 - * @param {*} fields - */ -const getList = async function ({ }, fields) { - const infoList = await TlCompanyDao.getList({ - - }, fields, [ - [TlCompanyDef.createdAt, "DESC"] - ]); - - if (infoList === null) { - return [] - } - - return infoList -} - /** * 获取企业列表 * @param {*} fields @@ -171,7 +153,9 @@ const getListForPage = async function ({ }, fields, page, pageSize) { } const infoList = await TlCompanyDao.getListForPage({ - + id: { + [Op.gt]: 0 + } }, fields, [ [TlCompanyDef.createdAt, "DESC"] ], page, pageSize); @@ -183,10 +167,107 @@ const getListForPage = async function ({ }, fields, page, pageSize) { return infoList } +/** + * 通过关键字获取企业列表 + * @param {*} keyword + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListByKeywordForPage = async function ({ keyword }, fields, page, pageSize) { + if(keyword === null || keyword === undefined){ + tlConsoleError(TableName, "请求service参数keyword为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlCompanyDao.getListForPage({ + [TlCompanyDef.name]: { + [Op.like]: `%${keyword}%` + } + }, fields, [ + [TlCompanyDef.createdAt, "DESC"] + ], page, pageSize); + + if (infoList === null) { + return [] + } + + return infoList +} + +/** + * 获取企业总数 + * @returns + */ +const getCount = async function ({ }) { + const count = await TlCompanyDao.getCount({ + [TlCompanyDef.id]: { + [Op.gt]: 0 + } + }); + + if (count === null) { + return 0 + } + + return count +} + +/** + * 通过关键字获取企业总数 + * @param {*} keyword + * @returns + **/ +const getCountByKeyword = async function ({ keyword }) { + if(!keyword){ + tlConsoleError(TableName, "请求service参数keyword为空") + return 0 + } + + const count = await TlCompanyDao.getCount({ + [TlCompanyDef.name]: { + [Op.like]: `%${keyword}%` + } + }); + + if (count === null) { + return 0 + } + + return count +} + /** * 获取企业信息 * @param {*} id * @param {*} fields + * @returns */ const getInfoById = async function ({ id }, fields) { // 参数校验 @@ -206,29 +287,6 @@ const getInfoById = async function ({ id }, fields) { return info } -/** - * 获取企业信息 - * @param {*} name - * @param {*} fields - */ -const getInfoByName = async function ({ name }, fields) { - // 参数校验 - if (!name) { - tlConsoleError(TableName, "请求service参数name为空") - return {} - } - - const info = await TlCompanyDao.getInfo({ - [TlCompanyDef.name]: name - }, fields) - - if (info === null) { - return {} - } - - return info -} - /** * 通过企业编码获取企业信息 * @param {*} code @@ -253,15 +311,47 @@ const getInfoByCode = async function ({ code }, fields) { return info } +/** + * 通过id列表获取企业列表 + * @param {*} idList + * @param {*} fields + * @returns + */ +const getListByIdList = async function ({ idList }, fields) { + // 参数校验 + if (!idList) { + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + const infoList = await TlCompanyDao.getList({ + [TlCompanyDef.id]: { + [Op.in]: idList + } + }, fields, [ + [TlCompanyDef.createdAt, "DESC"] + ]); + + if (infoList === null) { + return [] + } + + return infoList +} + module.exports = { addInfo, deleteInfoById, updateInfoById, getInfoById, - getInfoByName, getInfoByCode, - getList, - getListForPage + getListByIdList, + + getListForPage, + getListByKeywordForPage, + + getCount, + getCountByKeyword } \ No newline at end of file diff --git a/src/service/role/tl_role_service.js b/src/service/role/tl_role_service.js index 97d29ce..8b34916 100644 --- a/src/service/role/tl_role_service.js +++ b/src/service/role/tl_role_service.js @@ -3,8 +3,7 @@ const TlRoleDao = require('../../dao/tl_role_dao') const TlRoleDef = fields.Def const TlRoleType = fields.Type const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) -const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); +const { tlConsoleError } = require("../../../src/utils/utils"); /** @@ -53,7 +52,6 @@ const addInfo = async function({ if(![ TlRoleType.ADMIN_USER, TlRoleType.NORMAL_USER, - TlRoleType.TEST_USER, TlRoleType.CHANNEL_NORMAL_USER, TlRoleType.CHANNEL_ADMIN_USER, TlRoleType.CHANNEL_CREATOR_USER, @@ -100,12 +98,12 @@ const deleteInfoById = async function({companyId, id}){ // 参数校验 if(!id){ tlConsoleError(TableName, "请求service参数id为空") - return {} + return 0 } if(!companyId){ tlConsoleError(TableName, "请求service参数companyId为空") - return {} + return 0 } const info = await TlRoleDao.deleteInfo({ @@ -115,7 +113,7 @@ const deleteInfoById = async function({companyId, id}){ if(info === null){ tlConsoleError(TableName, "请求dao异常") - return {} + return 0 } return info diff --git a/src/service/user/tl_user_apply_service.js b/src/service/user/tl_user_apply_service.js index c801984..ce79325 100644 --- a/src/service/user/tl_user_apply_service.js +++ b/src/service/user/tl_user_apply_service.js @@ -4,8 +4,7 @@ const TlUserApplyDef = fields.Def const TlUserApplyStatus = fields.Status const TlUserApplyType = fields.Type const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) -const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); +const { tlConsoleError } = require("../../../src/utils/utils"); /** * addInfo 接口 @@ -116,97 +115,6 @@ const getInfoById = async function({companyId, id}, fields){ return info } -/** - * getInfoByUserId 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} fields - * @returns - */ -const getListByUserId = async function({companyId, userId}, fields){ - // 参数校验 - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - const list = await TlUserApplyDao.getList({ - [TlUserApplyDef.companyId]: companyId, - [TlUserApplyDef.userId]: userId - }, fields, [ - [TlUserApplyDef.createdAt, 'DESC'] - ]) - - if(list === null){ - return [] - } - - return list -} - -/** - * getInfoByUserId 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - * @returns - */ -const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){ - // 参数校验 - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserApplyDao.getListForPage({ - [TlUserApplyDef.companyId]: companyId, - [TlUserApplyDef.userId]: userId - }, fields, [ - [TlUserApplyDef.createdAt, 'DESC'] - ], page, pageSize) - - if(list === null){ - return [] - } - - return list -} - /** * getListByUserIdAndType 接口 * @param {*} companyId @@ -246,47 +154,6 @@ const getListByUserIdAndType = async function({companyId, userId, type}, fields) return list } -/** - * getListByUserIdAndType 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} type - * @param {*} fields - * @param {*} page - * @param {*} pageSize - * @returns - */ -const getListByUserIdAndTypeForPage = async function({companyId, userId, type}, fields, page, pageSize){ - // 参数校验 - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!type){ - tlConsoleError(TableName, "请求service参数type为空") - return [] - } - - const list = await TlUserApplyDao.getList({ - [TlUserApplyDef.companyId]: companyId, - [TlUserApplyDef.userId]: userId, - [TlUserApplyDef.type]: type - }, fields, [ - [TlUserApplyDef.createdAt, 'DESC'] - ], page, pageSize) - - if(list === null){ - return [] - } - - return list -} - /** * getListByUserIdAndTargetIdAndStatuAndType 接口 * @param {*} companyId @@ -340,89 +207,6 @@ const getListByUserIdAndTargetIdAndStatuAndType = async function({companyId, use return list } -/** - * getListByUserIdAndTargetIdAndStatuAndTypeForPage 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} type - * @param {*} status - * @param {*} targetId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - * @returns - */ -const getListByUserIdAndTargetIdAndStatuAndTypeForPage = async function({ - companyId, userId, targetId, status, type -}, fields, page, pageSize){ - // 参数校验 - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!type){ - tlConsoleError(TableName, "请求service参数type为空") - return [] - } - - if(!status){ - tlConsoleError(TableName, "请求service参数status为空") - return [] - } - - if(!targetId){ - tlConsoleError(TableName, "请求service参数targetId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserApplyDao.getListForPage({ - [TlUserApplyDef.companyId]: companyId, - [TlUserApplyDef.userId]: userId, - [TlUserApplyDef.targetId]: targetId, - [TlUserApplyDef.status]: status, - [TlUserApplyDef.type]: type - }, fields, [ - [TlUserApplyDef.createdAt, 'DESC'] - ], page, pageSize) - - if(list === null){ - return [] - } - - return list -} - - /** * getListByTargetIdAndType 接口 * @param {*} companyId @@ -457,67 +241,6 @@ const getListByTargetIdAndType = async function({companyId, targetId, type}, fie return list } -/** - * getListByTargetIdAndTypeForPage 接口 - * @param {*} companyId - * @param {*} targetId - * @param {*} type - * @param {*} fields - * @param {*} page - * @param {*} pageSize - * @returns - */ -const getListByTargetIdAndTypeForPage = async function({companyId, targetId, type}, fields, page, pageSize){ - // 参数校验 - if(!targetId){ - tlConsoleError(TableName, "请求service参数targetId为空") - return [] - } - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserApplyDao.getListForPage({ - [TlUserApplyDef.companyId]: companyId, - [TlUserApplyDef.targetId]: targetId, - [TlUserApplyDef.type]: type - }, fields, [ - [TlUserApplyDef.createdAt, 'DESC'] - ], page, pageSize) - - if(list === null){ - return [] - } - - return list -} - /** * updateInfoById 接口 * @param {*} companyId @@ -555,45 +278,17 @@ const updateInfoById = async function({companyId, id}, data){ } /** - * deleteInfoById 接口 + * getListByTargetIdListAndType 接口 * @param {*} companyId - * @param {*} id + * @param {*} targetIdList + * @param {*} type + * @param {*} fields + * @returns */ -const deleteInfoById = async function({companyId, id}){ +const getListByTargetIdListAndType = async function({companyId, targetIdList, type}, fields){ // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlUserApplyDao.deleteInfo({ - [TlUserApplyDef.companyId]: companyId, - [TlUserApplyDef.id]: id - }) - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * getListByIdList 接口 - * @param {*} companyId - * @param {*} idList - * @param {*} fields - */ -const getListByIdList = async function({companyId, idList}, fields){ - // 参数校验 - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") + if(!targetIdList){ + tlConsoleError(TableName, "请求service参数targetIdList为空") return [] } @@ -602,9 +297,15 @@ const getListByIdList = async function({companyId, idList}, fields){ return [] } + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + const list = await TlUserApplyDao.getList({ [TlUserApplyDef.companyId]: companyId, - [TlUserApplyDef.id]: idList + [TlUserApplyDef.targetId]: targetIdList, + [TlUserApplyDef.type]: type }, fields, [ [TlUserApplyDef.createdAt, 'DESC'] ]) @@ -612,66 +313,7 @@ const getListByIdList = async function({companyId, idList}, fields){ if(list === null){ return [] } - - return list -} -/** - * getListByIdListForPage 接口 - * @param {*} companyId - * @param {*} idList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){ - // 参数校验 - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserApplyDao.getListForPage({ - [TlUserApplyDef.companyId]: companyId, - [TlUserApplyDef.id]: idList - }, fields, [ - [TlUserApplyDef.createdAt, 'DESC'] - ], page, pageSize) - - if(list === null){ - return [] - } - return list } @@ -679,17 +321,10 @@ const getListByIdListForPage = async function({companyId, idList}, fields, page, module.exports = { addInfo, updateInfoById, - deleteInfoById, getInfoById, - getListByIdList, - getListByIdListForPage, - getListByUserId, - getListByUserIdForPage, getListByTargetIdAndType, - getListByTargetIdAndTypeForPage, getListByUserIdAndType, - getListByUserIdAndTypeForPage, getListByUserIdAndTargetIdAndStatuAndType, - getListByUserIdAndTargetIdAndStatuAndTypeForPage + getListByTargetIdListAndType } \ No newline at end of file diff --git a/src/service/user/tl_user_auth_service.js b/src/service/user/tl_user_auth_service.js index 0dae510..e9e8845 100644 --- a/src/service/user/tl_user_auth_service.js +++ b/src/service/user/tl_user_auth_service.js @@ -5,8 +5,7 @@ const TlUserAuthDao = require('../../dao/tl_user_auth_dao') const TlUserAuthDef = fields.Def const TlUserAuthType = fields.Type const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) -const { tlConsoleError, tlConsole } = require("../../utils/utils"); +const { tlConsoleError } = require("../../utils/utils"); /** * addInfo 接口 @@ -26,11 +25,7 @@ const addInfo = async function({ return {} } - if(![ - TlUserAuthType.EMAIL_REGISTER_CODE, - TlUserAuthType.PHONE_LOGIN_CODE, - TlUserAuthType.PHONE_REGISTER_CODE, - ].includes(type)){ + if(Object.values(TlUserAuthType).indexOf(type) === -1){ tlConsoleError(TableName, "请求service参数type不合法") return {} } @@ -54,180 +49,6 @@ const addInfo = async function({ return info } -/** - * getInfoById 接口 - * @param {*} id - * @param {*} fields - */ -const getInfoById = async function({id}, fields){ - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - const info = await TlUserAuthDao.getInfo({ - [TlUserAuthDef.id]: id - }, fields) - - if(info === null){ - return {} - } - - return info -} - -/** - * updateInfoById 接口 - * @param {*} id - * @param {*} data - */ -const updateInfoById = async function({id}, data){ - if(Object.keys(data).length === 0){ - tlConsoleError(TableName, "请求service参数为空") - return {} - } - - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - const info = await TlUserAuthDao.updateInfo({ - [TlUserAuthDef.id]: id - }, data) - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * deleteInfoById 接口 - * @param {*} id - */ -const deleteInfoById = async function({id}){ - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - const info = await TlUserAuthDao.deleteInfo({ - [TlUserAuthDef.id]: id - }) - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * getListByIdList 接口 - * @param {*} idList - * @param {*} fields - */ -const getListByIdList = async function({idList}, fields){ - // 参数校验 - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") - return [] - } - - const list = await TlUserAuthDao.getList({ - [TlUserAuthDef.id]: idList - }, fields, [ - [TlUserAuthDef.createdAt, 'DESC'] - ]) - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByIdListForPage 接口 - * @param {*} idList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByIdListForPage = async function({idList}, fields, page, pageSize){ - // 参数校验 - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserAuthDao.getListForPage({ - [TlUserAuthDef.id]: idList - }, fields, [ - [TlUserAuthDef.createdAt, 'DESC'] - ], page, pageSize) - - if(list === null){ - return [] - } - - return list -} - -/** - * getCountByKey 接口 - * @param {*} key - */ -const getCountByKey = async function({key}){ - // 参数校验 - if(!key){ - tlConsoleError(TableName, "请求service参数key为空") - return 0 - } - - const count = await TlUserAuthDao.getCount({ - [TlUserAuthDef.key]: key - }) - - if(count === null){ - return 0 - } - - return count -} - /** * getDayCountByType 接口 * @param {*} type @@ -254,35 +75,6 @@ const getDayCountByType = async function({type}){ return count } -/** - * getCountByTypeAndKey 接口 - * @param {*} type - * @param {*} key - */ -const getCountByTypeAndKey = async function({type, key}){ - // 参数校验 - if(!type){ - tlConsoleError(TableName, "请求service参数type为空") - return 0 - } - - if(!key){ - tlConsoleError(TableName, "请求service参数key为空") - return 0 - } - - const count = await TlUserAuthDao.getCount({ - [TlUserAuthDef.type]: type, - [TlUserAuthDef.key]: key - }) - - if(count === null){ - return 0 - } - - return count -} - /** * getDayCountByTypeAndKey 接口 * @param {*} type @@ -319,14 +111,6 @@ const getDayCountByTypeAndKey = async function({type, key}){ module.exports = { addInfo, - updateInfoById, - deleteInfoById, - getInfoById, - getCountByKey, - getCountByTypeAndKey, getDayCountByTypeAndKey, getDayCountByType, - - getListByIdList, - getListByIdListForPage } \ No newline at end of file diff --git a/src/service/user/tl_user_clear_service.js b/src/service/user/tl_user_clear_service.js new file mode 100644 index 0000000..1b0fd25 --- /dev/null +++ b/src/service/user/tl_user_clear_service.js @@ -0,0 +1,181 @@ +const { fields } = require('../../tables/tl_user_clear') +const TlUserClearDao = require('../../dao/tl_user_clear_dao') +const TlUserClearDef = fields.Def +const TlUserClearType = fields.Type +const TableName = fields.Name +const { tlConsoleError } = require("../../utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, channelId, userId, type, latestClearId +}){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlUserClearType.CHAT, + TlUserClearType.MEDIA, + TlUserClearType.FILE, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(latestClearId == null || latestClearId == undefined){ + tlConsoleError(TableName, "请求service参数latestClearId为空") + return {} + } + + const info = await TlUserClearDao.addInfo({ + [TlUserClearDef.companyId] : companyId, + [TlUserClearDef.channelId] : channelId, + [TlUserClearDef.userId] : userId, + [TlUserClearDef.type] : type, + [TlUserClearDef.latestClearId] : latestClearId, + }) + + if(info == null){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + return info +} + +/** + * getListByChannelUserId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} userId + * @param {*} fields + */ +const getListByChannelUserId = async function({companyId, channelId, userId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserClearDao.getList({ + [TlUserClearDef.companyId]: companyId, + [TlUserClearDef.channelId]: channelId, + [TlUserClearDef.userId]: userId, + }, fields, [ + [TlUserClearDef.createdAt, "DESC"] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * updateInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} data + */ +const updateInfoById = async function({companyId, id}, data){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数data为空") + return {} + } + + const info = await TlUserClearDao.updateInfo({ + [TlUserClearDef.companyId]: companyId, + [TlUserClearDef.id]: id, + }, data) + + if(info == null){ + return {} + } + + return info +} + +/** + * getListByUserIdAndChannelIdList 接口 + * @param {*} companyId + * @param {*} channelIdList + * @param {*} userId + * @param {*} fields + */ +const getListByUserIdAndChannelIdList = async function({companyId, channelIdList, userId}, fields){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserClearDao.getList({ + [TlUserClearDef.companyId]: companyId, + [TlUserClearDef.channelId]: channelIdList, + [TlUserClearDef.userId]: userId, + }, fields, [ + [TlUserClearDef.createdAt, "DESC"] + ]) + + if(list == null){ + return [] + } + + return list +} + +module.exports = { + addInfo, + updateInfoById, + + getListByChannelUserId, + getListByUserIdAndChannelIdList, +} \ No newline at end of file diff --git a/src/service/user/tl_user_config_service.js b/src/service/user/tl_user_config_service.js index 5107982..e1e4765 100644 --- a/src/service/user/tl_user_config_service.js +++ b/src/service/user/tl_user_config_service.js @@ -2,8 +2,7 @@ const { fields } = require('../../tables/tl_user_config') const TlUserConfigDao = require('../../dao/tl_user_config_dao') const TlUserConfigDef = fields.Def const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) -const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); +const { tlConsoleError } = require("../../../src/utils/utils"); /** @@ -93,51 +92,26 @@ const addDefaultInfo = async function({companyId, userId}){ companyId: companyId, userId: userId, normal: JSON.stringify({ - windowSizeDefault: false, - windowSizeFull: false, - fontSize: '小', sidebarChannelOpen: true, sidebarContactOpen: true, - sidebarCloudOpen: true, sidebarSettingOpen: true, - sidebarMeetingOpen: true, - sidebarP2pChannelOpen: true, - sidebarCutPasteOpen: true, - sidebarDatesOpen: true, - sidebarDocumentOpen: true, homePage: 'channel', }), account: JSON.stringify({ - allowLoginMore: false, - loginRemoteNotify: false, notAcceptFriendApply: false, autoPassFriendApply: false, + notAllowSearchAccount: true, fileSaveToServer: true, - fileSaveToAlyOss: false, - fileSaveToTxOss: true, }), message: JSON.stringify({ webNotify: false, messageDot: true, - friendMessageSound: false, - friendMessageVibrate: false, - friendMessagePreview: false, - friendCallSound: false, - friendCallVibrate: false, - groupMessageSound: false, - groupMessageVibrate: false, - groupMessagePreview: false, - groupCallSound: false, - groupCallVibrate: false, }), skin: JSON.stringify({ global: 'light', }), authority: JSON.stringify({ - acceptFriendAudioInvite: false, - acceptFriendVideoInvite: false, - acceptFriendScreenInvite: false, - acceptFriendInviteGroup: false + }), other: JSON.stringify({ // 我的文件视图模式 @@ -148,44 +122,12 @@ const addDefaultInfo = async function({companyId, userId}){ cloudRecycleViewMode: 'list', // 群聊文件视图模式 cloudGroupViewMode: 'list', - // 中继服务器 - turnServer: true, // 自定义wss customWss: '', }) }) } -/** - * 删除用户配置 - * @param {*} id - * @param {*} companyId - */ -const deleteInfoById = async function({companyId, id}){ - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlUserConfigDao.deleteInfo({ - [TlUserConfigDef.companyId]: companyId, - [TlUserConfigDef.id]: id - }) - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - /** * 更新用户配置 * @param {*} data @@ -222,113 +164,6 @@ const updateInfoById = async function({companyId, id}, data){ return info } -/** - * 获取用户配置列表 - * @param {*} companyId - * @param {*} fields - */ -const getList = async function({companyId}, fields){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - const infoList = await TlUserConfigDao.getList({ - [TlUserConfigDef.companyId]: companyId - }, fields, [ - [TlUserConfigDef.createdAt, 'DESC'] - ]) - - if(infoList === null){ - return [] - } - - return infoList -} - -/** - * 获取用户配置列表 - * @param {*} companyId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListForPage = async function({companyId}, fields, page, pageSize){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const infoList = await TlUserConfigDao.getListForPage({ - [TlUserConfigDef.companyId]: companyId - }, fields, [ - [TlUserConfigDef.createdAt, 'DESC'] - ], page, pageSize) - - if(infoList === null){ - return [] - } - - return infoList -} - -/** - * 获取用户配置信息 - * @param {*} companyId - * @param {*} id - * @param {*} fields - */ -const getInfoById = async function({companyId, id}, fields){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - const info = await TlUserConfigDao.getInfo({ - [TlUserConfigDef.companyId]: companyId, - [TlUserConfigDef.id]: id - }, fields) - - if(info === null){ - return {} - } - - return info -} - /** * 获取用户配置信息 * @param {*} companyId @@ -362,12 +197,7 @@ const getInfoByUserId = async function({companyId, userId}, fields){ module.exports = { addInfo, - deleteInfoById, updateInfoById, - getInfoById, getInfoByUserId, addDefaultInfo, - - getList, - getListForPage } \ No newline at end of file diff --git a/src/service/user/tl_user_finger_print_service.js b/src/service/user/tl_user_finger_print_service.js index 0c6f23a..ee96463 100644 --- a/src/service/user/tl_user_finger_print_service.js +++ b/src/service/user/tl_user_finger_print_service.js @@ -1,11 +1,8 @@ -const { Op } = require('sequelize') -const moment = require('moment') const { fields } = require('../../tables/tl_user_finger_print') const TlUserFingerPrintDao = require('../../dao/tl_user_finger_print_dao') const TlUserFingerPrintDef = fields.Def const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) -const { tlConsoleError, tlConsole } = require("../../utils/utils"); +const { tlConsoleError } = require("../../utils/utils"); /** * addInfo 接口 @@ -81,113 +78,6 @@ const addInfoList = async function({ return list } -/** - * getInfoById 接口 - * @param {*} id - * @param {*} fields - */ -const getInfoById = async function({id}, fields){ - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - const info = await TlUserFingerPrintDao.getInfo({ - [TlUserFingerPrintDef.id]: id - }, fields) - - if(info === null){ - return {} - } - - return info -} - -/** - * updateInfoById 接口 - * @param {*} id - * @param {*} data - */ -const updateInfoById = async function({id}, data){ - if(Object.keys(data).length === 0){ - tlConsoleError(TableName, "请求service参数为空") - return {} - } - - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - const info = await TlUserFingerPrintDao.updateInfo({ - [TlUserFingerPrintDef.id]: id - }, data) - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * deleteInfoById 接口 - * @param {*} id - */ -const deleteInfoById = async function({id}){ - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - const info = await TlUserFingerPrintDao.deleteInfo({ - [TlUserFingerPrintDef.id]: id - }) - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * getInfoByUserIdAndFingerPrint 接口 - * @param {*} userId - * @param {*} fingerPrint - * @param {*} fields - */ -const getInfoByUserIdAndFingerPrint = async function({fingerPrint, userId}, fields){ - // 参数校验 - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return {} - } - - if(!fingerPrint){ - tlConsoleError(TableName, "请求service参数fingerPrint为空") - return {} - } - - const info = await TlUserFingerPrintDao.getInfo({ - [TlUserFingerPrintDef.finger_print]: fingerPrint, - [TlUserFingerPrintDef.user_id]: userId - }, fields, [ - [TlUserFingerPrintDef.createdAt, 'DESC'] - ]) - - if(info === null){ - return {} - } - - return info -} - /** * getListByUserId 接口 * @param {*} userId @@ -265,117 +155,12 @@ const getListByUserIdForPage = async function({userId}, fields, page, pageSize){ return list } -/** - * getListByIdList 接口 - * @param {*} idList - * @param {*} fields - */ -const getListByIdList = async function({idList}, fields){ - // 参数校验 - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") - return [] - } - const list = await TlUserFingerPrintDao.getList({ - [TlUserFingerPrintDef.id]: idList - }, fields, [ - [TlUserFingerPrintDef.createdAt, 'DESC'] - ]) - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByIdListForPage 接口 - * @param {*} idList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByIdListForPage = async function({idList}, fields, page, pageSize){ - // 参数校验 - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserFingerPrintDao.getListForPage({ - [TlUserFingerPrintDef.id]: idList - }, fields, [ - [TlUserFingerPrintDef.createdAt, 'DESC'] - ], page, pageSize) - - if(list === null){ - return [] - } - - return list -} - - -/** - * getCountByFingerPrint 接口 - * @param {*} fingerPrint - */ -const getCountByFingerPrint = async function({fingerPrint}){ - // 参数校验 - if(!fingerPrint){ - tlConsoleError(TableName, "请求service参数fingerPrint为空") - return 0 - } - - const count = await TlUserFingerPrintDao.getCount({ - [TlUserFingerPrintDef.finger_print]: fingerPrint - }) - - if(count === null){ - return 0 - } - - return count -} module.exports = { addInfo, addInfoList, - updateInfoById, - deleteInfoById, - getInfoById, - getInfoByUserIdAndFingerPrint, - getCountByFingerPrint, - getListByIdList, - getListByIdListForPage, getListByUserId, getListByUserIdForPage } \ No newline at end of file diff --git a/src/service/user/tl_user_friend_service.js b/src/service/user/tl_user_friend_service.js index 616b1e6..4a57f80 100644 --- a/src/service/user/tl_user_friend_service.js +++ b/src/service/user/tl_user_friend_service.js @@ -4,8 +4,7 @@ const TlUserFriendDef = fields.Def const TlUserFriendType = fields.FriendType const TlUserFriendStatus = fields.Status const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) -const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); +const { tlConsoleError } = require("../../../src/utils/utils"); /** @@ -13,7 +12,8 @@ const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); * @param {*} data */ const addInfo = async function({ - companyId, userId, friendId, friendType, origin, remark, status, channelId, rename + companyId, userId, friendId, friendType, origin, + remark, status, channelId, rename, flag }){ // 参数校验 if(!companyId){ @@ -38,7 +38,6 @@ const addInfo = async function({ if(![ TlUserFriendType.NORMAL, - TlUserFriendType.SPECIAL ].includes(friendType)){ tlConsoleError(TableName, "请求service参数friendType不合法") return {} @@ -71,6 +70,11 @@ const addInfo = async function({ return {} } + if(flag == null || flag == undefined){ + tlConsoleError(TableName, "请求service参数flag为空") + return {} + } + const info = await TlUserFirendDao.addInfo({ [TlUserFriendDef.companyId]: companyId, [TlUserFriendDef.userId]: userId, @@ -79,7 +83,7 @@ const addInfo = async function({ [TlUserFriendDef.origin]: origin, [TlUserFriendDef.remark]: remark, [TlUserFriendDef.status]: status, - [TlUserFriendDef.flag]: 0, + [TlUserFriendDef.flag]: flag, [TlUserFriendDef.channelId]: channelId, [TlUserFriendDef.rename]: rename }); @@ -92,36 +96,6 @@ const addInfo = async function({ return info } -/** - * getInfoById 接口 - * @param {*} companyId - * @param {*} id - * @param {*} fields - */ -const getInfoById = async function({companyId, id}, fields){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - const info = await TlUserFirendDao.getInfo({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.id]: id - }, fields); - - if(info === null){ - return {} - } - - return info -} - /** * getListByUserId 接口 * @param {*} companyId @@ -154,131 +128,6 @@ const getListByUserId = async function({companyId, userId}, fields){ return list } -/** - * getListByUserIdForPage 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserFirendDao.getListForPage({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.userId]: userId - }, fields, [ - [TlUserFriendDef.createdAt, 'DESc'] - ], page, pageSize); - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByFriendId 接口 - * @param {*} companyId - * @param {*} friendId - * @param {*} fields - */ -const getListByFriendId = async function({companyId, friendId}, fields){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!friendId){ - tlConsoleError(TableName, "请求service参数friendId为空") - return [] - } - - const list = await TlUserFirendDao.getList({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.friendId]: friendId - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ]); - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByFriendId 接口 - * @param {*} companyId - * @param {*} friendId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByFriendIdForPage = async function({companyId, friendId}, fields, page, pageSize){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!friendId){ - tlConsoleError(TableName, "请求service参数friendId为空") - return [] - } - - const list = await TlUserFirendDao.getList({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.friendId]: friendId - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ], page, pageSize); - - if(list === null){ - return [] - } - - return list -} - /** * getInfoByUserIdAndFriendId 接口 * @param {*} companyId @@ -392,177 +241,6 @@ const getListByUserIdAndFriendIdList = async function({companyId, userId, friend return list } -/** - * getListByUserIdAndFriendIdListForPage 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} friendIdList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByUserIdAndFriendIdListForPage = async function({companyId, userId, friendIdList}, fields, page, pageSize){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!friendIdList){ - tlConsoleError(TableName, "请求service参数friendIdList为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserFirendDao.getListForPage({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.userId]: userId, - [TlUserFriendDef.friendId]: friendIdList - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ], page, pageSize); - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByUserIdAndStatus 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} status - * @param {*} fields - */ -const getListByUserIdAndStatus = async function({companyId, userId, status}, fields){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!status){ - tlConsoleError(TableName, "请求service参数status为空") - return [] - } - - const list = await TlUserFirendDao.getList({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.userId]: userId, - [TlUserFriendDef.status]: status - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ]); - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByUserIdAndStatusForPage 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} status - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByUserIdAndStatusForPage = async function({companyId, userId, status}, fields, page, pageSize){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!status){ - tlConsoleError(TableName, "请求service参数status为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserFirendDao.getListForPage({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.userId]: userId, - [TlUserFriendDef.status]: status - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ], page, pageSize); - - if(list === null){ - return [] - } - - return list -} - /** * getListByChannelId 接口 * @param {*} companyId @@ -595,273 +273,6 @@ const getListByChannelId = async function({companyId, channelId}, fields){ return list } -/** - * getListByChannelIdForPage 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} fields - */ -const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!channelId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserFirendDao.getListForPage({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.channelId]: channelId, - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ], page, pageSize); - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByFriendIdAndStatus 接口 - * @param {*} companyId - * @param {*} status - * @param {*} friendId - * @param {*} fields - */ -const getListByFriendIdAndStatus = async function({companyId, friendId, status}, fields){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!friendId){ - tlConsoleError(TableName, "请求service参数friendId为空") - return [] - } - - if(!status){ - tlConsoleError(TableName, "请求service参数status为空") - return [] - } - - const list = await TlUserFirendDao.getList({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.friendId]: friendId, - [TlUserFriendDef.status]: status - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ]); - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByFriendIdAndStatusForpage 接口 - * @param {*} companyId - * @param {*} status - * @param {*} friendId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByFriendIdAndStatusForpage = async function({companyId, friendId, status}, fields, page, pageSize){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!friendId){ - tlConsoleError(TableName, "请求service参数friendId为空") - return [] - } - - if(!status){ - tlConsoleError(TableName, "请求service参数status为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserFirendDao.getListForPage({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.friendId]: friendId, - [TlUserFriendDef.status]: status - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ], page, pageSize); - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByUserIdAndFriendType 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} friendType - * @param {*} fields - */ -const getListByUserIdAndFriendType = async function({companyId, userId, friendType}, fields){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!friendType){ - tlConsoleError(TableName, "请求service参数friendType为空") - return [] - } - - const list = await TlUserFirendDao.getList({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.userId]: userId, - [TlUserFriendDef.friendType]: friendType - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ]); - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByUserIdAndFriendTypeForPage 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} friendType - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByUserIdAndFriendTypeForPage = async function({companyId, userId, friendType}, fields, page, pageSize){ - // 参数校验 - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!friendType){ - tlConsoleError(TableName, "请求service参数friendType为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserFirendDao.getListForPage({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.userId]: userId, - [TlUserFriendDef.friendType]: friendType - }, fields, [ - [TlUserFriendDef.createdAt, 'DESC'] - ], page, pageSize); - - if(list === null){ - return [] - } - - return list -} - /** * deleteInfoById 接口 * @param {*} companyId @@ -871,12 +282,12 @@ const deleteInfoById = async function({companyId, id}){ // 参数校验 if(!id){ tlConsoleError(TableName, "请求service参数id为空") - return {} + return 0 } if(!companyId){ tlConsoleError(TableName, "请求service参数companyId为空") - return {} + return 0 } const info = await TlUserFirendDao.deleteInfo({ @@ -886,74 +297,7 @@ const deleteInfoById = async function({companyId, id}){ if(info === null){ tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * deleteInfoByUserId 接口 - * @param {*} companyId - * @param {*} userId - */ -const deleteInfoByUserId = async function({companyId, userId}){ - // 参数校验 - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlUserFirendDao.deleteInfo({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.userId]: userId - }); - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * deleteInfoByUserIdAndFriendId 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} friendId - */ -const deleteInfoByUserIdAndFriendId = async function({companyId, userId, friendId}){ - // 参数校验 - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return {} - } - - if(!friendId){ - tlConsoleError(TableName, "请求service参数friendId为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlUserFirendDao.deleteInfo({ - [TlUserFriendDef.companyId]: companyId, - [TlUserFriendDef.userId]: userId, - [TlUserFriendDef.friendId]: friendId - }); - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} + return 0 } return info @@ -993,26 +337,12 @@ const updateInfoById = async function({companyId, id}, data){ module.exports = { addInfo, - getInfoById, getInfoByUserIdAndFriendId, deleteInfoById, - deleteInfoByUserId, - deleteInfoByUserIdAndFriendId, updateInfoById, getInfoByChannelIdAndUserId, getListByUserIdAndFriendIdList, - getListByUserIdAndFriendIdListForPage, - getListByUserIdAndFriendType, - getListByUserIdAndFriendTypeForPage, getListByUserId, - getListByUserIdForPage, - getListByFriendId, - getListByFriendIdForPage, - getListByUserIdAndStatus, - getListByUserIdAndStatusForPage, - getListByFriendIdAndStatus, - getListByFriendIdAndStatusForpage, getListByChannelId, - getListByChannelIdForPage } \ No newline at end of file diff --git a/src/service/user/tl_user_read_service.js b/src/service/user/tl_user_read_service.js index f527418..c7c754b 100644 --- a/src/service/user/tl_user_read_service.js +++ b/src/service/user/tl_user_read_service.js @@ -3,8 +3,7 @@ const TlUserReadDao = require('../../dao/tl_user_read_dao') const TlUserReadDef = fields.Def const TlUserReadType = fields.Type const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) -const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); +const { tlConsoleError } = require("../../../src/utils/utils"); /** * addInfo 接口 @@ -35,6 +34,9 @@ const addInfo = async function({ TlUserReadType.FRIEND_APPLY, TlUserReadType.FRIEND_APPLY_PASS, TlUserReadType.FRIEND_APPLY_REJECT, + TlUserReadType.GROUP_APPLY, + TlUserReadType.GROUP_APPLY_PASS, + TlUserReadType.GROUP_APPLY_REJECT, ].includes(type)){ tlConsoleError(TableName, "请求service参数type不合法") return {} @@ -60,6 +62,9 @@ const addInfo = async function({ TlUserReadType.FRIEND_APPLY, TlUserReadType.FRIEND_APPLY_PASS, TlUserReadType.FRIEND_APPLY_REJECT, + TlUserReadType.GROUP_APPLY, + TlUserReadType.GROUP_APPLY_PASS, + TlUserReadType.GROUP_APPLY_REJECT, ].includes[type]){ if(!recordId){ tlConsoleError(TableName, "请求service参数recordId为空") @@ -96,124 +101,6 @@ const addInfo = async function({ return info } -/** - * getInfoById 接口 - * @param {*} companyId - * @param {*} id - * @param {*} fields - */ -const getInfoById = async function({companyId, id}, fields){ - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - const info = await TlUserReadDao.getInfo({ - [TlUserReadDef.companyId] : companyId, - [TlUserReadDef.id] : id, - }, fields) - - if(info == null){ - return {} - } - - return info -} - -/** - * getListByUserId 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} fields - */ -const getListByUserId = async function({companyId, userId}, fields){ - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - const list = await TlUserReadDao.getList({ - [TlUserReadDef.companyId]: companyId, - [TlUserReadDef.userId]: userId, - }, fields, [ - [TlUserReadDef.createdAt, "DESC"] - ]) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByUserIdForPage 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){ - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserReadDao.getListForPage({ - [TlUserReadDef.companyId]: companyId, - [TlUserReadDef.userId]: userId, - }, fields, [ - [TlUserReadDef.createdAt, "DESC"] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - /** * getListByUserIdTypeList 接口 * @param {*} companyId @@ -252,160 +139,6 @@ const getListByUserIdTypeList = async function({companyId, userId, typeList}, fi return list } -/** - * getListByUserIdTypeListForPage 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} typeList - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByUserIdTypeListForPage = async function({companyId, userId, typeList}, fields, page, pageSize){ - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!typeList){ - tlConsoleError(TableName, "请求service参数typeList为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserReadDao.getListForPage({ - [TlUserReadDef.companyId]: companyId, - [TlUserReadDef.userId]: userId, - [TlUserReadDef.type]: typeList, - }, fields, [ - [TlUserReadDef.createdAt, "DESC"] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByChannelId 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} fields - */ -const getListByChannelId = async function({companyId, channelId}, fields){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - const list = await TlUserReadDao.getList({ - [TlUserReadDef.companyId]: companyId, - [TlUserReadDef.channelId]: channelId, - }, fields, [ - [TlUserReadDef.createdAt, "DESC"] - ]) - - if(list == null){ - return [] - } - - return list -} - -/** - * getListByChannelIdForPage 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserReadDao.getListForPage({ - [TlUserReadDef.companyId]: companyId, - [TlUserReadDef.channelId]: channelId, - }, fields, [ - [TlUserReadDef.createdAt, "DESC"] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - /** * getListByChannelUserId 接口 * @param {*} companyId @@ -444,71 +177,6 @@ const getListByChannelUserId = async function({companyId, channelId, userId}, fi return list } -/** - * getListByChannelUserIdForPage 接口 - * @param {*} companyId - * @param {*} channelId - * @param {*} userId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByChannelUserIdForPage = async function({companyId, channelId, userId}, fields, page, pageSize){ - if(!channelId){ - tlConsoleError(TableName, "请求service参数channelId为空") - return [] - } - - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserReadDao.getListForPage({ - [TlUserReadDef.companyId]: companyId, - [TlUserReadDef.channelId]: channelId, - [TlUserReadDef.userId]: userId, - }, fields, [ - [TlUserReadDef.createdAt, "DESC"] - ], page, pageSize) - - if(list == null){ - return [] - } - - return list -} - /** * updateInfoById 接口 * @param {*} companyId @@ -543,68 +211,6 @@ const updateInfoById = async function({companyId, id}, data){ return info } -/** - * updateInfoByUserId 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} data - */ -const updateInfoByUserId = async function({companyId, userId}, data){ - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - if(Object.keys(data).length === 0){ - tlConsoleError(TableName, "请求service参数data为空") - return {} - } - - const info = await TlUserReadDao.updateInfo({ - [TlUserReadDef.companyId]: companyId, - [TlUserReadDef.userId]: userId, - }, data) - - if(info == null){ - return {} - } - - return info -} - -/** - * deleteInfoById 接口 - * @param {*} companyId - * @param {*} id - */ -const deleteInfoById = async function({companyId, id}){ - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlUserReadDao.deleteInfo({ - [TlUserReadDef.companyId]: companyId, - [TlUserReadDef.id]: id, - }) - - if(info == null){ - return {} - } - - return info -} - /** * getListByUserIdTypeListAndChannelIdList 接口 * @param {*} companyId @@ -659,19 +265,9 @@ const getListByUserIdTypeListAndChannelIdList = async function({companyId, userI module.exports = { addInfo, - getInfoById, updateInfoById, - updateInfoByUserId, - deleteInfoById, - getListByUserId, - getListByUserIdForPage, - getListByChannelId, - getListByChannelIdForPage, getListByChannelUserId, - getListByChannelUserIdForPage, getListByUserIdTypeList, - getListByUserIdTypeListForPage, - getListByUserIdTypeListAndChannelIdList, } \ No newline at end of file diff --git a/src/service/user/tl_user_service.js b/src/service/user/tl_user_service.js index d5fb48e..9e79709 100644 --- a/src/service/user/tl_user_service.js +++ b/src/service/user/tl_user_service.js @@ -2,9 +2,9 @@ const { fields } = require('../../tables/tl_user') const TlUserDao = require('../../dao/tl_user_dao') const TlUserDef = fields.Def const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) -const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); -const { get } = require('request') +const { tlConsoleError } = require("../../../src/utils/utils"); +const { inner: TlRoleInner } = require('../../tables/tl_role') +const { Op } = require('sequelize') /** * addInfo 接口 @@ -12,7 +12,7 @@ const { get } = require('request') */ const addInfo = async function({ companyId, name, password, roleId, salt, mobile, email, avatarUrl, - wchatName, wchatOpenId, wchatUnionId, wchatAvatarUrl, flag, + wchatName, wchatOpenId, wchatUnionId, wchatAvatarUrl, flag }){ // 参数校验 if(!companyId){ @@ -335,12 +335,12 @@ const deleteInfoById = async function({companyId, id}){ // 参数校验 if(!id){ tlConsoleError(TableName, "请求service参数id为空") - return {} + return 0 } if(!companyId){ tlConsoleError(TableName, "请求service参数companyId为空") - return {} + return 0 } const info = await TlUserDao.deleteInfo({ @@ -350,7 +350,7 @@ const deleteInfoById = async function({companyId, id}){ if(info === null){ tlConsoleError(TableName, "请求dao异常") - return {} + return 0 } return info @@ -389,22 +389,41 @@ const getListByIdList = async function({companyId, idList}, fields){ } /** - * getListByIdListForPage 接口 - * @param {*} companyId + * getListByIdListNoCompanyId 接口 * @param {*} idList * @param {*} fields - * @param {*} page - * @param {*} pageSize */ -const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){ +const getListByIdListNoCompanyId = async function({ idList}, fields){ // 参数校验 if(!idList){ tlConsoleError(TableName, "请求service参数idList为空") return [] } - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") + const list = await TlUserDao.getList({ + [TlUserDef.id]: idList + }, fields, [ + [TlUserDef.createdAt, "DESC"] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByKeywordForPage 接口 + * @param {*} keyword + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByKeywordForPage = async function({ keyword }, fields, page, pageSize){ + // 参数校验 + if(!keyword){ + tlConsoleError(TableName, "请求service参数keyword为空") return [] } @@ -434,8 +453,9 @@ const getListByIdListForPage = async function({companyId, idList}, fields, page, } const list = await TlUserDao.getListForPage({ - [TlUserDef.companyId]: companyId, - [TlUserDef.id]: idList + [TlUserDef.name]: { + [Op.like]: '%' + keyword + '%' + } }, fields, [ [TlUserDef.createdAt, "DESC"] ], page, pageSize) @@ -443,10 +463,163 @@ const getListByIdListForPage = async function({companyId, idList}, fields, page, if(list === null){ return [] } - + return list } +/** + * getListByKeyword 接口 + * @param {*} fields + * @param {*} keyword + */ +const getListByKeyword = async function({ keyword }, fields){ + // 参数校验 + if(!keyword){ + tlConsoleError(TableName, "请求service参数keyword为空") + return [] + } + + const list = await TlUserDao.getList({ + [TlUserDef.name]: { + [Op.like]: '%' + keyword + '%' + } + }, fields, [ + [TlUserDef.createdAt, "DESC"] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListForPage 接口 + * @param {*} companyId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListForPage = async function({ companyId }, fields, page, pageSize){ + // 参数校验 + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + let query = { + [TlUserDef.id]: { + [Op.gt]: 0 + } + } + + if(companyId !== undefined && companyId !== null){ + query[TlUserDef.companyId] = companyId + } + + const list = await TlUserDao.getListForPage(query, fields, [ + [TlUserDef.createdAt, "DESC"] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * getCount 接口 + * @param {*} fields + * @returns + */ +const getCount = async function({}){ + const count = await TlUserDao.getCount({ + [TlUserDef.id]: { + [Op.gt]: 0 + } + }) + + if(count === null){ + return 0 + } + + return count +} + +/** + * getCountByKeyword 接口 + * @param {*} keyword + * @returns + */ +const getCountByKeyword = async function({keyword}){ + // 参数校验 + if(!keyword){ + tlConsoleError(TableName, "请求service参数keyword为空") + return 0 + } + + const count = await TlUserDao.getCount({ + [TlUserDef.name]: { + [Op.like]: '%' + keyword + '%' + } + }) + + if(count === null){ + return 0 + } + + return count +} + +/** + * getAdminUser 接口 + * @param {*} email + * @returns + */ +const getAdminUser = async function({ + email +}){ + // 参数校验 + if(!email){ + tlConsoleError(TableName, "请求service参数email为空") + return {} + } + + const info = await TlUserDao.getInfo({ + [TlUserDef.email]: email, + [TlUserDef.roleId]: TlRoleInner.user.admin.id + }) + + if(info === null){ + return {} + } + + return info +} + module.exports = { @@ -460,7 +633,15 @@ module.exports = { getInfoByNameForLogin, getInfoByMobileForLogin, getInfoByEmailForLogin, + getAdminUser, - getListByIdList, - getListByIdListForPage + getListByIdList, + getListByIdListNoCompanyId, + + getListByKeyword, + getListByKeywordForPage, + getListForPage, + + getCount, + getCountByKeyword } \ No newline at end of file diff --git a/src/service/user/tl_user_session_service.js b/src/service/user/tl_user_session_service.js index 3e05714..1825e05 100644 --- a/src/service/user/tl_user_session_service.js +++ b/src/service/user/tl_user_session_service.js @@ -1,7 +1,5 @@ const { - tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, - tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, - tlConsole, tlConsoleError + tlConsoleError } = require('../../utils/utils') const uuid = require('uuid') const cache = require('../../utils/cache/cache') @@ -40,10 +38,10 @@ const getUserInfoByToken = async function({token}){ * @param {*} token * @param {*} info * @param {*} isLogin - * @param {*} isWebsite + * @param {*} isSystem */ const setUserInfoByToken = async function({ - token, info, isLogin = true, isWebsite = false + token, info, isLogin = true, isSystem = false }){ if(!token){ return {} @@ -68,22 +66,22 @@ const setUserInfoByToken = async function({ await cache.setLoginStatus({ userId: loginUserId, status: 1, - isWebsite + isSystem }) // 设置token登录态 return await cache.setLoginInfo({ - token, loginInfo: jsonInfo, isWebsite + token, loginInfo: jsonInfo, isSystem }) }else{ // 设置userId在线状态 await cache.setLoginStatus({ userId: loginUserId, status: 0, - isWebsite + isSystem }) // 设置token登录态 return await cache.setLoginInfo({ - token, loginInfo: '', isWebsite + token, loginInfo: '', isSystem }) } } diff --git a/src/service/user/tl_user_tag_service.js b/src/service/user/tl_user_tag_service.js index 2d78d40..9aa35e6 100644 --- a/src/service/user/tl_user_tag_service.js +++ b/src/service/user/tl_user_tag_service.js @@ -1,12 +1,9 @@ -const { Op } = require('sequelize') -const moment = require('moment') const { fields } = require('../../tables/tl_user_tag') const TlUserTagDao = require('../../dao/tl_user_tag_dao') const TlUserTagDef = fields.Def const TlUserTagType = fields.Type const TableName = fields.Name -const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) -const { tlConsoleError, tlConsole } = require("../../utils/utils"); +const { tlConsoleError } = require("../../utils/utils"); /** * addInfo 接口 @@ -28,7 +25,6 @@ const addInfo = async function({ if(![ TlUserTagType.CHANNEL, - TlUserTagType.CLOUD, TlUserTagType.FRIEND, ].includes(type)){ tlConsoleError(TableName, "请求service参数type不合法") @@ -60,190 +56,6 @@ const addInfo = async function({ return info } -/** - * getInfoById 接口 - * @param {*} id - * @param {*} fields - * @param {*} companyId - */ -const getInfoById = async function({id, companyId}, fields){ - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlUserTagDao.getInfo({ - [TlUserTagDef.id]: id - }, fields) - - if(info === null){ - return {} - } - - return info -} - -/** - * updateInfoById 接口 - * @param {*} id - * @param {*} data - * @param {*} companyId - */ -const updateInfoById = async function({id, companyId}, data){ - if(Object.keys(data).length === 0){ - tlConsoleError(TableName, "请求service参数为空") - return {} - } - - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlUserTagDao.updateInfo({ - [TlUserTagDef.id]: id - }, data) - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * deleteInfoById 接口 - * @param {*} id - * @param {*} companyId - */ -const deleteInfoById = async function({id, companyId}){ - // 参数校验 - if(!id){ - tlConsoleError(TableName, "请求service参数id为空") - return {} - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return {} - } - - const info = await TlUserTagDao.deleteInfo({ - [TlUserTagDef.id]: id, - [TlUserTagDef.companyId]: companyId - }) - - if(info === null){ - tlConsoleError(TableName, "请求dao异常") - return {} - } - - return info -} - -/** - * getListByIdList 接口 - * @param {*} idList - * @param {*} companyId - * @param {*} fields - */ -const getListByIdList = async function({idList, companyId}, fields){ - // 参数校验 - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - const list = await TlUserTagDao.getList({ - [TlUserTagDef.id]: idList, - [TlUserTagDef.companyId]: companyId - }, fields, [ - [TlUserTagDef.createdAt, 'DESC'] - ]) - - if(list === null){ - return [] - } - - return list -} - -/** - * getListByIdListForPage 接口 - * @param {*} idList - * @param {*} companyId - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByIdListForPage = async function({idList, companyId}, fields, page, pageSize){ - // 参数校验 - if(!idList){ - tlConsoleError(TableName, "请求service参数idList为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserTagDao.getListForPage({ - [TlUserTagDef.id]: idList - }, fields, [ - [TlUserTagDef.createdAt, 'DESC'] - ], page, pageSize) - - if(list === null){ - return [] - } - - return list -} - /** * getListByUserIdAndType 接口 * @param {*} companyId @@ -283,83 +95,11 @@ const getListByUserIdAndType = async function({ companyId, userId, type }, field return list } -/** - * getListByUserIdAndTypeForPage 接口 - * @param {*} companyId - * @param {*} userId - * @param {*} type - * @param {*} fields - * @param {*} page - * @param {*} pageSize - */ -const getListByUserIdAndTypeForPage = async function({ companyId, userId, type }, fields, page, pageSize){ - // 参数校验 - if(!userId){ - tlConsoleError(TableName, "请求service参数userId为空") - return [] - } - - if(!companyId){ - tlConsoleError(TableName, "请求service参数companyId为空") - return [] - } - - if(!type){ - tlConsoleError(TableName, "请求service参数type为空") - return [] - } - - if(!page){ - tlConsoleError(TableName, "请求service参数page为空") - return [] - } - - if(!pageSize){ - tlConsoleError(TableName, "请求service参数pageSize为空") - return [] - } - - if(page <= 0){ - tlConsoleError(TableName, "请求service参数page不合法") - return [] - } - - if(pageSize <= 0){ - tlConsoleError(TableName, "请求service参数pageSize不合法") - return [] - } - - if(pageSize > 1000){ - tlConsoleError(TableName, "请求service参数pageSize过大") - return [] - } - - const list = await TlUserTagDao.getListForPage({ - [TlUserTagDef.companyId]: companyId, - [TlUserTagDef.userId]: userId, - [TlUserTagDef.type]: type - }, fields, [ - [TlUserTagDef.createdAt, 'DESC'] - ], page, pageSize) - - if(list === null){ - return [] - } - - return list -} module.exports = { addInfo, - updateInfoById, - deleteInfoById, - getInfoById, - - getListByIdList, - getListByIdListForPage, getListByUserIdAndType, - getListByUserIdAndTypeForPage } \ No newline at end of file diff --git a/src/socket/connect.js b/src/socket/connect.js index d22efbb..b573359 100644 --- a/src/socket/connect.js +++ b/src/socket/connect.js @@ -1,12 +1,19 @@ +const rtcOffer = require("./handler/rtc/offer"); +const rtcAnswer = require("./handler/rtc/answer"); +const rtcCandidate = require("./handler/rtc/candidate"); const socketCount = require("./handler/count"); const socketExit = require("./handler/exit"); const socketHeartbeat = require("./handler/heartbeat"); const socketDisConnect = require("./handler/disconnect"); const socketChannelChat = require("./handler/channel_chat"); -const socketChannelChatRollback = require("./handler/channel_chat_rollback"); +const socketChannelVideo = require("./handler/channel_video") const socketContactApply = require('./handler/contact_apply') const socketContactApplyPass = require('./handler/contact_apply_pass') const socketContactApplyReject = require('./handler/contact_apply_reject') +const socketGroupApply = require('./handler/group_apply') +const socketGroupApplyPass = require('./handler/group_apply_pass') +const socketGroupApplyReject = require('./handler/group_apply_reject') +const socketChannelFile = require('./handler/channel_file') const socketAuth = require("./handler/auth"); const {socketServerEvent} = require("./event"); @@ -15,6 +22,21 @@ module.exports = (io, socket) => { // 登陆态校验 socketAuth.auth(io, socket) + // webrtc offer 消息 + socket.on(socketServerEvent.offer, (data) => { + rtcOffer.offer(io, socket, data) + }); + + // webrtc answer 消息 + socket.on(socketServerEvent.answer, (data) => { + rtcAnswer.answer(io, socket, data) + }); + + // webrtc candidate 消息 + socket.on(socketServerEvent.candidate, (data) => { + rtcCandidate.candidate(io, socket, data) + }); + // 断开连接 socket.on(socketServerEvent.disconnect, (data)=>{ socketDisConnect.disconnect(io, socket, data) @@ -40,9 +62,9 @@ module.exports = (io, socket) => { socketChannelChat.channelChat(io, socket, data) }) - // 广播聊天消息撤回 - socket.on(socketServerEvent.channelChatRollback, (data) => { - socketChannelChatRollback.channelChatRollback(io, socket, data) + // 广播视频消息 + socket.on(socketServerEvent.channelVideoCall, (data) => { + socketChannelVideo.channelVideoCall(io, socket, data) }) // 广播好友申请消息 @@ -59,6 +81,31 @@ module.exports = (io, socket) => { socket.on(socketServerEvent.contactApplyReject, (data) => { socketContactApplyReject.contactApplyReject(io, socket, data) }) + + // 广播群组申请消息 + socket.on(socketServerEvent.groupApply, (data) => { + socketGroupApply.groupApply(io, socket, data) + }) + + // 通过群组申请 + socket.on(socketServerEvent.groupApplyPass, (data) => { + socketGroupApplyPass.groupApplyPass(io, socket, data) + }) + + // 拒绝群组申请 + socket.on(socketServerEvent.groupApplyReject, (data) => { + socketGroupApplyReject.groupApplyReject(io, socket, data) + }) + + // p2p频道 + socket.on(socketServerEvent.p2pChannel, (data) => { + socketP2pChannel.p2pChannel(io, socket, data) + }) + + // 频道文件 + socket.on(socketServerEvent.channelFile, (data) => { + socketChannelFile.channelFile(io, socket, data) + }) // 触发一次count socketCount.count(io, socket, {}) diff --git a/src/socket/event/client_event.js b/src/socket/event/client_event.js index e3a26f4..6117e1c 100644 --- a/src/socket/event/client_event.js +++ b/src/socket/event/client_event.js @@ -8,6 +8,12 @@ module.exports = { created : "created", // 加入房间 joined : "joined", + // webrtc offer + offer : "offer", + // webrtc answer + answer : "answer", + // webrtc candidate + candidate : "candidate", // 退出 exit : "exit", // 人数 @@ -16,12 +22,20 @@ module.exports = { heartbeat : "heartbeat", // 广播聊天消息 channelChat: "channelChat", - // 广播聊天消息撤回 - channelChatRollback: "channelChatRollback", // 广播好友申请 contactApply: "contactApply", // 通过好友申请 contactApplyPass: "contactApplyPass", // 拒绝好友申请 contactApplyReject: "contactApplyReject", + // 广播群组申请 + groupApply: "groupApply", + // 通过群组申请 + groupApplyPass: "groupApplyPass", + // 拒绝群组申请 + groupApplyReject: "groupApplyReject", + // 广播视频消息 + channelVideoCall: "channelVideoCall", + // 文件 + channelFile: "channelFile", } diff --git a/src/socket/event/server_event.js b/src/socket/event/server_event.js index 19410d1..5fcd745 100644 --- a/src/socket/event/server_event.js +++ b/src/socket/event/server_event.js @@ -9,6 +9,12 @@ module.exports = { connection : "connection", // socket断开连接 disconnect : "disconnect", + // webrtc offer + offer : "offer", + // webrtc answer + answer : "answer", + // webrtc candidate + candidate : "candidate", // 在线人数 count : "count", // 退出 @@ -19,12 +25,20 @@ module.exports = { heartbeat : "heartbeat", // 广播聊天消息 channelChat: "channelChat", - // 广播聊天消息撤回 - channelChatRollback: "channelChatRollback", // 广播好友申请 contactApply: "contactApply", // 通过好友申请 contactApplyPass: "contactApplyPass", // 拒绝好友申请 contactApplyReject: "contactApplyReject", + // 广播群组申请 + groupApply: "groupApply", + // 通过群组申请 + groupApplyPass: "groupApplyPass", + // 拒绝群组申请 + groupApplyReject: "groupApplyReject", + // 广播视频消息 + channelVideoCall: "channelVideoCall", + // 文件 + channelFile: "channelFile", } \ No newline at end of file diff --git a/src/socket/handler/auth.js b/src/socket/handler/auth.js index b2ac2ea..3c84b12 100644 --- a/src/socket/handler/auth.js +++ b/src/socket/handler/auth.js @@ -1,4 +1,3 @@ -const {socketClientEvent} = require("../event"); const userSessionService = require('../../service/user/tl_user_session_service') const cache = require('../../utils/cache/cache') diff --git a/src/socket/handler/channel_chat.js b/src/socket/handler/channel_chat.js index dde59ef..cd5f76d 100644 --- a/src/socket/handler/channel_chat.js +++ b/src/socket/handler/channel_chat.js @@ -23,6 +23,8 @@ async function channelChat(io, socket, data){ return } + channel = parseInt(channel) + const { loginUserId, loginUserCompanyId } = await userSessionService.getUserInfoByToken({token}) diff --git a/src/socket/handler/channel_chat_rollback.js b/src/socket/handler/channel_file.js similarity index 72% rename from src/socket/handler/channel_chat_rollback.js rename to src/socket/handler/channel_file.js index 3dfa883..9e933a7 100644 --- a/src/socket/handler/channel_chat_rollback.js +++ b/src/socket/handler/channel_file.js @@ -1,21 +1,21 @@ const {socketClientEvent} = require("../event"); const userSessionService = require('../../service/user/tl_user_session_service') + const channelUserService = require('../../service/channel/tl_channel_user_service') const { fields: channelUserFields } = require('../../tables/tl_channel_user') const { Def: TlChannelUserDef } = channelUserFields /** - * 广播聊天消息撤回 + * 广播文件消息 * @param {*} io socketio对象 * @param {*} socket 单个socket连接 * @param {*} data event参数 * @returns */ -async function channelChatRollback(io, socket, data){ +async function channelFile(io, socket, data){ let channel = data.channel - let messageId = data.messageId - let rollbackMessage = data.rollbackMessage + let fileInfo = data.fileInfo let to = data.to const token = socket.token; @@ -24,6 +24,8 @@ async function channelChatRollback(io, socket, data){ return } + channel = parseInt(channel) + const { loginUserId, loginUserCompanyId } = await userSessionService.getUserInfoByToken({token}) @@ -36,11 +38,10 @@ async function channelChatRollback(io, socket, data){ if (to){ const toClient = io.sockets.connected[to] if (toClient){ - toClient.emit(socketClientEvent.channelChatRollback, { + toClient.emit(socketClientEvent.channelFile, { channel: data.channel, - messageId: messageId, + fileInfo: fileInfo, from: socket.id, - rollbackMessage: rollbackMessage, }) } return @@ -54,22 +55,21 @@ async function channelChatRollback(io, socket, data){ TlChannelUserDef.userId ]) - const userIds = channelUserList.map(item => item[TlChannelUserDef.userId]) - + const userIds = channelUserList.map(item => item[TlP2pChannelUserDef.userId]) + // 广播给频道内的所有用户 for(let userId of userIds){ if(userId === loginUserId){ continue } - io.sockets.in(userId).emit(socketClientEvent.channelChatRollback, { + io.sockets.in(userId).emit(socketClientEvent.channelFile, { channel: data.channel, - messageId: messageId, + fileInfo: fileInfo, from: socket.id, - rollbackMessage: rollbackMessage, }) } } module.exports = { - channelChatRollback + channelFile } \ No newline at end of file diff --git a/src/socket/handler/channel_video.js b/src/socket/handler/channel_video.js new file mode 100644 index 0000000..6c9524e --- /dev/null +++ b/src/socket/handler/channel_video.js @@ -0,0 +1,90 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { Def: TlChannelUserDef } = channelUserFields + + +/** + * 广播视频通话消息 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function channelVideoCall(io, socket, data){ + let channel = data.channel; + let videoCallInfo = data.videoCallInfo + let videoCallInfoType = videoCallInfo.type + let to = videoCallInfo.to + + const token = socket.token; + + if(!channel){ + return + } + + channel = parseInt(channel) + + const { + loginUserId, loginUserCompanyId + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 邀请方信息收集 + if(videoCallInfoType === 'try-invite'){ + const channelUserList = await channelUserService.getListByChannelId({ + channelId: channel, + companyId: loginUserCompanyId + }, [ + TlChannelUserDef.userId + ]) + + const userIds = channelUserList.map(item => item[TlChannelUserDef.userId]) + videoCallInfo.inviterInviteList = userIds.filter(userId => userId !== loginUserId) + } + + // 指定人发送 + if(to){ + let otherClient = io.sockets.connected[to]; + if (!otherClient){ + return; + } + otherClient.emit(socketClientEvent.channelVideoCall, { + channel: data.channel, + videoCallInfo: videoCallInfo, + from: socket.id, + }); + + return + } + + // 拿到当前频道下的所有用户socketid,进行广播 + const channelUserList = await channelUserService.getListByChannelId({ + channelId: channel, + companyId: loginUserCompanyId + }, [ + TlChannelUserDef.userId + ]) + + const userIds = channelUserList.map(item => item[TlChannelUserDef.userId]) + + // 广播给频道内的所有用户 + for(let userId of userIds){ + if(userId === loginUserId){ + continue + } + io.sockets.in(userId).emit(socketClientEvent.channelVideoCall, { + channel: data.channel, + videoCallInfo: videoCallInfo, + from: socket.id, + }) + } +} + +module.exports = { + channelVideoCall +} \ No newline at end of file diff --git a/src/socket/handler/contact_apply.js b/src/socket/handler/contact_apply.js index e200ce5..c3f449e 100644 --- a/src/socket/handler/contact_apply.js +++ b/src/socket/handler/contact_apply.js @@ -1,8 +1,5 @@ const {socketClientEvent} = require("../event"); const userSessionService = require('../../service/user/tl_user_session_service') -const channelUserService = require('../../service/channel/tl_channel_user_service') -const { fields: channelUserFields } = require('../../tables/tl_channel_user') -const { Def: TlChannelUserDef } = channelUserFields /** diff --git a/src/socket/handler/contact_apply_pass.js b/src/socket/handler/contact_apply_pass.js index 08753f7..170ba5c 100644 --- a/src/socket/handler/contact_apply_pass.js +++ b/src/socket/handler/contact_apply_pass.js @@ -1,8 +1,5 @@ const {socketClientEvent} = require("../event"); const userSessionService = require('../../service/user/tl_user_session_service') -const channelUserService = require('../../service/channel/tl_channel_user_service') -const { fields: channelUserFields } = require('../../tables/tl_channel_user') -const { Def: TlChannelUserDef } = channelUserFields /** diff --git a/src/socket/handler/contact_apply_reject.js b/src/socket/handler/contact_apply_reject.js index 024b295..99e96cf 100644 --- a/src/socket/handler/contact_apply_reject.js +++ b/src/socket/handler/contact_apply_reject.js @@ -1,8 +1,5 @@ const {socketClientEvent} = require("../event"); const userSessionService = require('../../service/user/tl_user_session_service') -const channelUserService = require('../../service/channel/tl_channel_user_service') -const { fields: channelUserFields } = require('../../tables/tl_channel_user') -const { Def: TlChannelUserDef } = channelUserFields /** diff --git a/src/socket/handler/group_apply.js b/src/socket/handler/group_apply.js new file mode 100644 index 0000000..369350e --- /dev/null +++ b/src/socket/handler/group_apply.js @@ -0,0 +1,72 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { inner: TlRoleInner } = require('../../tables/tl_role') +const { Def: TlChannelUserDef } = channelUserFields + + +/** + * 广播群组申请消息 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function groupApply(io, socket, data){ + let channelId = data.channelId + let applyInfo = data.applyInfo + let to = data.to + + const token = socket.token; + + if(!channelId){ + return + } + + const { + loginUserId, loginUsername, loginUserCompanyId + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 指定人,无须频道广播 + if (to){ + const toClient = io.sockets.connected[to] + if (toClient){ + toClient.emit(socketClientEvent.groupApply, { + fromUsername: loginUsername, + applyInfo: applyInfo, + from: socket.id, + }) + } + return + } + + // 获取频道创建人 + const channelUserList = await channelUserService.getListByChannelIdAndRoleId({ + companyId: loginUserCompanyId, + channelId: channelId, + roleId: TlRoleInner.channel.creator.id + }) + + if(channelUserList.length === 0){ + return + } + + const channelCreatorUserInfo = channelUserList[0] + + const userId = channelCreatorUserInfo[TlChannelUserDef.userId] + + io.sockets.in(userId).emit(socketClientEvent.groupApply, { + fromUsername: loginUsername, + applyInfo: applyInfo, + from: socket.id, + }) +} + +module.exports = { + groupApply +} \ No newline at end of file diff --git a/src/socket/handler/group_apply_pass.js b/src/socket/handler/group_apply_pass.js new file mode 100644 index 0000000..62d1d3e --- /dev/null +++ b/src/socket/handler/group_apply_pass.js @@ -0,0 +1,53 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') + + +/** + * 广播通过群组申请消息 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function groupApplyPass(io, socket, data){ + let userId = data.userId + let passInfo = data.passInfo + let to = data.to + + const token = socket.token; + + if(!userId){ + return + } + + const { + loginUserId, loginUsername, loginUserCompanyId + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 指定人,无须频道广播 + if (to){ + const toClient = io.sockets.connected[to] + if (toClient){ + toClient.emit(socketClientEvent.groupApplyPass, { + fromUsername: loginUsername, + passInfo: passInfo, + from: socket.id, + }) + } + return + } + + io.sockets.in(userId).emit(socketClientEvent.groupApplyPass, { + fromUsername: loginUsername, + passInfo: passInfo, + from: socket.id, + }) +} + +module.exports = { + groupApplyPass +} \ No newline at end of file diff --git a/src/socket/handler/group_apply_reject.js b/src/socket/handler/group_apply_reject.js new file mode 100644 index 0000000..998587d --- /dev/null +++ b/src/socket/handler/group_apply_reject.js @@ -0,0 +1,53 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') + + +/** + * 广播拒绝群组申请消息 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function groupApplyReject(io, socket, data){ + let userId = data.userId + let rejectInfo = data.rejectInfo + let to = data.to + + const token = socket.token; + + if(!userId){ + return + } + + const { + loginUserId, loginUsername, loginUserCompanyId + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 指定人,无须频道广播 + if (to){ + const toClient = io.sockets.connected[to] + if (toClient){ + toClient.emit(socketClientEvent.groupApplyReject, { + fromUsername: loginUsername, + rejectInfo: rejectInfo, + from: socket.id, + }) + } + return + } + + io.sockets.in(userId).emit(socketClientEvent.groupApplyReject, { + fromUsername: loginUsername, + rejectInfo: rejectInfo, + from: socket.id, + }) +} + +module.exports = { + groupApplyReject +} \ No newline at end of file diff --git a/src/socket/handler/rtc/answer.js b/src/socket/handler/rtc/answer.js new file mode 100644 index 0000000..b11fb21 --- /dev/null +++ b/src/socket/handler/rtc/answer.js @@ -0,0 +1,21 @@ +const {socketClientEvent} = require("../../event"); + +/** + * webrtc answer + * 转发answer消息至room其他客户端 [from,to,room,sdp] + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function answer(io, socket, data){ + let otherClient = io.sockets.connected[data.to]; + if (!otherClient) { + return; + } + otherClient.emit(socketClientEvent.answer, data); +} + +module.exports = { + answer +} \ No newline at end of file diff --git a/src/socket/handler/rtc/candidate.js b/src/socket/handler/rtc/candidate.js new file mode 100644 index 0000000..572ad3f --- /dev/null +++ b/src/socket/handler/rtc/candidate.js @@ -0,0 +1,21 @@ +const {socketClientEvent} = require("../../event"); + +/** + * webrtc candidate + * 转发candidate消息至room其他客户端 [from,to,room,candidate[sdpMid,sdpMLineIndex,sdp]] + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function candidate(io, socket, data){ + let otherClient = io.sockets.connected[data.to]; + if (!otherClient){ + return; + } + otherClient.emit(socketClientEvent.candidate, data); +} + +module.exports = { + candidate +} \ No newline at end of file diff --git a/src/socket/handler/rtc/offer.js b/src/socket/handler/rtc/offer.js new file mode 100644 index 0000000..42d0328 --- /dev/null +++ b/src/socket/handler/rtc/offer.js @@ -0,0 +1,20 @@ +const {socketClientEvent} = require("../../event"); +/** + * webrtc offer + * 转发offer消息至room其他客户端 [from,to,room,sdp] + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function offer(io, socket, data){ + let otherClient = io.sockets.connected[data.to]; + if (!otherClient) { + return; + } + otherClient.emit(socketClientEvent.offer, data); +} + +module.exports = { + offer +} \ No newline at end of file diff --git a/src/tables/db.js b/src/tables/db.js index 7ce6126..b3b111f 100644 --- a/src/tables/db.js +++ b/src/tables/db.js @@ -43,7 +43,7 @@ const getDbClient = function() { } dbClientInstance = new sequelizeObj( - conf.db_mysql_dbName, conf.db_mysql_user, conf.db_mysql_password, options + conf.db_mysql_database, conf.db_mysql_user, conf.db_mysql_password, options ); tlConsole("db init done ...") diff --git a/src/tables/tl_channel.js b/src/tables/tl_channel.js index 4efbf09..2053a2c 100644 --- a/src/tables/tl_channel.js +++ b/src/tables/tl_channel.js @@ -1,6 +1,6 @@ const tl_channel_fields = { Name: 'tl_channel', - Description: '频道表,主要定义单聊,群聊等创建的各种频道记录', + Description: '频道表,主要定义单聊,群聊,卡片,客服聊天,匿名聊天等创建的各种频道记录', Def: { id : 'id', companyId : 'company_id', @@ -15,9 +15,34 @@ const tl_channel_fields = { Type: { GROUP : 1, // 群聊 FRIEND : 2, // 好友 + + toZnStr: function(type){ + switch(type){ + case this.GROUP: + return '群聊'; + case this.FRIEND: + return '好友'; + default: + return '未知'; + } + }, + + toStr: function(type){ + switch(type){ + case this.GROUP: + return 'group'; + case this.FRIEND: + return 'friend'; + default: + return 'unknown'; + } + } }, Status: { NORMAL: 1, //正常 + }, + Flag: { + GROUP_CAN_BE_SEARCH: 0x1, // 群聊是否可以被搜索 } } diff --git a/src/tables/tl_channel_chat.js b/src/tables/tl_channel_chat.js index b9109c8..ef39aa0 100644 --- a/src/tables/tl_channel_chat.js +++ b/src/tables/tl_channel_chat.js @@ -20,7 +20,6 @@ const tl_channel_chat_fields = { deletedAt : 'deletedAt', }, Flag: { - IS_ROLL_BACK: 0x1, //是否撤回 IS_REAL_TEXT: 0x2, // 是否是富文本 IS_REPLAY: 0x4, // 是否是回复 IS_AT_USER: 0x8, // 是否是@用户 diff --git a/src/tables/tl_channel_file.js b/src/tables/tl_channel_file.js new file mode 100644 index 0000000..3a8460f --- /dev/null +++ b/src/tables/tl_channel_file.js @@ -0,0 +1,119 @@ +const tl_channel_file_fields = { + Name: 'tl_channel_file', + Description: '频道文件记录表,所有企业,用户的单聊,群聊文件记录表', + Def: { + id : 'id', + companyId : 'company_id', + channelId : 'channel_id', + flag : 'flag', + cloudFileId : 'cloud_file_id', + other : 'other', + fromUserId : 'from_user_id', + fromUserName : 'from_user_name', + type : 'type', + status : 'status', + messageTimeStamp : 'message_ts', + messageVersion : 'message_version', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Flag: { + }, + Other: { + ip: 'ip', // ip地址 + }, + Type : { + P2P : 'p2p', // 在线 + OFFLINE: 'offline', // 离线/资源库 + }, + Status : { + INIT: 1, // 发起中 + RECEIVING: 2, // 接收中 + RECEIVED : 3, // 已接收 + }, +} + +const tl_channel_file_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '文件记录id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + channel_id : { + type: DataTypes.INTEGER, + comment: '频道id' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + cloud_file_id: { + type: DataTypes.INTEGER, + comment: '云文件id' + }, + other: { + type: DataTypes.TEXT, + comment: '其他信息, json格式' + }, + from_user_id: { + type: DataTypes.INTEGER, + comment: '发送用户id' + }, + from_user_name:{ + type: DataTypes.STRING(64), + comment: '发送用户昵称' + }, + type : { + type: DataTypes.STRING(8), + comment: '文件消息类型' + }, + status : { + type: DataTypes.INTEGER, + comment: '文件记录状态' + }, + message_ts: { + type: DataTypes.BIGINT, + comment: '消息时间戳' + }, + message_version: { + type: DataTypes.STRING(8), + comment: '消息版本' + }, + }, + options : { + timestamps: true, + comment: '文件记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }, { + name: 'message_ts_index', + method: 'BTREE', + fields: ['message_ts'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlChannelFile: sequelize.define( + 'tl_channel_file', + tl_channel_file_model(DataTypes).model, + tl_channel_file_model(DataTypes).options + ) + } + }, + fields: tl_channel_file_fields +} \ No newline at end of file diff --git a/src/tables/tl_channel_media.js b/src/tables/tl_channel_media.js new file mode 100644 index 0000000..c98a474 --- /dev/null +++ b/src/tables/tl_channel_media.js @@ -0,0 +1,122 @@ +const tl_channel_media_fields = { + Name: 'tl_channel_media', + Description: '频道媒体流记录表,所有企业,用户的单聊,群聊媒体流记录表,如视频通话,语音通话,屏幕共享,远程画笔等', + Def: { + id: 'id', + companyId: 'company_id', + channelId : 'channel_id', + type : 'type', + status : 'status', + flag: 'flag', + media: 'media', + other: 'other', + fromUserId: 'from_user_id', + fromUserName:'from_user_name', + messageTimeStamp: 'message_ts', + messageVersion: 'message_version', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + deletedAt: 'deletedAt' + }, + Flag: { + }, + Other: { + ip: 'ip', // ip地址 + }, + Status : { + INIT: 1, // 发起中 + RECEIVING: 2, // 接收中 + RECEIVED : 3, // 已接收 + }, + Media: { + URL : 'url', // 媒体流内容字段url + }, + Type :{ + VIDEO : 'video', // 视频通话 + AUDIO : 'audio', // 语音通话 + }, +} + +const tl_channel_media_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '媒体流记录id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + channel_id : { + type: DataTypes.INTEGER, + comment: '频道id' + }, + type : { + type: DataTypes.STRING(8), + comment: '媒体流消息类型' + }, + status : { + type: DataTypes.INTEGER, + comment: '媒体流记录状态' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + media: { + type: DataTypes.TEXT, + comment: '媒体流内容' + }, + other: { + type: DataTypes.TEXT, + comment: '其他信息, json格式' + }, + from_user_id: { + type: DataTypes.INTEGER, + comment: '发送用户id' + }, + from_user_name:{ + type: DataTypes.STRING(64), + comment: '发送用户昵称' + }, + message_ts: { + type: DataTypes.BIGINT, + comment: '消息时间戳' + }, + message_version: { + type: DataTypes.STRING(8), + comment: '消息版本' + }, + }, + options : { + timestamps: true, + comment: '媒体流记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }, { + name: 'message_ts_index', + method: 'BTREE', + fields: ['message_ts'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlChannelMedia: sequelize.define( + 'tl_channel_media', + tl_channel_media_model(DataTypes).model, + tl_channel_media_model(DataTypes).options + ) + } + }, + fields: tl_channel_media_fields +} \ No newline at end of file diff --git a/src/tables/tl_channel_notice.js b/src/tables/tl_channel_notice.js new file mode 100644 index 0000000..46247f1 --- /dev/null +++ b/src/tables/tl_channel_notice.js @@ -0,0 +1,78 @@ +const tl_channel_notice_fields = { + Name: 'tl_channel_notice', + Description: '频道公告表,主要定义群聊频道公告记录', + Def: { + id : 'id', + companyId : 'company_id', + channelId : 'channel_id', + userId: 'user_id', + content: 'content', + flag : 'flag', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Flag: { + IS_SET_TOP: 1, // 置顶 + } +} + +const tl_channel_notice_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '公告id', + primaryKey: true, + autoIncrement: true + }, + channel_id: { + type: DataTypes.INTEGER, + comment: '频道id' + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + user_id: { + type: DataTypes.INTEGER, + comment: '用户id' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + content : { + type: DataTypes.TEXT, + comment: '公告内容' + }, + type: { + type: DataTypes.INTEGER, + comment: '公告类型', + }, + }, + options : { + timestamps: true, + comment: '频道公告记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlChannelNotice: sequelize.define( + 'tl_channel_notice', + tl_channel_notice_model(DataTypes).model, + tl_channel_notice_model(DataTypes).options + ) + } + }, + fields: tl_channel_notice_fields +} \ No newline at end of file diff --git a/src/tables/tl_channel_user.js b/src/tables/tl_channel_user.js index 863a3e3..7c60004 100644 --- a/src/tables/tl_channel_user.js +++ b/src/tables/tl_channel_user.js @@ -17,10 +17,54 @@ const tl_channel_user_fields = { Type: { GROUP : 1, // 群聊 FRIEND : 2, // 好友 + + toStr: function(type){ + switch(type){ + case this.GROUP: + return 'GROUP'; + case this.FRIEND: + return 'FRIEND'; + default: + return 'UNKNOWN'; + } + }, + + toZnStr: function(type){ + switch(type){ + case this.GROUP: + return '群聊'; + case this.FRIEND: + return '好友'; + default: + return '未知类型'; + } + } }, Status: { NORMAL: 1, //正常 BLACK: 2, // 黑名单 + + toStr: function(status){ + switch(status){ + case this.NORMAL: + return 'NORMAL'; + case this.BLACK: + return 'BLACK'; + default: + return 'UNKNOWN'; + } + }, + + toZnStr: function(status){ + switch(status){ + case this.NORMAL: + return '正常'; + case this.BLACK: + return '黑名单'; + default: + return '未知状态'; + } + } }, Flag: { IS_SET_TOP: 1, // 置顶 diff --git a/src/tables/tl_cloud_file.js b/src/tables/tl_cloud_file.js new file mode 100644 index 0000000..dba646a --- /dev/null +++ b/src/tables/tl_cloud_file.js @@ -0,0 +1,139 @@ +const tl_cloud_file_fields = { + Name: 'tl_cloud_file', + Description: '云资源库文件表', + Def: { + id : 'id', + companyId : 'company_id', + type: 'type', + userId: 'user_id', + flag : 'flag', + originFileName: 'origin_file_name', + originFileType: 'origin_file_type', + fileName: 'file_name', + fileUrl: 'file_url', + fileSize: 'file_size', + fileId: 'file_id', + dirId: 'dir_id', + other: 'other', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Flag: { + + }, + Type: { + IMAGE: 'image', // 图片 + AUDIO: 'audio', // 音频 + VIDEO: 'video', // 视频 + DOCUMENT: 'document', // 文档 + ZIP: 'zip', // 压缩包 + OTHER: 'other', // 其他 + + toStr: function(type){ + switch(type){ + case this.IMAGE: + return '图片'; + case this.AUDIO: + return '音频'; + case this.VIDEO: + return '视频'; + case this.DOCUMENT: + return '文档'; + case this.ZIP: + return '压缩包'; + case this.OTHER: + return '其他'; + default: + return '未知'; + } + } + }, +} + +const tl_cloud_file_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '文件id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + type : { + type: DataTypes.STRING(8), + comment: '文件资源类型' + }, + user_id:{ + type: DataTypes.INTEGER, + comment: '用户id', + defaultValue: 0 + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + origin_file_name: { + type: DataTypes.STRING(255), + comment: '原文件名' + }, + origin_file_type: { + type: DataTypes.STRING(255), + comment: '原文件类型' + }, + dir_id: { + type: DataTypes.INTEGER, + comment: '文件夹id', + defaultValue: 0, + }, + file_name: { + type: DataTypes.STRING(255), + comment: '文件名' + }, + file_url: { + type: DataTypes.STRING(255), + comment: '文件路径' + }, + file_size: { + type: DataTypes.INTEGER, + comment: '文件大小' + }, + file_id: { + type: DataTypes.STRING(255), + comment: '文件id' + }, + other: { + type: DataTypes.TEXT, + comment: '其他信息', + defaultValue: '{}' + }, + }, + options : { + timestamps: true, + comment: '云资源库文件表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlCloudFile: sequelize.define( + 'tl_cloud_file', + tl_cloud_file_model(DataTypes).model, + tl_cloud_file_model(DataTypes).options + ) + } + }, + fields: tl_cloud_file_fields +} \ No newline at end of file diff --git a/src/tables/tl_role.js b/src/tables/tl_role.js index 6b9b021..47dcae6 100644 --- a/src/tables/tl_role.js +++ b/src/tables/tl_role.js @@ -19,13 +19,10 @@ const tl_role_fields = { Type: { NORMAL_USER: 1, // 普通用户角色 ADMIN_USER: 2, // 管理员角色 - TEST_USER: 3, // 测试演示用户角色 CHANNEL_CREATOR_USER: 4, // 频道群主角色 CHANNEL_ADMIN_USER: 5, // 频道管理员角色 CHANNEL_NORMAL_USER: 6, // 频道普通用户角色 - - WEBSITE_USER: 7, // 官网用户角色 } } @@ -138,7 +135,7 @@ const tl_inner_role = { ), description : '频道成员', flag : 0, - }, + } }, } diff --git a/src/tables/tl_user.js b/src/tables/tl_user.js index 0038c03..81b76f3 100644 --- a/src/tables/tl_user.js +++ b/src/tables/tl_user.js @@ -21,8 +21,7 @@ const tl_user_fields = { deletedAt : 'deletedAt', }, Flag: { - IS_PASS_AUTH: 0x1, //是否通过认证 - IS_EXPIRED: 0x2, //是否过期 + }, } diff --git a/src/tables/tl_user_apply.js b/src/tables/tl_user_apply.js index 4f9656e..6738ba2 100644 --- a/src/tables/tl_user_apply.js +++ b/src/tables/tl_user_apply.js @@ -16,7 +16,13 @@ const tl_user_apply_fields = { deletedAt : 'deletedAt', }, Flag: { - + IS_APPLY_GROUP_BY_SEARCH_NAME: 0x1, //通过搜索名称添加群聊 + IS_APPLY_GROUP_BY_SHARE_LINK: 0x2, //通过分享链接添加群聊 + + IS_APPLY_FRIEND_BY_SEARCH_NAME: 0x4, //通过搜索名称添加好友 + IS_APPLY_FRIEND_BY_SEARCH_PHONE: 0x8, //通过搜索手机号添加好友 + IS_APPLY_FRIEND_BY_SEARCH_EMAIL: 0x10, //通过搜索邮箱添加好友 + IS_APPLY_FRIEND_BY_INVITE: 0x20, //通过邀请添加好友 }, Type: { FRIEND: 1, //好友申请 @@ -28,13 +34,6 @@ const tl_user_apply_fields = { REJECT: 3, //拒绝 BLACK: 4, //黑名单 }, - Origin: { - SEARCH_NAME: '1', //搜索用户名添加 - SEARCH_PHONE: '2', //搜索手机号添加 - SEARCH_EMAIL: '3', //搜索邮箱添加 - INVITE_QR: '4', //二维码邀请添加 - INVITE_LINK: '5', //链接邀请添加 - } } const tl_user_apply_model = function(DataTypes){ @@ -57,7 +56,7 @@ const tl_user_apply_model = function(DataTypes){ }, origin:{ type: DataTypes.STRING, - comment: '申请来源' + comment: '申请来源信息' }, user_id: { type: DataTypes.INTEGER, diff --git a/src/tables/tl_user_auth.js b/src/tables/tl_user_auth.js index b73fb1f..3b47836 100644 --- a/src/tables/tl_user_auth.js +++ b/src/tables/tl_user_auth.js @@ -11,9 +11,10 @@ const tl_user_auth_fields = { deletedAt : 'deletedAt', }, Type: { - EMAIL_REGISTER_CODE: 1, - PHONE_REGISTER_CODE: 2, - PHONE_LOGIN_CODE: 3, + EMAIL_REGISTER_CODE: 1, // 邮箱注册验证码 + PHONE_REGISTER_CODE: 2, // 手机注册验证码 + PHONE_LOGIN_CODE: 3, // 手机登录验证码 + EMAIL_RESET_PASSWORD: 4, // 邮箱重置密码 }, } @@ -32,7 +33,7 @@ const tl_user_auth_model = function(DataTypes){ }, code: { type: DataTypes.STRING(16), - comment: '认证code' + comment: '认证code, 验证码/密码' }, type: { type: DataTypes.INTEGER, diff --git a/src/tables/tl_user_clear.js b/src/tables/tl_user_clear.js new file mode 100644 index 0000000..e90dfda --- /dev/null +++ b/src/tables/tl_user_clear.js @@ -0,0 +1,77 @@ +const tl_user_clear_fields = { + Name: 'tl_user_clear', + Description: '频道清理消息记录,一个用户+频道一条记录', + Def: { + id: 'id', + companyId: 'company_id', + userId: 'user_id', + channelId : 'channel_id', + type: 'type', + latestClearId: 'latest_clear_id', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + deletedAt: 'deletedAt' + }, + Type: { + CHAT : 1, // 聊天消息 + MEDIA : 2, // 媒体流消息 + FILE: 3, // 文件消息 + }, +} + +const tl_user_clear_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '频道清理消息记录id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + user_id: { + type: DataTypes.INTEGER, + comment: '频道所属用户id' + }, + type: { + type: DataTypes.INTEGER, + comment: '消息类型', + }, + channel_id: { + type: DataTypes.INTEGER, + defaultValue: 0, + comment: '频道id' + }, + latest_clear_id: { + type: DataTypes.INTEGER, + defaultValue: 0, + comment: '频道用户清理最新消息id' + }, + }, + options : { + timestamps: true, + comment: '频道清理消息记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUserClear: sequelize.define( + 'tl_user_clear', + tl_user_clear_model(DataTypes).model, + tl_user_clear_model(DataTypes).options + ) + } + }, + fields: tl_user_clear_fields +} \ No newline at end of file diff --git a/src/tables/tl_user_config.js b/src/tables/tl_user_config.js index a15a683..347878e 100644 --- a/src/tables/tl_user_config.js +++ b/src/tables/tl_user_config.js @@ -16,10 +16,22 @@ const tl_user_config_fields = { deletedAt : 'deletedAt', }, Account: { - + // 不接受好友申请 + notAcceptFriendApply: 'notAcceptFriendApply', + // 不允许被他人搜索 + notAllowSearchAccount: 'notAllowSearchAccount', + // 资源保存到服务器磁盘 + fileSaveToServer: 'fileSaveToServer', }, Normal: { - + // 侧边栏-频道 + sidebarChannelOpen: 'sidebarChannelOpen', + // 侧边栏-联系人 + sidebarContactOpen: 'sidebarContactOpen', + // 侧边栏-设置 + sidebarSettingOpen: 'sidebarSettingOpen', + // 首页 + homePage: 'homePage', }, Message: { // 消息设置 // 网页通知 @@ -31,11 +43,174 @@ const tl_user_config_fields = { }, Skin: { - + global: 'global', + skinTopHeaderTitleColor: "skinTopHeaderTitleColor", + skinTopHeaderToolBackground: "skinTopHeaderToolBackground", + skinTopHeaderToolFillColor: "skinTopHeaderToolFillColor", + skinTopHeaderToolHoverFillColor: "skinTopHeaderToolHoverFillColor", + skinTopHeaderToolHoverShadow: "skinTopHeaderToolHoverShadow", + skinBodyColor: "skinBodyColor", + skinBodyBackground: "skinBodyBackground", + skinBodyShadow: "skinBodyShadow", + skinBodyBorderColor: "skinBodyBorderColor", + skinLayerMsgSuccessColor: "skinLayerMsgSuccessColor", + skinLayerMsgErrorColor: "skinLayerMsgErrorColor", + skinLayerMsgWarningColor: "skinLayerMsgWarningColor", + skinSidebarToolBackground: "skinSidebarToolBackground", + skinSidebarToolHoverBackground: "skinSidebarToolHoverBackground", + skinSidebarToolFillColor: "skinSidebarToolFillColor", + skinSidebarToolHoverFillColor: "skinSidebarToolHoverFillColor", + skinSidebarToolMoreBorderColor: "skinSidebarToolMoreBorderColor", + skinSidebarToolColor: "skinSidebarToolColor", + skinSidebarToolHoverColor: "skinSidebarToolHoverColor", + skinQuickOperPanelBackground: "skinQuickOperPanelBackground", + skinQuickOperPanelItemColor: "skinQuickOperPanelItemColor", + skinQuickOperPanelItemHoverBackground: "skinQuickOperPanelItemHoverBackground", + skinQuickOperPanelItemHoverColor: "skinQuickOperPanelItemHoverColor", + skinChannelListNoChannelColor: "skinChannelListNoChannelColor", + skinChannelListItemHoverBackground: "skinChannelListItemHoverBackground", + skinChannelListItemTopBackground: "skinChannelListItemTopBackground", + skinChannelListItemMessageColor: "skinChannelListItemMessageColor", + skinChannelListItemMessageAtUserTextColor: "skinChannelListItemMessageAtUserTextColor", + skinChannelListItemMessageAtMeTextColor: "skinChannelListItemMessageAtMeTextColor", + skinChannelListItemTimeColor: "skinChannelListItemTimeColor", + skinChannelListItemQuickMarkUnreadBackground: "skinChannelListItemQuickMarkUnreadBackground", + skinChannelListItemQuickMarkUnreadColor: "skinChannelListItemQuickMarkUnreadColor", + skinChannelListItemQuickTopBackground: "skinChannelListItemQuickTopBackground", + skinChannelListItemQuickTopColor: "skinChannelListItemQuickTopColor", + skinChannelListItemQuickDeleteBackground: "skinChannelListItemQuickDeleteBackground", + skinChannelListItemQuickDeleteColor: "skinChannelListItemQuickDeleteColor", + skinChannelListItemQuickHiddenBackground: "skinChannelListItemQuickHiddenBackground", + skinChannelListItemQuickHiddenColor: "skinChannelListItemQuickHiddenColor", + skinChannelListItemQuickUnNotifyBackground: "skinChannelListItemQuickUnNotifyBackground", + skinChannelListItemQuickUnNotifyColor: "skinChannelListItemQuickUnNotifyColor", + skinChannelTopSearchIColor: "skinChannelTopSearchIColor", + skinChannelTopSearchInputBackground: "skinChannelTopSearchInputBackground", + skinChannelTopSearchInputColor: "skinChannelTopSearchInputColor", + skinChannelContentTopMoreFillColor: "skinChannelContentTopMoreFillColor", + skinChannelContentBodyMessageBackground: "skinChannelContentBodyMessageBackground", + skinChannelContentBodyMessageColor: "skinChannelContentBodyMessageColor", + skinChannelContentBodyMessageSystemColor: "skinChannelContentBodyMessageSystemColor", + skinChannelContentBodyMessageTimeColor: "skinChannelContentBodyMessageTimeColor", + skinChannelContentBodyMessageLoadMoreColor: "skinChannelContentBodyMessageLoadMoreColor", + skinChannelContentBodyMessageLoadMoreHoverColor: "skinChannelContentBodyMessageLoadMoreHoverColor", + skinChannelContentBodyMessageNameColor: "skinChannelContentBodyMessageNameColor", + skinChannelContentMoreBackground: "skinChannelContentMoreBackground", + skinChannelContentMoreShadow: "skinChannelContentMoreShadow", + skinChannelContentMoreListItemHoverColor: "skinChannelContentMoreListItemHoverColor", + skinChannelContentMoreListItemOperChannelNameColor: "skinChannelContentMoreListItemOperChannelNameColor", + skinChannelContentMoreListItemBorderColor: "skinChannelContentMoreListItemBorderColor", + skinChannelContentMoreListUserItemOperHoverBackground: "skinChannelContentMoreListUserItemOperHoverBackground", + skinChannelContentMoreListUserItemOperHoverFillColor: "skinChannelContentMoreListUserItemOperHoverFillColor", + skinChannelContentBodyMessageNameHoverColor: "skinChannelContentBodyMessageNameHoverColor", + skinChannelContentBodyItemMessageAtUserTextColor: "skinChannelContentBodyItemMessageAtUserTextColor", + skinChannelContentMoreShareToolItemHoverBackground: "skinChannelContentMoreShareToolItemHoverBackground", + skinChannelContentInviteSearchIColor: "skinChannelContentInviteSearchIColor", + skinChannelContentInviteSearchInputBackground: "skinChannelContentInviteSearchInputBackground", + skinChannelContentInviteSearchInputColor: "skinChannelContentInviteSearchInputColor", + skinChannelContentInviteChooseListItemHoverBackground: "skinChannelContentInviteChooseListItemHoverBackground", + skinChannelContentInviteChooseListEmptyColor: "skinChannelContentInviteChooseListEmptyColor", + skinChannelContentNoticeEmptyColor: "skinChannelContentNoticeEmptyColor", + skinChannelContentNoticeItemHoverBackground: "skinChannelContentNoticeItemHoverBackground", + skinChannelContentNoticeItemTimeColor: "skinChannelContentNoticeItemTimeColor", + skinChannelContentNoticeItemTitleColor: "skinChannelContentNoticeItemTitleColor", + skinChannelContentBodyMessageMenuIconBackground: "skinChannelContentBodyMessageMenuIconBackground", + skinChannelContentBodyMessageMenuIconColor: "skinChannelContentBodyMessageMenuIconColor", + skinChannelContentBodyMessageMenuIconHoverBackground: "skinChannelContentBodyMessageMenuIconHoverBackground", + skinChannelContentBodyMessageMenuIconHoverColor: "skinChannelContentBodyMessageMenuIconHoverColor", + skinChannelContentBodyReplyContentBlockColor: "skinChannelContentBodyReplyContentBlockColor", + skinChannelContentBodyReplyContentBlockBackground: "skinChannelContentBodyReplyContentBlockBackground", + skinMediaVideoOtherItemShadow: "skinMediaVideoOtherItemShadow", + skinMediaVideoToolListSvgFillColor: "skinMediaVideoToolListSvgFillColor", + skinMediaVideoToolListSvgBackground: "skinMediaVideoToolListSvgBackground", + skinMediaVideoToolListSvgHoverBackground: "skinMediaVideoToolListSvgHoverBackground", + skinMediaVideoToolListSvgHoverFillColor: "skinMediaVideoToolListSvgHoverFillColor", + skinMediaVideoToolListYsqCloseBackground: "skinMediaVideoToolListYsqCloseBackground", + skinContactHeaderToolHoverShadow: "skinContactHeaderToolHoverShadow", + skinContactHeaderToolSvgFillColor: "skinContactHeaderToolSvgFillColor", + skinContactHeaderToolSvgHoverFillColor: "skinContactHeaderToolSvgHoverFillColor", + skinContactTopSearchIColor: "skinContactTopSearchIColor", + skinContactTopSearchInputBackground: "skinContactTopSearchInputBackground", + skinContactTopSearchInputColor: "skinContactTopSearchInputColor", + skinContactListItemHoverBackground: "skinContactListItemHoverBackground", + skinContactContentToolItemHoverBackground: "skinContactContentToolItemHoverBackground", + skinContactContentOtherItemBadgeBackground: "skinContactContentOtherItemBadgeBackground", + skinContactContentItemMessageColor: "skinContactContentItemMessageColor", + skinContactContentItemOtherStatusColor: "skinContactContentItemOtherStatusColor", + skinLoginButtonBackground: "skinLoginButtonBackground", + skinLoginListItemHoverBackground: "skinLoginListItemHoverBackground", + skinLoginListItemHoverColor: "skinLoginListItemHoverColor", + skinLoginContentFormInputColor: "skinLoginContentFormInputColor", + skinLoginContentBodyBottomColor: "skinLoginContentBodyBottomColor", + skinLoginContentBodyBottomHoverColor: "skinLoginContentBodyBottomHoverColor", + skinLoginContentBodyScanTitleColor: "skinLoginContentBodyScanTitleColor", + skinLoginContentBodyScanTitleBackground: "skinLoginContentBodyScanTitleBackground", + skinLoginContentBodyScanCodeItemDisabledBackground: "skinLoginContentBodyScanCodeItemDisabledBackground", + skinLoginContentBodyScanCodeItemFocusBorderColor: "skinLoginContentBodyScanCodeItemFocusBorderColor", + skinLoginEmailCodeBtnColor: "skinLoginEmailCodeBtnColor", + skinLoginEmailCodeBtnDisabledBackground: "skinLoginEmailCodeBtnDisabledBackground", + skinLoginHelpMobileColor: "skinLoginHelpMobileColor", + skinLoginHelpMobileHoverColor: "skinLoginHelpMobileHoverColor", + skinLoginBodyCleanColor: "skinLoginBodyCleanColor", + skinLoginBodyCleanHoverColor: "skinLoginBodyCleanHoverColor", + skinLoginItemMobileIconBackground: "skinLoginItemMobileIconBackground", + skinSettingListItemHoverBackground: "skinSettingListItemHoverBackground", + skinSettingListItemActiveBackground: "skinSettingListItemActiveBackground", + skinSettingTopSearchIColor: "skinSettingTopSearchIColor", + skinSettingTopSearchInputBackground: "skinSettingTopSearchInputBackground", + skinSettingTopSearchInputColor: "skinSettingTopSearchInputColor", + skinSettingContentTopExportBackground: "skinSettingContentTopExportBackground", + skinSettingContentTopExportFillColor: "skinSettingContentTopExportFillColor", + skinSettingContentBlockBackground: "skinSettingContentBlockBackground", + skinSettingContentBlockBadgeBackground: "skinSettingContentBlockBadgeBackground", + skinSettingContentBlockBadgeColor: "skinSettingContentBlockBadgeColor", + skinSettingContentBlockBadgeHoverBackground: "skinSettingContentBlockBadgeHoverBackground", + skinSettingContentBlockBadgeHoverColor: "skinSettingContentBlockBadgeHoverColor", + skinSettingContentBlockItemHoverBackground: "skinSettingContentBlockItemHoverBackground", + skinSettingContentBindIconHoverColor: "skinSettingContentBindIconHoverColor", + skinSettingContentBindIconTipFillColor: "skinSettingContentBindIconTipFillColor", + skinSettingContentPreviewItemSvgBackground: "skinSettingContentPreviewItemSvgBackground", + skinSettingContentPreviewItemSvgHoverBackground: "skinSettingContentPreviewItemSvgHoverBackground", + skinSettingContentAccountBindEmailBtnBackground: "skinSettingContentAccountBindEmailBtnBackground", + skinSettingContentAccountBindEmailBtnColor: "skinSettingContentAccountBindEmailBtnColor", + skinSettingContentAccountBindEmailInputBackground: "skinSettingContentAccountBindEmailInputBackground", + skinSettingContentAccountBindEmailInputColor: "skinSettingContentAccountBindEmailInputColor", + skinSettingContentAccountBindEmailBtnDisabledBackground: "skinSettingContentAccountBindEmailBtnDisabledBackground", + skinSettingContentAccountBindEmailBtnDisabledColor: "skinSettingContentAccountBindEmailBtnDisabledColor", + skinChannelHistoryMessageTopSearchIColor: "skinChannelHistoryMessageTopSearchIColor", + skinChannelHistoryMessageTopSearchInputBackground: "skinChannelHistoryMessageTopSearchInputBackground", + skinChannelHistoryMessageTopSearchInputColor: "skinChannelHistoryMessageTopSearchInputColor", + skinChannelHistoryMessageHeaderToolItemTitleColor: "skinChannelHistoryMessageHeaderToolItemTitleColor", + skinChannelHistoryMessageSearchParamBadgeColor: "skinChannelHistoryMessageSearchParamBadgeColor", + skinChannelHistoryMessageSearchParamBadgeHoverBackground: "skinChannelHistoryMessageSearchParamBadgeHoverBackground", + skinChannelHistoryMessageSearchParamBadgeHoverColor: "skinChannelHistoryMessageSearchParamBadgeHoverColor", + skinChannelHistoryMessageSearchParamBadgeActiveBackground: "skinChannelHistoryMessageSearchParamBadgeActiveBackground", + skinChannelHistoryMessageSearchParamBadgeActiveColor: "skinChannelHistoryMessageSearchParamBadgeActiveColor", + skinChannelHistoryMessageListItemTimeColor: "skinChannelHistoryMessageListItemTimeColor", + skinChannelHistoryMessageContentBodyMessageBackground: "skinChannelHistoryMessageContentBodyMessageBackground", + skinChannelHistoryMessageContentBodyMessageColor: "skinChannelHistoryMessageContentBodyMessageColor", + skinChannelHistoryMessageFooterTotalColor: "skinChannelHistoryMessageFooterTotalColor", + skinChannelHistoryMessageFooterLoadMoreColor: "skinChannelHistoryMessageFooterLoadMoreColor", + skinChannelHistoryMessageFooterLoadMoreHoverColor: "skinChannelHistoryMessageFooterLoadMoreHoverColor", + skinFaceItemHoverBackground: "skinFaceItemHoverBackground", + skinFaceItemHoverColor: "skinFaceItemHoverColor", + skinFaceTabBackground: "skinFaceTabBackground", + skinFaceTabColor: "skinFaceTabColor", + skinFaceTabHoverBackground: "skinFaceTabHoverBackground", + skinFaceTabHoverColor: "skinFaceTabHoverColor", + skinFaceSearchInputBackground: "skinFaceSearchInputBackground", + skinFaceSearchInputColor: "skinFaceSearchInputColor", + skinFaceContentTitleColor: "skinFaceContentTitleColor", }, Other: { - // 中继服务 - turnServer: 'turnServer', + // 我的文件视图模式 + cloudSelfViewMode: 'cloudSelfViewMode', + // 我的收藏视图模式 + cloudCollectionViewMode: 'cloudCollectionViewMode', + // 我的回收小站视图模式 + cloudRecycleViewMode: 'cloudRecycleViewMode', + // 群聊文件视图模式 + cloudGroupViewMode: 'cloudGroupViewMode', // 自定义wss服务地址 customWss: 'customWss', } diff --git a/src/tables/tl_user_friend.js b/src/tables/tl_user_friend.js index 1b5f581..5bcd13b 100644 --- a/src/tables/tl_user_friend.js +++ b/src/tables/tl_user_friend.js @@ -21,19 +21,14 @@ const tl_user_friend_fields = { NORMAL : 1, //正常 }, Flag: { - + IS_ADD_BY_SEARCH_NAME: 0x1, //通过搜索用户名添加 + IS_ADD_BY_SEARCH_PHONE: 0x2, //通过搜索手机号添加 + IS_ADD_BY_SEARCH_EMAIL: 0x4, //通过搜索邮箱添加 + IS_ADD_BY_INVITE: 0x8, //通过邀请添加 }, FriendType: { NORMAL: 1, //普通好友 - SPECIAL: 2, //特别关注 }, - Origin: { - SEARCH_NAME: '1', //搜索用户名添加 - SEARCH_PHONE: '2', //搜索手机号添加 - SEARCH_EMAIL: '3', //搜索邮箱添加 - INVITE_QR: '4', //二维码邀请添加 - INVITE_LINK: '5', //链接邀请添加 - } } const tl_user_friend_model = function(DataTypes){ @@ -56,8 +51,8 @@ const tl_user_friend_model = function(DataTypes){ }, origin: { type: DataTypes.STRING, - comment: '来源', - defaultValue: 0, + comment: '好友来源信息', + defaultValue: '', }, user_id: { type: DataTypes.INTEGER, diff --git a/src/tables/tl_user_notify.js b/src/tables/tl_user_notify.js deleted file mode 100644 index 63b101d..0000000 --- a/src/tables/tl_user_notify.js +++ /dev/null @@ -1,74 +0,0 @@ -const tl_user_notify_fields = { - Name: 'tl_user_notify', - Description: '用户通知表', - Def: { - id : 'id', - companyId : 'company_id', - userId : 'user_id', - type : 'type', - title: 'title', - content: 'content', - createdAt : 'createdAt', - updatedAt : 'updatedAt', - deletedAt : 'deletedAt', - }, - Type: { - WORK_CARD: 1, // 工作卡片通知 - SYSTEM_CARD_NOTICE: 2, // 系统卡片通知 - }, -} - -const tl_user_notify_model = function(DataTypes){ - return { - model : { - id: { - type: DataTypes.INTEGER, - comment: '标签id', - primaryKey: true, - autoIncrement: true - }, - userId: { - type: DataTypes.INTEGER, - comment: '用户id', - }, - companyId: { - type: DataTypes.INTEGER, - comment: '公司id', - }, - type: { - type: DataTypes.INTEGER, - comment: '通知类型', - }, - title: { - type: DataTypes.STRING(255), - comment: '通知标题', - }, - content: { - type: DataTypes.TEXT, - comment: '通知内容', - } - }, - options : { - timestamps: true, - comment: '用户通知记录表', - indexes: [{ - name: 'created_at_index', - method: 'BTREE', - fields: ['created_at'] - }] - } - } -} - -module.exports = { - model: function(sequelize, DataTypes){ - return { - TlUserNotify: sequelize.define( - 'tl_user_notify', - tl_user_notify_model(DataTypes).model, - tl_user_notify_model(DataTypes).options - ) - } - }, - fields: tl_user_notify_fields -} \ No newline at end of file diff --git a/src/tables/tl_user_read.js b/src/tables/tl_user_read.js index 53b005b..dc37ef9 100644 --- a/src/tables/tl_user_read.js +++ b/src/tables/tl_user_read.js @@ -20,6 +20,9 @@ const tl_user_read_fields = { FRIEND_APPLY: 4, // 好友申请消息 FRIEND_APPLY_PASS: 5, // 好友同意消息 FRIEND_APPLY_REJECT: 6, // 好友拒绝消息 + GROUP_APPLY: 7, // 群申请消息 + GROUP_APPLY_PASS: 8, // 群同意消息 + GROUP_APPLY_REJECT: 9, // 群拒绝消息 }, } diff --git a/src/tables/tl_user_tag.js b/src/tables/tl_user_tag.js index eea2976..f5c8fb4 100644 --- a/src/tables/tl_user_tag.js +++ b/src/tables/tl_user_tag.js @@ -14,7 +14,6 @@ const tl_user_tag_fields = { Type: { CHANNEL: 1, // 频道分组标签 FRIEND: 2, // 好友分组标签 - CLOUD: 3, // 资源库文件标签 }, } diff --git a/src/utils/cache/cache.js b/src/utils/cache/cache.js index 5808dee..c149b8d 100644 --- a/src/utils/cache/cache.js +++ b/src/utils/cache/cache.js @@ -4,14 +4,12 @@ const { const { USER_KEYS, - SOCKET_KEYS } = require('./cache_key'); -const { tlConsole } = require('../../utils/utils'); const { LOGIN : { LOGIN_TOKEN_EXPIRE, - WEBSITE_LOGIN_TOKEN_EXPIRE + SYSTEM_LOGIN_TOKEN_EXPIRE } } = require('../../utils/constant'); @@ -21,10 +19,10 @@ const { * 1小时过期 * @param {*} token * @param {*} loginInfo - * @param {*} isWebsite + * @param {*} isSystem */ const setLoginInfo = async function({ - token, loginInfo, isWebsite = false + token, loginInfo, isSystem = false }){ const key = USER_KEYS.USER_LOGIN_INFO + token; @@ -32,8 +30,8 @@ const setLoginInfo = async function({ await redisClient.set(key, loginInfo); - if(isWebsite){ - await redisClient.expire(key, WEBSITE_LOGIN_TOKEN_EXPIRE); + if(isSystem){ + await redisClient.expire(key, SYSTEM_LOGIN_TOKEN_EXPIRE); }else{ await redisClient.expire(key, LOGIN_TOKEN_EXPIRE); } @@ -58,10 +56,10 @@ const getLoginInfo = async function({token}){ * 1小时过期 * @param {*} userId * @param {*} status - * @param {*} isWebsite + * @param {*} isSystem */ const setLoginStatus = async function({ - userId, status, isWebsite + userId, status, isSystem = false }){ const key = USER_KEYS.USER_LOGIN_STATUS + userId; @@ -69,8 +67,8 @@ const setLoginStatus = async function({ await redisClient.set(key, status); - if(isWebsite){ - await redisClient.expire(key, WEBSITE_LOGIN_TOKEN_EXPIRE); + if(isSystem){ + await redisClient.expire(key, SYSTEM_LOGIN_TOKEN_EXPIRE); }else{ await redisClient.expire(key, LOGIN_TOKEN_EXPIRE); } @@ -105,21 +103,21 @@ const getLoginStatusList = async function({userIdList}){ * 设置用户信息 * 1小时过期 * @param {*} userId - * @param {*} userInfo - * @param {*} isWebsite + * @param {*} userInfo + * @param {*} isSystem * @returns */ const setUserInfo = async function({ - userId, userInfo, isWebsite = false + userId, userInfo, isSystem = false }){ const cacheKey = USER_KEYS.USER_INFO + userId; const redisClient = getRedisClient(); await redisClient.set(cacheKey, userInfo); - - if(isWebsite){ - await redisClient.expire(cacheKey, WEBSITE_LOGIN_TOKEN_EXPIRE); + + if(isSystem){ + await redisClient.expire(cacheKey, SYSTEM_LOGIN_TOKEN_EXPIRE); }else{ await redisClient.expire(cacheKey, LOGIN_TOKEN_EXPIRE); } @@ -146,10 +144,10 @@ const getUserInfo = async function({userId}){ * @param {*} socketId * @param {*} userId * @param {*} companyId - * @param {*} isWebsite + * @param {*} isSystem */ const setUserIdSocketIdMap = async function({ - companyId, userId, socketId, isWebsite = false + companyId, userId, socketId, isSystem = false }){ const cacheKey = USER_KEYS.USER_ID_SOCKET_ID_MAP + companyId; @@ -159,8 +157,8 @@ const setUserIdSocketIdMap = async function({ [userId]: socketId }); - if(isWebsite){ - await redisClient.expire(cacheKey, WEBSITE_LOGIN_TOKEN_EXPIRE); + if(isSystem){ + await redisClient.expire(cacheKey, SYSTEM_LOGIN_TOKEN_EXPIRE); }else{ await redisClient.expire(cacheKey, LOGIN_TOKEN_EXPIRE); } diff --git a/src/utils/constant.js b/src/utils/constant.js index d42a950..2898835 100644 --- a/src/utils/constant.js +++ b/src/utils/constant.js @@ -3,6 +3,11 @@ const LOGIN = { LOGIN_TOKEN_KEY : '_tl_lg_tk', // 登录token过期时间 LOGIN_TOKEN_EXPIRE : 1000 * 60 * 60, + + // 管理后台登录token + SYSTEM_LOGIN_TOKEN_KEY : '_tl_sys_lg_tk', + // 管理后台登录token过期时间 + SYSTEM_LOGIN_TOKEN_EXPIRE : 1000 * 60 * 60 * 24 * 3 } diff --git a/src/utils/mail/code_template.js b/src/utils/mail/code_template.js new file mode 100644 index 0000000..95b0a01 --- /dev/null +++ b/src/utils/mail/code_template.js @@ -0,0 +1,59 @@ + +/** + * 验证码邮件模版 + * @param {string} code - 验证码 + * @param {number} expire - 验证码的有效时间(单位:分钟) + * @param {string} company - 团队名称 + * @param {string} companyUrl - 团队网址 + * @returns {string} - 返回邮件的HTML内容 + */ +const emailCodeTemplate = function({ + code, expire, companyName, companyUrl +}) { + return ` + + + + + + 验证码 + + + + + + +
+ + + + +
+

尊敬的用户,您好!

+

感谢您使用我们的服务。为了验证您的邮箱地址,请在页面中输入以下验证码:

+

${code}

+

请注意:该验证码将在 ${expire}分钟 内有效。

+
+

请勿将此验证码透露给他人。

+

如果您未请求此验证码,请忽略此邮件。

+

如有任何问题,请随时联系我们的客服团队。

+
+

祝您愉快!

+

此致

+ ${companyName}

+

此邮件由系统自动发出,请勿直接回复。

+
+

© ${new Date().getFullYear()} ${companyName}. All rights reserved.

+
+
+
+ + + `; +} + + +module.exports = { + emailCodeTemplate +}; \ No newline at end of file diff --git a/src/utils/mail/mail.js b/src/utils/mail/mail.js index e7f52dd..f004ce5 100644 --- a/src/utils/mail/mail.js +++ b/src/utils/mail/mail.js @@ -1,7 +1,5 @@ // mail.js -const { get_env_config, load_env_config } = require("../../../conf/env_config"); -//加载环境变量 -load_env_config(); +const { get_env_config } = require("../../../conf/env_config"); //加载环境变量完毕后,加载配置 const conf = get_env_config() const nodemailer = require('nodemailer'); @@ -9,6 +7,12 @@ const nodemailerSmtpTransport = require('nodemailer-smtp-transport'); const { tlConsole } = require("../utils"); +const { + emailCodeTemplate +} = require('./code_template'); +const { + resetEmailPasswordTemplate +} = require('./reset_password_template'); /** @@ -41,7 +45,7 @@ async function sendEmail({ to, subject, text, html }) { html: html }); - tlConsole('发送邮件结果: %s', info.messageId); + tlConsole('发送邮件结果: %s', info.messageId, text); return info; } catch (error) { @@ -50,59 +54,6 @@ async function sendEmail({ to, subject, text, html }) { } } -/** - * 验证码邮件模版 - * @param {string} code - 验证码 - * @param {number} expire - 验证码的有效时间(单位:分钟) - * @param {string} company - 团队名称 - * @param {string} companyUrl - 团队网址 - * @returns {string} - 返回邮件的HTML内容 - */ -const emailTemplate = function({ - code, expire, companyName, companyUrl -}) { - return ` - - - - - - 验证码 - - - - - - -
- - - - -
-

尊敬的用户,您好!

-

感谢您使用我们的服务。为了验证您的邮箱地址,请在页面中输入以下验证码:

-

${code}

-

请注意:该验证码将在 ${expire}分钟 内有效。

-
-

请勿将此验证码透露给他人。

-

如果您未请求此验证码,请忽略此邮件。

-

如有任何问题,请随时联系我们的客服团队。

-
-

祝您愉快!

-

此致

- ${companyName}

-

此邮件由系统自动发出,请勿直接回复。

-
-

© ${new Date().getFullYear()} ${companyName}. All rights reserved.

-
-
-
- - - `; -} /** * 发送验证码邮件 @@ -114,7 +65,7 @@ const emailTemplate = function({ * @returns {Promise} - 返回一个Promise对象,表示发送邮件的结果 */ async function sendVerificationCodeEmail({ to, code, expire, companyName, companyUrl }) { - let html = emailTemplate({ + let html = emailCodeTemplate({ code, expire, companyName, @@ -129,8 +80,32 @@ async function sendVerificationCodeEmail({ to, code, expire, companyName, compan }); } +/** + * 发送重置密码邮件 + * @param {string} to - 收件人的邮箱地址 + * @param {string} password - 新密码 + * @param {string} companyName - 团队名称 + * @param {string} companyUrl - 团队网址 + * @returns {Promise} - 返回一个Promise对象,表示发送邮件的结果 + */ +async function sendResetPasswordEmail({ to, password, expire, companyName, companyUrl }) { + let html = resetEmailPasswordTemplate({ + password, + companyName, + companyUrl + }); + + return await sendEmail({ + to, + subject: '重置邮箱密码', + text: `您的新密码是:${password},请勿泄露给他人,并尽快登陆修改密码。`, + html + }); +} + module.exports = { sendEmail, - sendVerificationCodeEmail + sendVerificationCodeEmail, + sendResetPasswordEmail }; \ No newline at end of file diff --git a/src/utils/mail/reset_password_template.js b/src/utils/mail/reset_password_template.js new file mode 100644 index 0000000..76a69c9 --- /dev/null +++ b/src/utils/mail/reset_password_template.js @@ -0,0 +1,58 @@ + +/** + * 重置邮件密码模版 + * @param {string} password - 新密码 + * @param {string} company - 团队名称 + * @param {string} companyUrl - 团队网址 + * @returns {string} - 返回邮件的HTML内容 + */ +const resetEmailPasswordTemplate = function({ + password, companyName, companyUrl +}) { + return ` + + + + + + 重置密码 + + + + + + +
+ + + + +
+

尊敬的用户,您好!

+

感谢您使用我们的服务。您的密码已重置为:

+

${password}

+
+

请勿将透露给他人,,并尽快登陆修改密码。

+

如果您未请求此重置操作,请忽略此邮件。

+

如有任何问题,请随时联系我们的客服团队。

+
+

祝您愉快!

+

此致

+ ${companyName}

+

此邮件由系统自动发出,请勿直接回复。

+
+

© ${new Date().getFullYear()} ${companyName}. All rights reserved.

+
+
+
+ + + `; +} + + + +module.exports = { + resetEmailPasswordTemplate +}; \ No newline at end of file diff --git a/src/utils/oss/ali_oss.js b/src/utils/oss/ali_oss.js deleted file mode 100644 index e035408..0000000 --- a/src/utils/oss/ali_oss.js +++ /dev/null @@ -1,55 +0,0 @@ -const { get_env_config, load_env_config } = require("../../../conf/env_config"); -//加载环境变量 -load_env_config(); -//加载环境变量完毕后,加载配置 -const conf = get_env_config() -const OSS = require('ali-oss'); - - -const ossInstant = new OSS({ - accessKeyId: conf.oss_ali_secretId, - accessKeySecret: conf.oss_ali_secretKey, - region: 'cn-beijing', - authorizationV4: true, - bucket: 'tl-rtc-app-test', -}); - -/** - * 上传文件 - */ -const uploadFileToOss = function ({ key, file }) { - return new Promise((resolve, reject) => { - ossInstant.put(key, file).then((res) => { - resolve(res) - }).catch((err) => { - reject(err) - }) - }) -} - -/** - * 获取oss的url - * @param {*} key - * @param {*} expires - * @returns - */ -const getOssUrl = async function (key, expires = 3600) { - return "/image/404.png"; -} - -/** - * 获取头像的oss-url - * @param {*} key - * @param {*} expires - * @returns - */ -const getAvatarOssUrl = async function (key, expires = 3600) { - return '/image/default-avatar.png' -} - - -module.exports = { - uploadFileToOss, - getOssUrl, - getAvatarOssUrl -} \ No newline at end of file diff --git a/src/utils/oss/oss.js b/src/utils/oss/oss.js index 60097de..d31183a 100644 --- a/src/utils/oss/oss.js +++ b/src/utils/oss/oss.js @@ -1,113 +1,198 @@ -const { get_env_config, load_env_config } = require("../../../conf/env_config"); -const { tlConsoleError } = require("../../utils/utils"); +const fs = require('fs'); +const path = require('path'); //加载环境变量 -load_env_config(); +const { get_env_config } = require("../../../conf/env_config"); +const { tlConsoleError, checkBit, tlConsole } = require("../../utils/utils"); //加载环境变量完毕后,加载配置 const conf = get_env_config() -const txInstant = require('./tx_oss') -const aliInstant = require('./ali_oss') - /** - * 获取oss的url + * 上传文件-自动区分oss地址 + * 根据key拆分得到需要上传到的oss地址 + * @param {*} key + * @param {*} file + * @returns + */ +const uploadFileToOss = async function ({ key, file }) { + try{ + + return true + }catch(error){ + tlConsoleError("上传文件到oss失败 : ", error) + return null + } +} + +/** + * 获取oss的url-自动区分oss地址 * @param {*} key * @param {*} expires * @returns */ -const getOssUrl = async function (key, expires = 3600) { +const getOssUrl = async function (key = "", expires = 3600) { try{ - return txInstant.getOssUrl(key, expires) + const { + fileSaveToServer + } = splitOssKeyParam(key) + + if(key === ""){ + return "/image/404.png" + } + + if(key.includes("/image/")){ + return key + } + + else if(fileSaveToServer){ + let filePath = serverFileUrlTransfer(key) + if(filePath === ''){ + return "/image/404.png" + } + + // 移除前面的文件夹路径 + filePath = filePath.replace(conf.file_folder, "") + + // 返回下载服务器文件的url + return "/api/web/cloud-file/download-server-file?key=" + Buffer.from( + encodeURIComponent(filePath) + ).toString('base64'); + } + + return "/image/404.png" }catch(error){ tlConsoleError("获取oss的url失败 : ", error) - return null + return "/image/404.png" } } /** - * 获取头像的oss-url + * 获取头像的oss-url-自动区分oss地址 * @param {*} key * @param {*} expires * @returns */ -const getAvatarOssUrl = async function (key, expires = 3600) { +const getAvatarOssUrl = async function (key = "", expires = 3600) { try{ - return txInstant.getAvatarOssUrl(key, expires) + const { + fileSaveToServer + } = splitOssKeyParam(key) + + if(key === ""){ + return "/image/default-avatar.png" + } + + if(key.includes("/image/")){ + return key + } + + else if(fileSaveToServer){ + let filePath = serverFileUrlTransfer(key) + if(filePath === ''){ + return "/image/default-avatar.png" + } + + // 移除前面的文件夹路径 + filePath = filePath.replace(conf.file_folder, "") + + // 返回下载服务器文件的url + return "/api/web/cloud-file/download-server-file?key=" + Buffer.from( + encodeURIComponent(filePath) + ).toString('base64'); + } + + return "/image/default-avatar.png" }catch(error){ tlConsoleError("获取头像的oss-url失败 : ", error) - return null + return "/image/default-avatar.png" } } /** - * 获取阿里云oss的url - * @param {*} key - * @param {*} expires + * 根据key拆分得到需要上传到的oss地址 + * @param {*} key * @returns */ -const getOssUrlAli = async function (key, expires = 3600) { - try{ - return aliInstant.getOssUrl(key, expires) - }catch(error){ - tlConsoleError("获取阿里云oss的url失败 : ", error) - return null +const splitOssKeyParam = function (key = "") { + return { + fileSaveToServer: true } } /** - * 获取阿里云oss的头像url - * @param {*} key - * @param {*} expires + * 组装 oss key参数 + * @param {*} companyId + * @param {*} userId + * @param {*} ossFlag + * @param {*} fileName * @returns */ -const getAvatarOssUrlAli = async function (key, expires = 3600) { - try{ - return aliInstant.getAvatarOssUrl(key, expires) - }catch(error){ - tlConsoleError("获取阿里云oss的头像url失败 : ", error) - return null - } +const contactOssKeyParam = function ({ + companyId, userId, ossFlag, fileName +}) { + return `/${companyId}/${userId}/${ossFlag}/${fileName}` } /** - * 获取腾讯云oss的url - * @param {*} key - * @param {*} expires + * 获取服务器保存文件文件夹路径 + * @param {*} companyId + * @param {*} userId * @returns */ -const getOssUrlTx = async function (key, expires = 3600) { - try{ - return txInstant.getOssUrl(key, expires) - }catch(error){ - tlConsoleError("获取腾讯云oss的url失败 : ", error) - return null - } +const genServiceSaveFileFolder = function ({ + companyId, userId +}) { + return conf.file_folder + '/' + companyId + '/' + userId + '/' } + /** - * 获取腾讯云oss的头像url - * @param {*} key - * @param {*} expires + * 服务器文件路径转换 + * @param {*} key * @returns */ -const getAvatarOssUrlTx = async function (key, expires = 3600) { - try{ - return txInstant.getAvatarOssUrl(key, expires) - }catch(error){ - tlConsoleError("获取腾讯云oss的头像url失败 : ", error) - return null +const serverFileUrlTransfer = function (key) { + let keyParams = key.split("/") + + let companyId = 0 + let userId = 0 + let fileName = "" + + if(keyParams.length === 5){ + companyId = parseInt(keyParams[1]) + userId = parseInt(keyParams[2]) + // let ossFlag = parseInt(keyParams[3]) + fileName = keyParams[4] } + + // 旧版本没有ossFlag + if(keyParams.length === 4){ + companyId = parseInt(keyParams[1]) + userId = parseInt(keyParams[2]) + fileName = keyParams[3] + } + + // 服务器路径 + const filePath = path.join(genServiceSaveFileFolder({ + companyId: companyId, userId: userId + }), fileName); + + // 检查文件是否存在 + if (!fs.existsSync(filePath)) { + return "" + } + + return filePath } module.exports = { + uploadFileToOss, getOssUrl, getAvatarOssUrl, - getOssUrlAli, - getAvatarOssUrlAli, - - getOssUrlTx, - getAvatarOssUrlTx, + contactOssKeyParam, + genServiceSaveFileFolder, + serverFileUrlTransfer } \ No newline at end of file diff --git a/src/utils/oss/tx_oss.js b/src/utils/oss/tx_oss.js deleted file mode 100644 index 3ed7c74..0000000 --- a/src/utils/oss/tx_oss.js +++ /dev/null @@ -1,58 +0,0 @@ -const { get_env_config, load_env_config } = require("../../../conf/env_config"); -//加载环境变量 -load_env_config(); -//加载环境变量完毕后,加载配置 -const conf = get_env_config() -const OSS = require('cos-nodejs-sdk-v5'); - - -const ossInstant = new OSS({ - SecretId: conf.oss_tx_secretId, - SecretKey: conf.oss_tx_secretKey -}) - -/** - * 上传文件 - */ -const uploadFileToOss = function ({ key, file }) { - return new Promise((resolve, reject) => { - ossInstant.putObject({ - Bucket: conf.oss_tx_bucket, - Region: conf.oss_tx_region, - Key: key, - Body: file - }, function (err, data) { - if (err) { - reject(err) - } else { - resolve(data) - } - }); - }) -} - -/** - * 获取oss的url - * @param {*} key - * @param {*} expires - * @returns - */ -const getOssUrl = async function (key, expires = 3600) { - return "/image/404.png"; -} - -/** - * 获取头像的oss-url - * @param {*} key - * @param {*} expires - * @returns - */ -const getAvatarOssUrl = async function (key, expires = 3600) { - return '/image/default-avatar.png' -} - -module.exports = { - uploadFileToOss, - getOssUrl, - getAvatarOssUrl -} \ No newline at end of file diff --git a/src/utils/sensitive/content.js b/src/utils/sensitive/content.js new file mode 100644 index 0000000..5ed27a5 --- /dev/null +++ b/src/utils/sensitive/content.js @@ -0,0 +1,54 @@ +const checkLib = require("./core").trie + +/** + * 内容过滤 + * @param {*} text + * @param {*} replaceChar + * @returns + */ +function contentFilter(text = '', replaceChar = '*') { + let filteredText = ''; + let currentIndex = 0; + + while (currentIndex < text.length) { + const match = checkLib.search(text.slice(currentIndex)); + if (match) { + filteredText += replaceChar.repeat(match.length); + currentIndex += match.length; + } else { + filteredText += text[currentIndex]; + currentIndex++; + } + } + return filteredText; +} + +/** + * 对象内容过滤 + * @param {*} text + * @returns + */ +function objectContentFilter(obj) { + if (obj === null || obj === undefined) { + return obj; + } + if (typeof obj === 'string') { + return contentFilter(obj); + } + if (typeof obj === 'object') { + if (obj instanceof Array) { + return obj.map(item => objectContentFilter(item)); + } else { + const newObj = {}; + for (const key in obj) { + newObj[key] = objectContentFilter(obj[key]); + } + return newObj; + } + } + return obj; +} + +module.exports = { + contentFilter, objectContentFilter +} \ No newline at end of file diff --git a/src/utils/sensitive/core.js b/src/utils/sensitive/core.js new file mode 100644 index 0000000..f793eea --- /dev/null +++ b/src/utils/sensitive/core.js @@ -0,0 +1,79 @@ +class TrieNode { + constructor() { + this.children = new Map(); + this.isEndOfWord = false; + } +} + +class Trie { + constructor() { + this.root = new TrieNode(); + } + + insert(word) { + let node = this.root; + for (const char of word) { + if (!node.children.has(char)) { + node.children.set(char, new TrieNode()); + } + node = node.children.get(char); + } + node.isEndOfWord = true; + } + + search(word) { + let node = this.root; + let match = ''; + for (const char of word) { + if (node.children.has(char)) { + match += char; + node = node.children.get(char); + if (node.isEndOfWord) { + return match; + } + } else { + break; + } + } + return null; + } + + toJson() { + //将树转换为json + return JSON.stringify(this.root, (key, value) => { + if (key === 'children') { + return [...value]; + } + return value; + }); + } +} + +// 敏感词库 +let sensitiveWords = require("./words") + +// 将敏感词库转换为前缀树 +let trie = null; +(function buildTrie(){ + if(!trie){ + trie = new Trie(); + for (const word of sensitiveWords) { + trie.insert(word); + } + let mem = process.memoryUsage(); + let format = function (bytes) { + return (bytes / 1024 / 1024).toFixed(4) + 'MB'; + }; + + console.log({ + heapTotal : format(mem.heapTotal), + heapUsed : format(mem.heapUsed), + rss : format(mem.rss) + }); + } +})() + + +module.exports = { + trie +} \ No newline at end of file diff --git a/src/utils/sensitive/words.js b/src/utils/sensitive/words.js new file mode 100644 index 0000000..8ea3fcc --- /dev/null +++ b/src/utils/sensitive/words.js @@ -0,0 +1 @@ +module.exports = [] \ No newline at end of file diff --git a/src/utils/utils.js b/src/utils/utils.js index fa5c62f..9fba3f1 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -2,6 +2,27 @@ const os = require('os'); const { get_env_config } = require('./../../conf/env_config'); const conf = get_env_config() const crypto = require('crypto'); +const { imageSizeFromFile } = require("image-size/fromFile"); +const musicData = require("music-metadata"); + + +/** + * 获取图片的尺寸 + * @param {*} path + * @returns + **/ +const getImageSize = async function (path) { + return await imageSizeFromFile(path); +} + +/** + * 获取音频的信息 + * @param {*} path + * @returns + */ +const getAudioInfo = async function (path) { + return await musicData.parseFile(path); +} /** * 获取本机ip @@ -211,7 +232,7 @@ _/_ | .___ _/_ ___ ___ ,___,, ,___,, |__/ |__ | |__ [.._.' '.__/| |'---' |'---' | | tl-rtc-app-socket-${conf.version} -Copyright (c) 2024 iamtsm +Copyright (c) 2025 iamtsm MIT License ${".".repeat(process.stdout.columns - 2)} ${".".repeat(process.stdout.columns - 2)} @@ -231,8 +252,8 @@ _/_ | .___ _/_ ___ ___ ,___,, ,___,, | | | ' | | | | | | | | |__/ |__ | |__ [.._.' '.__/| |'---' |'---' | | -tl-rtc-app-socket-${conf.version} ${process.stdout.columns} -Copyright (c) 2024 iamtsm +tl-rtc-app-socket-${conf.version} +Copyright (c) 2025 iamtsm MIT License ${".".repeat(process.stdout.columns - 2)} ${".".repeat(process.stdout.columns - 2)} @@ -252,8 +273,30 @@ _/_ | .___ _/_ ___ ___ ,___,, ,___,, | | | ' | | | | | | | | |__/ |__ | |__ [.._.' '.__/| |'---' |'---' | | -tl-rtc-app-task-${conf.version} ${process.stdout.columns} -Copyright (c) 2024 iamtsm +tl-rtc-app-task-${conf.version} +Copyright (c) 2025 iamtsm +MIT License +${".".repeat(process.stdout.columns - 2)} +${".".repeat(process.stdout.columns - 2)} +${".".repeat(process.stdout.columns - 2)} +`; + console.log(icon); +} + + +function tlConsoleSuperApiIcon(){ + const icon = ` +${".".repeat(process.stdout.columns - 2)} +${".".repeat(process.stdout.columns - 2)} +${".".repeat(process.stdout.columns - 2)} + . . . +_/_ | .___ _/_ ___ ___ ,___,, ,___,, + | | .---' / | | .' ' .---' / | | | | | + | | | ' | | | | | | | | + |__/ |__ | |__ [.._.' '.__/| |'---' |'---' + | | +tl-rtc-app-super-api-${conf.version} +Copyright (c) 2025 iamtsm MIT License ${".".repeat(process.stdout.columns - 2)} ${".".repeat(process.stdout.columns - 2)} @@ -412,6 +455,7 @@ const tlResponseTimeout = function(msg = '', data = {}){ return tlResponse(false, 504, msg, data) } + /** * 检查入库参数 * @param {*} rawAttributes @@ -493,6 +537,27 @@ const checkIsEmail = function(email){ return /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(email) } +/** + * 检测是否是合法的id + * @param {*} id + * @returns + */ +const checkIsId = function(id){ + if(typeof id !== 'number'){ + try{ + id = parseInt(id) + }catch(e){ + return false + } + } + + if(id < 0 || isNaN(id) || id === Infinity){ + return false + } + + return true +} + /** * 检查请求参数内容是否包含攻击或非法字符 * @param {*} params @@ -562,6 +627,153 @@ const generateSaltPassword = function({ } } +/** + * 检查是否是合法的请求参数 + * @param {*} html + * @returns + */ +const sanitizeHTML = function(html) { + // 定义允许的标签及其对应的允许属性,以及属性对应的值的白名单 + const allowedTags = { + div: [], + p: [], + span: ['class'], + b: [], + i: [], + u: [], + br: [], + img: ['src', 'alt', 'title', 'class'], + }; + + const allowedTagsValue = { + span: { + class: ['textarea-at-user-text'], + }, + }; + + return html + // 第一阶段:标签级过滤 + .replace(/<\/?([a-z][a-z0-9]*)(?:[^>]*?)?\/?>/gi, (match, tag) => { + tag = tag.toLowerCase(); + if (allowedTags[tag]) { + return match; // 如果标签是允许的,就保留它 + } + return ''; // 否则删除这个标签 + }) + // 第二阶段:属性过滤 + .replace(/<[^>]+>/g, tag => { + return tag + // 匹配标签内的所有属性 + .replace(/(\s+)([a-z][a-z0-9-]*)(\s*=\s*['"][^'"]*['"])?/gi, (match, space, attribute, value) => { + const tagName = tag.match(/<\/?([a-z]+)/)[1].toLowerCase(); + const allowedAttributes = allowedTags[tagName]; + if (allowedAttributes && allowedAttributes.includes(attribute.toLowerCase())) { + // 如果属性是允许的,检查属性值是否在白名单中 + const allowedValues = allowedTagsValue[tagName] && allowedTagsValue[tagName][attribute]; + let val = '' + if(typeof value === 'string') { + val = value.split('=')[1] + val = val.replace(/['"]/g, '') + } + if (allowedValues && allowedValues.length) { + for (let i = 0; i < allowedValues.length; i++) { + if (val == allowedValues[i]) { + return match; // 如果属性值在白名单中,保留属性 + } + } + } else if (!allowedValues) { + return match; // 如果没有设置白名单,保留属性 + } + } + + return ''; // 否则删除这个属性 + }) + // 删除脚本类的标签 + .replace(/<\/?(script|iframe|object|embed|link|meta).*?>/gi, ''); + }) + // 第三阶段:内容净化 + .replace(/(href|src)=("|')/gi, (match, p1, p2) => { + // 仅处理链接和图片等元素的 href 和 src 属性 + if (p1 === 'href' || p1 === 'src') { + // 仅处理恶意的 javascript: 协议 + return match.replace(/javascript:\s*[^'"]*/gi, ''); // 清除 javascript: 协议 + } + return match; // 对其他属性不做修改 + }) + .replace(/javascript:\s*[^'"]*/gi, '') // 移除 javascript: 开头的 URL + .replace(/&#(\d+);?/g, (m, code) => { + const char = String.fromCharCode(code); + return char === '>' ? '' : m; // 防止编码绕过 + }); +} + +/** + * 移除所有HTML标签 + * @param {*} html + * @returns + */ +const sanitizeAllHTML = function(html) { + // 定义允许的标签及其对应的允许属性 + const allowedTags = { + + }; + + return html + // 第一阶段:标签级过滤 + .replace(/<\/?([a-z][a-z0-9]*)(?:[^>]*?)?\/?>/gi, (match, tag) => { + tag = tag.toLowerCase(); + if (allowedTags[tag]) { + return match; // 如果标签是允许的,就保留它 + } + return ''; // 否则删除这个标签 + }) + // 第二阶段:属性过滤 + .replace(/<[^>]+>/g, tag => { + return tag + // 匹配标签内的所有属性 + .replace(/(\s+)([a-z][a-z0-9-]*)(\s*=\s*['"][^'"]*['"])?/gi, (match, space, attribute, value) => { + const tagName = tag.match(/<\/?([a-z]+)/)[1].toLowerCase(); + const allowedAttributes = allowedTags[tagName]; + if (allowedAttributes && allowedAttributes.includes(attribute.toLowerCase())) { + return match; // 如果属性是允许的,就保留它 + } + return ''; // 否则删除这个属性 + }) + // 删除脚本类的标签 + .replace(/<\/?(script|iframe|object|embed|link|meta).*?>/gi, ''); + }) + // 第三阶段:内容净化 + .replace(/(href|src)=("|')/gi, (match, p1, p2) => { + // 仅处理链接和图片等元素的 href 和 src 属性 + if (p1 === 'href' || p1 === 'src') { + // 仅处理恶意的 javascript: 协议 + return match.replace(/javascript:\s*[^'"]*/gi, ''); // 清除 javascript: 协议 + } + return match; // 对其他属性不做修改 + }) + .replace(/javascript:\s*[^'"]*/gi, '') // 移除 javascript: 开头的 URL + .replace(/&#(\d+);?/g, (m, code) => { + const char = String.fromCharCode(code); + return char === '>' ? '' : m; // 防止编码绕过 + }); +} + +/** + * 获取格式化的日期 + * @param {*} date + * @returns + */ +const getFormattedDate = function(date = new Date()) { + // 获取年份、月份和日期 + const year = date.getFullYear(); + const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要+1 + const day = String(date.getDate()).padStart(2, '0'); + + // 拼接成 yyyyMMdd 格式 + return `${year}${month}${day}`; +} + + module.exports = { getLocalIP, getClientIP, @@ -593,5 +805,12 @@ module.exports = { checkRequestParams, encryptStr, verifyEncryptStr, - tlConsoleTaskIcon + tlConsoleTaskIcon, + checkIsId, + sanitizeHTML, + getFormattedDate, + sanitizeAllHTML, + tlConsoleSuperApiIcon, + getImageSize, + getAudioInfo } \ No newline at end of file diff --git a/system-res/css/component/channel-user.css b/system-res/css/component/channel-user.css new file mode 100644 index 0000000..afe8af0 --- /dev/null +++ b/system-res/css/component/channel-user.css @@ -0,0 +1,252 @@ +/* 频道用户链接样式 */ +.tl-rtc-app-channel-user-link { + color: #1E9FFF; + text-decoration: none; + cursor: pointer; +} + +.tl-rtc-app-channel-user-link:hover { + color: #0d8bdc; + text-decoration: underline; +} + +/* 频道用户侧边栏动画样式 */ +.layui-layer.layui-layer-page[type="page"] { + overflow: hidden !important; +} + +/* 确保侧边栏内容区域的滚动正常 */ +#channel-user-panel { + height: 100%; + overflow-y: auto; + overflow-x: hidden; + position: relative; + z-index: 1; + background-color: #f9f9f9; +} + +#channel-user-panel .layui-card{ + height: 100%; +} + +/* 按钮样式优化 */ +#channel-user-panel .layui-btn-xs { + padding: 0 8px; + height: 24px; + width: 24px; + line-height: 24px; +} + +/* 搜索区域样式 */ +#channel-user-panel .layui-form-pane { + padding: 15px 0; + background-color: #fff; + border-radius: 6px; + box-shadow: 0 1px 2px rgba(0,0,0,0.05); + margin-bottom: 15px; +} + +#channel-user-panel .layui-form-pane .layui-input{ + height: 30px; + line-height: 30px; + border-radius: 4px; +} + +/* 用户列表样式 */ +#channel-user-panel .channel-user-list-container { + padding: 0 5px; +} + +#channel-user-panel .channel-user-list { + list-style: none; + padding: 0; + margin: 0; +} + +#channel-user-panel .channel-user-item { + display: flex; + align-items: center; + padding: 5px 15px; + background-color: #fff; + border-radius: 8px; + margin-bottom: 10px; + box-shadow: 0 1px 3px rgba(0,0,0,0.05); + transition: all 0.2s ease; +} + +#channel-user-panel .channel-user-item:hover { + box-shadow: 0 2px 8px rgba(0,0,0,0.09); + transform: translateY(-2px); +} + +#channel-user-panel .user-avatar { + width: 40px; + height: 40px; + border-radius: 50%; + overflow: hidden; + background-color: #f2f2f2; + flex-shrink: 0; + margin-right: 15px; +} + +#channel-user-panel .user-avatar img { + width: 100%; + height: 100%; + object-fit: cover; +} + +#channel-user-panel .user-info { + flex: 1; + min-width: 0; +} + +#channel-user-panel .user-name-row { + display: flex; + align-items: center; + flex-wrap: wrap; + margin-bottom: 5px; +} + +#channel-user-panel .user-name { + font-size: 15px; + font-weight: 500; + color: #333; + margin: 0 10px 0 0; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +#channel-user-panel .user-tags { + display: flex; + flex-wrap: wrap; + margin-top: 5px; + gap: 6px; +} + +#channel-user-panel .user-role-tag { + background-color: #e6f7ff; + color: #1890ff; + padding: 2px 8px; + border-radius: 12px; + font-size: 12px; + display: inline-block; +} + +#channel-user-panel .user-status-tag { + padding: 2px 8px; + border-radius: 12px; + font-size: 12px; + display: inline-block; +} + +#channel-user-panel .status-normal { + background-color: #f6ffed; + color: #52c41a; +} + +#channel-user-panel .status-offline { + background-color: #f5f5f5; + color: #999; +} + +#channel-user-panel .status-banned { + background-color: #fff2f0; + color: #ff4d4f; +} + +#channel-user-panel .user-meta { + display: flex; + flex-wrap: wrap; + font-size: 12px; + color: #999; + flex-direction: column; +} + +#channel-user-panel .user-id, .user-join-time { + white-space: nowrap; +} + +#channel-user-panel .user-actions { + display: flex; + align-items: center; + margin-left: 15px; +} + +#channel-user-panel .user-detail-btn, .user-kick-btn { + display: flex; + align-items: center; + justify-content: center; + transition: all 0.2s ease; +} + +#channel-user-panel .user-detail-btn:hover { + background-color: #1E9FFF; + color: white; +} + +#channel-user-panel .user-kick-btn:hover { + background-color: #FF5722; + color: white; +} + +/* 空状态和加载样式 */ +#channel-user-panel .layui-icon-face-surprised, +#channel-user-panel .layui-icon-loading { + display: block; + margin: 0 auto 10px; + color: #999; +} + +/* 分页样式 */ +#channel-user-pagination { + background-color: #fff; + padding: 15px; + border-radius: 6px; + box-shadow: 0 1px 2px rgba(0,0,0,0.05); +} + +/* 响应式布局 */ +@media screen and (max-width: 768px) { + #channel-user-panel .user-name-row { + flex-direction: column; + align-items: flex-start; + } + + #channel-user-panel .user-tags { + margin-top: 5px; + } + + #channel-user-panel .user-meta { + flex-direction: column; + gap: 5px; + } + + #channel-user-panel .channel-user-item { + flex-wrap: wrap; + } + + #channel-user-panel .user-actions { + width: 100%; + justify-content: flex-end; + margin-left: 0; + margin-top: 10px; + } + + #channel-user-panel .user-avatar { + width: 40px; + height: 40px; + } +} + +@media screen and (max-width: 576px) { + #channel-user-panel .layui-col-md8, + #channel-user-panel .layui-col-md4 { + width: 100%; + margin-bottom: 10px; + } + + #channel-user-panel .user-actions .layui-btn { + padding: 0 10px; + } +} diff --git a/system-res/css/component/channel.css b/system-res/css/component/channel.css new file mode 100644 index 0000000..7a93dc1 --- /dev/null +++ b/system-res/css/component/channel.css @@ -0,0 +1,101 @@ +/* 频道管理样式 */ +.tl-rtc-app-channel-area { + height: 100%; +} + +.tl-rtc-app-channel-area .layui-card { + height: 100%; + display: flex; + flex-direction: column; +} + +.tl-rtc-app-channel-area .layui-card-body { + flex: 1; + overflow: auto; +} + +.tl-rtc-app-channel-actions { + display: flex; + align-items: center; + gap: 10px; + margin-left: auto; +} + +.tl-rtc-app-channel-actions .layui-input-inline { + width: 200px; + margin-right: 0; + font-size: 12px; +} + +.tl-rtc-app-channel-actions .layui-input-inline input{ + height: 30px; + line-height: 30px; +} + +.tl-rtc-app-channel-form { + padding: 20px; + overflow-y: auto; + height: calc(100% - 40px); +} + +.tl-rtc-app-channel-form .layui-form-label { + width: 80px; +} + +.tl-rtc-app-channel-form .layui-input-block { + margin-left: 110px; +} + +.tl-rtc-app-channel-badge { + padding: 2px 8px; + border-radius: 2px; + font-size: 12px; + color: #fff; +} + +.tl-rtc-app-channel-name { + font-weight: bold; + color: #333; +} + +.tl-rtc-app-channel-flag { + display: inline-block; + padding: 1px 5px; + font-size: 12px; + background-color: #f8f8f8; + border-radius: 2px; + margin-left: 5px; + border: 1px solid #e6e6e6; +} + +/* 频道管理表单响应式调整 */ +@media screen and (max-width: 768px) { + .tl-rtc-app-channel-actions { + flex-direction: column; + align-items: flex-start; + margin-top: 10px; + } + + .tl-rtc-app-channel-actions .layui-input-inline { + width: 100%; + margin-bottom: 10px; + } + + .tl-rtc-app-channel-form .layui-form-label { + width: 90px; + } + + .tl-rtc-app-channel-form .layui-input-block { + margin-left: 120px; + } +} + +@media screen and (max-width: 576px) { + .tl-rtc-app-channel-form .layui-form-label { + width: 70px; + } + + .tl-rtc-app-channel-form .layui-input-block { + margin-left: 100px; + } +} diff --git a/system-res/css/component/company-detail.css b/system-res/css/component/company-detail.css new file mode 100644 index 0000000..e7e08c4 --- /dev/null +++ b/system-res/css/component/company-detail.css @@ -0,0 +1,155 @@ + +/* 企业详情样式 */ +.tl-rtc-app-company-detail { + padding: 20px 0; + height: 100%; + background-color: #f9f9f9; + overflow-y: auto; + overflow-x: hidden; + position: relative; + z-index: 1; +} + +/* 企业详情侧边栏动画样式 */ +.tl-rtc-app-company-detail .layui-layer.layui-layer-page[type="page"] { + overflow: hidden !important; +} + +.tl-rtc-app-company-detail .company-info-card { + background-color: #fff; + border-radius: 8px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); + overflow: hidden; + display: flex; + flex-direction: column; + height: calc(100% - 20px); +} + +.tl-rtc-app-company-detail .company-header { + padding: 0px 20px 20px; + text-align: center; + background-color: #f8f8f8; + border-bottom: 1px solid #eee; +} + +.tl-rtc-app-company-detail .company-logo { + width: 80px; + height: 80px; + margin: 0 auto 15px; + border-radius: 50%; + overflow: hidden; + background-color: #e8e8e8; + display: flex; + align-items: center; + justify-content: center; +} + +.tl-rtc-app-company-detail .company-logo img { + width: 100%; + height: 100%; + object-fit: cover; +} + +.tl-rtc-app-company-detail .company-logo-placeholder { + font-size: 40px; + color: #fff; + background-color: #1E9FFF; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; +} + +.tl-rtc-app-company-detail .company-name { + font-size: 18px; + margin-bottom: 5px; + color: #333; +} + +.tl-rtc-app-company-detail .company-id { + font-size: 12px; + color: #999; +} + +.tl-rtc-app-company-detail .company-body { + padding: 20px; + flex: 1; + overflow-y: auto; +} + +.tl-rtc-app-company-detail .info-item { + margin-bottom: 15px; + display: flex; +} + +.tl-rtc-app-company-detail .info-label { + color: #666; + width: 80px; + flex-shrink: 0; +} + +.tl-rtc-app-company-detail .info-value { + color: #333; + flex: 1; + word-break: break-all; +} + +.tl-rtc-app-company-detail .info-description { + display: block; +} + +.tl-rtc-app-company-detail .info-description .info-label { + display: block; + margin-bottom: 5px; +} + +.tl-rtc-app-company-detail .description { + background-color: #f8f8f8; + padding: 10px; + border-radius: 4px; + min-height: 60px; + margin-top: 5px; + line-height: 1.6; +} + +.tl-rtc-app-company-detail .company-footer { + padding: 15px 20px; + text-align: center; + border-top: 1px solid #eee; +} + +/* 企业链接样式 */ +.tl-rtc-app-company-detail-link { + color: #1E9FFF; + text-decoration: none; + cursor: pointer; +} + +.tl-rtc-app-company-detail-link:hover { + color: #0d8bdc; + text-decoration: underline; +} + +@media screen and (max-width: 576px) { + .tl-rtc-app-company-detail { + padding: 10px; + } + + .tl-rtc-app-company-detail .company-header { + padding: 15px 10px; + } + + .tl-rtc-app-company-detail .company-logo { + width: 60px; + height: 60px; + } + + .tl-rtc-app-company-detail .company-body { + padding: 15px 10px; + } + + .tl-rtc-app-company-detail .info-label { + width: 70px; + } +} diff --git a/system-res/css/component/company.css b/system-res/css/component/company.css new file mode 100644 index 0000000..4dc7064 --- /dev/null +++ b/system-res/css/component/company.css @@ -0,0 +1,67 @@ +/* 企业管理样式 */ +.tl-rtc-app-company-area { + height: 100%; +} + +.tl-rtc-app-company-area .layui-card { + height: 100%; + display: flex; + flex-direction: column; +} + +.tl-rtc-app-company-area .layui-card-body { + flex: 1; + overflow: auto; +} + +.tl-rtc-app-company-actions { + display: flex; + align-items: center; + gap: 10px; + margin-left: auto; +} + +.tl-rtc-app-company-actions .layui-input-inline { + width: 200px; + margin-right: 0; + font-size: 12px; +} + +.tl-rtc-app-company-actions .layui-input-inline input{ + height: 30px; + line-height: 30px; +} + +.tl-rtc-app-company-form { + padding: 20px; + overflow-y: auto; + height: calc(100% - 40px); +} + +.tl-rtc-app-company-form .layui-form-label { + width: 60px; + text-align: right; +} + +.tl-rtc-app-company-form .layui-input-block { + margin-left: 90px; +} + +.tl-rtc-app-company-form .layui-input-block input, +.tl-rtc-app-company-form .layui-input-block textarea { + font-size: 12px; + font-weight: bold; +} + +.tl-rtc-app-company-form .layui-btn { + margin-top: 15px; +} + +/* 图片预览样式 */ +.tl-rtc-app-logo-preview { + max-width: 100px; + max-height: 100px; + margin-top: 5px; + border: 1px solid #e6e6e6; + border-radius: 2px; +} diff --git a/system-res/css/component/login.css b/system-res/css/component/login.css new file mode 100644 index 0000000..f088220 --- /dev/null +++ b/system-res/css/component/login.css @@ -0,0 +1,114 @@ +/* 登录弹窗样式 */ +.tl-rtc-app-login-layer { + border-radius: 4px; + overflow: hidden; +} + +.tl-rtc-app-login-layer .layui-layer-title { + background-color: var(--skin-system-header) !important; + color: var(--skin-system-light-text) !important; + height: 50px; + line-height: 50px; + font-size: 18px; + font-weight: 400; +} + +.tl-rtc-app-login-layer .layui-layer-content { + padding: 30px 20px; +} + +.tl-rtc-app-login-layer .tl-rtc-app-login-form { + max-width: 360px; + margin: 0 auto; +} + +.tl-rtc-app-login-layer .tl-rtc-app-login-header { + text-align: center; + margin-bottom: 30px; +} + +.tl-rtc-app-login-layer .tl-rtc-app-login-logo { + width: 80px; + height: 80px; + margin: 0 auto 15px; +} + +.tl-rtc-app-login-layer .tl-rtc-app-login-title { + font-size: 24px; + font-weight: 500; + color: var(--skin-system-text); + margin: 0; +} + +.tl-rtc-app-login-layer .layui-form-item { + margin-bottom: 20px; +} + +.tl-rtc-app-login-layer .layui-input { + height: 40px; + line-height: 40px; +} + +/* 未登录提示页样式 */ +.tl-rtc-app-login-tip { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + display: flex; + align-items: center; + justify-content: center; + background-color: var(--skin-system-background); +} + +.tl-rtc-app-login-tip-content { + text-align: center; + background-color: var(--skin-system-content); + padding: 40px; + border-radius: 4px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + max-width: 400px; + width: 100%; +} + +.tl-rtc-app-login-tip-logo { + width: 80px; + height: 80px; + margin: 0 auto 20px; +} + +.tl-rtc-app-login-tip-content h2 { + margin: 0 0 10px; + font-size: 24px; + color: var(--skin-system-text); +} + +.tl-rtc-app-login-tip-content p { + margin: 0 0 20px; + color: #666; +} + +/* 登录表单样式增强 */ +.tl-rtc-app-login-form { + padding: 0 15px; +} + +.tl-rtc-app-login-form-item { + margin-bottom: 15px; +} + +.tl-rtc-app-login-form-item label { + display: block; + margin-bottom: 5px; + font-weight: 500; +} + +.tl-rtc-app-login-form-item input { + width: calc(100% - 20px); + height: 38px; + line-height: 38px; + padding: 0 10px; + border: 1px solid #e6e6e6; + border-radius: 2px; +} diff --git a/system-res/css/component/service.css b/system-res/css/component/service.css new file mode 100644 index 0000000..6e01bb2 --- /dev/null +++ b/system-res/css/component/service.css @@ -0,0 +1,187 @@ +/* 服务管理卡片样式 */ +.tl-rtc-app-service-cards { + display: flex; + flex-wrap: wrap; + gap: 20px; + margin-top: 20px; +} + +.tl-rtc-app-service-card { + width: calc(33.33% - 20px); + min-width: 300px; + background-color: var(--skin-system-content); + box-shadow: 0 2px 10px rgba(0,0,0,0.05); + transition: all 0.3s; + overflow: hidden; + border: 1px solid #e6e6e6; + border-radius: 6px; +} + +.tl-rtc-app-service-card:hover { + transform: translateY(-5px); + box-shadow: 0 5px 15px rgba(0,0,0,0.1); +} + +.tl-rtc-app-service-card-header { + padding: 15px 20px; + background-color: #f8f8f8; + border-bottom: 1px solid #eee; +} + +.tl-rtc-app-service-title { + margin: 0; + font-size: 18px; + font-weight: 500; + display: flex; + align-items: center; + gap: 10px; +} + +.tl-rtc-app-service-icon { + font-size: 24px; + color: var(--skin-system-active); +} + +.tl-rtc-app-service-card-body { + padding: 15px 20px; +} + +.tl-rtc-app-service-status { + display: flex; + align-items: center; + margin-bottom: 15px; +} + +.tl-rtc-app-status-dot { + width: 10px; + height: 10px; + border-radius: 50%; + margin-right: 8px; +} + +.tl-rtc-app-status-running { + background-color: var(--skin-layer-msg-success-color); +} + +.tl-rtc-app-status-stopped { + background-color: var(--skin-layer-msg-error-color); +} + +.tl-rtc-app-service-info { + margin-bottom: 15px; + color: #666; + font-size: 14px; +} + +.tl-rtc-app-service-actions { + display: flex; + gap: 10px; +} + +.tl-rtc-app-service-actions button{ + border-radius: 5px; + height: 32px; + line-height: 30px; +} + +/* 服务状态徽章 */ +.tl-rtc-app-service-status-badge { + padding: 4px 8px; + border-radius: 3px; + font-size: 12px; + display: inline-block; + color: #fff; +} + +.tl-rtc-app-service-status-badge.tl-rtc-app-status-running { + background-color: var(--skin-layer-msg-success-color); +} + +.tl-rtc-app-service-status-badge.tl-rtc-app-status-stopped { + background-color: var(--skin-layer-msg-error-color); +} + +/* 服务图标样式 */ +.tl-rtc-app-service-icon-running { + color: var(--skin-layer-msg-success-color); +} + +.tl-rtc-app-service-icon-stopped { + color: var(--skin-layer-msg-error-color); +} + +/* 服务卡片按钮禁用样式 */ +.tl-rtc-app-service-cards .layui-btn[disabled] { + opacity: 0.5; + cursor: not-allowed; +} + +/* 服务卡片样式增强 */ +.tl-rtc-app-service-cards { + display: flex; + flex-wrap: wrap; + gap: 15px; +} + +.tl-rtc-app-service-card-header { + background-color: #f8f8f8; + padding: 10px 15px; + border-bottom: 1px solid #e6e6e6; +} + +.tl-rtc-app-service-card-body { + padding: 15px; +} + +.tl-rtc-app-service-status { + margin-bottom: 10px; + display: flex; + align-items: center; +} + +.tl-rtc-app-service-info { + margin-bottom: 15px; + font-size: 14px; + color: #666; +} + +.tl-rtc-app-service-info p { + margin: 5px 0; +} + +.tl-rtc-app-status-dot { + display: inline-block; + width: 10px; + height: 10px; + border-radius: 50%; + margin-right: 5px; +} + +.tl-rtc-app-status-running { + background-color: #5FB878; +} + +.tl-rtc-app-status-stopped { + background-color: #FF5722; +} + +.tl-rtc-app-service-actions { + display: flex; + gap: 5px; +} + +/* 状态徽章样式 */ +.tl-rtc-app-service-status-badge { + padding: 2px 6px; + border-radius: 2px; + font-size: 12px; + color: #fff; +} + +.tl-rtc-app-service-status-badge.tl-rtc-app-status-running { + background-color: #5FB878; +} + +.tl-rtc-app-service-status-badge.tl-rtc-app-status-stopped { + background-color: #FF5722; +} \ No newline at end of file diff --git a/system-res/css/component/user-detail.css b/system-res/css/component/user-detail.css new file mode 100644 index 0000000..492dc89 --- /dev/null +++ b/system-res/css/component/user-detail.css @@ -0,0 +1,188 @@ +/* 用户详情组件样式 */ +.tl-rtc-app-user-detail { + padding: 0; + height: 100%; + background-color: #fff; + overflow-y: auto; +} + +/* 用户信息卡片样式 */ +.tl-rtc-app-user-detail .user-info-card { + display: flex; + flex-direction: column; + height: 100%; +} + +/* 用户头部区域样式 */ +.tl-rtc-app-user-detail .user-header { + padding: 24px 20px; + text-align: center; + background-color: #f8f8f8; + border-bottom: 1px solid #eee; +} + +/* 用户头像样式 */ +.tl-rtc-app-user-detail .user-avatar { + width: 88px; + height: 88px; + margin: 0 auto 12px; + border-radius: 50%; + overflow: hidden; + background-color: #e1e1e1; + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); +} + +/* 用户头像图片样式 */ +.tl-rtc-app-user-detail .user-avatar img { + width: 100%; + height: 100%; + object-fit: cover; +} + +/* 用户头像占位符样式 */ +.tl-rtc-app-user-detail .user-avatar-placeholder { + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + font-size: 40px; + font-weight: bold; + color: #fff; + background-color: #1E9FFF; +} + +/* 用户名称样式 */ +.tl-rtc-app-user-detail .user-name { + font-size: 20px; + font-weight: 600; + margin-bottom: 6px; + color: #333; +} + +/* 用户ID样式 */ +.tl-rtc-app-user-detail .user-id { + font-size: 13px; + color: #999; + margin: 0; +} + +/* 用户详情主体部分样式 */ +.tl-rtc-app-user-detail .user-body { + padding: 20px; + flex: 1; +} + +/* 信息项目样式 */ +.tl-rtc-app-user-detail .info-item { + display: flex; + margin-bottom: 16px; + line-height: 24px; +} + +/* 信息标签样式 */ +.tl-rtc-app-user-detail .info-label { + width: 90px; + font-weight: 600; + color: #666; + flex-shrink: 0; +} + +/* 信息值样式 */ +.tl-rtc-app-user-detail .info-value { + flex: 1; + color: #333; + word-break: break-all; +} + +/* 用户角色徽章样式 */ +.tl-rtc-app-user-detail .tl-rtc-app-user-role-badge { + display: inline-block; + padding: 2px 8px; + font-size: 12px; + line-height: 18px; + border-radius: 10px; + background-color: #e1f5fe; + color: #0288d1; +} + +/* 链接样式 */ +.tl-rtc-app-user-detail .info-value a { + color: #1E9FFF; + text-decoration: none; + position: relative; +} + +.tl-rtc-app-user-detail .info-value a:hover { + text-decoration: underline; +} + +/* 用户链接样式 */ +.tl-rtc-app-user-detail-link { + color: #1E9FFF; + text-decoration: none; + cursor: pointer; +} + +.tl-rtc-app-user-detail-link:hover { + color: #0d8bdc; + text-decoration: underline; +} + +/* 响应式调整 */ +@media screen and (max-width: 768px) { + .tl-rtc-app-user-detail .user-avatar { + width: 72px; + height: 72px; + } + + .tl-rtc-app-user-detail .user-name { + font-size: 18px; + } + + .tl-rtc-app-user-detail .user-header { + padding: 16px; + } + + .tl-rtc-app-user-detail .user-body { + padding: 16px; + } + + .tl-rtc-app-user-detail .info-label { + width: 80px; + } +} + +/* 细节美化 */ +.tl-rtc-app-user-detail .user-header::after { + content: ''; + display: block; + position: absolute; + bottom: -10px; + left: 0; + right: 0; + height: 10px; + background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent); + pointer-events: none; +} + +/* 滚动条美化 */ +.tl-rtc-app-user-detail::-webkit-scrollbar { + width: 5px; +} + +.tl-rtc-app-user-detail::-webkit-scrollbar-track { + background: #f1f1f1; +} + +.tl-rtc-app-user-detail::-webkit-scrollbar-thumb { + background: #c1c1c1; + border-radius: 5px; +} + +.tl-rtc-app-user-detail::-webkit-scrollbar-thumb:hover { + background: #a0a0a0; +} diff --git a/system-res/css/component/user.css b/system-res/css/component/user.css new file mode 100644 index 0000000..cafd907 --- /dev/null +++ b/system-res/css/component/user.css @@ -0,0 +1,123 @@ +/* 用户管理样式 */ +.tl-rtc-app-user-area { + height: 100%; +} + +.tl-rtc-app-user-area .layui-card { + height: 100%; + display: flex; + flex-direction: column; +} + +.tl-rtc-app-user-area .layui-card-body { + flex: 1; + overflow: auto; +} + +.tl-rtc-app-user-actions { + display: flex; + align-items: center; + gap: 10px; + margin-left: auto; +} + +.tl-rtc-app-user-actions .layui-input-inline { + width: 200px; + margin-right: 0; + font-size: 12px; +} + +.tl-rtc-app-user-actions .layui-input-inline input{ + height: 30px; + line-height: 30px; +} + +.tl-rtc-app-user-form { + padding: 20px; + overflow-y: auto; + height: calc(100% - 40px); +} + +.tl-rtc-app-user-form .layui-form-label { + width: 80px; +} + +.tl-rtc-app-user-form .layui-input-block { + margin-left: 110px; +} + +.tl-rtc-app-avatar-preview { + max-width: 60px; + max-height: 60px; + margin-top: 10px; + border-radius: 4px; + border: 1px solid #e6e6e6; +} + +.tl-rtc-app-user-avatar-sm { + width: 28px; + height: 28px; + border-radius: 50%; + object-fit: cover; + border: 1px solid #eee; +} + +/* 用户角色徽章样式 */ +.tl-rtc-app-user-role-badge { + display: inline-block; + padding: 2px 8px; + font-size: 12px; + border-radius: 10px; + background-color: #e8e8e8; + color: #666; + line-height: 20px; +} + +/* 管理员角色特殊样式 */ +.layui-table-cell .tl-rtc-app-user-role-badge:contains('管理员') { + background-color: #5FB878; + color: #fff; +} + +/* 用户表格头像列样式 */ +.layui-table-cell .tl-rtc-app-user-avatar-sm { + display: block; + margin: 0 auto; +} + +/* 用户管理表单响应式调整 */ +@media screen and (max-width: 768px) { + .tl-rtc-app-user-actions { + flex-direction: column; + align-items: flex-start; + margin-top: 10px; + } + + .tl-rtc-app-user-actions .layui-input-inline { + width: 100%; + margin-bottom: 10px; + } + + .tl-rtc-app-user-form .layui-form-label { + width: 90px; + } + + .tl-rtc-app-user-form .layui-input-block { + margin-left: 120px; + } +} + +@media screen and (max-width: 576px) { + .tl-rtc-app-user-form .layui-form-label { + width: 70px; + } + + .tl-rtc-app-user-form .layui-input-block { + margin-left: 100px; + } + + .tl-rtc-app-avatar-preview { + max-width: 40px; + max-height: 40px; + } +} diff --git a/system-res/css/responsive.css b/system-res/css/responsive.css new file mode 100644 index 0000000..684170c --- /dev/null +++ b/system-res/css/responsive.css @@ -0,0 +1,87 @@ +/* 响应式适配样式 */ + +/* 企业管理响应式样式 */ +@media screen and (max-width: 768px) { + .tl-rtc-app-company-actions { + flex-direction: column; + align-items: flex-start; + margin-top: 10px; + } + + .tl-rtc-app-company-actions .layui-input-inline { + width: 100%; + margin-bottom: 10px; + } + + .tl-rtc-app-company-form .layui-form-label { + width: 80px; + } + + .tl-rtc-app-company-form .layui-input-block { + margin-left: 110px; + } +} + +/* 服务卡片响应式样式 */ +@media screen and (max-width: 910px) { + .tl-rtc-app-service-card { + flex: 0 0 100%; + } +} + +/* 中等屏幕响应式样式 */ +@media screen and (max-width: 768px) { + .tl-rtc-app-content { + padding: 15px 10px; + } + + .tl-rtc-app-service-cards { + gap: 10px; + } +} + +/* 小屏幕响应式样式 */ +@media screen and (max-width: 576px) { + .tl-rtc-app-header-logo h2 { + font-size: 16px; + } + + .tl-rtc-app-user-name { + display: none; + } + + .layui-card-header { + height: auto; + padding: 10px 15px; + } + + .tl-rtc-app-config-save-btn { + margin: 10px 0 0 0; + } + + .layui-btn-group { + margin: 10px 0 0 0 !important; + width: 100%; + } + + .layui-btn-group .layui-btn { + flex: 1; + } + + .layui-table-view { + overflow-x: auto; + } + + .tl-rtc-app-service-actions { + flex-wrap: wrap; + } + + .tl-rtc-app-service-actions .layui-btn { + margin-bottom: 5px; + } +} + +/* 侧边栏响应式处理 */ +@media screen and (max-width: 768px) { + +} diff --git a/system-res/css/system.css b/system-res/css/system.css new file mode 100644 index 0000000..dc0b7ea --- /dev/null +++ b/system-res/css/system.css @@ -0,0 +1,264 @@ +html{ + /* layer消息提示配色 */ + --skin-layer-msg-background: #f6f6f6; + --skin-layer-msg-color: #000000; + --skin-layer-msg-success-color: #04dd04; + --skin-layer-msg-warning-color: #bfbf5d; + --skin-layer-msg-error-color: #ff0000; + + /* 系统管理配色 */ + --skin-system-background: #f2f2f2; + --skin-system-header: #393D49; + --skin-system-sidebar: #23262E; + --skin-system-content: #ffffff; + --skin-system-active: #2d3938; + --skin-system-hover: #616e65; + --skin-system-text: #333333; + --skin-system-light-text: #f2f2f2; +} + +body { + margin: 0; + padding: 0; + font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif; + background-color: var(--skin-system-background); +} + +/* 卡片样式调整 */ +.layui-card { + margin-bottom: 20px; + border-radius: 4px; + box-shadow: 0 2px 10px rgba(0,0,0,0.05); +} + +.layui-card-header { + display: flex; + justify-content: space-between; + align-items: center; + height: 50px; + line-height: 50px; + font-size: 16px; + font-weight: 500; +} + +/* 表格样式调整 */ +.layui-table { + margin-top: 0; +} + + +/* 系统管理容器样式 */ +.tl-rtc-app-system-container { + width: 100%; + height: 100vh; + display: flex; + flex-direction: column; + transition: all 0.3s; +} + +/* 顶部导航样式 */ +.tl-rtc-app-header { + height: 60px; + background-color: var(--skin-system-header); + color: var(--skin-system-light-text); + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 20px; + box-shadow: 0 2px 10px rgba(0,0,0,0.1); + z-index: 1000; +} + +.tl-rtc-app-header-logo h2 { + margin: 0; + font-size: 20px; + font-weight: 400; +} + +.tl-rtc-app-header-user { + position: relative; + cursor: pointer; +} + +.tl-rtc-app-user-info { + display: flex; + align-items: center; + gap: 10px; +} + +.tl-rtc-app-user-avatar { + width: 35px; + height: 35px; + border-radius: 50%; + object-fit: cover; +} + +.tl-rtc-app-user-name { + margin: 0 5px; +} + +/* 用户信息下拉面板 */ +.tl-rtc-app-user-panel { + position: absolute; + top: 50px; + right: 0; + width: 240px; + background-color: var(--skin-system-content); + border-radius: 10px; + box-shadow: 0px 20px 20px rgb(0 0 0 / 10%); + z-index: 1001; + overflow: hidden; +} + +.tl-rtc-app-panel-header { + padding: 15px; + background-color: #f8f8f8; + display: flex; + align-items: center; + gap: 15px; +} + +.tl-rtc-app-panel-avatar { + width: 50px; + height: 50px; + border-radius: 50%; + object-fit: cover; +} + +.tl-rtc-app-panel-info { + flex: 1; +} + +.tl-rtc-app-panel-name { + font-size: 16px; + font-weight: 500; + margin: 0 0 5px 0; + color: var(--skin-system-text); +} + +.tl-rtc-app-panel-role { + margin: 0; + font-size: 12px; + color: #999; +} + +.tl-rtc-app-panel-footer { + padding: 10px 15px; + text-align: right; + border-top: 1px solid #eee; +} + +/* 主体内容区样式 */ +.tl-rtc-app-main { + flex: 1; + display: flex; + overflow: hidden; +} + +/* 侧边栏样式 */ +.tl-rtc-app-sidebar { + width: 220px; + background-color: var(--skin-system-sidebar); + overflow-y: auto; + transition: all 0.3s; + position: relative; +} + +.tl-rtc-app-sidebar .layui-nav { + width: 100%; + background-color: transparent; +} + +.tl-rtc-app-sidebar .layui-nav-item > a { + display: flex; + align-items: center; + gap: 8px; + padding: 0 20px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.layui-nav-tree .layui-nav-item a:hover{ + background-color: var(--skin-system-hover); +} + +.layui-nav-tree .layui-nav-item a{ + height: 50px; + line-height: 50px; +} + +.tl-rtc-app-sidebar .layui-icon { + font-size: 16px; +} + +.tl-rtc-app-sidebar .layui-nav-tree .layui-nav-child dd.layui-this, +.tl-rtc-app-sidebar .layui-nav-tree .layui-nav-child dd.layui-this a, +.tl-rtc-app-sidebar .layui-nav-tree .layui-this, +.tl-rtc-app-sidebar .layui-nav-tree .layui-this>a { + background-color: var(--skin-system-active); +} + +.layui-nav-itemed>.layui-nav-child{ + background: #000000 !important; +} + +/* 侧边栏收缩状态 */ +.tl-rtc-app-sidebar-collapsed { + width: 60px; +} + +.tl-rtc-app-sidebar-collapsed .tl-rtc-app-nav-text { + display: none; +} + +.tl-rtc-app-sidebar-collapsed .layui-nav-item > a { + padding-right: 0; + text-align: center; +} + +.tl-rtc-app-sidebar-collapsed .layui-nav-item > a > i { + margin-right: 0; + font-size: 18px; +} + +/* 侧边栏收缩切换按钮 */ +.tl-rtc-app-sidebar-toggle { + position: absolute; + bottom: 15px; + width: 100%; + text-align: center; + cursor: pointer; + color: #aaa; + transition: all 0.3s; + padding: 10px 0; +} + +.tl-rtc-app-sidebar-toggle:hover { + color: #fff; + background-color: var(--skin-system-hover); +} + +.tl-rtc-app-sidebar-toggle .layui-icon { + font-size: 18px; +} + +/* 内容区域样式 */ +.tl-rtc-app-content { + flex: 1; + padding: 20px; + overflow-y: auto; +} + +.tl-rtc-app-config-save-btn { + margin-left: auto; +} + +.layui-form-select dl{ + background-color: #ffffff !important; +} + +.layui-btn-sm{ + height: 32px !important; + line-height: 30px !important; +} \ No newline at end of file diff --git a/web-v2-res/image/default-avatar.png b/system-res/image/default-avatar.png similarity index 100% rename from web-v2-res/image/default-avatar.png rename to system-res/image/default-avatar.png diff --git a/web-v2-res/image/tl-open-source-icon.png b/system-res/image/tl-open-source-icon.png similarity index 100% rename from web-v2-res/image/tl-open-source-icon.png rename to system-res/image/tl-open-source-icon.png diff --git a/web-v2-res/image/tl-open-source-logo.png b/system-res/image/tl-open-source-logo.png similarity index 100% rename from web-v2-res/image/tl-open-source-logo.png rename to system-res/image/tl-open-source-logo.png diff --git a/web-v2-res/image/tlrtcapp-logo.svg b/system-res/image/tlrtcapp-logo.svg similarity index 100% rename from web-v2-res/image/tlrtcapp-logo.svg rename to system-res/image/tlrtcapp-logo.svg diff --git a/system-res/js/component/channel-user.js b/system-res/js/component/channel-user.js new file mode 100644 index 0000000..cf8a18c --- /dev/null +++ b/system-res/js/component/channel-user.js @@ -0,0 +1,260 @@ +Vue.component('channel-user-component', { + props: { + isLogin: { + type: Boolean, + required: true + } + }, + data() { + return { + channelUserSidebarIndex: null, // 频道用户侧边栏索引 + channelId: null, // 当前频道ID + channelName: '', // 当前频道名称 + userList: [], // 频道用户列表 + loading: false, // 加载状态 + pagination: { // 分页信息 + page: 1, + limit: 6, + total: 0 + }, + search: { // 搜索条件 + keyword: '' + } + }; + }, + methods: { + /** + * 显示频道用户侧边栏 + * @param {number} channelId 频道ID + * @param {string} channelName 频道名称(可选) + */ + showChannelUserList: async function(channelId, channelName = '') { + if (!this.isLogin) return; + + this.channelId = channelId; + this.channelName = channelName; + this.pagination.page = 1; + this.search.keyword = ''; + + // 打开侧边栏 + const that = this; + this.channelUserSidebarIndex = layer.open({ + type: 1, + title: `频道用户列表${this.channelName ? ' - ' + this.channelName : ''}`, + area: ['400px', '100%'], + offset: 'r', + anim: 5, + move: false, + shadeClose: 1, + content: ` +
+
+
+ +
+
+
+ +
+
+ + +
+
+
+ + +
+
+ +

正在加载...

+
+
+ +

暂无用户数据

+
+
+
    +
  • +
    + +
    + + +
  • +
+ + +
+
+
+
+
+
+ `, + success: async function(layero, index) { + // 设置初始样式 + layero.css({ + 'border-radius': '0', + 'overflow': 'hidden', + }); + + $(layero).find('.layui-layer-content').css({ + 'overflow': 'hidden', + }); + + layero.find('.layui-layer-title').css({ + 'background': '#ffffff', + 'border-bottom': '1px solid #f0f0f0' + }); + + new Vue({ + 'el': '#channel-user-panel', + data: that.$data, + methods: that.$options.methods, + }) + + // 加载频道用户列表 + await that.loadChannelUsers(); + }, + end: function() { + // 重置数据 + that.userList = []; + that.channelUserSidebarIndex = null; + } + }); + }, + + /** + * 加载频道用户列表 + */ + loadChannelUsers: async function() { + if (!this.channelId) return; + + try { + this.loading = true; + + const params = { + channelId: this.channelId, + page: this.pagination.page, + limit: this.pagination.limit + }; + + if (this.search.keyword) { + params.keyword = this.search.keyword; + } + + const { data: response } = await axios.get('/api/web/system-web-channel/get-channel-user-list', { + params: params + }); + + this.loading = false; + + if (!response.success) { + this.popWarningMsg(response.msg || '获取频道用户列表失败'); + return; + } + + this.userList = response.data.list || []; + this.pagination.total = response.data.count || 0; + + // 延迟渲染分页 + this.$nextTick(() => { + this.renderPagination(); + }); + + } catch (error) { + console.error('加载频道用户列表失败:', error); + this.popErrorMsg('加载频道用户列表失败,请重试'); + this.loading = false; + } + }, + + /** + * 渲染分页组件 + */ + renderPagination: function() { + const that = this; + + laypage.render({ + elem: 'channel-user-pagination', + count: this.pagination.total, + limit: this.pagination.limit, + curr: this.pagination.page, + layout: ['count', 'prev', 'page', 'next'], + jump: function(obj, first) { + // 首次不执行 + if (!first) { + that.pagination.page = obj.curr; + that.loadChannelUsers(); + } + } + }); + }, + + /** + * 搜索用户 + */ + searchUsers: function() { + this.pagination.page = 1; + this.loadChannelUsers(); + }, + + /** + * 刷新用户列表 + */ + refreshUsers: function() { + this.loadChannelUsers(); + }, + + /** + * 查看用户详情 + * @param {Object} user 用户信息 + */ + viewUserDetail: function(user) { + const companyId = user.companyId; + const userId = user.userId; + + if (companyId && userId) { + window.subModule.$emit('show-user-detail', companyId, userId); + } + }, + + /** + * 格式化时间显示 + * @param {string} timestamp 时间戳 + * @returns {string} 格式化后的时间 + */ + formatTime: function(timestamp) { + return window.util.timeAgo(timestamp); + } + }, + mounted() { + window.subModule.$on('show-channel-user', this.showChannelUserList); + }, + beforeDestroy() { + window.subModule.$off('show-channel-user', this.showChannelUserList); + }, +}); diff --git a/system-res/js/component/channel.js b/system-res/js/component/channel.js new file mode 100644 index 0000000..313c76c --- /dev/null +++ b/system-res/js/component/channel.js @@ -0,0 +1,614 @@ +Vue.component('channel-component', { + props: { + isLogin: { + type: Boolean, + required: true + } + }, + data() { + return { + channelTable: null, // 频道表格实例 + channelDialog: null, // 频道编辑对话框 + channelForm: { // 频道表单数据 + id: 0, // 0表示新增,其他表示编辑 + companyId: 0, + userId: 0, + canSearch: false, + channelName: '' + }, + channelSearch: { // 频道搜索条件 + keyword: '', + }, + // 频道类型选项 + channelTypeOptions: [ + { id: 1, name: '群聊' }, + { id: 2, name: '好友' }, + { id: 3, name: '卡片' }, + { id: 4, name: '客服' }, + { id: 5, name: '匿名' }, + { id: 6, name: 'AI助手' }, + ], + // 企业列表(用于选择频道所属企业) + companyOptions: [], + // 用户列表(用于选择频道所属用户) + userOptions: [] + }; + }, + methods: { + /** + * 初始化频道管理模块 + */ + init: async function() { + if (!this.isLogin) return; + + try { + // 获取企业列表(用于频道选择企业) + await this.fetchCompanyOptions(); + // 获取用户列表(用于频道选择用户) + await this.fetchUserOptions(); + // 初始化频道表格 + await this.initChannelTable(); + + this.$nextTick(() => { + form.render(); + }); + } catch (error) { + console.error('初始化频道管理失败:', error); + this.popErrorMsg('初始化频道管理失败,请刷新重试'); + } + }, + + /** + * 获取企业列表选项 + */ + fetchCompanyOptions: async function() { + try { + const { data: companyRes } = await axios.get('/api/web/system-web-company/get-company-list', { + params: { page: 1, limit: 100 } + }); + + if (!companyRes.success) { + this.popWarningMsg(companyRes.msg || '获取企业列表失败'); + return; + } + + if (companyRes.data && companyRes.data.list) { + this.companyOptions = companyRes.data.list.map(company => { + return { + id: company.id, + name: company.name + }; + }); + } + } catch (error) { + console.error('获取企业列表失败:', error); + this.popErrorMsg('获取企业列表失败,请重试'); + } + }, + + /** + * 获取用户列表选项 + * @param {number} companyId 企业ID,如果提供则筛选指定企业下的用户 + */ + fetchUserOptions: async function(companyId) { + try { + const params = { page: 1, limit: 100 }; + + // 如果提供了企业ID,则按企业筛选用户 + if (companyId) { + params.companyId = companyId; + } + + const { data: userRes } = await axios.get('/api/web/system-web-user/get-user-list', { + params: params + }); + + if (!userRes.success) { + this.popWarningMsg(userRes.msg || '获取用户列表失败'); + return; + } + + if (userRes.data && userRes.data.list) { + this.userOptions = userRes.data.list.map(user => { + return { + id: user.id, + name: user.name || user.nickname || user.username + }; + }); + } + } catch (error) { + console.error('获取用户列表失败:', error); + this.popErrorMsg('获取用户列表失败,请重试'); + } + }, + + /** + * 初始化频道管理表格 + */ + initChannelTable: function() { + if (this.channelTable) { + this.channelTable.reload(); + return; + } + + const that = this; + this.channelTable = table.render({ + elem: '#channel-table', + url: '/api/web/system-web-channel/get-channel-list', + method: 'get', + where: { + keyword: this.channelSearch.keyword + }, + page: true, + cols: [[ + {field: 'id', title: 'ID', width: 80, sort: true, fixed: 'left'}, + {field: 'channelName', title: '频道名称', width: 150, fixed: 'left'}, + { + field: 'companyName', title: '所属企业', width: 250, + templet: function(d) { + // 点击企业名称打开右侧侧边栏企业详情 + if(d.companyId && d.companyName.length > 0){ + return `${d.companyName}`; + }else{ + return ` + + 企业已删除 + + ` + } + } + }, + { + field: 'channelUserCount', title: '用户数量', width: 100, + templet: function(d) { + // 点击数量打开右侧侧边栏频道用户列表 + if(d.channelUserCount){ + return ` + + ${d.channelUserCount} + + `; + }else{ + return d.channelUserCount; + } + } + }, + { + field: 'type', + title: '频道类型', + width: 90, + templet: function(d){ + let domStr = ''; + return `${d.typeStr}` + } + }, + { + field: 'canSearch', + title: '群聊可搜索', + width: 120, + templet: function(d) { + if(d.type !== 1){ + return `--` + } + return `${d.canSearch ? '是': '否'}` + + } + }, + { + field: 'status', + title: '状态', + width: 80, + templet: function(d) { + return d.status === 1 ? + '正常' : + '异常'; + } + }, + { + field: 'createTime', + title: '创建时间', + sort: true, + templet: function(d) { + return window.util.timeAgo(d.createTime); + }, + }, + {fixed: 'right', title: '操作', toolbar: '#channel-table-ops', width: 90} + ]], + parseData: function(res) { + if (!res.success) { + this.popErrorMsg(res.msg || '获取频道列表失败'); + return { + "code": 1, + "msg": res.msg || '获取频道列表失败', + "count": 0, + "data": [] + }; + } + return { + "code": 0, + "msg": "", + "count": res.data.count, + "data": res.data.list + }; + }, + }); + + // 监听表格工具条 + table.on('tool(channel-table)', function(obj) { + const data = obj.data; + const event = obj.event; + + if (event === 'edit') { + that.showEditChannelDialog(data); + } else if (event === 'del') { + that.deleteChannel(data); + } + }); + + // 监听企业名称链接点击事件 + $('.tl-rtc-app-channel-area').on('click', '.tl-rtc-app-company-detail-link', function(e) { + e.preventDefault(); + const companyId = $(this).data('id'); + if (companyId) { + window.subModule.$emit('show-company-detail', companyId); + } + }); + + // 监听频道用户列表链接点击事件 + $('.tl-rtc-app-channel-area').on('click', '.tl-rtc-app-user-detail-link', function(e) { + e.preventDefault(); + const channelId = $(this).data('id'); + const channelName = $(this).data('name'); + if (channelId) { + window.subModule.$emit('show-channel-user', channelId, channelName); + } + }); + }, + + /** + * 搜索频道 + */ + searchChannels: function() { + if (!this.channelTable) { + this.initChannelTable(); + return; + } + + this.channelTable.reload({ + where: { + keyword: this.channelSearch.keyword + }, + page: { + curr: 1 + } + }); + }, + + /** + * 显示添加频道对话框 + */ + showAddChannelDialog: function() { + // 重置表单 + this.channelForm = { + id: 0, + companyId: 0, // 默认不指定企业 + userId: 0, // 默认不指定用户 + canSearch: false, + channelName: '', + type: 1, // 默认群聊 + status: 1, // 默认正常 + }; + + this.showChannelDialog('创建频道'); + }, + + /** + * 显示编辑频道对话框 + * @param {Object} channel 频道数据 + */ + showEditChannelDialog: function(channel) { + // 填充表单 + this.channelForm = { + id: channel.id, + companyId: channel.companyId || 0, + userId: channel.userId || 0, + canSearch: channel.canSearch || false, + channelName: channel.channelName || '', + type: channel.type || 1, + status: channel.status || 1, + }; + + this.showChannelDialog('编辑频道'); + }, + + /** + * 显示频道对话框(添加/编辑) + * @param {string} title 对话框标题 + */ + showChannelDialog: function(title) { + const that = this; + // 是否新增 + const isAdd = this.channelForm.id === 0; + // 是否群组 + const isGroup = this.channelForm.type === 1; + + // 构建企业下拉选项 + let companyOptionsHtml = ''; + this.companyOptions.forEach(company => { + const selected = company.id === this.channelForm.companyId ? 'selected' : ''; + companyOptionsHtml += ``; + }); + + // 构建频道类型下拉选项 + let typeOptionsHtml = ''; + this.channelTypeOptions.forEach(type => { + const selected = type.id === this.channelForm.type ? 'selected' : ''; + typeOptionsHtml += ``; + }); + + // 构建用户下拉选项 + let userOptionsHtml = ''; + this.userOptions.forEach(user => { + const selected = user.id === this.channelForm.userId ? 'selected' : ''; + userOptionsHtml += ``; + }); + + // 是否可搜索复选框状态 + const canSearchChecked = (this.channelForm.canSearch) ? 'checked' : ''; + + this.channelDialog = layer.open({ + type: 1, + title: title, + shadeClose: 1, + area: ['630px', '660px'], + content: ` +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ `, + btn: ['确认', '取消'], + success: function(layero) { + form.render(null, 'channel-form'); + + // 监听企业选择变化事件 + form.on('select(companySelect)', function(data) { + const companyId = parseInt(data.value); + if (companyId) { + // 根据选择的企业加载用户 + that.loadUsersByCompany(companyId); + } else { + // 清空用户选择 + $('#userSelect').empty().append(''); + form.render('select'); + } + }); + + layero.css({ + 'border-radius': '6px', + }); + }, + yes: function() { + // 获取表单数据 + const formData = { + id: that.channelForm.id, + companyId: parseInt($('select[name="companyId"]').val() || 0), + userId: parseInt($('select[name="userId"]').val() || 0), + channelName: $('input[name="channelName"]').val(), + }; + + const canSearch = $('input[name="canSearch"]').prop('checked'); + formData.canSearch = canSearch + + // 保存频道信息 + that.saveChannel(formData); + } + }); + }, + + /** + * 根据企业ID加载用户列表 + * @param {number} companyId 企业ID + */ + loadUsersByCompany: async function(companyId) { + try { + let loadingIndex = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + await this.fetchUserOptions(companyId); + + layer.close(loadingIndex); + + // 更新用户选择下拉框 + let userSelect = $('#userSelect'); + userSelect.empty(); + userSelect.append(''); + + this.userOptions.forEach(user => { + userSelect.append(``); + }); + + // 重新渲染表单 + form.render('select'); + } catch (error) { + console.error('加载企业用户失败:', error); + this.popErrorMsg('加载企业用户失败,请重试'); + layer.closeAll('loading'); + } + }, + + /** + * 保存频道信息 + * @param {Object} formData 表单数据 + */ + saveChannel: async function(formData) { + try { + // 表单验证 + if (!formData.channelName) { + this.popWarningMsg('频道名称不能为空'); + return; + } + + if (!formData.companyId) { + this.popWarningMsg('请选择所属企业'); + return; + } + + let index = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const isEdit = formData.id > 0; + const apiUrl = isEdit ? + '/api/web/system-web-channel/update-channel' : + '/api/web/system-web-channel/add-channel'; + + if(!isEdit){ + delete formData.id; + } + + const { data: saveRes } = await axios.post(apiUrl, formData); + + layer.close(index); + + if (!saveRes.success) { + this.popErrorMsg(saveRes.msg || (isEdit ? '更新频道失败' : '创建频道失败')); + return; + } + + this.popSuccessMsg(isEdit ? '更新频道成功' : '创建频道成功'); + + // 关闭对话框 + if (this.channelDialog) { + layer.close(this.channelDialog); + } + + // 刷新表格 + this.channelTable.reload(); + + } catch (error) { + console.error('保存频道失败:', error); + this.popErrorMsg('保存频道失败,请重试'); + layer.closeAll('loading'); + } + }, + + /** + * 删除频道 + * @param {number} id 频道ID + */ + deleteChannel: async function(data) { + const that = this; + + let acceptOrReject = await new Promise(resolve => { + layer.confirm('确定要删除该频道吗?此操作不可恢复!', { + shadeClose: 1, + success: function(layero, index){ + layero.css({ + 'border-radius': '6px', + }); + } + }, function (index) { + layer.close(index); + resolve(true); + }, function (index) { + resolve(false); + }); + }); + + if(!acceptOrReject){ + return; + } + + try { + let loadingIndex = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const { data: delRes } = await axios.post('/api/web/system-web-channel/delete-channel', { + id: parseInt(data.id), + companyId: parseInt(data.companyId) + }); + + layer.close(loadingIndex); + + if (!delRes.success) { + this.popErrorMsg(delRes.msg || '删除频道失败'); + return; + } + + this.popSuccessMsg('删除频道成功'); + + // 刷新表格 + this.channelTable.reload(); + + } catch (error) { + console.error('删除频道失败:', error); + this.popErrorMsg('删除频道失败,请重试'); + layer.closeAll('loading'); + } + }, + }, + mounted() { + this.init(); + }, + template: ` +
+
+
+ 频道管理 +
+
+ +
+ + +
+
+
+ +
+
+
+
+ ` +}); diff --git a/system-res/js/component/company-detail.js b/system-res/js/component/company-detail.js new file mode 100644 index 0000000..84c5bf1 --- /dev/null +++ b/system-res/js/component/company-detail.js @@ -0,0 +1,159 @@ +/** + * 企业详情组件 + * 提供企业详情查询和侧边栏显示功能 + */ +Vue.component('company-detail', { + data() { + return { + // 当前查看的企业详情 + currentCompany: null, + // 企业详情侧边栏索引 + companySidebarIndex: null, + // 是否正在加载 + loading: false + }; + }, + methods: { + /** + * 获取企业详情 + * @param {number} companyId 企业ID + * @returns {Promise} 企业详情对象,获取失败则返回null + */ + getCompanyDetail: async function(companyId) { + if (this.loading) return null; + + this.loading = true; + try { + const loadIndex = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const { data: res } = await axios.get('/api/web/system-web-company/get-company-info', { + params: { id: companyId } + }); + + layer.close(loadIndex); + + if (!res.success) { + this.popWarningMsg(res.msg || '获取企业详情失败'); + return null; + } + + return res.data; + } catch (error) { + console.error('获取企业详情失败:', error); + this.popErrorMsg('获取企业详情失败,请重试'); + return null; + } finally { + this.loading = false; + } + }, + + /** + * 显示企业详情侧边栏 + * @param {number} companyId 企业ID + */ + showCompanyDetail: async function(companyId) { + // 先获取企业详情 + const companyDetail = await this.getCompanyDetail(companyId); + + if (!companyDetail) return; + + this.currentCompany = companyDetail; + + // 渲染企业详情到侧边栏 + const that = this; + + this.companySidebarIndex = layer.open({ + type: 1, + title: '企业详情', + area: ['400px', '100%'], + offset: 'r', + move: false, + anim: 5, + shadeClose: true, + content: ` +
+
+
+ +

{{ currentCompany ? currentCompany.name : '' }}

+

ID: {{ currentCompany ? currentCompany.id : '' }}

+
+ +
+
+ 邀请码: + {{ currentCompany.code || '未设置' }} +
+
+ 联系电话: + {{ currentCompany.phone || '未设置' }} +
+
+ 联系邮箱: + {{ currentCompany.email || '未设置' }} +
+
+ 联系地址: + {{ currentCompany.address || '未设置' }} +
+
+ 官网地址: + {{ currentCompany.website || '未设置' }} +
+
+ 认证状态: + {{ currentCompany.authStatus ? '已认证' : '未认证' }} +
+
+ 创建时间: + {{ window.util.timeAgo(currentCompany.createTime) }} +
+
+ 企业简介: +
{{ currentCompany.description || '暂无企业简介' }}
+
+
+
+
+ `, + end: function() { + // 重置组件状态 + that.currentCompany = null; + }, + success: function(layero, index) { + // 设置初始样式 + layero.css({ + 'border-radius': '0', + 'overflow': 'hidden', + }); + + $(layero).find('.layui-layer-content').css({ + 'overflow': 'hidden', + }); + + $(layero).find('.layui-layer-title').css({ + 'background-color': '#f8f8f8', + 'border-bottom': '1px solid #eee' + }); + + new Vue({ + 'el': '#tl-rtc-app-company-detail', + data: that.$data, + methods: that.$options.methods, + }) + } + }); + }, + }, + mounted() { + window.subModule.$on('show-company-detail', this.showCompanyDetail); + }, + beforeDestroy() { + window.subModule.$off('show-company-detail', this.showCompanyDetail); + } +}); diff --git a/system-res/js/component/company.js b/system-res/js/component/company.js new file mode 100644 index 0000000..e8fc4e1 --- /dev/null +++ b/system-res/js/component/company.js @@ -0,0 +1,485 @@ +Vue.component('company-component', { + props: { + isLogin: { + type: Boolean, + required: true + } + }, + data() { + return { + companyTable: null, // 企业表格实例 + companyDialog: null, // 企业编辑对话框 + companyForm: { // 企业表单数据 + id: 0, // 0表示新增,其他表示编辑 + code: '', + name: '', + address: '', + phone: '', + email: '', + website: '', + logo: '', + description: '', + expiredStatus: false, + authStatus: false, + createTime: '' + }, + companySearch: { // 企业搜索条件 + keyword: '', + } + }; + }, + methods: { + /** + * 初始化企业管理模块 + */ + init: async function() { + if (!this.isLogin) return; + + try { + await this.initCompanyTable(); + + this.$nextTick(() => { + form.render(); + }); + } catch (error) { + console.error('初始化企业管理失败:', error); + this.popErrorMsg('初始化企业管理失败,请刷新重试'); + } + }, + + /** + * 初始化企业管理表格 + */ + initCompanyTable: function() { + if (this.companyTable) { + this.companyTable.reload(); + return; + } + + const that = this; + this.companyTable = table.render({ + elem: '#company-table', + url: '/api/web/system-web-company/get-company-list', + method: 'get', + where: { + keyword: this.companySearch.keyword + }, + page: true, + cols: [[ + {field: 'id', title: 'ID', width: 60, sort: true, fixed: 'left'}, + {field: 'code', title: '邀请码', width: 120, fixed: 'left'}, + {field: 'name', title: '企业名称', width: 250}, + {field: 'phone', title: '联系电话', width: 150}, + {field: 'email', title: '企业邮箱', width: 150}, + {field: 'website', title: '企业网站', width: 150}, + {field: 'description', title: '企业描述', width: 180}, + // { + // field: 'authStatus', + // title: '认证状态', + // width: 100, + // templet: function(d){ + // return ` + // + // `; + // } + // }, + { + field: 'createTime', + title: '创建时间', + sort: true, + templet: function(d) { + return window.util.timeAgo(d.createTime); + } + }, + {fixed: 'right', title: '操作', toolbar: '#company-table-ops', width: 90} + ]], + parseData: function(res) { + if (!res.success) { + this.popErrorMsg(res.msg || '获取企业列表失败'); + return { + "code": 1, + "msg": res.msg || '获取企业列表失败', + "count": 0, + "data": [] + }; + } + return { + "code": 0, + "msg": "", + "count": res.data.count, + "data": res.data.list + }; + }, + }); + + // 监听表格工具条 + table.on('tool(company-table)', function(obj) { + const data = obj.data; + const event = obj.event; + + if (event === 'edit') { + that.showEditCompanyDialog(data); + } else if (event === 'del') { + that.deleteCompany(data.id); + } + }); + + // 监听认证状态切换 + form.on('switch(company-auth-filter)', function(data) { + const companyId = parseInt(data.value); + const checked = data.elem.checked; + that.updateCompanyAuthStatus(companyId, checked); + }); + }, + + /** + * 搜索企业 + */ + searchCompanies: function() { + if (!this.companyTable) { + this.initCompanyTable(); + return; + } + + this.companyTable.reload({ + where: { + keyword: this.companySearch.keyword + }, + page: { + curr: 1 + } + }); + }, + + /** + * 显示添加企业对话框 + */ + showAddCompanyDialog: function() { + // 重置表单 + this.companyForm = { + id: 0, + code: '', + name: '', + address: '', + phone: '', + email: '', + website: '', + logo: '', + description: '', + expiredStatus: false, + authStatus: false + }; + + this.showCompanyDialog('添加企业'); + }, + + /** + * 显示编辑企业对话框 + * @param {Object} company 企业数据 + */ + showEditCompanyDialog: function(company) { + // 填充表单 + this.companyForm = { + id: company.id, + code: company.code, + name: company.name, + address: company.address || '', + phone: company.phone || '', + email: company.email || '', + website: company.website || '', + logo: company.logo || '', + description: company.description || '', + authStatus: company.authStatus || false, + expiredStatus: company.expiredStatus || false + }; + + this.showCompanyDialog('编辑企业'); + }, + + /** + * 显示企业对话框(添加/编辑) + * @param {string} title 对话框标题 + */ + showCompanyDialog: function(title) { + const that = this; + + let isAdd = this.companyForm.id === 0; + + this.companyDialog = layer.open({ + type: 1, + title: title, + shadeClose: 1, + area: ['630px', '660px'], + content: ` +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ `, + btn: ['确认', '取消'], + success: function(layero) { + form.render(null, 'company-form'); + + layero.css({ + 'border-radius': '6px', + }); + + form.on('switch', function(data){ + if(data.elem.name === 'authStatus'){ + that.companyForm.authStatus = data.elem.checked; + }else if(data.elem.name === 'expiredStatus'){ + that.companyForm.expiredStatus = data.elem.checked; + } + }); + }, + yes: function() { + // 获取表单数据 + const formData = { + id: that.companyForm.id, + code: $('input[name="code"]').val(), + name: $('input[name="name"]').val(), + address: $('input[name="address"]').val(), + phone: $('input[name="phone"]').val(), + email: $('input[name="email"]').val(), + website: $('input[name="website"]').val(), + logo: $('input[name="logo"]').val(), + description: $('textarea[name="description"]').val(), + authStatus: that.companyForm.authStatus, + expiredStatus: that.companyForm.expiredStatus + }; + + // 保存企业信息 + that.saveCompany(formData); + } + }); + }, + + /** + * 保存企业信息 + * @param {Object} formData 表单数据 + */ + saveCompany: async function(formData) { + try { + if (!formData.name) { + this.popWarningMsg('企业名称不能为空'); + return; + } + + let index = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const isEdit = formData.id > 0; + const apiUrl = isEdit ? + '/api/web/system-web-company/update-company' : + '/api/web/system-web-company/add-company'; + + const { data: saveRes } = await axios.post(apiUrl, formData); + + layer.close(index); + + if (!saveRes.success) { + this.popErrorMsg(saveRes.msg || (isEdit ? '更新企业失败' : '创建企业失败')); + return; + } + + this.popSuccessMsg(isEdit ? '更新企业成功' : '创建企业成功'); + + // 关闭对话框 + if (this.companyDialog) { + layer.close(this.companyDialog); + } + + // 刷新表格 + this.companyTable.reload(); + + } catch (error) { + console.error('保存企业失败:', error); + this.popErrorMsg('保存企业失败,请重试'); + layer.closeAll('loading'); + } + }, + + /** + * 删除企业 + * @param {number} id 企业ID + */ + deleteCompany: async function(id) { + const that = this; + + let acceptOrReject = await new Promise(resolve => { + layer.confirm('确定要删除该企业吗?此操作不可恢复!', { + shadeClose: 1, + success: function(layero, index){ + layero.css({ + 'border-radius': '6px', + }); + } + }, function (index) { + layer.close(index); + resolve(true); + }, function (index) { + resolve(false); + }); + }); + + if(!acceptOrReject){ + return; + } + + try { + let loadingIndex = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const { data: delRes } = await axios.post('/api/web/system-web-company/delete-company', { id }); + + layer.close(loadingIndex); + + if (!delRes.success) { + this.popErrorMsg(delRes.msg || '删除企业失败'); + return; + } + + this.popSuccessMsg('删除企业成功'); + + // 刷新表格 + this.companyTable.reload(); + + } catch (error) { + console.error('删除企业失败:', error); + this.popErrorMsg('删除企业失败,请重试'); + layer.closeAll('loading'); + } + }, + + /** + * 更新企业认证状态 + * @param {number} id 企业ID + * @param {boolean} status 认证状态 + */ + updateCompanyAuthStatus: async function(id, status) { + try { + let index = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const { data: updateRes } = await axios.post('/api/web/system-web-company/update-auth-status', { + id, + status + }); + + layer.close(index); + + if (!updateRes.success) { + this.popErrorMsg(updateRes.msg || '更新认证状态失败'); + // 更新失败时,重新加载表格以恢复原状态 + this.companyTable.reload(); + return; + } + + this.popSuccessMsg('更新认证状态成功'); + + } catch (error) { + console.error('更新认证状态失败:', error); + this.popErrorMsg('更新认证状态失败,请重试'); + layer.closeAll('loading'); + // 错误时重新加载表格以恢复原状态 + this.companyTable.reload(); + } + } + }, + mounted() { + this.init(); + }, + template: ` +
+
+
+ 企业管理 +
+
+ +
+ + +
+
+
+ +
+
+
+
+ ` +}); diff --git a/system-res/js/component/config.js b/system-res/js/component/config.js new file mode 100644 index 0000000..8a036e9 --- /dev/null +++ b/system-res/js/component/config.js @@ -0,0 +1,256 @@ +Vue.component('config-component', { + props: { + isLogin: { + type: Boolean, + required: true + } + }, + data() { + return { + activeConfigTab: 'redis', // 当前激活的配置Tab + + // 配置信息 + redisConfig: {}, // Redis配置 + webrtcConfig: {}, // WebRTC配置 + mysqlConfig: {}, // MySQL配置 + emailConfig: {}, // 邮件配置 + + // 配置项定义 - 从后端获取 + configDefinitions: {} + }; + }, + computed: { + /** + * 获取当前配置Tab的标题 + */ + currentConfigTitle: function() { + const titles = { + 'redis': 'Redis配置', + 'webrtc': 'WebRTC配置', + 'mysql': 'MySQL配置', + 'email': '邮件配置', + }; + + return titles[this.activeConfigTab] || '系统配置'; + }, + + /** + * 当前激活的配置定义 + */ + activeConfigDef: function() { + return this.configDefinitions[this.activeConfigTab] || null; + }, + + /** + * 当前激活的配置数据 + */ + activeConfigData: function() { + if (!this.activeConfigDef) return null; + return this[this.activeConfigDef.configKey] || {}; + } + }, + watch: { + activeConfigTab: function(newVal) { + this.$nextTick(() => { + form.render(); // 重新渲染表单元素,特别是checkbox等需要layui处理的元素 + layui.element.render('tab'); // 重新渲染tab组件 + }); + }, + configDefinitions: { + handler: function(newVal) { + this.$nextTick(() => { + // 如果没有选中的配置项,默认选中第一个 + if (!this.activeConfigDef && Object.keys(newVal).length > 0) { + this.activeConfigTab = Object.keys(newVal)[0]; + } + + layui.element.render('tab'); // 配置数据变更后重新渲染tab + }); + }, + deep: true + } + }, + methods: { + /** + * 初始化配置页面 + */ + init: async function() { + if (!this.isLogin) return; + + try { + // 获取配置信息 + await this.fetchConfigs(); + + this.$nextTick(() => { + form.render(); + }); + } catch (error) { + console.error('初始化配置页面失败:', error); + this.popErrorMsg('初始化配置页面失败,请刷新重试'); + } + }, + + /** + * 获取配置信息 + */ + fetchConfigs: async function() { + try { + const { data: configRes } = await axios.get('/api/web/system-web-config/get-system-config'); + + if (!configRes.success) { + this.popErrorMsg(configRes.msg || '获取配置失败'); + return; + } + + // 更新各项配置 + this.redisConfig = configRes.data.redisConfig || {}; + this.webrtcConfig = configRes.data.webrtcConfig || {}; + this.mysqlConfig = configRes.data.mysqlConfig || {}; + this.emailConfig = configRes.data.emailConfig || {}; + + // 从后端获取配置定义 + this.configDefinitions = configRes.data.configDefinitions || {}; + + // 数据加载完成后,确保tab正确渲染 + this.$nextTick(() => { + layui.element.render('tab'); + }); + + } catch (error) { + console.error('获取配置失败:', error); + this.popErrorMsg('获取配置失败,请重试'); + } + }, + + /** + * 保存当前配置 + * 根据当前激活的配置Tab保存相应配置 + */ + saveCurrentConfig: async function() { + if (!this.isLogin) { + this.popWarningMsg('请先登录'); + this.$emit('show-login'); + return; + } + + if (!this.activeConfigDef) { + this.popWarningMsg('请选择要保存的配置项'); + return; + } + + let acceptOrReject = await new Promise(resolve => { + layer.confirm('确认更新' + this.currentConfigTitle, { + shadeClose: 1, + success: function(layero, index){ + layero.css({ + 'border-radius': '6px', + }); + } + }, function (index) { + layer.close(index); + resolve(true); + }, function (index) { + resolve(false); + }); + }); + + if(!acceptOrReject){ + return; + } + + try { + const configKey = this.activeConfigDef.configKey; + const configData = {}; + configData[configKey] = this.activeConfigData; + + // 调用保存API + const { data: saveRes } = await axios.post('/api/web/system-web-config/update-system-config', configData); + + if (!saveRes.success) { + this.popErrorMsg(saveRes.msg || '保存配置失败'); + return; + } + + this.popSuccessMsg('保存配置成功'); + + } catch (error) { + console.error('保存配置失败:', error); + this.popErrorMsg('保存配置失败,请重试'); + } + } + }, + mounted() { + this.init(); + + form.render(); + + // 组件挂载后确保tab正确初始化 + this.$nextTick(() => { + layui.element.render('tab'); + }); + }, + template: ` +
+ +
+
+
+
    +
  • + {{ item.title }} +
  • +
+
+
+
+ + +
+
+ {{ activeConfigDef.title }} + 请选择配置项 + +
+
+ + + + + + + + + + + + + + + + + + + + + +
参数名参数值说明
{{ field.label }} + + + + + {{ field.desc }}
+
请选择配置项目
+
+
+
+ ` +}); diff --git a/system-res/js/component/service.js b/system-res/js/component/service.js new file mode 100644 index 0000000..64369be --- /dev/null +++ b/system-res/js/component/service.js @@ -0,0 +1,341 @@ +Vue.component('service-component', { + props: { + isLogin: { + type: Boolean, + required: true + } + }, + data() { + return { + services: [] // 服务列表 + }; + }, + methods: { + /** + * 初始化服务管理模块 + */ + init: async function() { + if (!this.isLogin) return; + + try { + // 获取服务状态 + await this.fetchServiceStatus(); + + } catch (error) { + console.error('初始化服务管理失败:', error); + this.popErrorMsg('初始化服务管理失败,请刷新重试'); + } + }, + + /** + * 获取服务状态 + */ + fetchServiceStatus: async function() { + let index = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + try { + const { data: statusRes } = await axios.get('/api/web/system-web-service/get-service-status'); + + if (!statusRes.success) { + this.popWarningMsg(statusRes.msg || '获取服务状态失败'); + layer.close(index); + return; + } + + if (statusRes.data && statusRes.data.processList) { + // 使用API返回的完整进程列表 + this.services = statusRes.data.processList.map(proc => { + // 计算可读的内存大小 + const memory = this.formatMemorySize(proc.monit.memory); + + return { + ...proc, // 保留原始属性 + id: proc.name, // 为了兼容旧代码 + isRunning: proc.status === 'online', + displayStatus: proc.status === 'online' ? '运行中' : '已停止', + displayMemory: memory, + displayCpu: proc.monit.cpu.toFixed(1) + '%' + }; + }); + + layer.close(index); + } else { + this.popWarningMsg('服务状态数据格式不正确'); + layer.close(index); + } + } catch (error) { + console.error('获取服务状态失败:', error); + this.popWarningMsg('获取服务状态失败,请重试'); + layer.close(index); + } + }, + + /** + * 格式化内存大小显示 + * @param {number} bytes - 内存字节数 + * @returns {string} 格式化后的内存大小 + */ + formatMemorySize: function(bytes) { + if (bytes === 0) return '0 B'; + + const units = ['B', 'KB', 'MB', 'GB', 'TB']; + const i = Math.floor(Math.log(bytes) / Math.log(1024)); + + return (bytes / Math.pow(1024, i)).toFixed(2) + ' ' + units[i]; + }, + + /** + * 服务操作 - 启动服务 + * @param {Object} service - 服务对象 + */ + startService: async function(service) { + if (!this.isLogin) { + this.popWarningMsg('请先登录'); + this.$emit('show-login'); + return; + } + + let acceptOrReject = await new Promise(resolve => { + layer.confirm('确认启动' + service.name + '服务', { + shadeClose: 1, + success: function(layero, index){ + layero.css({ + 'border-radius': '6px', + }); + } + }, function (index) { + layer.close(index); + resolve(true); + }, function (index) { + resolve(false); + }); + }); + + if(!acceptOrReject){ + return; + } + + try { + let index = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const { data: startRes } = await axios.post('/api/web/system-web-service/start-service', { + serviceName: service.name + }); + + layer.close(index); + + if (!startRes.success) { + this.popErrorMsg(startRes.msg || `启动${service.name}失败`); + return; + } + + this.popSuccessMsg(`${service.name}启动成功`); + + // 重新获取最新状态 + await this.fetchServiceStatus(); + + } catch (error) { + console.error(`启动${service.name}失败:`, error); + this.popErrorMsg(`启动${service.name}失败,请重试`); + layer.closeAll('loading'); + } + }, + + /** + * 服务操作 - 停止服务 + * @param {Object} service - 服务对象 + */ + stopService: async function(service) { + if (!this.isLogin) { + this.popWarningMsg('请先登录'); + this.$emit('show-login'); + return; + } + + let acceptOrReject = await new Promise(resolve => { + layer.confirm('确认停止' + service.name + '服务', { + shadeClose: 1, + success: function(layero, index){ + layero.css({ + 'border-radius': '6px', + }); + } + }, function (index) { + layer.close(index); + resolve(true); + }, function (index) { + resolve(false); + }); + }); + + if(!acceptOrReject){ + return; + } + + try { + let index = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const { data: stopRes } = await axios.post('/api/web/system-web-service/stop-service', { + serviceName: service.name + }); + + layer.close(index); + + if (!stopRes.success) { + this.popErrorMsg(stopRes.msg || `停止${service.name}失败`); + return; + } + + this.popSuccessMsg(`${service.name}停止成功`); + + // 重新获取最新状态 + await this.fetchServiceStatus(); + + } catch (error) { + console.error(`停止${service.name}失败:`, error); + this.popErrorMsg(`停止${service.name}失败,请重试`); + layer.closeAll('loading'); + } + }, + + /** + * 服务操作 - 重启服务 + * @param {Object} service - 服务对象 + */ + restartService: async function(service) { + if (!this.isLogin) { + this.popWarningMsg('请先登录'); + this.$emit('show-login'); + return; + } + + let acceptOrReject = await new Promise(resolve => { + layer.confirm('确认重启' + service.name + '服务', { + shadeClose: 1, + success: function(layero, index){ + layero.css({ + 'border-radius': '6px', + }); + } + }, function (index) { + layer.close(index); + resolve(true); + }, function (index) { + resolve(false); + }); + }); + + if(!acceptOrReject){ + return; + } + + let index = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + try { + const { data: restartRes } = await axios.post('/api/web/system-web-service/restart-service', { + serviceName: service.name + }); + + layer.close(index); + + if (!restartRes.success) { + this.popErrorMsg(restartRes.msg || `重启${service.name}失败`); + return; + } + + this.popSuccessMsg(`${service.name}重启成功`); + + // 重新获取最新状态 + await this.fetchServiceStatus(); + + } catch (error) { + console.error(`重启${service.name}失败:`, error); + this.popErrorMsg(`重启${service.name}失败,请重试`); + layer.closeAll('loading'); + } + }, + + /** + * 检查服务状态图标 + * @param {Object} service - 服务对象 + * @returns {string} - 服务状态图标类名 + */ + adminGetServiceStatusIcon: function(service) { + return service.status === 'online' ? + 'layui-icon-console tl-rtc-app-service-icon-running' : + 'layui-icon-close-fill tl-rtc-app-service-icon-stopped'; + }, + + /** + * 获取服务状态类名 + * @param {Object} service - 服务对象 + * @returns {string} - 服务状态类名 + */ + adminGetServiceStatusClass: function(service) { + return service.status === 'online' ? 'tl-rtc-app-status-running' : 'tl-rtc-app-status-stopped'; + } + }, + mounted() { + this.init(); + }, + template: ` +
+
+
+ 服务管理 + +
+
+ +
+
+
+

+ + {{ service.name }} +

+
+
+
+ + 当前状态: {{ service.displayStatus }} +
+
+

PID: {{ service.pid || '-' }}

+

内存占用: {{ service.displayMemory }}

+

CPU占用: {{ service.displayCpu }}

+
+
+ + + +
+
+
+
+ + +
+ 暂无服务数据,请刷新重试 +
+
+
+
+ ` +}); \ No newline at end of file diff --git a/system-res/js/component/user-detail.js b/system-res/js/component/user-detail.js new file mode 100644 index 0000000..e334da2 --- /dev/null +++ b/system-res/js/component/user-detail.js @@ -0,0 +1,175 @@ +/** + * 用户详情组件 + * 提供用户详情查询和侧边栏显示功能 + */ +Vue.component('user-detail', { + data() { + return { + // 当前查看的用户详情 + currentUser: null, + // 用户详情侧边栏索引 + userSidebarIndex: null, + // 是否正在加载 + loading: false + }; + }, + methods: { + /** + * 获取用户详情 + * @param {number} userId 用户ID + * @param {number} companyId 企业ID + * @returns {Promise} 用户详情对象,获取失败则返回null + */ + getUserDetail: async function(companyId, userId) { + if (this.loading) return null; + + this.loading = true; + try { + const loadIndex = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const { data: res } = await axios.get('/api/web/system-web-user/get-user-info', { + params: { + companyId: companyId, + id: userId + } + }); + + layer.close(loadIndex); + + if (!res.success) { + this.popWarningMsg(res.msg || '获取用户详情失败'); + return null; + } + + return res.data; + } catch (error) { + console.error('获取用户详情失败:', error); + this.popErrorMsg('获取用户详情失败,请重试'); + return null; + } finally { + this.loading = false; + } + }, + + /** + * 显示用户详情侧边栏 + * @param {number} companyId 企业ID + * @param {number} userId 用户ID + */ + showUserDetail: async function(companyId, userId) { + // 先获取用户详情 + const userDetail = await this.getUserDetail(companyId, userId); + + if (!userDetail) return; + + this.currentUser = userDetail; + + // 渲染用户详情到侧边栏 + const that = this; + this.userSidebarIndex = layer.open({ + type: 1, + title: '用户详情', + area: ['400px', '100%'], + offset: 'r', + move: false, + anim: 5, + shadeClose: true, + content: ` +
+ +
+ `, + end: function() { + // 重置组件状态 + that.currentUser = null; + }, + success: function(layero, index) { + // 设置初始样式 + layero.css({ + 'border-radius': '0', + 'overflow': 'hidden', + }); + + $(layero).find('.layui-layer-content').css({ + 'overflow': 'hidden', + }); + + $(layero).find('.layui-layer-title').css({ + 'background-color': '#f8f8f8', + 'border-bottom': '1px solid #eee' + }); + + new Vue({ + 'el': '#tl-rtc-app-user-detail', + data: that.$data, + methods: that.$options.methods, + }) + } + }); + }, + /** + * 格式化日期时间 + * @param {string} dateString 日期字符串 + * @returns {string} 格式化后的日期时间 + */ + formatDateTime: function(dateString) { + if (!dateString) return '未知'; + return window.util.timeAgo(dateString); + }, + /** + * 显示企业详情 + * @param {number} companyId 企业ID + * @returns {void} + * */ + showCompanyDetail(companyId) { + window.subModule.$emit('show-company-detail', companyId); + } + }, + mounted() { + window.subModule.$on('show-user-detail', this.showUserDetail); + }, + beforeDestroy() { + window.subModule.$off('show-user-detail', this.showUserDetail); + }, +}); diff --git a/system-res/js/component/user.js b/system-res/js/component/user.js new file mode 100644 index 0000000..e671113 --- /dev/null +++ b/system-res/js/component/user.js @@ -0,0 +1,520 @@ +Vue.component('user-component', { + props: { + isLogin: { + type: Boolean, + required: true + } + }, + data() { + return { + userTable: null, // 用户表格实例 + userDialog: null, // 用户编辑对话框 + userForm: { // 用户表单数据 + id: 0, // 0表示新增,其他表示编辑 + companyId: 0, + name: '', + password: '', + email: '', + mobile: '', + avatarUrl: '', + roleId: 0, + }, + userSearch: { // 用户搜索条件 + keyword: '', + }, + // 角色选项 + roleOptions: [ + { id: 1, name: '普通用户' }, + { id: 3, name: '演示用户' }, + { id: 20000, name: '官网用户' }, + ], + // 企业列表(用于选择用户所属企业) + companyOptions: [] + }; + }, + methods: { + /** + * 初始化用户管理模块 + */ + init: async function() { + if (!this.isLogin) return; + + try { + // 获取企业列表(用于用户选择企业) + await this.fetchCompanyOptions(); + // 初始化用户表格 + await this.initUserTable(); + + this.$nextTick(() => { + form.render(); + }); + } catch (error) { + console.error('初始化用户管理失败:', error); + this.popErrorMsg('初始化用户管理失败,请刷新重试'); + } + }, + + /** + * 获取企业列表选项 + */ + fetchCompanyOptions: async function() { + try { + const { data: companyRes } = await axios.get('/api/web/system-web-company/get-company-list', { + params: { page: 1, limit: 100 } + }); + + if (!companyRes.success) { + this.popWarningMsg(companyRes.msg || '获取企业列表失败'); + return; + } + + if (companyRes.data && companyRes.data.list) { + this.companyOptions = companyRes.data.list.map(company => { + return { + id: company.id, + name: company.name + }; + }); + } + } catch (error) { + console.error('获取企业列表失败:', error); + this.popErrorMsg('获取企业列表失败,请重试'); + } + }, + + /** + * 初始化用户管理表格 + */ + initUserTable: function() { + if (this.userTable) { + this.userTable.reload(); + return; + } + + const that = this; + this.userTable = table.render({ + elem: '#user-table', + url: '/api/web/system-web-user/get-user-list', + method: 'get', + where: { + keyword: this.userSearch.keyword + }, + page: true, + cols: [[ + {field: 'id', title: 'ID', width: 60, sort: true, fixed: 'left'}, + { + field: 'avatarUrl', + title: '头像', + width: 60, + fixed: 'left', + templet: function(d) { + return d.avatarUrl ? + `头像` : + `头像`; + } + }, + { + field: 'name', + title: '用户名', + width: 150, + fixed: 'left', + templet: function(d) { + // 添加用户名点击事件,显示用户详情 + return ` + + ${d.name} + + `; + } + }, + { + field: 'companyName', title: '所属企业', width: 250, + templet: function(d) { + // 点击企业名称打开右侧侧边栏企业详情 + if(d.companyId && d.companyName.length > 0){ + return `${d.companyName}`; + }else{ + return ` + + 企业已删除 + + ` + } + } + }, + { + field: 'roleName', + title: '角色', + width: 100, + templet: function(d) { + return `${d.roleName}`; + } + }, + {field: 'email', title: '邮箱', width: 150}, + {field: 'mobile', title: '手机', width: 150}, + { + field: 'createTime', + title: '注册时间', + sort: true, + templet: function(d) { + return window.util.timeAgo(d.createTime); + } + }, + {fixed: 'right', title: '操作', toolbar: '#user-table-ops', width: 90} + ]], + parseData: function(res) { + if (!res.success) { + this.popErrorMsg(res.msg || '获取用户列表失败'); + return { + "code": 1, + "msg": res.msg || '获取用户列表失败', + "count": 0, + "data": [] + }; + } + return { + "code": 0, + "msg": "", + "count": res.data.count, + "data": res.data.list + }; + }, + }); + + // 监听表格工具条 + table.on('tool(user-table)', function(obj) { + const data = obj.data; + const event = obj.event; + + if (event === 'edit') { + that.showEditUserDialog(data); + } else if (event === 'del') { + that.deleteUser(data); + } + }); + + // 监听企业名称链接点击事件 + $('.tl-rtc-app-user-area').on('click', '.tl-rtc-app-company-detail-link', function(e) { + e.preventDefault(); + const companyId = $(this).data('id'); + if (companyId) { + window.subModule.$emit('show-company-detail', companyId); + } + }); + + // 监听用户名称链接点击事件 + $('.tl-rtc-app-user-area').on('click', '.tl-rtc-app-user-detail-link', function(e) { + e.preventDefault(); + const userId = $(this).data('id'); + const companyId = $(this).data('company-id'); + if (userId && companyId) { + window.subModule.$emit('show-user-detail', companyId, userId); + } + }); + }, + + /** + * 搜索用户 + */ + searchUsers: function() { + if (!this.userTable) { + this.initUserTable(); + return; + } + + this.userTable.reload({ + where: { + keyword: this.userSearch.keyword + }, + page: { + curr: 1 + } + }); + }, + + /** + * 显示添加用户对话框 + */ + showAddUserDialog: function() { + // 重置表单 + this.userForm = { + id: 0, + companyId: this.companyOptions.length > 0 ? this.companyOptions[0].id : 0, + name: '', + password: '', + email: '', + mobile: '', + avatarUrl: '', + roleId: 1, // 默认为普通用户 + }; + + this.showUserDialog('添加用户'); + }, + + /** + * 显示编辑用户对话框 + * @param {Object} user 用户数据 + */ + showEditUserDialog: function(user) { + // 填充表单 + this.userForm = { + id: user.id, + companyId: user.companyId || 0, + name: user.name || '', + password: '', // 编辑时不显示密码 + email: user.email || '', + mobile: user.mobile || '', + avatarUrl: user.avatarUrl || '', + roleId: user.roleId || 1, + }; + + this.showUserDialog('编辑用户'); + }, + + /** + * 显示用户对话框(添加/编辑) + * @param {string} title 对话框标题 + */ + showUserDialog: function(title) { + const that = this; + const isAdd = this.userForm.id === 0; + + // 构建企业下拉选项 + let companyOptionsHtml = ''; + this.companyOptions.forEach(company => { + const selected = company.id === this.userForm.companyId ? 'selected' : ''; + companyOptionsHtml += ``; + }); + + // 构建角色下拉选项 + let roleOptionsHtml = ''; + this.roleOptions.forEach(role => { + const selected = role.id === this.userForm.roleId ? 'selected' : ''; + roleOptionsHtml += ``; + }); + + this.userDialog = layer.open({ + type: 1, + title: title, + shadeClose: 1, + area: ['630px', '660px'], + content: ` +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + ${this.userForm.avatarUrl ? `头像预览` : ''} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ `, + btn: ['确认', '取消'], + success: function(layero) { + form.render(null, 'user-form'); + + layero.css({ + 'border-radius': '6px', + }); + }, + yes: function() { + // 获取表单数据 + const formData = { + id: that.userForm.id, + companyId: parseInt($('select[name="companyId"]').val() || 0), + name: $('input[name="name"]').val(), + password: $('input[name="password"]').val(), + email: $('input[name="email"]').val(), + mobile: $('input[name="mobile"]').val(), + avatarUrl: $('input[name="avatarUrl"]').val(), + roleId: parseInt($('select[name="roleId"]').val() || 1), + }; + + // 保存用户信息 + that.saveUser(formData); + } + }); + }, + + /** + * 保存用户信息 + * @param {Object} formData 表单数据 + */ + saveUser: async function(formData) { + try { + // 表单验证 + if (!formData.name) { + this.popWarningMsg('用户名不能为空'); + return; + } + + if (formData.id === 0 && !formData.password) { + this.popWarningMsg('新增用户时密码不能为空'); + return; + } + + if (!formData.companyId) { + this.popWarningMsg('请选择所属企业'); + return; + } + + let index = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const isEdit = formData.id > 0; + const apiUrl = isEdit ? + '/api/web/system-web-user/update-user' : + '/api/web/system-web-user/add-user'; + + const { data: saveRes } = await axios.post(apiUrl, formData); + + layer.close(index); + + if (!saveRes.success) { + this.popErrorMsg(saveRes.msg || (isEdit ? '更新用户失败' : '创建用户失败')); + return; + } + + this.popSuccessMsg(isEdit ? '更新用户成功' : '创建用户成功'); + + // 关闭对话框 + if (this.userDialog) { + layer.close(this.userDialog); + } + + // 刷新表格 + this.userTable.reload(); + + } catch (error) { + console.error('保存用户失败:', error); + this.popErrorMsg('保存用户失败,请重试'); + layer.closeAll('loading'); + } + }, + + /** + * 删除用户 + * @param {object} userInfo 用户信息 + */ + deleteUser: async function(userInfo) { + const that = this; + + let acceptOrReject = await new Promise(resolve => { + layer.confirm('确定要删除该用户吗?此操作不可恢复!', { + shadeClose: 1, + success: function(layero, index){ + layero.css({ + 'border-radius': '6px', + }); + } + }, function (index) { + layer.close(index); + resolve(true); + }, function (index) { + resolve(false); + }); + }); + + if(!acceptOrReject){ + return; + } + + try { + let loadingIndex = layer.load(2, { + shade: [0.3, '#0000001f'] + }); + + const { data: delRes } = await axios.post('/api/web/system-web-user/delete-user', { + id: userInfo.id, + companyId: userInfo.companyId + }); + + layer.close(loadingIndex); + + if (!delRes.success) { + this.popErrorMsg(delRes.msg || '删除用户失败'); + return; + } + + this.popSuccessMsg('删除用户成功'); + + // 刷新表格 + this.userTable.reload(); + + } catch (error) { + console.error('删除用户失败:', error); + this.popErrorMsg('删除用户失败,请重试'); + layer.closeAll('loading'); + } + } + }, + mounted() { + this.init(); + }, + template: ` +
+
+
+ 用户管理 + +
+
+ +
+
+
+
+ ` +}); diff --git a/system-res/js/system.js b/system-res/js/system.js new file mode 100644 index 0000000..20d9b86 --- /dev/null +++ b/system-res/js/system.js @@ -0,0 +1,324 @@ +window.subModule = new Vue() + +const loadJs = function (url, callback) { + let script = document.createElement('script'), + fn = callback || function () { }; + script.type = 'text/javascript'; + //IE + if (script.readyState) { + script.onreadystatechange = function () { + if (script.readyState == 'loaded' || script.readyState == 'complete') { + script.onreadystatechange = null; + fn(); + } + }; + } else { + //其他浏览器 + script.onload = function () { + fn(); + }; + } + script.src = url; + document.getElementsByTagName('head')[0].appendChild(script); +} + + +const loadSystemJs = function(){ + layui.use([ + 'element', 'layer', 'form', 'table', 'util', 'laypage' + ], async function () { + window.layer = layui.layer; + window.form = layui.form; + window.$ = layui.$; + window.element = layui.element; + window.table = layui.table; + window.util = layui.util; + window.laypage = layui.laypage; + + /** + * 获取登录状态 + * 初始化系统登录信息 + */ + let { data: loginStateRes } = await axios.get("/api/web/user-login/system-login-state"); + let isLogin = loginStateRes.success; + let username = loginStateRes.data?.loginUsername || ''; + let userAvatar = loginStateRes.data?.loginUserAvatar || ''; + let token = loginStateRes.data?.token || ''; + + if(isLogin && token){ + window.localStorage.setItem('token', token); + } + + Vue.prototype.emitSubModuleEvent = async function ({ + event = "", + data = {}, + }){ + return new Promise((resolve, reject) => { + window.subModule.$emit(event, Object.assign(data, { + callback: function(res){ + resolve(res) + } + })) + }) + } + + Vue.prototype.popSuccessMsg = async function ( + msg + ){ + return await this.emitSubModuleEvent({ + event: 'component-popup-add-toast-msg', + data: { + type: 'success', + message: msg + } + }) + } + + Vue.prototype.popWarningMsg = async function ( + msg + ){ + return await this.emitSubModuleEvent({ + event: 'component-popup-add-toast-msg', + data: { + type: 'warning', + message: msg + } + }) + } + + Vue.prototype.popErrorMsg = async function ( + msg + ){ + return await this.emitSubModuleEvent({ + event: 'component-popup-add-toast-msg', + data: { + type: 'error', + message: msg + } + }) + } + + Vue.prototype.tlRequest = async function ({ + url, method, params, data, headers, + useCache, cacheTime, delCaches, responseType + }){ + return await this.emitSubModuleEvent({ + event: 'component-api-request', + data: { + url, method, params, data, headers, + useCache, cacheTime, delCaches, responseType + } + }) + } + + // 系统管理页面Vue实例 + let app = new Vue({ + el: '#tl-rtc-app-system', + data: { + isLogin: isLogin, // 是否已登录 + username: username, // 用户名 + userAvatar: userAvatar, // 用户头像 + showUserPanel: false, // 显示用户面板 + activeTab: '', // 当前激活的Tab + sidebarCollapsed: false,// 侧边栏是否收缩 + loginForm: { // 登录表单 + username: '', + password: '' + } + }, + watch: { + activeTab: function(newVal) { + // 在标签切换时更新layui元素的渲染 + this.$nextTick(() => { + element.render('nav'); + }); + }, + // 监听侧边栏收缩状态变化,持久化保存 + sidebarCollapsed: function(newVal) { + localStorage.setItem('tl_rtc_app_sidebar_collapsed', newVal ? '1' : '0'); + } + }, + methods: { + /** + * 初始化页面 + */ + initPage: async function() { + if (!this.isLogin){ + this.showLoginDialog(); + return; + } + + // 初始化element UI + this.$nextTick(() => { + element.render('nav'); + form.render(); + }); + }, + /** + * 显示登录对话框 + */ + showLoginDialog: function() { + const that = this; + this.loginForm = { + username: '', + password: '' + }; + + layer.open({ + type: 1, + title: '管理员登录', + closeBtn: 1, + shadeClose: true, + area: ['450px', '330px'], + skin: 'tl-rtc-app-login-layer', + content: ` + + `, + btn: ['登录', '取消'], + success: function(layero) { + layero.css({ + 'border-radius': '6px', + }); + + // 添加回车键登录支持 + const passwordInput = document.getElementById('password'); + const usernameInput = document.getElementById('username'); + + if (passwordInput) { + passwordInput.addEventListener('keyup', function(e) { + if (e.key === 'Enter') { + that.login(); + } + }); + } + + if (usernameInput) { + usernameInput.focus(); + usernameInput.addEventListener('keyup', function(e) { + if (e.key === 'Enter') { + passwordInput && passwordInput.focus(); + } + }); + } + }, + yes: async function(index) { + that.loginForm.username = $('#username').val(); + that.loginForm.password = $('#password').val(); + await that.login(); + layer.close(index); + } + }); + }, + /** + * 用户登录 + */ + login: async function() { + try { + // 检查表单 + if (!this.loginForm.username || !this.loginForm.password) { + this.popWarningMsg('用户名和密码不能为空'); + return; + } + + // 调用登录API + const { data: loginRes } = await axios.post('/api/web/user-login/login-by-system', { + email: Base64.encode(this.loginForm.username), + password: Base64.encode(this.loginForm.password) + }); + + if (!loginRes.success) { + this.popErrorMsg(loginRes.msg || '登录失败'); + return; + } + + // 保存Token + if (loginRes.data && loginRes.data.token) { + window.localStorage.setItem('token', loginRes.data.token); + } + + this.popSuccessMsg('登录成功'); + + setTimeout(() => { + window.location.reload(); + }, 300); + + } catch (error) { + console.error('登录失败:', error); + this.popErrorMsg('登录失败,请重试'); + } + }, + /** + * 用户退出登录 + */ + logout: async function() { + try { + const { data: logoutRes } = await axios.get('/api/web/user-logout/system-logout'); + + if (!logoutRes.success) { + this.popErrorMsg(logoutRes.msg || '退出登录失败'); + return; + } + + window.localStorage.removeItem('token'); + this.popSuccessMsg('退出成功'); + + setTimeout(() => { + window.location.reload(); + }, 300); + + } catch (error) { + console.error('退出登录失败:', error); + this.popErrorMsg('退出登录失败,请重试'); + } + }, + /** + * 切换侧边栏收缩状态 + */ + toggleSidebar: function() { + this.sidebarCollapsed = !this.sidebarCollapsed; + + // 在侧边栏状态改变后,重新渲染导航 + this.$nextTick(() => { + element.render('nav'); + }); + } + }, + mounted() { + this.initPage(); + + // 从 localStorage 中恢复上次选择的标签页 + const savedTab = localStorage.getItem('tl_rtc_app_active_tab'); + if (savedTab) { + this.activeTab = savedTab; + } + + // 从 localStorage 中恢复侧边栏收缩状态 + const savedSidebarState = localStorage.getItem('tl_rtc_app_sidebar_collapsed'); + if (savedSidebarState) { + this.sidebarCollapsed = savedSidebarState === '1'; + } + + // 监听标签页变化,保存到 localStorage + this.$watch('activeTab', function(newVal) { + localStorage.setItem('tl_rtc_app_active_tab', newVal); + }); + } + }); + }); +} + + +loadJs('lib-basic-sdk.min.js', function () { + loadJs('lib-component-sdk.min.js', function () { + loadSystemJs() + }); +}); diff --git a/web-v2-res/static/css/default.min.css b/system-res/static/css/default.min.css similarity index 100% rename from web-v2-res/static/css/default.min.css rename to system-res/static/css/default.min.css diff --git a/web-v2-res/static/css/editor.main.min.css b/system-res/static/css/editor.main.min.css similarity index 100% rename from web-v2-res/static/css/editor.main.min.css rename to system-res/static/css/editor.main.min.css diff --git a/web-v2-res/static/css/layui.css b/system-res/static/css/layui.css similarity index 100% rename from web-v2-res/static/css/layui.css rename to system-res/static/css/layui.css diff --git a/web-v2-res/static/css/swiper-bundle.min.css b/system-res/static/css/swiper-bundle.min.css similarity index 100% rename from web-v2-res/static/css/swiper-bundle.min.css rename to system-res/static/css/swiper-bundle.min.css diff --git a/web-v2-res/static/js/axios.js b/system-res/static/js/axios.js similarity index 100% rename from web-v2-res/static/js/axios.js rename to system-res/static/js/axios.js diff --git a/web-v2-res/static/js/base64.min.js b/system-res/static/js/base64.min.js similarity index 100% rename from web-v2-res/static/js/base64.min.js rename to system-res/static/js/base64.min.js diff --git a/web-v2-res/static/js/clipboard.min.js b/system-res/static/js/clipboard.min.js similarity index 100% rename from web-v2-res/static/js/clipboard.min.js rename to system-res/static/js/clipboard.min.js diff --git a/system-res/static/js/crypto-js.min.js b/system-res/static/js/crypto-js.min.js new file mode 100644 index 0000000..fb96be7 --- /dev/null +++ b/system-res/static/js/crypto-js.min.js @@ -0,0 +1 @@ +!function(t,e){"object"==typeof exports?module.exports=exports=e():"function"==typeof define&&define.amd?define([],e):t.CryptoJS=e()}(this,function(){var W,O,I,U,K,X,L,l,j,T,t,N,q,e,Z,V,G,J,Q,Y,$,t1,e1,r1,i1,o1,n1,s,s1,c1,a1,h1,l1,o,f1,r,d1,u1,n,c,a,h,f,d,i=function(h){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),!(i=!(i=!(i="undefined"!=typeof globalThis&&globalThis.crypto?globalThis.crypto:i)&&"undefined"!=typeof window&&window.msCrypto?window.msCrypto:i)&&"undefined"!=typeof global&&global.crypto?global.crypto:i)&&"function"==typeof require)try{i=require("crypto")}catch(t){}var r=Object.create||function(t){return e.prototype=t,t=new e,e.prototype=null,t};function e(){}var t={},o=t.lib={},n=o.Base={extend:function(t){var e=r(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).$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=o.WordArray=n.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,r=t.words,i=this.sigBytes,o=t.sigBytes;if(this.clamp(),i%4)for(var n=0;n>>2]>>>24-n%4*8&255;e[i+n>>>2]|=s<<24-(i+n)%4*8}else for(var c=0;c>>2]=r[c>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=h.ceil(e/4)},clone:function(){var t=n.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r>>2]>>>24-o%4*8&255;i.push((n>>>4).toString(16)),i.push((15&n).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new l.init(r,e/2)}},a=s.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],o=0;o>>2]>>>24-o%4*8&255;i.push(String.fromCharCode(n))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new l.init(r,e)}},f=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(a.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return a.parse(unescape(encodeURIComponent(t)))}},d=o.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e,r=this._data,i=r.words,o=r.sigBytes,n=this.blockSize,s=o/(4*n),c=(s=t?h.ceil(s):h.max((0|s)-this._minBufferSize,0))*n,t=h.min(4*c,o);if(c){for(var a=0;a>>2]|=t[i]<<24-i%4*8;I.call(this,r,e)}else I.apply(this,arguments)}).prototype=p),i),p1=u.lib.WordArray;function _1(t){return t<<8&4278255360|t>>>8&16711935}(u=u.enc).Utf16=u.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535;i.push(String.fromCharCode(n))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i>>1]|=t.charCodeAt(i)<<16-i%2*16;return p1.create(r,2*e)}},u.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(n))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i>>1]|=_1(t.charCodeAt(i)<<16-i%2*16);return p1.create(r,2*e)}},U=(p=i).lib.WordArray,p.enc.Base64={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=this._map,o=(t.clamp(),[]),n=0;n>>2]>>>24-n%4*8&255)<<16|(e[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|e[n+2>>>2]>>>24-(n+2)%4*8&255,c=0;c<4&&n+.75*c>>6*(3-c)&63));var a=i.charAt(64);if(a)for(;o.length%4;)o.push(a);return o.join("")},parse:function(t){var e=t.length,r=this._map;if(!(i=this._reverseMap))for(var i=this._reverseMap=[],o=0;o>>6-u%4*2,s=s|n,f[d>>>2]|=s<<24-d%4*8,d++);return U.create(f,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},K=(u=i).lib.WordArray,u.enc.Base64url={stringify:function(t,e){for(var r=t.words,i=t.sigBytes,o=(e=void 0===e?!0:e)?this._safe_map:this._map,n=(t.clamp(),[]),s=0;s>>2]>>>24-s%4*8&255)<<16|(r[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|r[s+2>>>2]>>>24-(s+2)%4*8&255,a=0;a<4&&s+.75*a>>6*(3-a)&63));var h=o.charAt(64);if(h)for(;n.length%4;)n.push(h);return n.join("")},parse:function(t,e){var r=t.length,i=(e=void 0===e?!0:e)?this._safe_map:this._map;if(!(o=this._reverseMap))for(var o=this._reverseMap=[],n=0;n>>6-u%4*2,c=c|s,f[d>>>2]|=c<<24-d%4*8,d++);return K.create(f,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};for(var y1=Math,p=i,g1=(u=p.lib).WordArray,v1=u.Hasher,u=p.algo,A=[],B1=0;B1<64;B1++)A[B1]=4294967296*y1.abs(y1.sin(B1+1))|0;function z(t,e,r,i,o,n,s){t=t+(e&r|~e&i)+o+s;return(t<>>32-n)+e}function H(t,e,r,i,o,n,s){t=t+(e&i|r&~i)+o+s;return(t<>>32-n)+e}function C(t,e,r,i,o,n,s){t=t+(e^r^i)+o+s;return(t<>>32-n)+e}function R(t,e,r,i,o,n,s){t=t+(r^(e|~i))+o+s;return(t<>>32-n)+e}u=u.MD5=v1.extend({_doReset:function(){this._hash=new g1.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r,o=t[i];t[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var n=this._hash.words,s=t[e+0],c=t[e+1],a=t[e+2],h=t[e+3],l=t[e+4],f=t[e+5],d=t[e+6],u=t[e+7],p=t[e+8],_=t[e+9],y=t[e+10],g=t[e+11],v=t[e+12],B=t[e+13],w=t[e+14],k=t[e+15],x=z(n[0],S=n[1],m=n[2],b=n[3],s,7,A[0]),b=z(b,x,S,m,c,12,A[1]),m=z(m,b,x,S,a,17,A[2]),S=z(S,m,b,x,h,22,A[3]);x=z(x,S,m,b,l,7,A[4]),b=z(b,x,S,m,f,12,A[5]),m=z(m,b,x,S,d,17,A[6]),S=z(S,m,b,x,u,22,A[7]),x=z(x,S,m,b,p,7,A[8]),b=z(b,x,S,m,_,12,A[9]),m=z(m,b,x,S,y,17,A[10]),S=z(S,m,b,x,g,22,A[11]),x=z(x,S,m,b,v,7,A[12]),b=z(b,x,S,m,B,12,A[13]),m=z(m,b,x,S,w,17,A[14]),x=H(x,S=z(S,m,b,x,k,22,A[15]),m,b,c,5,A[16]),b=H(b,x,S,m,d,9,A[17]),m=H(m,b,x,S,g,14,A[18]),S=H(S,m,b,x,s,20,A[19]),x=H(x,S,m,b,f,5,A[20]),b=H(b,x,S,m,y,9,A[21]),m=H(m,b,x,S,k,14,A[22]),S=H(S,m,b,x,l,20,A[23]),x=H(x,S,m,b,_,5,A[24]),b=H(b,x,S,m,w,9,A[25]),m=H(m,b,x,S,h,14,A[26]),S=H(S,m,b,x,p,20,A[27]),x=H(x,S,m,b,B,5,A[28]),b=H(b,x,S,m,a,9,A[29]),m=H(m,b,x,S,u,14,A[30]),x=C(x,S=H(S,m,b,x,v,20,A[31]),m,b,f,4,A[32]),b=C(b,x,S,m,p,11,A[33]),m=C(m,b,x,S,g,16,A[34]),S=C(S,m,b,x,w,23,A[35]),x=C(x,S,m,b,c,4,A[36]),b=C(b,x,S,m,l,11,A[37]),m=C(m,b,x,S,u,16,A[38]),S=C(S,m,b,x,y,23,A[39]),x=C(x,S,m,b,B,4,A[40]),b=C(b,x,S,m,s,11,A[41]),m=C(m,b,x,S,h,16,A[42]),S=C(S,m,b,x,d,23,A[43]),x=C(x,S,m,b,_,4,A[44]),b=C(b,x,S,m,v,11,A[45]),m=C(m,b,x,S,k,16,A[46]),x=R(x,S=C(S,m,b,x,a,23,A[47]),m,b,s,6,A[48]),b=R(b,x,S,m,u,10,A[49]),m=R(m,b,x,S,w,15,A[50]),S=R(S,m,b,x,f,21,A[51]),x=R(x,S,m,b,v,6,A[52]),b=R(b,x,S,m,h,10,A[53]),m=R(m,b,x,S,y,15,A[54]),S=R(S,m,b,x,c,21,A[55]),x=R(x,S,m,b,p,6,A[56]),b=R(b,x,S,m,k,10,A[57]),m=R(m,b,x,S,d,15,A[58]),S=R(S,m,b,x,B,21,A[59]),x=R(x,S,m,b,l,6,A[60]),b=R(b,x,S,m,g,10,A[61]),m=R(m,b,x,S,a,15,A[62]),S=R(S,m,b,x,_,21,A[63]),n[0]=n[0]+x|0,n[1]=n[1]+S|0,n[2]=n[2]+m|0,n[3]=n[3]+b|0},_doFinalize:function(){for(var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes,o=(e[i>>>5]|=128<<24-i%32,y1.floor(r/4294967296)),o=(e[15+(64+i>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(64+i>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process(),this._hash),n=o.words,s=0;s<4;s++){var c=n[s];n[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return o},clone:function(){var t=v1.clone.call(this);return t._hash=this._hash.clone(),t}}),p.MD5=v1._createHelper(u),p.HmacMD5=v1._createHmacHelper(u),u=(p=i).lib,X=u.WordArray,L=u.Hasher,u=p.algo,l=[],u=u.SHA1=L.extend({_doReset:function(){this._hash=new X.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],o=r[1],n=r[2],s=r[3],c=r[4],a=0;a<80;a++){a<16?l[a]=0|t[e+a]:(h=l[a-3]^l[a-8]^l[a-14]^l[a-16],l[a]=h<<1|h>>>31);var h=(i<<5|i>>>27)+c+l[a];h+=a<20?1518500249+(o&n|~o&s):a<40?1859775393+(o^n^s):a<60?(o&n|o&s|n&s)-1894007588:(o^n^s)-899497514,c=s,s=n,n=o<<30|o>>>2,o=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+o|0,r[2]=r[2]+n|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(64+i>>>9<<4)]=Math.floor(r/4294967296),e[15+(64+i>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=L.clone.call(this);return t._hash=this._hash.clone(),t}}),p.SHA1=L._createHelper(u),p.HmacSHA1=L._createHmacHelper(u);var w1=Math,p=i,k1=(u=p.lib).WordArray,x1=u.Hasher,u=p.algo,b1=[],m1=[];function S1(t){return 4294967296*(t-(0|t))|0}for(var A1=2,z1=0;z1<64;)!function(t){for(var e=w1.sqrt(t),r=2;r<=e;r++)if(!(t%r))return;return 1}(A1)||(z1<8&&(b1[z1]=S1(w1.pow(A1,.5))),m1[z1]=S1(w1.pow(A1,1/3)),z1++),A1++;var _=[],u=u.SHA256=x1.extend({_doReset:function(){this._hash=new k1.init(b1.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],o=r[1],n=r[2],s=r[3],c=r[4],a=r[5],h=r[6],l=r[7],f=0;f<64;f++){f<16?_[f]=0|t[e+f]:(d=_[f-15],u=_[f-2],_[f]=((d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3)+_[f-7]+((u<<15|u>>>17)^(u<<13|u>>>19)^u>>>10)+_[f-16]);var d=i&o^i&n^o&n,u=l+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&a^~c&h)+m1[f]+_[f],l=h,h=a,a=c,c=s+u|0,s=n,n=o,o=i,i=u+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+d)|0}r[0]=r[0]+i|0,r[1]=r[1]+o|0,r[2]=r[2]+n|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0,r[5]=r[5]+a|0,r[6]=r[6]+h|0,r[7]=r[7]+l|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(64+i>>>9<<4)]=w1.floor(r/4294967296),e[15+(64+i>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=x1.clone.call(this);return t._hash=this._hash.clone(),t}}),p=(p.SHA256=x1._createHelper(u),p.HmacSHA256=x1._createHmacHelper(u),j=(p=i).lib.WordArray,u=p.algo,T=u.SHA256,u=u.SHA224=T.extend({_doReset:function(){this._hash=new j.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=T._doFinalize.call(this);return t.sigBytes-=4,t}}),p.SHA224=T._createHelper(u),p.HmacSHA224=T._createHmacHelper(u),i),H1=p.lib.Hasher,y=(u=p.x64).Word,C1=u.WordArray,u=p.algo;function g(){return y.create.apply(y,arguments)}for(var R1=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],D1=[],E1=0;E1<80;E1++)D1[E1]=g();u=u.SHA512=H1.extend({_doReset:function(){this._hash=new C1.init([new y.init(1779033703,4089235720),new y.init(3144134277,2227873595),new y.init(1013904242,4271175723),new y.init(2773480762,1595750129),new y.init(1359893119,2917565137),new y.init(2600822924,725511199),new y.init(528734635,4215389547),new y.init(1541459225,327033209)])},_doProcessBlock:function(W,O){for(var t=this._hash.words,e=t[0],r=t[1],i=t[2],o=t[3],n=t[4],s=t[5],c=t[6],t=t[7],I=e.high,a=e.low,U=r.high,h=r.low,K=i.high,l=i.low,X=o.high,f=o.low,L=n.high,d=n.low,j=s.high,u=s.low,T=c.high,p=c.low,N=t.high,_=t.low,y=I,g=a,v=U,B=h,w=K,k=l,q=X,x=f,b=L,m=d,Z=j,S=u,V=T,G=p,J=N,Q=_,A=0;A<80;A++)var z,H,C=D1[A],R=(A<16?(H=C.high=0|W[O+2*A],z=C.low=0|W[O+2*A+1]):(F=(P=D1[A-15]).high,P=P.low,M=(E=D1[A-2]).high,E=E.low,D=(R=D1[A-7]).high,R=R.low,$=(Y=D1[A-16]).high,H=(H=((F>>>1|P<<31)^(F>>>8|P<<24)^F>>>7)+D+((z=(D=(P>>>1|F<<31)^(P>>>8|F<<24)^(P>>>7|F<<25))+R)>>>0>>0?1:0))+((M>>>19|E<<13)^(M<<3|E>>>29)^M>>>6)+((z+=P=(E>>>19|M<<13)^(E<<3|M>>>29)^(E>>>6|M<<26))>>>0

>>0?1:0),z+=F=Y.low,C.high=H=H+$+(z>>>0>>0?1:0),C.low=z),b&Z^~b&V),D=m&S^~m&G,E=y&v^y&w^v&w,M=(g>>>28|y<<4)^(g<<30|y>>>2)^(g<<25|y>>>7),P=R1[A],Y=P.high,$=P.low,F=Q+((m>>>14|b<<18)^(m>>>18|b<<14)^(m<<23|b>>>9)),C=J+((b>>>14|m<<18)^(b>>>18|m<<14)^(b<<23|m>>>9))+(F>>>0>>0?1:0),t1=M+(g&B^g&k^B&k),J=V,Q=G,V=Z,G=S,Z=b,S=m,b=q+(C=C+R+((F=F+D)>>>0>>0?1:0)+Y+((F=F+$)>>>0<$>>>0?1:0)+H+((F=F+z)>>>0>>0?1:0))+((m=x+F|0)>>>0>>0?1:0)|0,q=w,x=k,w=v,k=B,v=y,B=g,y=C+(((y>>>28|g<<4)^(y<<30|g>>>2)^(y<<25|g>>>7))+E+(t1>>>0>>0?1:0))+((g=F+t1|0)>>>0>>0?1:0)|0;a=e.low=a+g,e.high=I+y+(a>>>0>>0?1:0),h=r.low=h+B,r.high=U+v+(h>>>0>>0?1:0),l=i.low=l+k,i.high=K+w+(l>>>0>>0?1:0),f=o.low=f+x,o.high=X+q+(f>>>0>>0?1:0),d=n.low=d+m,n.high=L+b+(d>>>0>>0?1:0),u=s.low=u+S,s.high=j+Z+(u>>>0>>0?1:0),p=c.low=p+G,c.high=T+V+(p>>>0>>0?1:0),_=t.low=_+Q,t.high=N+J+(_>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(128+i>>>10<<5)]=Math.floor(r/4294967296),e[31+(128+i>>>10<<5)]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=H1.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),p.SHA512=H1._createHelper(u),p.HmacSHA512=H1._createHmacHelper(u),u=(p=i).x64,t=u.Word,N=u.WordArray,u=p.algo,q=u.SHA512,u=u.SHA384=q.extend({_doReset:function(){this._hash=new N.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var t=q._doFinalize.call(this);return t.sigBytes-=16,t}}),p.SHA384=q._createHelper(u),p.HmacSHA384=q._createHmacHelper(u);for(var M1=Math,p=i,P1=(u=p.lib).WordArray,F1=u.Hasher,W1=p.x64.Word,u=p.algo,O1=[],I1=[],U1=[],v=1,B=0,K1=0;K1<24;K1++){O1[v+5*B]=(K1+1)*(K1+2)/2%64;var X1=(2*v+3*B)%5;v=B%5,B=X1}for(v=0;v<5;v++)for(B=0;B<5;B++)I1[v+5*B]=B+(2*v+3*B)%5*5;for(var L1=1,j1=0;j1<24;j1++){for(var T1,N1=0,q1=0,Z1=0;Z1<7;Z1++)1&L1&&((T1=(1<>>32-e}function Y1(t){return"string"==typeof t?f1:o}function $1(t,e,r){var i,o=this._iv;o?(i=o,this._iv=void 0):i=this._prevBlock;for(var n=0;n>24&255)?(r=t>>8&255,i=255&t,255===(e=t>>16&255)?(e=0,255===r?(r=0,255===i?i=0:++i):++r):++e,t=0,t=(t+=e<<16)+(r<<8)+i):t+=1<<24,t}u=u.SHA3=F1.extend({cfg:F1.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new W1.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,i=this.blockSize/2,o=0;o>>24)|4278255360&(n<<24|n>>>8);(x=r[o]).high^=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),x.low^=n}for(var c=0;c<24;c++){for(var a=0;a<5;a++){for(var h=0,l=0,f=0;f<5;f++)h^=(x=r[a+5*f]).high,l^=x.low;var d=D[a];d.high=h,d.low=l}for(a=0;a<5;a++)for(var u=D[(a+4)%5],p=D[(a+1)%5],_=p.high,p=p.low,h=u.high^(_<<1|p>>>31),l=u.low^(p<<1|_>>>31),f=0;f<5;f++)(x=r[a+5*f]).high^=h,x.low^=l;for(var y=1;y<25;y++){var g=(x=r[y]).high,v=x.low,B=O1[y],g=(l=B<32?(h=g<>>32-B,v<>>32-B):(h=v<>>64-B,g<>>64-B),D[I1[y]]);g.high=h,g.low=l}var w=D[0],k=r[0];w.high=k.high,w.low=k.low;for(a=0;a<5;a++)for(f=0;f<5;f++){var x=r[y=a+5*f],b=D[y],m=D[(a+1)%5+5*f],S=D[(a+2)%5+5*f];x.high=b.high^~m.high&S.high,x.low=b.low^~m.low&S.low}x=r[0],w=U1[c];x.high^=w.high,x.low^=w.low}},_doFinalize:function(){for(var t=this._data,e=t.words,r=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize,o=(e[r>>>5]|=1<<24-r%32,e[(M1.ceil((1+r)/i)*i>>>5)-1]|=128,t.sigBytes=4*e.length,this._process(),this._state),r=this.cfg.outputLength/8,n=r/8,s=[],c=0;c>>24)|4278255360&(h<<24|h>>>8);s.push(16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)),s.push(h)}return new P1.init(s,r)},clone:function(){for(var t=F1.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}}),p.SHA3=F1._createHelper(u),p.HmacSHA3=F1._createHmacHelper(u),Math,u=(p=i).lib,e=u.WordArray,Z=u.Hasher,u=p.algo,V=e.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]),G=e.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]),J=e.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]),Q=e.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]),Y=e.create([0,1518500249,1859775393,2400959708,2840853838]),$=e.create([1352829926,1548603684,1836072691,2053994217,0]),u=u.RIPEMD160=Z.extend({_doReset:function(){this._hash=e.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r,o=t[i];t[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}for(var n,s,c,a,h,l,f=this._hash.words,d=Y.words,u=$.words,p=V.words,_=G.words,y=J.words,g=Q.words,v=n=f[0],B=s=f[1],w=c=f[2],k=a=f[3],x=h=f[4],r=0;r<80;r+=1)l=(l=Q1(l=(l=n+t[e+p[r]]|0)+(r<16?(s^c^a)+d[0]:r<32?G1(s,c,a)+d[1]:r<48?((s|~c)^a)+d[2]:r<64?J1(s,c,a)+d[3]:(s^(c|~a))+d[4])|0,y[r]))+h|0,n=h,h=a,a=Q1(c,10),c=s,s=l,l=(l=Q1(l=(l=v+t[e+_[r]]|0)+(r<16?(B^(w|~k))+u[0]:r<32?J1(B,w,k)+u[1]:r<48?((B|~w)^k)+u[2]:r<64?G1(B,w,k)+u[3]:(B^w^k)+u[4])|0,g[r]))+x|0,v=x,x=k,k=Q1(w,10),w=B,B=l;l=f[1]+c+k|0,f[1]=f[2]+a+x|0,f[2]=f[3]+h+v|0,f[3]=f[4]+n+B|0,f[4]=f[0]+s+w|0,f[0]=l},_doFinalize:function(){for(var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes,i=(e[i>>>5]|=128<<24-i%32,e[14+(64+i>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process(),this._hash),o=i.words,n=0;n<5;n++){var s=o[n];o[n]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=Z.clone.call(this);return t._hash=this._hash.clone(),t}}),p.RIPEMD160=Z._createHelper(u),p.HmacRIPEMD160=Z._createHmacHelper(u),u=(p=i).lib.Base,t1=p.enc.Utf8,p.algo.HMAC=u.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=t1.parse(e));for(var r=t.blockSize,i=4*r,t=((e=e.sigBytes>i?t.finalize(e):e).clamp(),this._oKey=e.clone()),e=this._iKey=e.clone(),o=t.words,n=e.words,s=0;s>>2];t.sigBytes-=e}},P.BlockCipher=h1.extend({cfg:h1.cfg.extend({mode:r,padding:u}),reset:function(){h1.reset.call(this);var t,e=this.cfg,r=e.iv,e=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=e.createEncryptor:(t=e.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(e,this,r&&r.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}),l1=P.CipherParams=p.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),r=(w.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,t=t.salt,t=t?s.create([1398893684,1701076831]).concat(t).concat(e):e;return t.toString(c1)},parse:function(t){var e,t=c1.parse(t),r=t.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=s.create(r.slice(2,4)),r.splice(0,4),t.sigBytes-=16),l1.create({ciphertext:t,salt:e})}},o=P.SerializableCipher=p.extend({cfg:p.extend({format:r}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var o=t.createEncryptor(r,i),e=o.finalize(e),o=o.cfg;return l1.create({ciphertext:e,key:r,iv:o.iv,algorithm:t,mode:o.mode,padding:o.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),t.createDecryptor(r,i).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),u=(w.kdf={}).OpenSSL={execute:function(t,e,r,i,o){i=i||s.random(8),o=(o?a1.create({keySize:e+r,hasher:o}):a1.create({keySize:e+r})).compute(t,i);t=s.create(o.words.slice(e),4*r);return o.sigBytes=4*e,l1.create({key:o,iv:t,salt:i})}},f1=P.PasswordBasedCipher=o.extend({cfg:o.cfg.extend({kdf:u}),encrypt:function(t,e,r,i){r=(i=this.cfg.extend(i)).kdf.execute(r,t.keySize,t.ivSize,i.salt,i.hasher),i.iv=r.iv,t=o.encrypt.call(this,t,e,r.key,i);return t.mixIn(r),t},decrypt:function(t,e,r,i){i=this.cfg.extend(i),e=this._parse(e,i.format);r=i.kdf.execute(r,t.keySize,t.ivSize,e.salt,i.hasher);return i.iv=r.iv,o.decrypt.call(this,t,e,r.key,i)}})),i.mode.CFB=((p=i.lib.BlockCipherMode.extend()).Encryptor=p.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize;t2.call(this,t,e,i,r),this._prevBlock=t.slice(e,e+i)}}),p.Decryptor=p.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=t.slice(e,e+i);t2.call(this,t,e,i,r),this._prevBlock=o}}),p),i.mode.CTR=(r=i.lib.BlockCipherMode.extend(),w=r.Encryptor=r.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=this._iv,n=this._counter,s=(o&&(n=this._counter=o.slice(0),this._iv=void 0),n.slice(0));r.encryptBlock(s,0),n[i-1]=n[i-1]+1|0;for(var c=0;c>>2]|=e<<24-r%4*8,t.sigBytes+=e},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},i.pad.Iso10126={pad:function(t,e){e*=4,e-=t.sigBytes%e;t.concat(i.lib.WordArray.random(e-1)).concat(i.lib.WordArray.create([e<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},i.pad.Iso97971={pad:function(t,e){t.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(t,e)},unpad:function(t){i.pad.ZeroPadding.unpad(t),t.sigBytes--}},i.pad.ZeroPadding={pad:function(t,e){e*=4;t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){for(var e=t.words,r=t.sigBytes-1,r=t.sigBytes-1;0<=r;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},i.pad.NoPadding={pad:function(){},unpad:function(){}},d1=(P=i).lib.CipherParams,u1=P.enc.Hex,P.format.Hex={stringify:function(t){return t.ciphertext.toString(u1)},parse:function(t){t=u1.parse(t);return d1.create({ciphertext:t})}};for(var w=i,p=w.lib.BlockCipher,u=w.algo,k=[],r2=[],i2=[],o2=[],n2=[],s2=[],c2=[],a2=[],h2=[],l2=[],x=[],b=0;b<256;b++)x[b]=b<128?b<<1:b<<1^283;for(var m=0,S=0,b=0;b<256;b++){var E=S^S<<1^S<<2^S<<3^S<<4,f2=(k[m]=E=E>>>8^255&E^99,x[r2[E]=m]),d2=x[f2],u2=x[d2],M=257*x[E]^16843008*E;i2[m]=M<<24|M>>>8,o2[m]=M<<16|M>>>16,n2[m]=M<<8|M>>>24,s2[m]=M,c2[E]=(M=16843009*u2^65537*d2^257*f2^16843008*m)<<24|M>>>8,a2[E]=M<<16|M>>>16,h2[E]=M<<8|M>>>24,l2[E]=M,m?(m=f2^x[x[x[u2^f2]]],S^=x[x[S]]):m=S=1}var p2=[0,1,2,4,8,16,32,64,128,27,54],u=u.AES=p.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,i=4*(1+(this._nRounds=6+r)),o=this._keySchedule=[],n=0;n>>24]<<24|k[a>>>16&255]<<16|k[a>>>8&255]<<8|k[255&a]):(a=k[(a=a<<8|a>>>24)>>>24]<<24|k[a>>>16&255]<<16|k[a>>>8&255]<<8|k[255&a],a^=p2[n/r|0]<<24),o[n]=o[n-r]^a);for(var s=this._invKeySchedule=[],c=0;c>>24]]^a2[k[a>>>16&255]]^h2[k[a>>>8&255]]^l2[k[255&a]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,i2,o2,n2,s2,k)},decryptBlock:function(t,e){var r=t[e+1],r=(t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,c2,a2,h2,l2,r2),t[e+1]);t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,i,o,n,s,c){for(var a=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],f=t[e+2]^r[2],d=t[e+3]^r[3],u=4,p=1;p>>24]^o[l>>>16&255]^n[f>>>8&255]^s[255&d]^r[u++],y=i[l>>>24]^o[f>>>16&255]^n[d>>>8&255]^s[255&h]^r[u++],g=i[f>>>24]^o[d>>>16&255]^n[h>>>8&255]^s[255&l]^r[u++],v=i[d>>>24]^o[h>>>16&255]^n[l>>>8&255]^s[255&f]^r[u++],h=_,l=y,f=g,d=v;_=(c[h>>>24]<<24|c[l>>>16&255]<<16|c[f>>>8&255]<<8|c[255&d])^r[u++],y=(c[l>>>24]<<24|c[f>>>16&255]<<16|c[d>>>8&255]<<8|c[255&h])^r[u++],g=(c[f>>>24]<<24|c[d>>>16&255]<<16|c[h>>>8&255]<<8|c[255&l])^r[u++],v=(c[d>>>24]<<24|c[h>>>16&255]<<16|c[l>>>8&255]<<8|c[255&f])^r[u++];t[e]=_,t[e+1]=y,t[e+2]=g,t[e+3]=v},keySize:8}),P=(w.AES=p._createHelper(u),i),_2=(w=P.lib).WordArray,w=w.BlockCipher,p=P.algo,y2=[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],g2=[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],v2=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],B2=[{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}],w2=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],k2=p.DES=w.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;r<56;r++){var i=y2[r]-1;e[r]=t[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],n=0;n<16;n++){for(var s=o[n]=[],c=v2[n],r=0;r<24;r++)s[r/6|0]|=e[(g2[r]-1+c)%28]<<31-r%6,s[4+(r/6|0)]|=e[28+(g2[r+24]-1+c)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var a=this._invSubKeys=[],r=0;r<16;r++)a[r]=o[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],x2.call(this,4,252645135),x2.call(this,16,65535),b2.call(this,2,858993459),b2.call(this,8,16711935),x2.call(this,1,1431655765);for(var i=0;i<16;i++){for(var o=r[i],n=this._lBlock,s=this._rBlock,c=0,a=0;a<8;a++)c|=B2[a][((s^o[a])&w2[a])>>>0];this._lBlock=s,this._rBlock=n^c}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,x2.call(this,1,1431655765),b2.call(this,8,16711935),b2.call(this,2,858993459),x2.call(this,16,65535),x2.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function x2(t,e){e=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=e,this._lBlock^=e<>>t^this._lBlock)&e;this._lBlock^=e,this._rBlock^=e<192.");var e=t.slice(0,2),r=t.length<4?t.slice(0,2):t.slice(2,4),t=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=k2.createEncryptor(_2.create(e)),this._des2=k2.createEncryptor(_2.create(r)),this._des3=k2.createEncryptor(_2.create(t))},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}),P.TripleDES=w._createHelper(p);var u=i,P=u.lib.StreamCipher,w=u.algo,m2=w.RC4=P.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,i=this._S=[],o=0;o<256;o++)i[o]=o;for(var o=0,n=0;o<256;o++){var s=o%r,s=e[s>>>2]>>>24-s%4*8&255,n=(n+i[o]+s)%256,s=i[o];i[o]=i[n],i[n]=s}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=S2.call(this)},keySize:8,ivSize:0});function S2(){for(var t=this._S,e=this._i,r=this._j,i=0,o=0;o<4;o++){var r=(r+t[e=(e+1)%256])%256,n=t[e];t[e]=t[r],t[r]=n,i|=t[(t[e]+t[r])%256]<<24-8*o}return this._i=e,this._j=r,i}function A2(){for(var t=this._X,e=this._C,r=0;r<8;r++)c[r]=e[r];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;for(r=0;r<8;r++){var i=t[r]+e[r],o=65535&i,n=i>>>16;a[r]=((o*o>>>17)+o*n>>>15)+n*n^((4294901760&i)*i|0)+((65535&i)*i|0)}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}function z2(){for(var t=this._X,e=this._C,r=0;r<8;r++)f[r]=e[r];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;for(r=0;r<8;r++){var i=t[r]+e[r],o=65535&i,n=i>>>16;d[r]=((o*o>>>17)+o*n>>>15)+n*n^((4294901760&i)*i|0)+((65535&i)*i|0)}t[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,t[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,t[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,t[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,t[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,t[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,t[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,t[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}u.RC4=P._createHelper(m2),w=w.RC4Drop=m2.extend({cfg:m2.cfg.extend({drop:192}),_doReset:function(){m2._doReset.call(this);for(var t=this.cfg.drop;0>>24)|4278255360&(t[r]<<24|t[r]>>>8);for(var i=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],o=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]],r=this._b=0;r<4;r++)A2.call(this);for(r=0;r<8;r++)o[r]^=i[r+4&7];if(e){var e=e.words,n=e[0],e=e[1],n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),s=n>>>16|4294901760&e,c=e<<16|65535&n;o[0]^=n,o[1]^=s,o[2]^=e,o[3]^=c,o[4]^=n,o[5]^=s,o[6]^=e,o[7]^=c;for(r=0;r<4;r++)A2.call(this)}},_doProcessBlock:function(t,e){var r=this._X;A2.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),t[e+i]^=n[i]},blockSize:4,ivSize:2}),p.Rabbit=u._createHelper(P),p=(w=i).lib.StreamCipher,u=w.algo,h=[],f=[],d=[],u=u.RabbitLegacy=p.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,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]],o=this._b=0;o<4;o++)z2.call(this);for(o=0;o<8;o++)i[o]^=r[o+4&7];if(e){var t=e.words,e=t[0],t=t[1],e=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),n=e>>>16|4294901760&t,s=t<<16|65535&e;i[0]^=e,i[1]^=n,i[2]^=t,i[3]^=s,i[4]^=e,i[5]^=n,i[6]^=t,i[7]^=s;for(o=0;o<4;o++)z2.call(this)}},_doProcessBlock:function(t,e){var r=this._X;z2.call(this),h[0]=r[0]^r[5]>>>16^r[3]<<16,h[1]=r[2]^r[7]>>>16^r[5]<<16,h[2]=r[4]^r[1]>>>16^r[7]<<16,h[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)h[i]=16711935&(h[i]<<8|h[i]>>>24)|4278255360&(h[i]<<24|h[i]>>>8),t[e+i]^=h[i]},blockSize:4,ivSize:2}),w.RabbitLegacy=p._createHelper(u);{w=(P=i).lib.BlockCipher,p=P.algo;const F=16,D2=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],E2=[[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 H2={pbox:[],sbox:[]};function C2(t,e){var r=t.sbox[0][e>>24&255]+t.sbox[1][e>>16&255];return r=(r^=t.sbox[2][e>>8&255])+t.sbox[3][255&e]}function R2(e,t,r){let i=t,o=r,n;for(let t=0;t=a&&(e=0);let r=0,i=0,o=0;for(let t=0;t

    +
  • + +
    24gl-fileEmpty
    +
    &#xeabf;
    +
  • + +
  • + +
    20gl-repeat2
    +
    &#xea51;
    +
  • + +
  • + +
    刷新
    +
    &#xe6a4;
    +
  • + +
  • + +
    问好
    +
    &#xe6a3;
    +
  • + +
  • + +
    用户分组
    +
    &#xe6a2;
    +
  • + +
  • + +
    空间清理2
    +
    &#xe6a0;
    +
  • + +
  • + +
    操作记录
    +
    &#xe6a1;
    +
  • + +
  • + +
    加密
    +
    &#xe69f;
    +
  • + +
  • + +
    筛选
    +
    &#xe69d;
    +
  • + +
  • + +
    大模型
    +
    &#xe71e;
    +
  • + +
  • + +
    知识库
    +
    &#xe69b;
    +
  • + +
  • + +
    智能客服
    +
    &#xe697;
    +
  • + +
  • + +
    机器人
    +
    &#xe75e;
    +
  • + +
  • + +
    客服
    +
    &#xe699;
    +
  • + +
  • + +
    机器人
    +
    &#xe78f;
    +
  • + +
  • + +
    七牛云存储
    +
    &#xe69a;
    +
  • + +
  • + +
    名片
    +
    &#xe694;
    +
  • + +
  • + +
    名片_名片夹
    +
    &#xe695;
    +
  • + +
  • + +
    名片
    +
    &#xe696;
    +
  • + +
  • + +
    常用语
    +
    &#xe690;
    +
  • + +
  • + +
    常用语
    +
    &#xe693;
    +
  • + +
  • + +
    脚印
    +
    &#xe68e;
    +
  • + +
  • + +
    脚印
    +
    &#xeb83;
    +
  • + +
  • + +
    快捷消息
    +
    &#xe68d;
    +
  • + +
  • + +
    群聊
    +
    &#xe68b;
    +
  • +
  • 回滚
    @@ -1482,9 +1632,9 @@
    @font-face {
       font-family: 'iconfont';
    -  src: url('iconfont.woff2?t=1736500670093') format('woff2'),
    -       url('iconfont.woff?t=1736500670093') format('woff'),
    -       url('iconfont.ttf?t=1736500670093') format('truetype');
    +  src: url('iconfont.woff2?t=1741331399691') format('woff2'),
    +       url('iconfont.woff?t=1741331399691') format('woff'),
    +       url('iconfont.ttf?t=1741331399691') format('truetype');
     }
     

    第二步:定义使用 iconfont 的样式

    @@ -1510,6 +1660,231 @@
      +
    • + +
      + 24gl-fileEmpty +
      +
      .tl-rtc-app-icon-a24gl-fileEmpty +
      +
    • + +
    • + +
      + 20gl-repeat2 +
      +
      .tl-rtc-app-icon-a20gl-repeat2 +
      +
    • + +
    • + +
      + 刷新 +
      +
      .tl-rtc-app-icon-shuaxin +
      +
    • + +
    • + +
      + 问好 +
      +
      .tl-rtc-app-icon-wenhao +
      +
    • + +
    • + +
      + 用户分组 +
      +
      .tl-rtc-app-icon-pingtaiiconhuizong_huaban1fuben5 +
      +
    • + +
    • + +
      + 空间清理2 +
      +
      .tl-rtc-app-icon-kongjianqingli +
      +
    • + +
    • + +
      + 操作记录 +
      +
      .tl-rtc-app-icon-caozuojilu1 +
      +
    • + +
    • + +
      + 加密 +
      +
      .tl-rtc-app-icon-jiami +
      +
    • + +
    • + +
      + 筛选 +
      +
      .tl-rtc-app-icon-shaixuan +
      +
    • + +
    • + +
      + 大模型 +
      +
      .tl-rtc-app-icon-damoxing +
      +
    • + +
    • + +
      + 知识库 +
      +
      .tl-rtc-app-icon-zhishi +
      +
    • + +
    • + +
      + 智能客服 +
      +
      .tl-rtc-app-icon-zhinengkefu +
      +
    • + +
    • + +
      + 机器人 +
      +
      .tl-rtc-app-icon-robot6 +
      +
    • + +
    • + +
      + 客服 +
      +
      .tl-rtc-app-icon-kefu +
      +
    • + +
    • + +
      + 机器人 +
      +
      .tl-rtc-app-icon-jiqiren +
      +
    • + +
    • + +
      + 七牛云存储 +
      +
      .tl-rtc-app-icon-qiniuyuncunchu +
      +
    • + +
    • + +
      + 名片 +
      +
      .tl-rtc-app-icon-mingpian +
      +
    • + +
    • + +
      + 名片_名片夹 +
      +
      .tl-rtc-app-icon-mingpian_mingpianjia-78 +
      +
    • + +
    • + +
      + 名片 +
      +
      .tl-rtc-app-icon-mingpian1 +
      +
    • + +
    • + +
      + 常用语 +
      +
      .tl-rtc-app-icon-changyongyu +
      +
    • + +
    • + +
      + 常用语 +
      +
      .tl-rtc-app-icon-changyongyu1 +
      +
    • + +
    • + +
      + 脚印 +
      +
      .tl-rtc-app-icon-jiaoyin +
      +
    • + +
    • + +
      + 脚印 +
      +
      .tl-rtc-app-icon-jiaoyin1 +
      +
    • + +
    • + +
      + 快捷消息 +
      +
      .tl-rtc-app-icon-huihua- +
      +
    • + +
    • + +
      + 群聊 +
      +
      .tl-rtc-app-icon-qunliao1 +
      +
    • +
    • @@ -3652,6 +4027,206 @@
        +
      • + +
        24gl-fileEmpty
        +
        #tl-rtc-app-icon-a24gl-fileEmpty
        +
      • + +
      • + +
        20gl-repeat2
        +
        #tl-rtc-app-icon-a20gl-repeat2
        +
      • + +
      • + +
        刷新
        +
        #tl-rtc-app-icon-shuaxin
        +
      • + +
      • + +
        问好
        +
        #tl-rtc-app-icon-wenhao
        +
      • + +
      • + +
        用户分组
        +
        #tl-rtc-app-icon-pingtaiiconhuizong_huaban1fuben5
        +
      • + +
      • + +
        空间清理2
        +
        #tl-rtc-app-icon-kongjianqingli
        +
      • + +
      • + +
        操作记录
        +
        #tl-rtc-app-icon-caozuojilu1
        +
      • + +
      • + +
        加密
        +
        #tl-rtc-app-icon-jiami
        +
      • + +
      • + +
        筛选
        +
        #tl-rtc-app-icon-shaixuan
        +
      • + +
      • + +
        大模型
        +
        #tl-rtc-app-icon-damoxing
        +
      • + +
      • + +
        知识库
        +
        #tl-rtc-app-icon-zhishi
        +
      • + +
      • + +
        智能客服
        +
        #tl-rtc-app-icon-zhinengkefu
        +
      • + +
      • + +
        机器人
        +
        #tl-rtc-app-icon-robot6
        +
      • + +
      • + +
        客服
        +
        #tl-rtc-app-icon-kefu
        +
      • + +
      • + +
        机器人
        +
        #tl-rtc-app-icon-jiqiren
        +
      • + +
      • + +
        七牛云存储
        +
        #tl-rtc-app-icon-qiniuyuncunchu
        +
      • + +
      • + +
        名片
        +
        #tl-rtc-app-icon-mingpian
        +
      • + +
      • + +
        名片_名片夹
        +
        #tl-rtc-app-icon-mingpian_mingpianjia-78
        +
      • + +
      • + +
        名片
        +
        #tl-rtc-app-icon-mingpian1
        +
      • + +
      • + +
        常用语
        +
        #tl-rtc-app-icon-changyongyu
        +
      • + +
      • + +
        常用语
        +
        #tl-rtc-app-icon-changyongyu1
        +
      • + +
      • + +
        脚印
        +
        #tl-rtc-app-icon-jiaoyin
        +
      • + +
      • + +
        脚印
        +
        #tl-rtc-app-icon-jiaoyin1
        +
      • + +
      • + +
        快捷消息
        +
        #tl-rtc-app-icon-huihua-
        +
      • + +
      • + +
        群聊
        +
        #tl-rtc-app-icon-qunliao1
        +
      • +
      • "+t+""):e.push(''+t+"");return r.pages>n&&r.pages>i&&!1!==r.last&&(i+1…'),0!==n)&&e.push(''+(r.last||r.pages)+""),e.join("")}(),next:r.next?''+r.next+"":"",count:'\u5171 '+r.count+" \u6761",limit:(t=['"),refresh:['','',""].join(""),skip:['到第','','页',""].join("")};return['
        ',(i=[],layui.each(r.layout,function(e,a){s[a]&&i.push(s[a])}),i.join("")),"
        "].join("")},t.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,n=e[c]("button")[0],u=e[c]("input")[0],e=e[c]("select")[0],s=function(){var e=Number(u.value.replace(/\s|\D/g,""));e&&(i.curr=e,t.render())};if(a)return s();for(var l=0,p=r.length;li.pages||(i.curr=e,t.render())});e&&o.on(e,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),n&&o.on(n,"click",function(){s()})}},t.prototype.skip=function(t){var i,e;t&&(i=this,e=t[c]("input")[0])&&o.on(e,"keyup",function(e){var a=this.value,e=e.keyCode;/^(37|38|39|40)$/.test(e)||(/\D/.test(a)&&(this.value=a.replace(/\D/,"")),13===e&&i.jump(t,!0))})},t.prototype.render=function(e){var a=this,t=a.config,i=a.type(),r=a.view(),i=(2===i?t.elem&&(t.elem.innerHTML=r):3===i?t.elem.html(r):n[u](t.elem)&&(n[u](t.elem).innerHTML=r),t.jump&&t.jump(t,e),n[u]("layui-laypage-"+t.index));a.jump(i),t.hash&&!e&&(location.hash="!"+t.hash+"="+t.curr),a.skip(i)},{render:function(e){return new t(e).index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(a,e,t){return a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1),this}});e("laypage",o)});!function(i,r){"use strict";var n=i.layui&&layui.define,l={getPath:i.lay&&lay.getPath?lay.getPath:"",link:function(e,t,a){u.path&&i.lay&&lay.layui&&lay.layui.link(u.path+e,t,a)}},e=i.LAYUI_GLOBAL||{},u={v:"5.3.1",config:{weekStart:0},index:i.laydate&&i.laydate.v?1e5:0,path:e.laydate_dir||l.getPath,set:function(e){var t=this;return t.config=lay.extend({},t.config,e),t},ready:function(e){var t="laydate",a=(n?"modules/laydate/":"theme/")+"default/laydate.css?v="+u.v;return n?layui.addcss(a,e,t):l.link(a,e,t),this}},s=function(){var t=this,e=t.config.id;return{hint:function(e){t.hint.call(t,e)},refresh:function(e){t.refresh.call(t,e)},prevYear:function(e){lay.each(t.elemHeader,function(e,t){t[0].click()})},prevMonth:function(e){lay.each(t.elemHeader,function(e,t){t[1].click()})},nextMonth:function(e){lay.each(t.elemHeader,function(e,t){t[3].click()})},nextYear:function(e){u.each(t.elemHeader,function(e,t){t[4].click()})},config:(s.that[e]=t).config}},a="laydate",w="layui-this",x="laydate-disabled",h=[100,2e5],p="layui-laydate-static",M="layui-laydate-list",o="layui-laydate-hint",E=".laydate-btns-confirm",k="laydate-time-text",C="laydate-btns-time",f="layui-laydate-preview",g=function(e){var t=this;t.index=++u.index,t.config=lay.extend({},t.config,u.config,e),(e=t.config).id="id"in e?e.id:t.index,u.ready(function(){t.init()})},y="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s";s.formatArr=function(e){return(e||"").match(new RegExp(y+"|.","g"))||[]},g.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},g.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"click",show:!1,showBottom:!0,isPreview:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},holidays:null,zIndex:null,done:null,change:null},g.prototype.lang=function(){var e={cn:{weeks:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],time:["\u65f6","\u5206","\u79d2"],timeTips:"\u9009\u62e9\u65f6\u95f4",startTime:"\u5f00\u59cb\u65f6\u95f4",endTime:"\u7ed3\u675f\u65f6\u95f4",dateTips:"\u8fd4\u56de\u65e5\u671f",month:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],tools:{confirm:"\u786e\u5b9a",clear:"\u6e05\u7a7a",now:"\u73b0\u5728"},timeout:"\u7ed3\u675f\u65f6\u95f4\u4e0d\u80fd\u65e9\u4e8e\u5f00\u59cb\u65f6\u95f4
        \u8bf7\u91cd\u65b0\u9009\u62e9",invalidDate:"\u4e0d\u5728\u6709\u6548\u65e5\u671f\u6216\u65f6\u95f4\u8303\u56f4\u5185",formatError:["\u65e5\u671f\u683c\u5f0f\u4e0d\u5408\u6cd5
        \u5fc5\u987b\u9075\u5faa\u4e0b\u8ff0\u683c\u5f0f\uff1a
        ","
        \u5df2\u4e3a\u4f60\u91cd\u7f6e"],preview:"\u5f53\u524d\u9009\u4e2d\u7684\u7ed3\u679c"},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"},timeout:"End time cannot be less than start Time
        Please re-select",invalidDate:"Invalid date",formatError:["The date format error
        Must be followed\uff1a
        ","
        It has been reset"],preview:"The selected result"}};return e[this.config.lang]||e.cn},g.prototype.refresh=function(){var e=this,t=e.config,a=t.dateTime,t="static"===t.position,n=new Date;e.config.value&&(n=new Date(e.config.value.replace(/-/g,"/"))),lay.extend(a,e.systemDate(n),{hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds()}),e.setValue(e.parse()).remove(),t&&e.calendar(),e.done(null,"change")},g.prototype.init=function(){var r=this,o=r.config,e="static"===o.position,t={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};o.elem=lay(o.elem),o.eventElem=lay(o.eventElem),o.elem[0]&&(r.rangeStr=o.range?"string"==typeof o.range?o.range:"-":"","array"===layui.type(o.range)&&(r.rangeElem=[lay(o.range[0]),lay(o.range[1])]),t[o.type]||(i.console&&console.error&&console.error("laydate type error:'"+o.type+"' is not supported"),o.type="date"),o.format===t.date&&(o.format=t[o.type]||t.date),r.format=s.formatArr(o.format),o.weekStart&&!/^[0-6]$/.test(o.weekStart)&&(t=r.lang(),o.weekStart=t.weeks.indexOf(o.weekStart),-1===o.weekStart)&&(o.weekStart=0),r.EXP_IF="",r.EXP_SPLIT="",lay.each(r.format,function(e,t){e=new RegExp(y).test(t)?"\\d{"+(new RegExp(y).test(r.format[0===e?e+1:e-1]||"")?/^yyyy|y$/.test(t)?4:t.length:/^yyyy$/.test(t)?"1,4":/^y$/.test(t)?"1,308":"1,2")+"}":"\\"+t;r.EXP_IF=r.EXP_IF+e,r.EXP_SPLIT=r.EXP_SPLIT+"("+e+")"}),r.EXP_IF_ONE=new RegExp("^"+r.EXP_IF+"$"),r.EXP_IF=new RegExp("^"+(o.range?r.EXP_IF+"\\s\\"+r.rangeStr+"\\s"+r.EXP_IF:r.EXP_IF)+"$"),r.EXP_SPLIT=new RegExp("^"+r.EXP_SPLIT+"$",""),r.isInput(o.elem[0])||"focus"===o.trigger&&(o.trigger="click"),o.elem.attr("lay-key")||(o.elem.attr("lay-key",r.index),o.eventElem.attr("lay-key",r.index)),o.mark=lay.extend({},o.calendar&&"cn"===o.lang?{"0-1-1":"\u5143\u65e6","0-2-14":"\u60c5\u4eba","0-3-8":"\u5987\u5973","0-3-12":"\u690d\u6811","0-4-1":"\u611a\u4eba","0-5-1":"\u52b3\u52a8","0-5-4":"\u9752\u5e74","0-6-1":"\u513f\u7ae5","0-9-10":"\u6559\u5e08","0-10-1":"\u56fd\u5e86","0-12-25":"\u5723\u8bde"}:{},o.mark),lay.each(["min","max"],function(e,t){var a=[],n=[];if("number"==typeof o[t])var i=o[t],l=new Date,l=r.newDate({year:l.getFullYear(),month:l.getMonth(),date:l.getDate(),hours:"23",minutes:"59",seconds:"59"}).getTime(),i=new Date(i?i<864e5?l+864e5*i:i:l),a=[i.getFullYear(),i.getMonth()+1,i.getDate()],n=[i.getHours(),i.getMinutes(),i.getSeconds()];else if("string"==typeof o[t])a=(o[t].match(/\d+-\d+-\d+/)||[""])[0].split("-"),n=(o[t].match(/\d+:\d+:\d+/)||[""])[0].split(":");else if("object"==typeof o[t])return o[t];o[t]={year:0|a[0]||(new Date).getFullYear(),month:a[1]?(0|a[1])-1:(new Date).getMonth(),date:0|a[2]||(new Date).getDate(),hours:0|n[0],minutes:0|n[1],seconds:0|n[2]}}),r.elemID="layui-laydate"+o.elem.attr("lay-key"),(o.show||e)&&r.render(),e||r.events(),o.value)&&o.isInitValue&&("date"===layui.type(o.value)?r.setValue(r.parse(0,r.systemDate(o.value))):r.setValue(o.value))},g.prototype.render=function(){var n,e,t=this,o=t.config,s=t.lang(),i="static"===o.position,a=t.elem=lay.elem("div",{id:t.elemID,"class":["layui-laydate",o.range?" layui-laydate-range":"",i?" "+p:"",o.theme&&"default"!==o.theme&&!/^#/.test(o.theme)?" laydate-theme-"+o.theme:""].join("")}),y=t.elemMain=[],d=t.elemHeader=[],m=t.elemCont=[],c=t.table=[],l=t.footer=lay.elem("div",{"class":"layui-laydate-footer"});o.zIndex&&(a.style.zIndex=o.zIndex),lay.each(new Array(2),function(e){if(!o.range&&0'+s.timeTips+""),!o.range&&"datetime"===o.type||e.push(''),lay.each(o.btns,function(e,t){var a=s.tools[t]||"btn";o.range&&"now"===t||(i&&"clear"===t&&(a="cn"===o.lang?"\u91cd\u7f6e":"Reset"),n.push(''+a+""))}),e.push('"),e.join(""))),lay.each(y,function(e,t){a.appendChild(t)}),o.showBottom&&a.appendChild(l),/^#/.test(o.theme)&&(e=lay.elem("style"),l=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,t.elemID).replace(/{{theme}}/g,o.theme),"styleSheet"in e?(e.setAttribute("type","text/css"),e.styleSheet.cssText=l):e.innerHTML=l,lay(a).addClass("laydate-theme-molv"),a.appendChild(e)),t.remove(g.thisElemDate),u.thisId=o.id,i?o.elem.append(a):(r.body.appendChild(a),t.position()),t.checkDate().calendar(null,0,"init"),t.changeEvent(),g.thisElemDate=t.elemID,"function"==typeof o.ready&&o.ready(lay.extend({},o.dateTime,{month:o.dateTime.month+1})),t.preview()},g.prototype.remove=function(e){var t=this,a=t.config,n=lay("#"+(e||t.elemID));return n[0]&&!n.hasClass(p)&&t.checkDate(function(){n.remove(),delete u.thisId,"function"==typeof a.close&&a.close(t)}),t},g.prototype.position=function(){var e=this.config;return lay.position(this.bindElem||e.elem[0],this.elem,{position:e.position}),this},g.prototype.hint=function(e){var t=this,a=(t.config,lay.elem("div",{"class":o}));t.elem&&(a.innerHTML=e||"",lay(t.elem).find("."+o).remove(),t.elem.appendChild(a),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){lay(t.elem).find("."+o).remove()},3e3))},g.prototype.getAsYM=function(e,t,a){return a?t--:t++,t<0&&(t=11,e--),11h[1]&&(e.year=h[1],o=!0),11t&&(e.date=t,o=!0)},c=function(n,i,l){var r=["startTime","endTime"];i=(i.match(s.EXP_SPLIT)||[]).slice(1),l=l||0,y.range&&(s[r[l]]=s[r[l]]||{}),lay.each(s.format,function(e,t){var a=parseFloat(i[e]);i[e].lengthn(y.max)?l=y.dateTime=lay.extend({},y.max):n(l)n(y.max))&&(s.endDate=lay.extend({},y.max)),e&&e()),s},g.prototype.mark=function(e,a){var n,t=this.config;return lay.each(t.mark,function(e,t){e=e.split("-");e[0]!=a[0]&&0!=e[0]||e[1]!=a[1]&&0!=e[1]||e[2]!=a[2]||(n=t||a[2])}),n&&e.html(''+n+""),this},g.prototype.holidays=function(n,i){var e=this.config,l=["","work"];return"array"===layui.type(e.holidays)&&lay.each(e.holidays,function(a,e){lay.each(e,function(e,t){t===n.attr("lay-ymd")&&n.html('"+i[2]+"")})}),this},g.prototype.limit=function(e,t,a,i){var l=this,n=l.config,r={},a=n[41h[1]&&(s.year=h[1],o.hint(d.invalidDate)),o.firstDate||(o.firstDate=lay.extend({},s)),y.setFullYear(s.year,s.month,1),i=(y.getDay()+(7-n.weekStart))%7,l=u.getEndDate(s.month||12,s.year),r=u.getEndDate(s.month+1,s.year),lay.each(c,function(e,t){var a=[s.year,s.month],n=0;(t=lay(t)).removeAttr("class"),e"+d.time[t]+"

          "];lay.each(new Array(e),function(e){n.push(""+lay.digit(e,2)+"")}),a.innerHTML=n.join("")+"
        ",m.appendChild(a)}),l()),p&&h.removeChild(p),h.prepend(m),"year"===t||"month"===t?(lay(o.elemMain[n]).addClass("laydate-ym-show"),lay(m).find("li").on("click",function(){var e=0|lay(this).attr("lay-ym");lay(this).hasClass(x)||(0===n?(y[t]=e,o.limit(lay(o.footer).find(E),null,0)):o.endDate[t]=e,"year"===s.type||"month"===s.type?(lay(m).find("."+w).removeClass(w),lay(this).addClass(w),"month"===s.type&&"year"===t&&(o.listYM[n][0]=e,a&&((n?o.endDate:y).year=e),o.list("month",n))):(o.checkDate("limit").calendar(null,n),o.closeList()),o.setBtnStatus(),s.range||("month"===s.type&&"month"===t||"year"===s.type&&"year"===t)&&o.setValue(o.parse()).remove().done(),o.done(null,"change"),lay(o.footer).find("."+C).removeClass(x))})):(e=lay.elem("span",{"class":k}),r=function(){lay(m).find("ol").each(function(e){var a=this,t=lay(a).find("li");a.scrollTop=30*(o[D][T[e]]-2),a.scrollTop<=0&&t.each(function(e,t){if(!lay(this).hasClass(x))return a.scrollTop=30*(e-2),!0})})},u=lay(c[2]).find("."+k),r(),e.innerHTML=s.range?[d.startTime,d.endTime][n]:d.timeTips,lay(o.elemMain[n]).addClass("laydate-time-show"),u[0]&&u.remove(),c[2].appendChild(e),lay(m).find("ol").each(function(t){var a=this;lay(a).find("li").on("click",function(){var e=0|this.innerHTML;lay(this).hasClass(x)||(s.range?o[D][T[t]]=e:y[T[t]]=e,lay(a).find("."+w).removeClass(w),lay(this).addClass(w),l(),r(),!o.endDate&&"time"!==s.type||o.done(null,"change"),o.setBtnStatus())})})),o},g.prototype.listYM=[],g.prototype.closeList=function(){var a=this;a.config;lay.each(a.elemCont,function(e,t){lay(this).find("."+M).remove(),lay(a.elemMain[e]).removeClass("laydate-ym-show laydate-time-show")}),lay(a.elem).find("."+k).remove()},g.prototype.setBtnStatus=function(e,t,a){var n=this,i=n.config,l=n.lang(),r=lay(n.footer).find(E);i.range&&"time"!==i.type&&(t=t||i.dateTime,a=a||n.endDate,i=n.newDate(t).getTime()>n.newDate(a).getTime(),n.limit(null,t)||n.limit(null,a)?r.addClass(x):r[i?"addClass":"removeClass"](x),e)&&i&&n.hint("string"==typeof e?l.timeout.replace(/\u65e5\u671f/g,e):l.timeout)},g.prototype.parse=function(e,t){var a=this,n=a.config,t=t||("end"==e?lay.extend({},a.endDate,a.endTime):n.range?lay.extend({},n.dateTime,a.startTime):n.dateTime),t=u.parse(t,a.format,1);return n.range&&e===undefined?t+" "+a.rangeStr+" "+a.parse("end"):t},g.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},g.prototype.setValue=function(e){var t=this,a=t.config,n=t.bindElem||a.elem[0];return"static"!==a.position&&(e=e||"",t.isInput(n)?lay(n).val(e):(a=t.rangeElem)?("array"!==layui.type(e)&&(e=e.split(" "+t.rangeStr+" ")),a[0].val(e[0]||""),a[1].val(e[1]||"")):(0===lay(n).find("*").length&&lay(n).html(e),lay(n).attr("lay-date",e))),t},g.prototype.preview=function(){var e,t=this,a=t.config;a.isPreview&&(e=lay(t.elem).find("."+f),a=!a.range||t.endDate?t.parse():"",e.html(a).css({color:"#5FB878"}),setTimeout(function(){e.css({color:"#666"})},300))},g.prototype.done=function(e,t){var a=this,n=a.config,i=lay.extend({},lay.extend(n.dateTime,a.startTime)),l=lay.extend({},lay.extend(a.endDate,a.endTime));return lay.each([i,l],function(e,t){"month"in t&&lay.extend(t,{month:t.month+1})}),a.preview(),e=e||[a.parse(),i,l],"function"==typeof n[t||"done"]&&n[t||"done"].apply(n,e),a},g.prototype.choose=function(e,t){var a=this,n=a.config,i=a.thisDateTime(t),l=(lay(a.elem).find("td"),{year:0|(l=e.attr("lay-ymd").split("-"))[0],month:(0|l[1])-1,date:0|l[2]});e.hasClass(x)||(lay.extend(i,l),n.range?(lay.each(["startTime","endTime"],function(e,t){a[t]=a[t]||{hours:e?23:0,minutes:e?59:0,seconds:e?59:0}}),a.calendar(null,t).done(null,"change")):"static"===n.position?a.calendar().done().done(null,"change"):"date"===n.type?a.setValue(a.parse()).remove().done():"datetime"===n.type&&a.calendar().done(null,"change"))},g.prototype.tool=function(e,t){var a=this,n=a.config,i=a.lang(),l=n.dateTime,r="static"===n.position,o={datetime:function(){lay(e).hasClass(x)||(a.list("time",0),n.range&&a.list("time",1),lay(e).attr("lay-type","date").html(a.lang().dateTips))},date:function(){a.closeList(),lay(e).attr("lay-type","datetime").html(a.lang().timeTips)},clear:function(){r&&(lay.extend(l,a.firstDate),a.calendar()),n.range&&(delete n.dateTime,delete a.endDate,delete a.startTime,delete a.endTime),a.setValue("").remove(),a.done(["",{},{}])},now:function(){var e=new Date;lay.extend(l,a.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),a.setValue(a.parse()).remove(),r&&a.calendar(),a.done()},confirm:function(){if(n.range){if(lay(e).hasClass(x))return a.hint("time"===n.type?i.timeout.replace(/\u65e5\u671f/g,"\u65f6\u95f4"):i.timeout)}else if(lay(e).hasClass(x))return a.hint(i.invalidDate);a.setValue(a.parse()).remove(),a.done()}};o[t]&&o[t]()},g.prototype.change=function(n){var i=this,l=i.config,r=i.thisDateTime(n),o=l.range&&("year"===l.type||"month"===l.type),s=i.elemCont[n||0],y=i.listYM[n],e=function(e){var t=lay(s).find(".laydate-year-list")[0],a=lay(s).find(".laydate-month-list")[0];return t&&(y[0]=e?y[0]-15:y[0]+15,i.list("year",n)),a&&(e?y[0]--:y[0]++,i.list("month",n)),(t||a)&&(lay.extend(r,{year:y[0]}),o&&(r.year=y[0]),l.range||i.done(null,"change"),l.range||i.limit(lay(i.footer).find(E),{year:y[0]})),i.setBtnStatus(),t||a};return{prevYear:function(){e("sub")||(r.year--,i.checkDate("limit").calendar(null,n),i.done(null,"change"))},prevMonth:function(){var e=i.getAsYM(r.year,r.month,"sub");lay.extend(r,{year:e[0],month:e[1]}),i.checkDate("limit").calendar(null,n),i.done(null,"change")},nextMonth:function(){var e=i.getAsYM(r.year,r.month);lay.extend(r,{year:e[0],month:e[1]}),i.checkDate("limit").calendar(null,n),i.done(null,"change")},nextYear:function(){e()||(r.year++,i.checkDate("limit").calendar(null,n),i.done(null,"change"))}}},g.prototype.changeEvent=function(){var i=this;i.config;lay(i.elem).on("click",function(e){lay.stope(e)}).on("mousedown",function(e){lay.stope(e)}),lay.each(i.elemHeader,function(n,e){lay(e[0]).on("click",function(e){i.change(n).prevYear()}),lay(e[1]).on("click",function(e){i.change(n).prevMonth()}),lay(e[2]).find("span").on("click",function(e){var t=lay(this),a=t.attr("lay-ym"),t=t.attr("lay-type");a&&(a=a.split("-"),i.listYM[n]=[0|a[0],0|a[1]],i.list(t,n),lay(i.footer).find("."+C).addClass(x))}),lay(e[3]).on("click",function(e){i.change(n).nextMonth()}),lay(e[4]).on("click",function(e){i.change(n).nextYear()})}),lay.each(i.table,function(e,t){lay(t).find("td").on("click",function(){i.choose(lay(this),e)})}),lay(i.footer).find("span").on("click",function(){var e=lay(this).attr("lay-type");i.tool(this,e)})},g.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())||/INPUT|TEXTAREA/.test(e.tagName)},g.prototype.events=function(){var a=this,n=a.config,e=function(e,t){e.on(n.trigger,function(){u.thisId!==n.id&&(t&&(a.bindElem=this),a.render())})};n.elem[0]&&!n.elem[0].eventHandler&&(e(n.elem,"bind"),e(n.eventElem),n.elem[0].eventHandler=!0)},s.that={},s.getThis=function(e){var t=s.that[e];return!t&&n&&layui.hint().error(e?a+" instance with ID '"+e+"' not found":"ID argument required"),t},l.run=function(n){n(r).on("mousedown",function(e){var t,a;u.thisId&&(t=s.getThis(u.thisId))&&(a=t.config,e.target!==a.elem[0])&&e.target!==a.eventElem[0]&&e.target!==n(a.closeStop)[0]&&t.remove()}).on("keydown",function(e){var t;u.thisId&&(t=s.getThis(u.thisId))&&"static"!==t.config.position&&13===e.keyCode&&n("#"+t.elemID)[0]&&t.elemID===g.thisElemDate&&(e.preventDefault(),n(t.footer).find(E)[0].click())}),n(i).on("resize",function(){if(u.thisId){var e=s.getThis(u.thisId);if(e)return!(!e.elem||!n(".layui-laydate")[0])&&void e.position()}})},u.render=function(e){e=new g(e);return s.call(e)},u.parse=function(a,n,i){return a=a||{},n=((n="string"==typeof n?s.formatArr(n):n)||[]).concat(),lay.each(n,function(e,t){/yyyy|y/.test(t)?n[e]=lay.digit(a.year,t.length):/MM|M/.test(t)?n[e]=lay.digit(a.month+(i||0),t.length):/dd|d/.test(t)?n[e]=lay.digit(a.date,t.length):/HH|H/.test(t)?n[e]=lay.digit(a.hours,t.length):/mm|m/.test(t)?n[e]=lay.digit(a.minutes,t.length):/ss|s/.test(t)&&(n[e]=lay.digit(a.seconds,t.length))}),n.join("")},u.getEndDate=function(e,t){var a=new Date;return a.setFullYear(t||a.getFullYear(),e||a.getMonth()+1,1),new Date(a.getTime()-864e5).getDate()},u.close=function(e){lay("#"+(e?"layui-laydate"+e:g.thisElemDate)).remove()},n?(u.ready(),layui.define("lay",function(e){u.path=layui.cache.dir,l.run(lay),e(a,u)})):"function"==typeof define&&define.amd?define(function(){return l.run(lay),u}):(u.ready(),l.run(i.lay),i.laydate=u)}(window,window.document);!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(T,M){var f=[],g=T.document,c=f.slice,O=f.concat,R=f.push,P=f.indexOf,B={},W=B.toString,m=B.hasOwnProperty,y={},e="1.12.4",C=function(e,t){return new C.fn.init(e,t)},I=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,$=/^-ms-/,z=/-([\da-z])/gi,X=function(e,t){return t.toUpperCase()};function U(e){var t=!!e&&"length"in e&&e.length,n=C.type(e);return"function"!==n&&!C.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+a+")"+a+"*"),ee=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),te=new RegExp(G),ne=new RegExp("^"+s+"$"),f={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},re=/^(?:input|select|textarea|button)$/i,ie=/^h\d$/i,c=/^[^{]+\{\s*\[native \w/,oe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ae=/[+~]/,se=/'|\\/g,d=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig"),p=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)},ue=function(){C()};try{D.apply(n=V.call(v.childNodes),v.childNodes),n[v.childNodes.length].nodeType}catch(F){D={apply:n.length?function(e,t){U.apply(e,V.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function H(e,t,n,r){var i,o,a,s,u,l,c,f,d=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:v)!==E&&C(t),t=t||E,N)){if(11!==p&&(l=oe.exec(e)))if(i=l[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&y(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return D.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&g.getElementsByClassName&&t.getElementsByClassName)return D.apply(n,t.getElementsByClassName(i)),n}if(g.qsa&&!A[e+" "]&&(!m||!m.test(e))){if(1!==p)d=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(se,"\\$&"):t.setAttribute("id",s=k),o=(c=w(e)).length,u=ne.test(s)?"#"+s:"[id='"+s+"']";o--;)c[o]=u+" "+_(c[o]);f=c.join(","),d=ae.test(e)&&de(t.parentNode)||t}if(f)try{return D.apply(n,d.querySelectorAll(f)),n}catch(h){}finally{s===k&&t.removeAttribute("id")}}}return P(e.replace(L,"$1"),t,n,r)}function le(){var n=[];function r(e,t){return n.push(e+" ")>b.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function q(e){return e[k]=!0,e}function h(e){var t=E.createElement("div");try{return!!e(t)}catch(F){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function x(a){return q(function(o){return o=+o,q(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function de(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in g=H.support={},O=H.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},C=H.setDocument=function(e){var e=e?e.ownerDocument||e:v;return e!==E&&9===e.nodeType&&e.documentElement&&(t=(E=e).documentElement,N=!O(E),(e=E.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ue,!1):e.attachEvent&&e.attachEvent("onunload",ue)),g.attributes=h(function(e){return e.className="i",!e.getAttribute("className")}),g.getElementsByTagName=h(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),g.getElementsByClassName=c.test(E.getElementsByClassName),g.getById=h(function(e){return t.appendChild(e).id=k,!E.getElementsByName||!E.getElementsByName(k).length}),g.getById?(b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N)return(e=t.getElementById(e))?[e]:[]},b.filter.ID=function(e){var t=e.replace(d,p);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(d,p);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),b.find.TAG=g.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):g.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=g.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&N)return t.getElementsByClassName(e)},r=[],m=[],(g.qsa=c.test(E.querySelectorAll))&&(h(function(e){t.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+a+"*(?:value|"+Y+")"),e.querySelectorAll("[id~="+k+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||m.push(".#.+[+~]")}),h(function(e){var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+a+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(g.matchesSelector=c.test(i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector))&&h(function(e){g.disconnectedMatch=i.call(e,"div"),i.call(e,"[s!='']:x"),r.push("!=",G)}),m=m.length&&new RegExp(m.join("|")),r=r.length&&new RegExp(r.join("|")),e=c.test(t.compareDocumentPosition),y=e||c.test(t.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=e?function(e,t){var n;return e===t?(l=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===E||e.ownerDocument===v&&y(v,e)?-1:t===E||t.ownerDocument===v&&y(v,t)?1:u?j(u,e)-j(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===E?-1:t===E?1:i?-1:o?1:u?j(u,e)-j(u,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]===v?-1:s[r]===v?1:0}),E},H.matches=function(e,t){return H(e,null,null,t)},H.matchesSelector=function(e,t){if((e.ownerDocument||e)!==E&&C(e),t=t.replace(ee,"='$1']"),g.matchesSelector&&N&&!A[t+" "]&&(!r||!r.test(t))&&(!m||!m.test(t)))try{var n=i.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(F){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(d,p),e[3]=(e[3]||e[4]||e[5]||"").replace(d,p),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||H.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&H.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return f.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&te.test(n)&&(t=(t=w(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(d,p).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=H.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1(?:<\/\1>|)$/,G=/^.[^:#\[\.,]*$/;function K(e,n,r){if(C.isFunction(n))return C.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return C.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(G.test(n))return C.filter(n,e,r);n=C.filter(n,e)}return C.grep(e,function(e){return-1)[^>]*|#([\w-]*))$/,ee=((C.fn.init=function(e,t,n){if(e){if(n=n||Q,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):C.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(C):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),C.makeArray(e,this));if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Z.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),J.test(r[1])&&C.isPlainObject(t))for(var r in t)C.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r])}else{if((n=g.getElementById(r[2]))&&n.parentNode){if(n.id!==r[2])return Q.find(e);this.length=1,this[0]=n}this.context=g,this.selector=e}}return this}).prototype=C.fn,Q=C(g),/^(?:parents|prev(?:Until|All))/),te={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t,n=C(e,this),r=n.length;return this.filter(function(){for(t=0;t
        a",y.leadingWhitespace=3===S.firstChild.nodeType,y.tbody=!S.getElementsByTagName("tbody").length,y.htmlSerialize=!!S.getElementsByTagName("link").length,y.html5Clone="<:nav>"!==g.createElement("nav").cloneNode(!0).outerHTML,q.type="checkbox",q.checked=!0,k.appendChild(q),y.appendChecked=q.checked,S.innerHTML="",y.noCloneChecked=!!S.cloneNode(!0).lastChild.defaultValue,k.appendChild(S),(q=g.createElement("input")).setAttribute("type","radio"),q.setAttribute("checked","checked"),q.setAttribute("name","t"),S.appendChild(q),y.checkClone=S.cloneNode(!0).cloneNode(!0).lastChild.checked,y.noCloneEvent=!!S.addEventListener,S[C.expando]=1,y.attributes=!S.getAttribute(C.expando);var x={option:[1,""],legend:[1,"
        ","
        "],area:[1,"",""],param:[1,"",""],thead:[1,"","
        "],tr:[2,"","
        "],col:[2,"","
        "],td:[3,"","
        "],_default:y.htmlSerialize?[0,"",""]:[1,"X
        ","
        "]};function b(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||C.nodeName(r,t)?o.push(r):C.merge(o,b(r,t));return t===undefined||t&&C.nodeName(e,t)?C.merge([e],o):o}function we(e,t){for(var n,r=0;null!=(n=e[r]);r++)C._data(n,"globalEval",!t||C._data(t[r],"globalEval"))}x.optgroup=x.option,x.tbody=x.tfoot=x.colgroup=x.caption=x.thead,x.th=x.td;var Te=/<|&#?\w+;/,Ce=/"!==f[1]||Ce.test(a)?0:u:u.firstChild)&&a.childNodes.length;o--;)C.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(C.merge(h,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=p.lastChild}else h.push(t.createTextNode(a));for(u&&p.removeChild(u),y.appendChecked||C.grep(b(h,"input"),Ee),g=0;a=h[g++];)if(r&&-1]","i"),Pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Be=/\s*$/g,ze=be(g).appendChild(g.createElement("div"));function Xe(e,t){return C.nodeName(e,"table")&&C.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ue(e){return e.type=(null!==C.find.attr(e,"type"))+"/"+e.type,e}function Ve(e){var t=Ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ye(e,t){if(1===t.nodeType&&C.hasData(e)){var n,r,i,e=C._data(e),o=C._data(t,e),a=e.events;if(a)for(n in delete o.handle,o.events={},a)for(r=0,i=a[n].length;r")},clone:function(e,t,n){var r,i,o,a,s,u=C.contains(e.ownerDocument,e);if(y.html5Clone||C.isXMLDoc(e)||!Re.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ze.innerHTML=e.outerHTML,ze.removeChild(o=ze.firstChild)),!(y.noCloneEvent&&y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(r=b(o),s=b(e),a=0;null!=(i=s[a]);++a)if(r[a]){f=c=l=p=d=void 0;var l,c,f,d=i,p=r[a];if(1===p.nodeType){if(l=p.nodeName.toLowerCase(),!y.noCloneEvent&&p[C.expando]){for(c in(f=C._data(p)).events)C.removeEvent(p,c,f.handle);p.removeAttribute(C.expando)}"script"===l&&p.text!==d.text?(Ue(p).text=d.text,Ve(p)):"object"===l?(p.parentNode&&(p.outerHTML=d.outerHTML),y.html5Clone&&d.innerHTML&&!C.trim(p.innerHTML)&&(p.innerHTML=d.innerHTML)):"input"===l&&ge.test(d.type)?(p.defaultChecked=p.checked=d.checked,p.value!==d.value&&(p.value=d.value)):"option"===l?p.defaultSelected=p.selected=d.defaultSelected:"input"!==l&&"textarea"!==l||(p.defaultValue=d.defaultValue)}}if(t)if(n)for(s=s||b(e),r=r||b(o),a=0;null!=(i=s[a]);a++)Ye(i,r[a]);else Ye(e,o);return 0<(r=b(o,"script")).length&&we(r,!u&&b(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,o,a=0,s=C.expando,u=C.cache,l=y.attributes,c=C.event.special;null!=(n=e[a]);a++)if((t||v(n))&&(o=(i=n[s])&&u[i])){if(o.events)for(r in o.events)c[r]?C.event.remove(n,r):C.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeAttribute?n[s]=undefined:n.removeAttribute(s),f.push(i))}}}),C.fn.extend({domManip:w,detach:function(e){return Je(this,e,!0)},remove:function(e){return Je(this,e)},text:function(e){return d(this,function(e){return e===undefined?C.text(this):this.empty().append((this[0]&&this[0].ownerDocument||g).createTextNode(e))},null,e,arguments.length)},append:function(){return w(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Xe(this,e).appendChild(e)})},prepend:function(){return w(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Xe(this,e)).insertBefore(e,t.firstChild)})},before:function(){return w(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return w(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&C.cleanData(b(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&C.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return d(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(Oe,""):undefined;if("string"==typeof e&&!Be.test(e)&&(y.htmlSerialize||!Re.test(e))&&(y.leadingWhitespace||!ve.test(e))&&!x[(me.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n")).appendTo(t.documentElement))[0].contentWindow||Ge[0].contentDocument).document).write(),t.close(),n=Qe(e,t),Ge.detach()),Ke[e]=n),n}var n,et,tt,nt,rt,it,ot,a,at=/^margin/,st=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),ut=function(e,t,n,r){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,r||[]),t)e.style[i]=o[i];return r},lt=g.documentElement;function t(){var e,t=g.documentElement;t.appendChild(ot),a.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=tt=it=!1,et=rt=!0,T.getComputedStyle&&(e=T.getComputedStyle(a),n="1%"!==(e||{}).top,it="2px"===(e||{}).marginLeft,tt="4px"===(e||{width:"4px"}).width,a.style.marginRight="50%",et="4px"===(e||{marginRight:"4px"}).marginRight,(e=a.appendChild(g.createElement("div"))).style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",rt=!parseFloat((T.getComputedStyle(e)||{}).marginRight),a.removeChild(e)),a.style.display="none",(nt=0===a.getClientRects().length)&&(a.style.display="",a.innerHTML="
        t
        ",a.childNodes[0].style.borderCollapse="separate",(e=a.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",nt=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",nt=0===e[0].offsetHeight),t.removeChild(ot)}ot=g.createElement("div"),(a=g.createElement("div")).style&&(a.style.cssText="float:left;opacity:.5",y.opacity="0.5"===a.style.opacity,y.cssFloat=!!a.style.cssFloat,a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===a.style.backgroundClip,(ot=g.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.innerHTML="",ot.appendChild(a),y.boxSizing=""===a.style.boxSizing||""===a.style.MozBoxSizing||""===a.style.WebkitBoxSizing,C.extend(y,{reliableHiddenOffsets:function(){return null==n&&t(),nt},boxSizingReliable:function(){return null==n&&t(),tt},pixelMarginRight:function(){return null==n&&t(),et},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),rt},reliableMarginLeft:function(){return null==n&&t(),it}}));var l,p,ct=/^(top|right|bottom|left)$/;function ft(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}T.getComputedStyle?(l=function(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:T).getComputedStyle(e)},p=function(e,t,n){var r,i,o=e.style;return""!==(i=(n=n||l(e))?n.getPropertyValue(t)||n[t]:undefined)&&i!==undefined||C.contains(e.ownerDocument,e)||(i=C.style(e,t)),n&&!y.pixelMarginRight()&&st.test(i)&&at.test(t)&&(e=o.width,t=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=i,i=n.width,o.width=e,o.minWidth=t,o.maxWidth=r),i===undefined?i:i+""}):lt.currentStyle&&(l=function(e){return e.currentStyle},p=function(e,t,n){var r,i,o,a=e.style;return null==(n=(n=n||l(e))?n[t]:undefined)&&a&&a[t]&&(n=a[t]),st.test(n)&&!ct.test(t)&&(r=a.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),a.left="fontSize"===t?"1em":n,n=a.pixelLeft+"px",a.left=r,o)&&(i.left=o),n===undefined?n:n+""||"auto"});var dt=/alpha\([^)]*\)/i,pt=/opacity\s*=\s*([^)]*)/i,ht=/^(none|table(?!-c[ea]).+)/,gt=new RegExp("^("+e+")(.*)$","i"),mt={position:"absolute",visibility:"hidden",display:"block"},yt={letterSpacing:"0",fontWeight:"400"},vt=["Webkit","O","Moz","ms"],xt=g.createElement("div").style;function bt(e){if(e in xt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=vt.length;n--;)if((e=vt[n]+t)in xt)return e}function wt(e,t){for(var n,r,i,o=[],a=0,s=e.length;a
        a",F=q.getElementsByTagName("a")[0],k.setAttribute("type","checkbox"),q.appendChild(k),(F=q.getElementsByTagName("a")[0]).style.cssText="top:1px",y.getSetAttribute="t"!==q.className,y.style=/top/.test(F.getAttribute("style")),y.hrefNormalized="/a"===F.getAttribute("href"),y.checkOn=!!k.value,y.optSelected=e.selected,y.enctype=!!g.createElement("form").enctype,S.disabled=!0,y.optDisabled=!e.disabled,(k=g.createElement("input")).setAttribute("value",""),y.input=""===k.getAttribute("value"),k.value="t",k.setAttribute("type","radio"),y.radioValue="t"===k.value;var Lt=/\r/g,Ht=/[\x20\t\r\n\f]+/g;C.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=C.isFunction(t),this.each(function(e){1!==this.nodeType||(null==(e=r?t.call(this,e,C(this).val()):t)?e="":"number"==typeof e?e+="":C.isArray(e)&&(e=C.map(e,function(e){return null==e?"":e+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,e,"value")!==undefined)||(this.value=e)})):i?(n=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&(e=n.get(i,"value"))!==undefined?e:"string"==typeof(e=i.value)?e.replace(Lt,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:C.trim(C.text(e)).replace(Ht," ")}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,i="select-one"===e.type||r<0,o=i?null:[],a=i?r+1:n.length,s=r<0?a:i?r:0;s").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this)},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.filters.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,n){var r,i,o,a,s=C.css(e,"position"),u=C(e),l={};"static"===s&&(e.style.position="relative"),o=u.offset(),r=C.css(e,"top"),a=C.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1'+(o?n.title[0]:n.title)+"
      ":"";return n.zIndex=a,t([n.shade?'
      ':"",'
      '+(e&&2!=n.type?"":o)+'
      '+(0==n.type&&-1!==n.icon?'':"")+((1!=n.type||!e)&&n.content||"")+'
      '+(i=s?'':"",n.closeBtn&&(i+='ဆ'),i)+""+(n.btn?function(){var e="";"string"==typeof n.btn&&(n.btn=[n.btn]);for(var t=0,i=n.btn.length;t'+n.btn[t]+"";return'
      '+e+"
      "}():"")+(n.resize?'':"")+"
      "],o,h('
      ')),this},t.pt.creat=function(){var e,n=this,a=n.config,o=n.index,s="object"==typeof(l=a.content),r=h("body");if(!a.id||!h("#"+a.id)[0]){switch("string"==typeof a.area&&(a.area="auto"===a.area?["",""]:[a.area,""]),a.shift&&(a.anim=a.shift),6==m.ie&&(a.fixed=!1),a.type){case 0:a.btn="btn"in a?a.btn:c.btn[0],m.closeAll("dialog");break;case 2:var l=a.content=s?a.content:[a.content||"","auto"];a.content='';break;case 3:delete a.title,delete a.closeBtn,-1===a.icon&&a.icon,m.closeAll("loading");break;case 4:s||(a.content=[a.content,"body"]),a.follow=a.content[1],a.content=a.content[0]+'',delete a.title,a.tips="object"==typeof a.tips?a.tips:[a.tips,!0],a.tipsMore||m.closeAll("tips")}n.vessel(s,function(e,t,i){r.append(e[0]),s?2==a.type||4==a.type?h("body").append(e[1]):l.parents("."+d[0])[0]||(l.data("display",l.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),h("#"+d[0]+o).find("."+d[5]).before(t)):r.append(e[1]),h("#"+d.MOVE)[0]||r.append(c.moveElem=i),n.layero=h("#"+d[0]+o),n.shadeo=h("#"+d.SHADE+o),a.scrollbar||d.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),n.shadeo.css({"background-color":a.shade[1]||"#000",opacity:a.shade[0]||a.shade}),2==a.type&&6==m.ie&&n.layero.find("iframe").attr("src",l[0]),4==a.type?n.tips():(n.offset(),parseInt(c.getStyle(document.getElementById(d.MOVE),"z-index"))||(n.layero.css("visibility","hidden"),m.ready(function(){n.offset(),n.layero.css("visibility","visible")}))),a.fixed&&f.on("resize",function(){n.offset(),(/^\d+%$/.test(a.area[0])||/^\d+%$/.test(a.area[1]))&&n.auto(o),4==a.type&&n.tips()}),a.time<=0||setTimeout(function(){m.close(n.index)},a.time),n.move().callback(),d.anim[a.anim]&&(e="layer-anim "+d.anim[a.anim],n.layero.addClass(e).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){h(this).removeClass(e)})),a.isOutAnim&&n.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){var t=this.config,i=h("#"+d[0]+e),n=(""===t.area[0]&&0t.maxWidth)&&i.width(t.maxWidth),[i.innerWidth(),i.innerHeight()]),a=i.find(d[1]).outerHeight()||0,o=i.find("."+d[6]).outerHeight()||0,e=function(e){(e=i.find(e)).height(n[1]-a-o-2*(0|parseFloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0t.maxHeight?(n[1]=t.maxHeight,e("."+d[5])):t.fixed&&n[1]>=f.height()&&(n[1]=f.height(),e("."+d[5])):e("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,i=e.layero,n=[i.outerWidth(),i.outerHeight()],a="object"==typeof t.offset;e.offsetTop=(f.height()-n[1])/2,e.offsetLeft=(f.width()-n[0])/2,a?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=f.width()-n[0]:"b"===t.offset?e.offsetTop=f.height()-n[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=f.height()-n[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=f.width()-n[0]):"rb"===t.offset?(e.offsetTop=f.height()-n[1],e.offsetLeft=f.width()-n[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?f.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?f.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=f.scrollTop(),e.offsetLeft+=f.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=f.height()-(i.find(d[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},t.pt.tips=function(){var e=this.config,t=this.layero,i=[t.outerWidth(),t.outerHeight()],n=h(e.follow),a={width:(n=n[0]?n:h("body")).outerWidth(),height:n.outerHeight(),top:n.offset().top,left:n.offset().left},o=t.find(".layui-layer-TipsG"),n=e.tips[0];e.tips[1]||o.remove(),a.autoLeft=function(){0":'',o=i.success;return delete i.success,m.open(h.extend({type:1,btn:["确定","取消"],content:t,skin:"layui-layer-prompt"+g("prompt"),maxWidth:f.width(),success:function(e){(a=e.find(".layui-layer-input")).val(i.value||"").focus(),"function"==typeof o&&o(e)},resize:!1,yes:function(e){var t=a.val();""===t?a.focus():t.length>(i.maxlength||500)?m.tips("最多输入"+(i.maxlength||500)+"个字数",a,{tips:1}):n&&n(t,e,a)}},i))},m.tab=function(n){var a=(n=n||{}).tab||{},o="layui-this",s=n.success;return delete n.success,m.open(h.extend({type:1,skin:"layui-layer-tab"+g("tab"),resize:!1,title:function(){var e=a.length,t=1,i="";if(0'+a[0].title+"";t"+a[t].title+"";return i}(),content:'
        '+function(){var e=a.length,t=1,i="";if(0'+(a[0].content||"no content")+"";t'+(a[t].content||"no content")+"";return i}()+"
      ",success:function(e){var t=e.find(".layui-layer-title").children(),i=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var e=h(this),t=e.index();e.addClass(o).siblings().removeClass(o),i.eq(t).show().siblings().hide(),"function"==typeof n.change&&n.change(t)}),"function"==typeof s&&s(e)}},n))},m.photos=function(i,e,n){var a={};if((i=i||{}).photos){var t=!("string"==typeof i.photos||i.photos instanceof h),o=t?i.photos:{},s=o.data||[],r=o.start||0,l=(a.imgIndex=1+(0|r),i.img=i.img||"img",i.success);if(delete i.success,t){if(0===s.length)return m.msg("没有图片")}else{var f=h(i.photos),c=function(){s=[],f.find(i.img).each(function(e){var t=h(this);t.attr("layer-index",e),s.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(c(),0===s.length)return;if(e||f.on("click",i.img,function(){c();var e=h(this).attr("layer-index");m.photos(h.extend(i,{photos:{start:e,data:s,tab:i.tab},full:i.full}),!0)}),!e)return}a.imgprev=function(e){a.imgIndex--,a.imgIndex<1&&(a.imgIndex=s.length),a.tabimg(e)},a.imgnext=function(e,t){a.imgIndex++,a.imgIndex>s.length&&(a.imgIndex=1,t)||a.tabimg(e)},a.keyup=function(e){var t;a.end||(t=e.keyCode,e.preventDefault(),37===t?a.imgprev(!0):39===t?a.imgnext(!0):27===t&&m.close(a.index))},a.tabimg=function(e){if(!(s.length<=1))return o.start=a.imgIndex-1,m.close(a.index),m.photos(i,!0,e)},a.event=function(){a.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),a.imgprev(!0)}),a.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),a.imgnext(!0)}),h(document).on("keyup",a.keyup)},a.loadi=m.load(1,{shade:!("shade"in i)&&.9,scrollbar:!1});var t=s[r].src,d=function(e){var t;m.close(a.loadi),n&&(i.anim=-1),a.index=m.open(h.extend({type:1,id:"layui-layer-photos",area:(e=[e.width,e.height],t=[h(p).width()-100,h(p).height()-100],!i.full&&(t[0]'+(s[r].alt||'+(1
      '+(s[r].alt||"")+""+a.imgIndex+" / "+s.length+"
      ":"")+"
    ",success:function(e,t){a.bigimg=e.find(".layui-layer-phimg"),a.imgsee=e.find(".layui-layer-imgbar"),a.event(e),i.tab&&i.tab(s[r],e),"function"==typeof l&&l(e)},end:function(){a.end=!0,h(document).off("keyup",a.keyup)}},i))},u=function(){m.close(a.loadi),m.msg("当前图片地址异常
    是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1',t.bar1?'
  • '+l[0]+"
  • ":"",t.bar2?'
  • '+l[1]+"
  • ":"",'
  • '+l[2]+"
  • ","
"].join("")),c=l.find("."+o),g=function(){a.scrollTop()>=t.showHeight?e||(c.show(),e=1):e&&(c.hide(),e=0)};u("."+n)[0]||("object"==typeof t.css&&l.css(t.css),r.append(l),g(),l.find("li").on("click",function(){var e=u(this).attr("lay-type");"top"===e&&u("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,e)}),a.on("scroll",function(){clearTimeout(i),i=setTimeout(function(){g()},100)}))},countdown:function(e,t,i){var n=this,o="function"==typeof t,a=new Date(e).getTime(),r=new Date(!t||o?(new Date).getTime():t).getTime(),a=a-r,l=[Math.floor(a/864e5),Math.floor(a/36e5)%24,Math.floor(a/6e4)%60,Math.floor(a/1e3)%60],o=(o&&(i=t),setTimeout(function(){n.countdown(e,r+1e3,i)},1e3));return i&&i(0]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},unescape:function(e){return e!==undefined&&null!==e||(e=""),(e+="").replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">").replace(/\'/g,"'").replace(/\"/g,'"')},toVisibleArea:function(e){var t,i,n,o,a,r,l,c;(e=u.extend({margin:160,duration:200,type:"y"},e)).scrollElem[0]&&e.thisElem[0]&&(t=e.scrollElem,l=e.thisElem,n=(a="y"===e.type)?"top":"left",o=t[i=a?"scrollTop":"scrollLeft"](),a=t[a?"height":"width"](),r=t.offset()[n],c={},(l=l.offset()[n]-r)>a-e.margin||l."+f,x=function(e){var i=this;i.index=++p.index,i.config=s.extend({},i.config,p.config,e),i.init()};x.prototype.config={trigger:"click",content:"",className:"",style:"",show:!1,isAllowSpread:!0,isSpreadItem:!0,data:[],delay:300},x.prototype.reload=function(e){var i=this;i.config=s.extend({},i.config,e),i.init(!0)},x.prototype.init=function(e){var i,t=this,n=t.config,l=n.elem=s(n.elem);return 1",(t="href"in i?''+a+"":a,n?'
'+t+("parent"===o?'':"group"===o&&u.isAllowSpread?'':"")+"
":'
'+t+"
"),""].join(""))).data("item",i),n&&(l=s('
'),t=s("
    "),"parent"===o?(l.append(d(t,i.child)),a.append(l)):a.append(d(t,i.child))),r.append(a))}),r},t=['
    ',"
    "].join("");!(e="contextmenu"!==u.trigger&&!lay.isTopElem(u.elem[0])?e:!0)&&u.elem.data(r+"_opened")||(n.elemView=s(t),n.elemView.append(u.content||(e=s('
      '),0no menu'),e)),u.className&&n.elemView.addClass(u.className),u.style&&n.elemView.attr("style",u.style),p.thisId=u.id,n.remove(),i.append(n.elemView),u.elem.data(r+"_opened",!0),n.position(),(y.prevElem=n.elemView).data("prevElem",u.elem),n.elemView.find(".layui-menu").on(a,function(e){layui.stope(e)}),n.elemView.find(".layui-menu li").on("click",function(e){var i=s(this),t=i.data("item")||{};t.child&&0n.width()&&(t.addClass(V),(i=t[0].getBoundingClientRect()).left<0)&&t.removeClass(V),i.bottom>n.height())&&t.eq(0).css("margin-top",-(i.bottom-n.height()))}).on("mouseleave",t,function(e){var i=s(this).children("."+C);i.removeClass(V),i.css("margin-top",0)}),p.close=function(e){e=y.getThis(e);return e?(e.remove(),y.call(e)):this},p.reload=function(e,i){e=y.getThis(e);return e?(e.reload(i),y.call(e)):this},p.render=function(e){e=new x(e);return y.call(e)},e(o,p)});layui.define("jquery",function(e){"use strict";var h=layui.$,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var i=this;return i.config=h.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,a,e,i)}},a="slider",c="layui-disabled",y="layui-slider-bar",g="layui-slider-wrap",b="layui-slider-wrap-btn",x="layui-slider-tips",T="layui-slider-input-txt",w="layui-slider-hover",i=function(e){var i=this;i.index=++t.index,i.config=h.extend({},i.config,t.config,e),i.render()};i.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},i.prototype.render=function(){var a,n=this,l=n.config,e=(l.step<1&&(l.step=1),l.maxl.min?i:l.min,l.value[1]=s>l.min?s:l.min,l.value[0]=l.value[0]>l.max?l.max:l.value[0],l.value[1]=l.value[1]>l.max?l.max:l.value[1],i=Math.floor((l.value[0]-l.min)/(l.max-l.min)*100),t=(s=Math.floor((l.value[1]-l.min)/(l.max-l.min)*100))-i+"%",i+="%",s+="%"):("object"==typeof l.value&&(l.value=Math.min.apply(null,l.value)),l.valuel.max&&(l.value=l.max),t=Math.floor((l.value-l.min)/(l.max-l.min)*100)+"%"),l.disabled?"#c2c2c2":l.theme),i='
      '+(l.tips?'
      ':"")+'
      '+(l.range?'
      ':"")+"
      ",t=h(l.elem),s=t.next(".layui-slider");if(s[0]&&s.remove(),n.elemTemp=h(i),l.range?(n.elemTemp.find("."+g).eq(0).data("value",l.value[0]),n.elemTemp.find("."+g).eq(1).data("value",l.value[1])):n.elemTemp.find("."+g).data("value",l.value),t.html(n.elemTemp),"vertical"===l.type&&n.elemTemp.height(l.height+"px"),l.showstep){for(var r=(l.max-l.min)/l.step,o="",u=1;u<1+r;u++){var d=100*u/r;d<100&&(o+='
      ')}n.elemTemp.append(o)}l.input&&!l.range&&(e=h('
      '),t.css("position","relative"),t.append(e),t.find("."+T).children("input").val(l.value),"vertical"===l.type?e.css({left:0,top:-48}):n.elemTemp.css("margin-right",e.outerWidth()+15)),l.disabled?(n.elemTemp.addClass(c),n.elemTemp.find("."+b).addClass(c)):n.slide(),n.elemTemp.find("."+b).on("mouseover",function(){var e="vertical"===l.type?l.height:n.elemTemp[0].offsetWidth,i=n.elemTemp.find("."+g),t=("vertical"===l.type?e-h(this).parent()[0].offsetTop-i.height():h(this).parent()[0].offsetLeft)/e*100,i=h(this).parent().data("value"),e=l.setTips?l.setTips(i):i;n.elemTemp.find("."+x).html(e),clearTimeout(a),a=setTimeout(function(){"vertical"===l.type?n.elemTemp.find("."+x).css({bottom:t+"%","margin-bottom":"20px",display:"inline-block"}):n.elemTemp.find("."+x).css({left:t+"%",display:"inline-block"})},300)}).on("mouseout",function(){clearTimeout(a),n.elemTemp.find("."+x).css("display","none")})},i.prototype.slide=function(e,i,t){var r=this.config,o=this.elemTemp,u=function(){return"vertical"===r.type?r.height:o[0].offsetWidth},d=o.find("."+g),s=o.next(".layui-slider-input"),c=s.children("."+T).children("input").val(),m=100/((r.max-r.min)/Math.ceil(r.step)),v=function(e,i){e=100<(e=100t[1]&&t.reverse(),r.change&&r.change(r.range?t:n)},p=function(e){var i=e/u()*100/m,t=Math.round(i)*m;return t=e==u()?Math.ceil(i)*m:t},f=h(['
      u()?u():i)/u()*100/m;v(i,l),s.addClass(w),o.find("."+x).show(),e.preventDefault()},i=function(){s.removeClass(w),o.find("."+x).hide()},t=function(){i&&i(),f.remove()},h("#LAY-slider-moving")[0]||h("body").append(f),f.on("mousemove",e),f.on("mouseup",t).on("mouseleave",t)})}),o.on("click",function(e){var i,t=h("."+b);!t.is(event.target)&&0===t.has(event.target).length&&t.length&&(i=(t=(t=(t="vertical"===r.type?u()-e.clientY+h(this).offset().top:e.clientX-h(this).offset().left)<0?0:t)>u()?u():t)/u()*100/m,t=r.range?"vertical"===r.type?Math.abs(t-parseInt(h(d[0]).css("bottom")))>Math.abs(t-parseInt(h(d[1]).css("bottom")))?1:0:Math.abs(t-d[0].offsetLeft)>Math.abs(t-d[1].offsetLeft)?1:0:0,v(i,t),e.preventDefault())}),s.children(".layui-slider-input-btn").children("i").each(function(i){h(this).on("click",function(){c=s.children("."+T).children("input").val();var e=((c=1==i?c-r.stepr.max?r.max:Number(c)+r.step)-r.min)/(r.max-r.min)*100/m;v(e,0)})});var a=function(){var e=this.value,e=(e=(e=(e=isNaN(e)?0:e)r.max?r.max:e,((this.value=e)-r.min)/(r.max-r.min)*100/m);v(e,0)};s.children("."+T).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),a.call(this))}).on("change",a)},i.prototype.events=function(){this.config},t.render=function(e){e=new i(e);return function(){var t=this,a=t.config;return{setValue:function(e,i){return a.value=e,t.slide("set",e,i||0)},config:a}}.call(e)},e(a,t)});layui.define(["jquery","lay"],function(e){"use strict";var y=layui.jquery,o=layui.lay,r=layui.device().mobile?"click":"mousedown",i={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var i=this;return i.config=y.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},n="layui-colorpicker",t=".layui-colorpicker-main",k="layui-colorpicker-trigger-span",m="layui-colorpicker-side-slider",x="layui-colorpicker-basis",P="layui-colorpicker-alpha-bgcolor",C="layui-colorpicker-alpha-slider",B="layui-colorpicker-basis-cursor",w="layui-colorpicker-main-input",D=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),n=r-o;return i.b=r,i.s=0!=r?255*n/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/n:e.g==r?i.h=2+(e.b-e.r)/n:i.h=4+(e.r-e.g)/n:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},I=function(e){var i,o={},r=e.h,n=255*e.s/100,e=255*e.b/100;return 0==n?o.r=o.g=o.b=e:(e=r%60*((i=e)-(n=(255-n)*e/255))/60,(r=360==r?0:r)<60?(o.r=i,o.b=n,o.g=n+e):r<120?(o.g=i,o.b=n,o.r=i-e):r<180?(o.g=i,o.r=n,o.b=n+e):r<240?(o.b=i,o.r=n,o.g=i-e):r<300?(o.b=i,o.g=n,o.r=n+e):r<360?(o.r=i,o.g=n,o.b=i-e):(o.r=0,o.g=0,o.b=0)),{r:Math.round(o.r),g:Math.round(o.g),b:Math.round(o.b)}},u=function(e){var e=I(e),o=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];return y.each(o,function(e,i){1==i.length&&(o[e]="0"+i)}),o.join("")},j=function(e){e=e.match(/[0-9]{1,3}/g)||[];return{r:e[0],g:e[1],b:e[2]}},E=y(window),l=y(document),c=function(e){this.index=++i.index,this.config=y.extend({},this.config,i.config,e),this.render()};c.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},c.prototype.render=function(){var e=this,i=e.config,o=y(['
      ',"",'',"',"","","
      "].join("")),r=y(i.elem);i.size&&o.addClass("layui-colorpicker-"+i.size),r.addClass("layui-inline").html(e.elemColorBox=o),e.color=e.elemColorBox.find("."+k)[0].style.background,e.events()},c.prototype.renderPicker=function(){var o,e=this,i=e.config,r=e.elemColorBox[0],i=e.elemPicker=y(['
      ','
      ','
      ','
      ','
      ','
      ',"
      ",'
      ','
      ',"
      ","
      ",'
      ','
      ','
      ',"
      ","
      ",i.predefine?(o=['
      '],layui.each(i.colors,function(e,i){o.push(['
      ','
      ',"
      "].join(""))}),o.push("
      "),o.join("")):"",'
      ','
      ','',"
      ",'
      ','','',"","
      "].join(""));e.elemColorBox.find("."+k)[0];y(t)[0]&&y(t).data("index")==e.index?e.removePicker(c.thisElemInd):(e.removePicker(c.thisElemInd),y("body").append(i)),c.thisElemInd=e.index,c.thisColor=r.style.background,e.position(),e.pickerEvents()},c.prototype.removePicker=function(e){this.config;return y("#layui-colorpicker"+(e||this.index)).remove(),this},c.prototype.position=function(){var e=this,i=e.config;return o.position(e.bindElem||e.elemColorBox[0],e.elemPicker[0],{position:i.position,align:"center"}),e},c.prototype.val=function(){var e,i=this,o=(i.config,i.elemColorBox.find("."+k)),r=i.elemPicker.find("."+w),n=o[0].style.backgroundColor;n?(e=D(j(n)),o=o.attr("lay-type"),i.select(e.h,e.s,e.b),"torgb"===o&&r.find("input").val(n),"rgba"===o&&(e=j(n),3==(n.match(/[0-9]{1,3}/g)||[]).length?(r.find("input").val("rgba("+e.r+", "+e.g+", "+e.b+", 1)"),i.elemPicker.find("."+C).css("left",280)):(r.find("input").val(n),o=280*n.slice(n.lastIndexOf(",")+1,n.length-1),i.elemPicker.find("."+C).css("left",o)),i.elemPicker.find("."+P)[0].style.background="linear-gradient(to right, rgba("+e.r+", "+e.g+", "+e.b+", 0), rgb("+e.r+", "+e.g+", "+e.b+"))")):(i.select(0,100,100),r.find("input").val(""),i.elemPicker.find("."+P)[0].style.background="",i.elemPicker.find("."+C).css("left",280))},c.prototype.side=function(){var n=this,t=n.config,l=n.elemColorBox.find("."+k),c=l.attr("lay-type"),a=n.elemPicker.find(".layui-colorpicker-side"),e=n.elemPicker.find("."+m),s=n.elemPicker.find("."+x),r=n.elemPicker.find("."+B),f=n.elemPicker.find("."+P),u=n.elemPicker.find("."+C),d=e[0].offsetTop/180*360,p=100-(r[0].offsetTop+3)/180*100,g=(r[0].offsetLeft+3)/260*100,h=Math.round(u[0].offsetLeft/280*100)/100,i=(n.elemColorBox.find(".layui-colorpicker-trigger-i"),n.elemPicker.find(".layui-colorpicker-pre").children("div")),v=function(e,i,o,r){n.select(e,i,o);e=I({h:e,s:i,b:o});l[0].style.background="rgb("+e.r+", "+e.g+", "+e.b+")","torgb"===c&&n.elemPicker.find("."+w).find("input").val("rgb("+e.r+", "+e.g+", "+e.b+")"),"rgba"===c&&(u.css("left",280*r),n.elemPicker.find("."+w).find("input").val("rgba("+e.r+", "+e.g+", "+e.b+", "+r+")"),l[0].style.background="rgba("+e.r+", "+e.g+", "+e.b+", "+r+")",f[0].style.background="linear-gradient(to right, rgba("+e.r+", "+e.g+", "+e.b+", 0), rgb("+e.r+", "+e.g+", "+e.b+"))"),t.change&&t.change(n.elemPicker.find("."+w).find("input").val())},o=y(['
      '].join("")),b=function(e){y("#LAY-colorpicker-moving")[0]||y("body").append(o),o.on("mousemove",e),o.on("mouseup",function(){o.remove()}).on("mouseleave",function(){o.remove()})};e.on("mousedown",function(e){var r=this.offsetTop,n=e.clientY;b(function(e){var i=r+(e.clientY-n),o=a[0].offsetHeight,o=(i=o<(i=i<0?0:i)?o:i)/180*360;v(d=o,g,p,h),e.preventDefault()}),e.preventDefault()}),a.on("click",function(e){var i=e.clientY-y(this).offset().top,i=(i=(i=i<0?0:i)>this.offsetHeight?this.offsetHeight:i)/180*360;v(d=i,g,p,h),e.preventDefault()}),r.on("mousedown",function(e){var t=this.offsetTop,l=this.offsetLeft,c=e.clientY,a=e.clientX;layui.stope(e),b(function(e){var i=t+(e.clientY-c),o=l+(e.clientX-a),r=s[0].offsetHeight-3,n=s[0].offsetWidth-3,n=((o=n<(o=o<-3?-3:o)?n:o)+3)/260*100,o=100-((i=r<(i=i<-3?-3:i)?r:i)+3)/180*100;v(d,g=n,p=o,h),e.preventDefault()}),e.preventDefault()}),s.on("mousedown",function(e){var i=e.clientY-y(this).offset().top-3+E.scrollTop(),o=e.clientX-y(this).offset().left-3+E.scrollLeft(),o=((i=i<-3?-3:i)>this.offsetHeight-3&&(i=this.offsetHeight-3),((o=(o=o<-3?-3:o)>this.offsetWidth-3?this.offsetWidth-3:o)+3)/260*100),i=100-(i+3)/180*100;v(d,g=o,p=i,h),layui.stope(e),e.preventDefault(),r.trigger(e,"mousedown")}),u.on("mousedown",function(e){var r=this.offsetLeft,n=e.clientX;b(function(e){var i=r+(e.clientX-n),o=f[0].offsetWidth,o=(o<(i=i<0?0:i)&&(i=o),Math.round(i/280*100)/100);v(d,g,p,h=o),e.preventDefault()}),e.preventDefault()}),f.on("click",function(e){var i=e.clientX-y(this).offset().left,i=((i=i<0?0:i)>this.offsetWidth&&(i=this.offsetWidth),Math.round(i/280*100)/100);v(d,g,p,h=i),e.preventDefault()}),i.each(function(){y(this).on("click",function(){y(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e=this.style.backgroundColor,i=D(j(e)),o=e.slice(e.lastIndexOf(",")+1,e.length-1);d=i.h,g=i.s,p=i.b,3==(e.match(/[0-9]{1,3}/g)||[]).length&&(o=1),h=o,v(i.h,i.s,i.b,o)})})},c.prototype.select=function(e,i,o,r){var n=this,t=(n.config,u({h:e,s:100,b:100})),l=u({h:e,s:i,b:o}),e=e/360*180,o=180-o/100*180-3,i=i/100*260-3;n.elemPicker.find("."+m).css("top",e),n.elemPicker.find("."+x)[0].style.background="#"+t,n.elemPicker.find("."+B).css({top:o,left:i}),"change"!==r&&n.elemPicker.find("."+w).find("input").val("#"+l)},c.prototype.pickerEvents=function(){var c=this,a=c.config,s=c.elemColorBox.find("."+k),f=c.elemPicker.find("."+w+" input"),o={clear:function(e){s[0].style.background="",c.color="",a.done&&a.done(""),c.removePicker()},confirm:function(e,i){var o,r,n=f.val(),t=n,l={};-1>16,g:(65280&o)>>8,b:255&o},l=D(r),s[0].style.background=t="#"+u(l)),"change"===i?(c.select(l.h,l.s,l.b,i),a.change&&a.change(t)):(c.color=n,a.done&&a.done(n),c.removePicker())}};c.elemPicker.on("click","*[colorpicker-events]",function(){var e=y(this),i=e.attr("colorpicker-events");o[i]&&o[i].call(this,e)}),f.on("keyup",function(e){var i=y(this);o.confirm.call(this,i,13===e.keyCode?null:"change")})},c.prototype.events=function(){var i=this,e=i.config,o=i.elemColorBox.find("."+k);i.elemColorBox.on("click",function(){i.renderPicker(),y(t)[0]&&(i.val(),i.side())}),e.elem[0]&&!i.elemColorBox[0].eventHandler&&(l.on(r,function(e){y(e.target).hasClass(n)||y(e.target).parents("."+n)[0]||y(e.target).hasClass(t.replace(/\./g,""))||y(e.target).parents(t)[0]||i.elemPicker&&(i.color&&(e=D(j(i.color)),i.select(e.h,e.s,e.b)),o[0].style.background=i.color||"",i.removePicker())}),E.on("resize",function(){if(!i.elemPicker||!y(t)[0])return!1;i.position()}),i.elemColorBox[0].eventHandler=!0)},i.render=function(e){e=new c(e);return function(){return{config:this.config}}.call(e)},e("colorpicker",i)});layui.define("jquery",function(t){"use strict";var u=layui.$,d=(layui.hint(),layui.device()),c="element",r="layui-this",y="layui-show",i=function(){this.config={}},h=(i.prototype.set=function(t){return u.extend(!0,this.config,t),this},i.prototype.on=function(t,i){return layui.onevent.call(this,c,t,i)},i.prototype.tabAdd=function(t,i){var a,t=u(".layui-tab[lay-filter="+t+"]"),e=t.children(".layui-tab-title"),l=e.children(".layui-tab-bar"),t=t.children(".layui-tab-content"),n=""+(i.title||"unnaming")+"";return l[0]?l.before(n):e.append(n),t.append('
      '+(i.content||"")+"
      "),C.hideTabMore(!0),C.tabAuto(),this},i.prototype.tabDelete=function(t,i){t=u(".layui-tab[lay-filter="+t+"]").children(".layui-tab-title").find('>li[lay-id="'+i+'"]');return C.tabDelete(null,t),this},i.prototype.tabChange=function(t,i){t=u(".layui-tab[lay-filter="+t+"]").children(".layui-tab-title").find('>li[lay-id="'+i+'"]');return C.tabClick.call(t[0],null,null,t),this},i.prototype.tab=function(a){a=a||{},e.on("click",a.headerElem,function(t){var i=u(this).index();C.tabClick.call(this,t,i,null,a)})},i.prototype.progress=function(t,i){var a="layui-progress",t=u("."+a+"[lay-filter="+t+"]").find("."+a+"-bar"),a=t.find("."+a+"-text");return t.css("width",i).attr("lay-percent",i),a.text(i),this},".layui-nav"),f="layui-nav-item",l="layui-nav-bar",p="layui-nav-tree",b="layui-nav-child",v="layui-nav-more",m="layui-anim layui-anim-upbit",C={tabClick:function(t,i,a,e){e=e||{};var a=a||u(this),i=i||a.parent().children("li").index(a),l=e.headerElem?a.parent():a.parents(".layui-tab").eq(0),e=e.bodyElem?u(e.bodyElem):l.children(".layui-tab-content").children(".layui-tab-item"),n=a.find("a"),n="javascript:;"!==n.attr("href")&&"_blank"===n.attr("target"),s="string"==typeof a.attr("lay-unselect"),o=l.attr("lay-filter");n||s||(a.addClass(r).siblings().removeClass(r),e.eq(i).addClass(y).siblings().removeClass(y)),layui.event.call(this,c,"tab("+o+")",{elem:l,index:i})},tabDelete:function(t,i){var i=i||u(this).parent(),a=i.index(),e=i.parents(".layui-tab").eq(0),l=e.children(".layui-tab-content").children(".layui-tab-item"),n=e.attr("lay-filter");i.hasClass(r)&&(i.next()[0]?C.tabClick.call(i.next()[0],null,a+1):i.prev()[0]&&C.tabClick.call(i.prev()[0],null,a-1)),i.remove(),l.eq(a).remove(),setTimeout(function(){C.tabAuto()},50),layui.event.call(this,c,"tabDelete("+n+")",{elem:e,index:a})},tabAuto:function(){var e="layui-tab-bar",l="layui-tab-close",n=this;u(".layui-tab").each(function(){var t=u(this),i=t.children(".layui-tab-title"),a=(t.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),a=u('');n===window&&8!=d.ie&&C.hideTabMore(!0),t.attr("lay-allowClose")&&i.find("li").each(function(){var t,i=u(this);i.find("."+l)[0]||((t=u('')).on("click",C.tabDelete),i.append(t))}),"string"!=typeof t.attr("lay-unauto")&&(i.prop("scrollWidth")>i.outerWidth()+1?i.find("."+e)[0]||(i.append(a),t.attr("overflow",""),a.on("click",function(t){i[this.title?"removeClass":"addClass"]("layui-tab-more"),this.title=this.title?"":"\u6536\u7f29"})):(i.find("."+e).remove(),t.removeAttr("overflow")))})},hideTabMore:function(t){var i=u(".layui-tab-title");!0!==t&&"tabmore"===u(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=u(this),i=t.parents(h),a=i.attr("lay-filter"),e=t.parent(),l=t.siblings("."+b),n="string"==typeof e.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||n||l[0]||(i.find("."+r).removeClass(r),e.addClass(r)),i.hasClass(p)&&(l.removeClass(m),l[0])&&(e["none"===l.css("display")?"addClass":"removeClass"](f+"ed"),"all"===i.attr("lay-shrink"))&&e.siblings().removeClass(f+"ed"),layui.event.call(this,c,"nav("+a+")",t)},collapse:function(){var t=u(this),i=t.find(".layui-colla-icon"),a=t.siblings(".layui-colla-content"),e=t.parents(".layui-collapse").eq(0),l=e.attr("lay-filter"),n="none"===a.css("display");"string"==typeof e.attr("lay-accordion")&&((e=e.children(".layui-colla-item").children("."+y)).siblings(".layui-colla-title").children(".layui-colla-icon").html(""),e.removeClass(y)),a[n?"addClass":"removeClass"](y),i.html(n?"":""),layui.event.call(this,c,"collapse("+l+")",{title:t,content:a,show:n})}},a=(i.prototype.render=i.prototype.init=function(t,i){var a=i?'[lay-filter="'+i+'"]':"",i={tab:function(){C.tabAuto.call({})},nav:function(){var s={},o={},c={},r="layui-nav-title";u(h+a).each(function(t){var i=u(this),a=u(''),e=i.find("."+f);i.find("."+l)[0]||(i.append(a),(i.hasClass(p)?e.find("dd,>."+r):e).on("mouseenter",function(){!function(t,i,a){var e,l=u(this),n=l.find("."+b);i.hasClass(p)?n[0]||(e=l.children("."+r),t.css({top:l.offset().top-i.offset().top,height:(e[0]?e:l).outerHeight(),opacity:1})):(n.addClass(m),n.hasClass("layui-nav-child-c")&&n.css({left:-(n.outerWidth()-l.width())/2}),n[0]?t.css({left:t.position().left+t.width()/2,width:0,opacity:0}):t.css({left:l.position().left+parseFloat(l.css("marginLeft")),top:l.position().top+l.height()-t.height()}),s[a]=setTimeout(function(){t.css({width:n[0]?0:l.width(),opacity:n[0]?0:1})},d.ie&&d.ie<10?0:200),clearTimeout(c[a]),"block"===n.css("display")&&clearTimeout(o[a]),o[a]=setTimeout(function(){n.addClass(y),l.find("."+v).addClass(v+"d")},300))}.call(this,a,i,t)}).on("mouseleave",function(){i.hasClass(p)?a.css({height:0,opacity:0}):(clearTimeout(o[t]),o[t]=setTimeout(function(){i.find("."+b).removeClass(y),i.find("."+v).removeClass(v+"d")},300))}),i.on("mouseleave",function(){clearTimeout(s[t]),c[t]=setTimeout(function(){i.hasClass(p)||a.css({width:0,left:a.position().left+a.width()/2,opacity:0})},200)})),e.find("a").each(function(){var t=u(this);t.parent();t.siblings("."+b)[0]&&!t.children("."+v)[0]&&t.append(''),t.off("click",C.clickThis).on("click",C.clickThis)})})},breadcrumb:function(){u(".layui-breadcrumb"+a).each(function(){var t=u(this),i="lay-separator",a=t.attr(i)||"/",e=t.find("a");e.next("span["+i+"]")[0]||(e.each(function(t){t!==e.length-1&&u(this).after(""+a+"")}),t.css("visibility","visible"))})},progress:function(){var e="layui-progress";u("."+e+a).each(function(){var t=u(this),i=t.find(".layui-progress-bar"),a=i.attr("lay-percent");i.css("width",/^.+\/.+$/.test(a)?100*new Function("return "+a)()+"%":a),t.attr("lay-showPercent")&&setTimeout(function(){i.html(''+a+"")},350)})},collapse:function(){u(".layui-collapse"+a).each(function(){u(this).find(".layui-colla-item").each(function(){var t=u(this),i=t.find(".layui-colla-title"),t="none"===t.find(".layui-colla-content").css("display");i.find(".layui-colla-icon").remove(),i.append(''+(t?"":"")+""),i.off("click",C.collapse).on("click",C.collapse)})})}};return i[t]?i[t]():layui.each(i,function(t,i){i()})},new i),e=u(document);u(function(){a.render()});e.on("click",".layui-tab-title li",C.tabClick),e.on("click",C.hideTabMore),u(window).on("resize",C.tabAuto),t(c,a)});layui.define("layer",function(e){"use strict";var v=layui.$,r=(layui.layer,layui.hint()),y=layui.device(),i={config:{},set:function(e){var t=this;return t.config=v.extend({},t.config,e),t},on:function(e,t){return layui.onevent.call(this,n,e,t)}},n="upload",o="layui-upload-file",a="layui-upload-form",F="layui-upload-iframe",b="layui-upload-choose",x=function(e){var t=this;t.config=v.extend({},t.config,i.config,e),t.render()};x.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",force:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},x.prototype.render=function(e){var t=this;(e=t.config).elem=v(e.elem),e.bindAction=v(e.bindAction),t.file(),t.events()},x.prototype.file=function(){var e=this,t=e.config,i=e.elemFile=v(['"].join("")),n=t.elem.next();(n.hasClass(o)||n.hasClass(a))&&n.remove(),y.ie&&y.ie<10&&t.elem.wrap('
      '),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(i),y.ie&&y.ie<10&&e.initIE()},x.prototype.initIE=function(){var i,e=this.config,t=v(''),n=v(['
      ',"
      "].join(""));v("#"+F)[0]||v("body").append(t),e.elem.next().hasClass(a)||(this.elemFile.wrap(n),e.elem.next("."+a).append((i=[],layui.each(e.data,function(e,t){t="function"==typeof t?t():t,i.push('')}),i.join(""))))},x.prototype.msg=function(e){window.subModule.$emit("component-popup-add-toast-msg",{type:"warning",message:e})},x.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},x.prototype.preview=function(n){window.FileReader&&layui.each(this.chooseFiles,function(e,t){var i=new FileReader;i.readAsDataURL(t),i.onload=function(){n&&n(e,t,this.result)}})},x.prototype.upload=function(i,e){var n,o,t,a,l=this,r=l.config,u=l.elemFile[0],c=function(){var t=0,o=0,e=i||l.files||l.chooseFiles||u.files,a=function(){r.multiple&&t+o===l.fileLength&&"function"==typeof r.allDone&&r.allDone({total:l.fileLength,successful:t,failed:o})};layui.each(e,function(i,e){var n=new FormData,e=(n.append(r.field,e),layui.each(r.data,function(e,t){t="function"==typeof t?t():t,n.append(e,t)}),{url:r.url,type:"post",data:n,contentType:!1,processData:!1,dataType:"json",headers:r.headers||{},success:function(e){t++,f(i,e),a()},error:function(e){o++,l.msg("Request URL is abnormal: "+(e.statusText||"error")),p(i),a()}});"function"==typeof r.progress&&(e.xhr=function(){var e=v.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){var t;e.lengthComputable&&(t=Math.floor(e.loaded/e.total*100),r.progress(t,(r.item||r.elem)[0],e,i))}),e}),v.ajax(e)})},s=function(){var n=v("#"+F);l.elemFile.parent().submit(),clearInterval(x.timer),x.timer=setInterval(function(){var e,t=n.contents().find("body");try{e=t.text()}catch(i){l.msg("Cross-domain requests are not supported"),clearInterval(x.timer),p()}e&&(clearInterval(x.timer),t.html(""),f(0,e))},30)},f=function(e,t){if(l.elemFile.next("."+b).remove(),u.value="","json"===r.force&&"object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},l.msg("Please return JSON data format")}"function"==typeof r.done&&r.done(t,e||0,function(e){l.upload(e)})},p=function(e){r.auto&&(u.value=""),"function"==typeof r.error&&r.error(e||0,function(e){l.upload(e)})},d=r.exts,m=(o=[],layui.each(i||l.chooseFiles,function(e,t){o.push(t.name)}),o),h={preview:function(e){l.preview(e)},upload:function(e,t){var i={};i[e]=t,l.upload(i)},pushFile:function(){return l.files=l.files||{},layui.each(l.chooseFiles,function(e,t){l.files[e]=t}),l.files},resetFile:function(e,t,i){t=new File([t],i);l.files=l.files||{},l.files[e]=t},clearAllFile:function(){l.files={}}},g={file:"\u6587\u4ef6",images:"\u56fe\u7247",video:"\u89c6\u9891",audio:"\u97f3\u9891"}[r.accept]||"\u6587\u4ef6",m=0===m.length?u.value.match(/[^\/\\]+\..+/g)||[]:m;if(0!==m.length){switch(r.accept){case"file":layui.each(m,function(e,t){if(d&&!RegExp(".\\.("+d+")$","i").test(escape(t)))return n=!0});break;case"video":layui.each(m,function(e,t){if(!RegExp(".\\.("+(d||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(t)))return n=!0});break;case"audio":layui.each(m,function(e,t){if(!RegExp(".\\.("+(d||"mp3|wav|mid")+")$","i").test(escape(t)))return n=!0});break;default:layui.each(m,function(e,t){if(!RegExp(".\\.("+(d||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(t)))return n=!0})}if(n)return l.msg("\u9009\u62e9\u7684"+g+"\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"),u.value="";if("choose"!==e&&!r.auto||(r.choose&&r.choose(h),"choose"!==e)){if(l.fileLength=(t=0,g=i||l.files||l.chooseFiles||u.files,layui.each(g,function(){t++}),t),r.number&&l.fileLength>r.number)return l.msg("\u540c\u65f6\u6700\u591a\u53ea\u80fd\u4e0a\u4f20: "+r.number+" \u4e2a\u6587\u4ef6
      \u60a8\u5f53\u524d\u5df2\u7ecf\u9009\u62e9\u4e86: "+l.fileLength+" \u4e2a\u6587\u4ef6");if(01024*r.size&&(t=1<=(t=r.size/1024)?t.toFixed(2)+"MB":r.size+"KB",u.value="",a=t)}),a)return l.msg("\u6587\u4ef6\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 "+a);if(!r.before||!1!==r.before(h))y.ie?(9'+e+"")};o.elem.off("upload.start").on("upload.start",function(){var e=v(this),t=e.attr("lay-data");if(t)try{t=new Function("return "+t)(),n.config=v.extend({},o,t)}catch(i){r.error("Upload element property lay-data configuration item has a syntax error: "+t)}n.config.item=e,n.elemFile[0].click()}),y.ie&&y.ie<10||o.elem.off("upload.over").on("upload.over",function(){v(this).attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){v(this).removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(e,t){var i=v(this),t=t.originalEvent.dataTransfer.files||[];i.removeAttr("lay-over"),a(t),o.auto?n.upload():l(t)}),n.elemFile.off("upload.change").on("upload.change",function(){var e=this.files||[];a(e),o.auto?n.upload():l(e)}),o.bindAction.off("upload.action").on("upload.action",function(){n.upload()}),o.elem.data("haveEvents")||(n.elemFile.on("change",function(){v(this).trigger("upload.change")}),o.elem.on("click",function(){n.isFile()||v(this).trigger("upload.start")}),o.drag&&o.elem.on("dragover",function(e){e.preventDefault(),v(this).trigger("upload.over")}).on("dragleave",function(e){v(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),v(this).trigger("upload.drop",e)}),o.bindAction.on("click",function(){v(this).trigger("upload.action")}),o.elem.data("haveEvents",!0))},i.render=function(e){e=new x(e);return function(){var t=this;return{upload:function(e){t.upload.call(t,e)},reload:function(e){t.reload.call(t,e)},config:t.config}}.call(e)},e(n,i)});layui.define("layer",function(e){"use strict";var C=layui.$,h=layui.layer,l=layui.hint(),w=(layui.device(),"form"),s=".layui-form",T="layui-this",$="layui-hide",E="layui-disabled",t=function(){this.config={verify:{required:[/[\S]+/,"\u5fc5\u586b\u9879\u4e0d\u80fd\u4e3a\u7a7a"],phone:[/^1\d{10}$/,"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e"],url:[/^(#|(http(s?)):\/\/|\/\/)[^\s]+\.[^\s]+$/,"\u94fe\u63a5\u683c\u5f0f\u4e0d\u6b63\u786e"],number:function(e){if(!e||isNaN(e))return"\u53ea\u80fd\u586b\u5199\u6570\u5b57"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"\u65e5\u671f\u683c\u5f0f\u4e0d\u6b63\u786e"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7"]},autocomplete:null}},i=(t.prototype.set=function(e){return C.extend(!0,this.config,e),this},t.prototype.verify=function(e){return C.extend(!0,this.config.verify,e),this},t.prototype.getFormElem=function(e){return C(s+(e?'[lay-filter="'+e+'"]':""))},t.prototype.on=function(e,t){return layui.onevent.call(this,w,e,t)},t.prototype.val=function(e,i){return this.getFormElem(e).each(function(e,t){var a=C(this);layui.each(i,function(e,t){var i,e=a.find('[name="'+e+'"]');e[0]&&("checkbox"===(i=e[0].type)?e[0].checked=t:"radio"===i?e.each(function(){this.value==t&&(this.checked=!0)}):e.val(t))})}),r.render(null,e),this.getValue(e)},t.prototype.getValue=function(e,t){t=t||this.getFormElem(e);var a={},n={},e=t.find("input,select,textarea");return layui.each(e,function(e,t){var i;C(this);t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name&&(/^.*\[\]$/.test(t.name)&&(i=t.name.match(/^(.*)\[\]$/g)[0],a[i]=0|a[i],i=t.name.replace(/^(.*)\[\]$/,"$1["+a[i]+++"]")),/^checkbox|radio$/.test(t.type)&&!t.checked||(n[i||t.name]=t.value))}),n},t.prototype.render=function(e,t){var i=this.config,a=C(s+(t?'[lay-filter="'+t+'"]':"")),n={input:function(e){e=e||a.find("input,textarea");i.autocomplete&&e.attr("autocomplete",i.autocomplete)},select:function(e){var p,c="\u8bf7\u9009\u62e9",m="layui-form-select",g="layui-select-title",k="layui-select-none",x="",e=e||a.find("select"),b=function(e,t){C(e.target).parent().hasClass(g)&&!t||(C("."+m).removeClass(m+"ed "+m+"up"),p&&x&&p.val(x)),p=null},u=function(a,e,t){var o,r,i,n,s,l,c=C(this),u=a.find("."+g),d=u.find("input"),f=a.find("dl"),h=f.children("dd"),y=f.children("dt"),v=this.selectedIndex;e||(r=c.attr("lay-search"),i=function(){var e=a.offset().top+a.outerHeight()+5-q.scrollTop(),t=f.outerHeight();v=c[0].selectedIndex,a.addClass(m+"ed"),h.removeClass($),y.removeClass($),o=null,h.eq(v).addClass(T).siblings().removeClass(T),e+t>q.height()&&t<=e&&a.addClass(m+"up"),s()},n=function(e){a.removeClass(m+"ed "+m+"up"),d.blur(),o=null,e||l(d.val(),function(e){var t=c[0].selectedIndex;e&&(x=C(c[0].options[t]).html(),0===t&&x===d.attr("placeholder")&&(x=""),d.val(x||""))})},s=function(){var e,t,i=f.children("dd."+T);i[0]&&(e=i.position().top,t=f.height(),i=i.height(),t\u65e0\u5339\u914d\u9879

      '):f.find("."+k).remove()},"keyup"),""===t&&f.find("."+k).remove(),s()}).on("blur",function(e){var t=c[0].selectedIndex;p=d,x=C(c[0].options[t]).html(),0===t&&x===d.attr("placeholder")&&(x=""),setTimeout(function(){l(d.val(),function(e){x||d.val("")},"blur")},200)}),h.on("click",function(){var e=C(this),t=e.attr("lay-value"),i=c.attr("lay-filter");return e.hasClass(E)||(e.hasClass("layui-select-tips")?d.val(""):(d.val(e.text()),e.addClass(T)),e.siblings().removeClass(T),c.val(t).removeClass("layui-form-danger"),layui.event.call(this,w,"select("+i+")",{elem:c[0],value:t,othis:a}),n(!0)),!1}),a.find("dl>dt").on("click",function(e){return!1}),C(document).off("click",b).on("click",b))};e.each(function(e,t){var i=C(this),a=i.next("."+m),n=this.disabled,l=t.value,r=C(t.options[t.selectedIndex]),t=t.options[0];if("string"==typeof i.attr("lay-ignore"))return i.show();var o,s="string"==typeof i.attr("lay-search"),t=t&&!t.value&&t.innerHTML||c,r=C(['
      ','
      ','','
      ','
      ',(t=i.find("*"),o=[],layui.each(t,function(e,t){0!==e||t.value?"optgroup"===t.tagName.toLowerCase()?o.push("
      "+t.label+"
      "):o.push('
      '+C.trim(t.innerHTML)+"
      "):o.push('
      '+C.trim(t.innerHTML||c)+"
      ")}),0===o.length&&o.push('
      \u6ca1\u6709\u9009\u9879
      '),o.join("")+"
      "),"
      "].join(""));a[0]&&a.remove(),i.after(r),u.call(this,r,n,s)})},checkbox:function(e){var s={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},e=e||a.find("input[type=checkbox]");e.each(function(e,t){var i=C(this),a=i.attr("lay-skin"),n=(i.attr("lay-text")||"").split("|"),l=this.disabled,r=s[a="switch"===a?"_"+a:a]||s.checkbox;if("string"==typeof i.attr("lay-ignore"))return i.show();var o=i.next("."+r[0]),t=C(['
      ",(l={checkbox:[t.title.replace(/\s/g,"")?""+t.title+"":"",''].join(""),_switch:""+((t.checked?n[0]:n[1])||"")+""})[a]||l.checkbox,"
      "].join(""));o[0]&&o.remove(),i.after(t),function(i,a){var n=C(this);i.on("click",function(){var e=n.attr("lay-filter"),t=(n.attr("lay-text")||"").split("|");n[0].disabled||(n[0].checked?(n[0].checked=!1,i.removeClass(a[1]).find("em").text(t[1])):(n[0].checked=!0,i.addClass(a[1]).find("em").text(t[0])),layui.event.call(n[0],w,a[2]+"("+e+")",{elem:n[0],value:n[0].value,othis:i}))})}.call(this,t,r)})},radio:function(e){var r="layui-form-radio",o=["",""],e=e||a.find("input[type=radio]");e.each(function(e,t){var i=C(this),a=i.next("."+r),n=this.disabled;if("string"==typeof i.attr("lay-ignore"))return i.show();a[0]&&a.remove();n=C(['
      ',''+o[t.checked?0:1]+"","
      "+(a=t.title||"",a="string"==typeof i.next().attr("lay-radio")?i.next().html():a)+"
      ","
      "].join(""));i.after(n),function(a){var n=C(this),l="layui-anim-scaleSpring";a.on("click",function(){var e=n[0].name,t=n.parents(s),i=n.attr("lay-filter"),e=t.find("input[name="+e.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(e,function(){var e=C(this).next("."+r);this.checked=!1,e.removeClass(r+"ed"),e.find(".layui-icon").removeClass(l).html(o[1])}),n[0].checked=!0,a.addClass(r+"ed"),a.find(".layui-icon").addClass(l).html(o[0]),layui.event.call(n[0],w,"radio("+i+")",{elem:n[0],value:n[0].value,othis:a}))})}.call(this,n)})}};return"object"===layui.type(e)?e.each(function(e,t){var i=C(t);i.closest(s).length&&("SELECT"===t.tagName?n.select(i):"INPUT"===t.tagName&&("checkbox"===(t=t.type)||"radio"===t?n[t](i):n.input(i)))}):e?n[e]?n[e]():l.error('\u4e0d\u652f\u6301\u7684 "'+e+'" \u8868\u5355\u6e32\u67d3'):layui.each(n,function(e,t){t()}),this},t.prototype.validate=function(e){var u=null,d=r.config.verify,f="layui-form-danger";return!(e=C(e))[0]||(e.attr("lay-verify")!==undefined||!1!==this.validate(e.find("*[lay-verify]")))&&(layui.each(e,function(e,r){var o=C(this),t=(o.attr("lay-verify")||"").split("|"),s=o.attr("lay-verType"),c=o.val();if(o.removeClass(f),layui.each(t,function(e,t){var i="",a=d[t];if(a){var n="function"==typeof a?i=a(c,r):!a[0].test(c),l="select"===r.tagName.toLowerCase()||/^checkbox|radio$/.test(r.type),i=i||a[1];if("required"===t&&(i=o.attr("lay-reqText")||i),n)return"tips"===s?h.tips(i,"string"!=typeof o.attr("lay-ignore")&&l?o.next():o,{tips:1}):"alert"===s?h.alert(i,{title:"\u63d0\u793a",shadeClose:!0}):/\bstring|number\b/.test(typeof i)&&h.msg(i,{icon:5,shift:6}),setTimeout(function(){(l?o.next().find("input"):r).focus()},7),o.addClass(f),u=!0}}),u)return u}),!u)},t.prototype.submit=function(e,t){var i={},a=C(this),e="string"==typeof e?e:a.attr("lay-filter"),n=this.getFormElem?this.getFormElem(e):a.parents(s).eq(0),l=n.find("*[lay-verify]");return!!r.validate(l)&&(i=r.getValue(null,n),l={elem:this.getFormElem?window.event&&window.event.target:this,form:(this.getFormElem?n:a.parents("form"))[0],field:i},"function"==typeof t&&t(l),layui.event.call(this,w,"submit("+e+")",l))}),r=new t,t=C(document),q=C(window);C(function(){r.render()}),t.on("reset",s,function(){var e=C(this).attr("lay-filter");setTimeout(function(){r.render(null,e)},50)}),t.on("submit",s,i).on("click","*[lay-submit]",i),e(w,r)});layui.define(["laytpl","laypage","form","util"],function(e){"use strict";var m=layui.$,v=layui.laytpl,d=layui.laypage,g=layui.layer,y=layui.form,h=layui.util,f=layui.hint(),p=layui.device(),b={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX",disabledName:"LAY_DISABLED"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var t=this;return t.config=m.extend({},t.config,e),t},on:function(e,t){return layui.onevent.call(this,C,e,t)}},x=function(){var a=this,e=a.config,i=e.id||e.index;return i&&(x.that[i]=a,x.config[i]=e),{config:e,reload:function(e,t){a.reload.call(a,e,t)},reloadData:function(e,t){b.reloadData(i,e,t)},setColsWidth:function(){a.setColsWidth.call(a)},resize:function(){a.resize.call(a)}}},l=function(e){var t=x.config[e];return t||f.error(e?"The table instance with ID '"+e+"' not found":"ID argument required"),t||null},k=function(e){var t=this.config||{},a=(e=e||{}).item3,i=e.content,t=(t.escape&&(i=h.escape(i)),e.text&&a.exportTemplet||a.templet||a.toolbar);return t&&(i="function"==typeof t?t.call(a,e.tplData,e.obj):v(m(t).html()||String(i)).render(e.tplData)),e.text?m("
      "+i+"
      ").text():i},C="table",w="layui-hide",r="layui-hide-v",c="layui-none",s="layui-table-view",u=".layui-table-header",T=".layui-table-body",N=".layui-table-pageview",L=".layui-table-sort",D="layui-table-edit",E="layui-table-hover",A="layui-table-col-special",j="LAY_TABLE_MOVE_DICT",t=function(e){return['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',(e=e||{}).fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':"","{{# var isSort = !(item2.colGroup) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
      ','
      ','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{-item2.title||""}}',"{{# if(isSort){ }}",'',"{{# } }}","{{# } }}","
      ","
      "].join("")},a=['',"","
      "].join(""),R=[,"{{# if(d.data.toolbar){ }}",'
      ','
      ','
      ',"
      ","{{# } }}",'
      ',"{{# if(d.data.loading){ }}",'
      ','',"
      ","{{# } }}","{{# var left, right; }}",'
      ',t(),"
      ",'
      ',a,"
      ","{{# if(left){ }}",'
      ','
      ',t({fixed:!0}),"
      ",'
      ',a,"
      ","
      ","{{# }; }}","{{# if(right){ }}",'
      ','
      ',t({fixed:"right"}),'
      ',"
      ",'
      ',a,"
      ","
      ","{{# }; }}","
      ","{{# if(d.data.totalRow){ }}",'
      ','','',"
      ","
      ","{{# } }}",'
      ','
      ',"
      ",""].join(""),_=m(window),S=m(document),i=function(e){this.index=++b.index,this.config=m.extend({},this.config,b.config,e),this.render()},F=(i.prototype.config={limit:10,loading:!0,escape:!0,cellMinWidth:60,editTrigger:"click",defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"\u65e0\u6570\u636e"}},i.prototype.render=function(e){var t=this,a=t.config;if(a.elem=m(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||t.index,a.request=m.extend({pageName:"page",limitName:"limit"},a.request),a.response=m.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",totalRowName:"totalRow",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,t.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return t;if("reloadData"===e)return t.pullData(t.page,{type:"reloadData"});a.height&&/^full-\d+$/.test(a.height)&&(t.fullHeightGap=a.height.split("-")[1],a.height=_.height()-t.fullHeightGap),t.setInit();var i,l,e=a.elem,n=e.next("."+s),o=t.elem=m("
      ");o.addClass((i=[s,s+"-"+t.index,"layui-form","layui-border-box"],a.className&&i.push(a.className),i.join(" "))).attr({"lay-filter":"LAY-TABLE-FORM-DF-"+t.index,"lay-id":a.id,style:(i=[],a.width&&i.push("width:"+a.width+"px;"),a.height&&i.push("height:"+a.height+"px;"),i.join(""))}).html(v(R).render({data:a,index:t.index})),a.index=t.index,t.key=a.id||a.index,n[0]&&n.remove(),e.after(o),t.layTool=o.find(".layui-table-tool"),t.layBox=o.find(".layui-table-box"),t.layHeader=o.find(u),t.layMain=o.find(".layui-table-main"),t.layBody=o.find(T),t.layFixed=o.find(".layui-table-fixed"),t.layFixLeft=o.find(".layui-table-fixed-l"),t.layFixRight=o.find(".layui-table-fixed-r"),t.layTotal=o.find(".layui-table-total"),t.layPage=o.find(".layui-table-page"),t.renderToolbar(),t.renderPagebar(),t.fullSize(),1
      ','
      ','
      '].join(""),a=this.layTool.find(".layui-table-tool-temp"),i=("default"===e.toolbar?a.html(t):"string"==typeof e.toolbar&&(t=m(e.toolbar).html()||"")&&a.html(v(t).render(e)),{filter:{title:"\u7b5b\u9009\u5217",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"\u5bfc\u51fa",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"\u6253\u5370",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}}),l=[];"object"==typeof e.defaultToolbar&&layui.each(e.defaultToolbar,function(e,t){t="string"==typeof t?i[t]:t;t&&l.push('
      ')}),this.layTool.find(".layui-table-tool-self").html(l.join(""))},i.prototype.renderPagebar=function(){var e,t=this.config,a=this.layPagebar=m('
      ');t.pagebar&&((e=m(t.pagebar).html()||"")&&a.append(v(e).render(t)),this.layPage.append(a))},i.prototype.setParentCol=function(e,t){var a=this.config,i=this.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),l=parseInt(i.attr("colspan"))||0;i[0]&&(t=t.split("-"),t=a.cols[t[0]][t[1]],e?l--:l++,i.attr("colspan",l),i[l<1?"addClass":"removeClass"](w),t.colspan=l,t.hide=l<1,a=i.data("parentkey"))&&this.setParentCol(e,a)},i.prototype.setColsPatch=function(){var a=this,e=a.config;layui.each(e.cols,function(e,t){layui.each(t,function(e,t){t.hide&&a.setParentCol(t.hide,t.parentKey)})})},i.prototype.setColsWidth=function(){var t,a,i=this,o=i.config,l=0,d=0,r=0,c=0,s=i.setInit("width"),e=(i.eachCols(function(e,t){t.hide||l++}),s=s-("line"===o.skin||"nob"===o.skin?2:l+1)-i.getScrollWidth(i.layMain[0])-1,function(n){layui.each(o.cols,function(e,l){layui.each(l,function(e,t){var a=0,i=t.minWidth||o.cellMinWidth;t?t.colGroup||t.hide||(n?r&&r'+(e||"Error")+"
      ");a[0]&&(t.layNone.remove(),a.remove()),t.layFixed.addClass(w),t.layMain.find("tbody").html(""),t.layMain.append(t.layNone=e),t.layTotal.addClass(r),t.layPage.find(N).addClass(r),b.cache[t.key]=[],t.syncCheckAll()},i.prototype.page=1,i.prototype.pullData=function(t,a){var e,i=this,l=i.config,n=l.request,o=l.response,d=function(){"object"==typeof l.initSort&&i.sort(l.initSort.field,l.initSort.type)};a=a||{},"function"==typeof l.before&&l.before(l),i.startTime=(new Date).getTime(),l.url?((e={})[n.pageName]=t,e[n.limitName]=l.limit,n=m.extend(e,l.where),l.contentType&&0==l.contentType.indexOf("application/json")&&(n=JSON.stringify(n)),i.loading(),m.ajax({type:l.method||"get",url:l.url,contentType:l.contentType,data:n,dataType:l.dataType||"json",jsonpCallback:l.jsonpCallback,headers:l.headers||{},success:function(e){(e="function"==typeof l.parseData?l.parseData(e)||e:e)[o.statusName]!=o.statusCode?(i.renderForm(),i.errorView(e[o.msgName]||'\u8fd4\u56de\u7684\u6570\u636e\u4e0d\u7b26\u5408\u89c4\u8303\uff0c\u6b63\u786e\u7684\u6210\u529f\u72b6\u6001\u7801\u5e94\u4e3a\uff1a"'+o.statusName+'": '+o.statusCode)):(i.renderData({res:e,curr:t,count:e[o.countName],type:a.type}),d(),l.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof l.done&&l.done(e,t,e[o.countName])},error:function(e,t){i.errorView("\u8bf7\u6c42\u5f02\u5e38\uff0c\u9519\u8bef\u63d0\u793a\uff1a"+t),i.renderForm(),i.setColsWidth(),"function"==typeof l.error&&l.error(e,t)}})):"array"===layui.type(l.data)&&(e=t*l.limit-l.limit,(n={})[o.dataName]=l.data.concat().splice(e,l.limit),n[o.countName]=l.data.length,"object"==typeof l.totalRow&&(n[o.totalRowName]=m.extend({},l.totalRow)),i.renderData({res:n,curr:t,count:n[o.countName],type:a.type}),d(),i.setColsWidth(),"function"==typeof l.done)&&l.done(n,t,n[o.countName])},i.prototype.eachCols=function(e){return b.eachCols(null,e,this.config.cols),this},i.prototype.renderData=function(e){var u=this,y=u.config,t=e.res,l=e.curr,a=e.count,n=e.sort,i=t[y.response.dataName]||[],t=t[y.response.totalRowName],h=[],f=[],p=[],o=function(){var s;if(y.HAS_SET_COLS_PATCH||u.setColsPatch(),y.HAS_SET_COLS_PATCH=!0,!n&&u.sortKey)return u.sort(u.sortKey.field,u.sortKey.sort,!0);layui.each(i,function(o,d){var a=[],i=[],r=[],c=o+y.limit*(l-1)+1;"array"===layui.type(d)&&0===d.length||(n||(d[b.config.indexName]=o),u.eachCols(function(e,l){var e=l.field||e,t=y.index+"-"+l.key,n=d[e];n!==undefined&&null!==n||(n=""),l.colGroup||(t=['','
      "+function(){var e,t=m.extend(!0,{LAY_INDEX:c,LAY_COL:l},d),a=b.config.checkName,i=b.config.disabledName;switch(l.type){case"checkbox":return'";case"radio":return t[a]&&(s=o),'';case"numbers":return c}return l.toolbar?v(m(l.toolbar).html()||"").render(t):k.call(u,{item3:l,content:n,tplData:t})}(),"
      "].join(""),a.push(t),l.fixed&&"right"!==l.fixed&&i.push(t),"right"===l.fixed&&r.push(t))}),h.push(''+a.join("")+""),f.push(''+i.join("")+""),p.push(''+r.join("")+""))}),"fixed"===y.scrollPos&&"reloadData"===e.type||u.layBody.scrollTop(0),"reset"===y.scrollPos&&u.layBody.scrollLeft(0),u.layMain.find("."+c).remove(),u.layMain.find("tbody").html(h.join("")),u.layFixLeft.find("tbody").html(f.join("")),u.layFixRight.find("tbody").html(p.join("")),u.renderForm(),"number"==typeof s&&u.setThisRowChecked(s),u.syncCheckAll(),u.fullSize(),u.haveInit?u.scrollPatch():setTimeout(function(){u.scrollPatch()},50),u.haveInit=!0,g.close(u.tipsIndex)};return b.cache[u.key]=i,u.layTotal[0==i.length?"addClass":"removeClass"](r),u.layPage[y.page||y.pagebar?"removeClass":"addClass"](w),u.layPage.find(N)[!y.page||0==a||0===i.length&&1==l?"addClass":"removeClass"](r),0===i.length?(u.renderForm(),u.errorView(y.text.none)):(u.layFixLeft.removeClass(w),n?o():(o(),u.renderTotal(i,t),u.layTotal&&u.layTotal.removeClass(w),void(y.page&&(y.page=m.extend({elem:"layui-table-page"+y.index,count:a,limit:y.limit,limits:y.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(u.page=e.curr,y.limit=e.limit,u.pullData(e.curr))}},y.page),y.page.count=a,d.render(y.page)))))},i.prototype.renderTotal=function(e,o){var d,r=this,c=r.config,s={};c.totalRow&&(layui.each(e,function(e,i){"array"===layui.type(i)&&0===i.length||r.eachCols(function(e,t){var e=t.field||e,a=i[e];t.totalRow&&(s[e]=(s[e]||0)+(parseFloat(a)||0))})}),r.dataTotal={},d=[],r.eachCols(function(e,t){var a,e=t.field||e,i=o&&o[t.field],l=(a=t.totalRowText||"",n="totalRowDecimals"in t?t.totalRowDecimals:2,n=parseFloat(s[e]).toFixed(n),(l={LAY_COL:t})[e]=n,n=t.totalRow&&k.call(r,{item3:t,content:n,tplData:l})||a,i||n),n=['','
      "+("string"==typeof(a=t.totalRow||c.totalRow)?v(a).render(m.extend({TOTAL_NUMS:i||s[e],LAY_COL:t},t)):l),"
      "].join("");t.field&&(r.dataTotal[e]=l),d.push(n)}),r.layTotal.find("tbody").html(""+d.join("")+""))},i.prototype.getColElem=function(e,t){var a=this.config;return e.eq(0).find(".laytable-cell-"+a.index+"-"+t+":eq(0)")},i.prototype.renderForm=function(e){this.config;var t=this.elem.attr("lay-filter");y.render(e,t)},i.prototype.setThisRowChecked=function(e){this.config;var t="layui-table-click";this.layBody.find('tr[data-index="'+e+'"]').addClass(t).siblings("tr").removeClass(t)},i.prototype.sort=function(l,e,t,a){var i,n=this,o={},d=n.config,r=d.elem.attr("lay-filter"),c=b.cache[n.key];"string"==typeof l&&(s=l,n.layHeader.find("th").each(function(e,t){var a=m(this),i=a.data("field");if(i===l)return l=a,s=i,!1}));try{var s=s||l.data("field"),u=l.data("key");if(n.sortKey&&!t&&s===n.sortKey.field&&e===n.sortKey.sort)return;var y=n.layHeader.find("th .laytable-cell-"+u).find(L);n.layHeader.find("th").find(L).removeAttr("lay-sort"),y.attr("lay-sort",e||null),n.layFixed.find("th")}catch(h){f.error("Table modules: sort field '"+s+"' not matched")}n.sortKey={field:s,sort:e},d.autoSort&&("asc"===e?i=layui.sort(c,s):"desc"===e?i=layui.sort(c,s,!0):(i=layui.sort(c,b.config.indexName),delete n.sortKey,delete d.initSort)),o[d.response.dataName]=i||c,n.renderData({res:o,curr:n.page,count:n.count,sort:!0}),a&&(d.initSort={field:s,type:e},layui.event.call(l,C,"sort("+r+")",d.initSort))},i.prototype.loading=function(e){var t=this;t.config.loading&&(e?(t.layInit&&t.layInit.remove(),delete t.layInit,t.layBox.find(".layui-table-init").remove()):(t.layInit=m(['
      ','',"
      "].join("")),t.layBox.append(t.layInit)))},i.prototype.setCheckData=function(e,t){var a=this.config,i=b.cache[this.key];i[e]&&"array"!==layui.type(i[e])&&(i[e][a.checkName]=t)},i.prototype.syncCheckAll=function(){var e=this,i=e.config,t=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(a){return e.eachCols(function(e,t){"checkbox"===t.type&&(t[i.checkName]=a)}),a};t[0]&&(b.checkStatus(e.key).isAll?(t[0].checked||(t.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(t[0].checked&&(t.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},i.prototype.getCssRule=function(a,i){var e=this.elem.find("style")[0],e=e.sheet||e.styleSheet||{},e=e.cssRules||e.rules;layui.each(e,function(e,t){if(t.selectorText===".laytable-cell-"+a)return i(t),!0})},i.prototype.fullSize=function(){var e=this,t=e.config,a=t.height;e.fullHeightGap&&(a=_.height()-e.fullHeightGap,e.elem.css("height",a=a<135?135:a)),a&&(a=parseFloat(a)-(e.layHeader.outerHeight()||38),t.toolbar&&(a-=e.layTool.outerHeight()||50),t.totalRow&&(a-=e.layTotal.outerHeight()||40),(t.page||t.pagebar)&&(a-=e.layPage.outerHeight()||43),e.layMain.outerHeight(a))},i.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:((e=document.createElement("div")).style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},i.prototype.scrollPatch=function(){var e=this,t=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),i=e.layMain.height()-e.layMain.prop("clientHeight"),l=(e.getScrollWidth(e.layMain[0]),t.outerWidth()-e.layMain.width()),n=function(e){var t;a&&i?(e=e.eq(0)).find(".layui-table-patch")[0]||((t=m('
      ')).find("div").css({width:a}),e.find("tr").append(t)):e.find(".layui-table-patch").remove()};n(e.layHeader),n(e.layTotal);n=e.layMain.height()-i;e.layFixed.find(T).css("height",t.height()>=n?n:"auto"),e.layFixRight[0');a.html(t),r.height&&a.css("max-height",r.height-(s.layTool.outerHeight()||50)),i.find(".layui-table-tool-panel")[0]||i.append(a),s.renderForm(),a.on("click",function(e){layui.stope(e)}),e.done&&e.done(a,t)};switch(layui.stope(e),S.trigger("table.tool.panel.remove"),g.close(s.tipsIndex),t){case"LAYTABLE_COLS":l({list:(a=[],s.eachCols(function(e,t){t.field&&"normal"==t.type&&a.push('
    • ')}),a.join("")),done:function(){y.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var e=m(e.elem),i=this.checked,l=e.data("key"),n=e.data("parentkey");layui.each(r.cols,function(a,e){layui.each(e,function(e,t){a+"-"+e===l&&(e=t.hide,t.hide=!i,s.elem.find('*[data-key="'+r.index+"-"+l+'"]')[i?"removeClass":"addClass"](w),e!=t.hide&&s.setParentCol(!i,n),s.resize())})})})}});break;case"LAYTABLE_EXPORT":p.ie?g.tips("\u5bfc\u51fa\u529f\u80fd\u4e0d\u652f\u6301 IE\uff0c\u8bf7\u7528 Chrome \u7b49\u9ad8\u7ea7\u6d4f\u89c8\u5668\u5bfc\u51fa",this,{tips:3}):l({list:['
    • \u5bfc\u51fa csv \u683c\u5f0f\u6587\u4ef6
    • ','
    • \u5bfc\u51fa xls \u683c\u5f0f\u6587\u4ef6
    • '].join(""),done:function(e,t){t.on("click",function(){var e=m(this).data("type");b.exportFile.call(s,r.id,null,e)})}});break;case"LAYTABLE_PRINT":var n=window.open("about:blank","_blank"),o=[""].join(""),d=m(s.layHeader.html());d.append(s.layMain.find("table").html()),d.append(s.layTotal.find("table").html()),d.find("th.layui-table-patch").remove(),d.find("thead>tr>th."+A).filter(function(e,t){return!m(t).children(".laytable-cell-group").length}).remove(),d.find("tbody>tr>td."+A).remove(),n.document.write(o+d.prop("outerHTML")),n.document.close(),n.print(),n.close()}layui.event.call(this,C,"toolbar("+c+")",m.extend({event:t,config:r},{}))}),s.layPagebar.on("click","*[lay-event]",function(e){var t=m(this).attr("lay-event");layui.event.call(this,C,"pagebar("+c+")",m.extend({event:t,config:r},{}))}),e.on("mousemove",function(e){var t=m(this),a=t.offset().left,e=e.clientX-a;t.data("unresize")||x.eventMoveElem||(l.allowResize=t.width()-e<=10,i.css("cursor",l.allowResize?"col-resize":""))}).on("mouseleave",function(){m(this);x.eventMoveElem||i.css("cursor","")}).on("mousedown",function(e){var t,a=m(this);l.allowResize&&(t=a.data("key"),e.preventDefault(),l.offset=[e.clientX,e.clientY],s.getCssRule(t,function(e){var t=e.style.width||a.outerWidth();l.rule=e,l.ruleWidth=parseFloat(t),l.minWidth=a.data("minwidth")||r.cellMinWidth}),a.data(j,l),x.eventMoveElem=a)}),x.docEvent||S.on("mousemove",function(e){var t;x.eventMoveElem&&(t=x.eventMoveElem.data(j)||{},x.eventMoveElem.data("resizing",1),e.preventDefault(),t.rule)&&((e=t.ruleWidth+e.clientX-t.offset[0])':''))[0].value=t.data("content")||i.text(),t.find("."+D)[0]||t.append(a),a.focus(),layui.stope(e))}).on("mouseenter","td",function(){a.call(this)}).on("mouseleave","td",function(){a.call(this,"hide")}),"layui-table-grid-down"),a=function(e){var t=m(this),a=t.children(u);t.data("off")||(e?t.find(".layui-table-grid-down").remove():!(a.prop("scrollWidth")>a.outerWidth()||0
      '))},d=(s.layBody.on("click","."+o,function(e){var t=m(this).parent().children(u);s.tipsIndex=g.tips(['
      ',t.html(),"
      ",''].join(""),t[0],{tips:[3,""],time:-1,anim:-1,maxWidth:p.ios||p.android?300:s.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){g.close(t)})}}),layui.stope(e)}),function(e){var t=m(this),a=t.parents("tr").eq(0).data("index");layui.event.call(this,C,(e||"tool")+"("+c+")",n.call(this,{event:t.attr("lay-event")})),s.setThisRowChecked(a)});s.layBody.on("click","*[lay-event]",function(){return d.call(this),!1}).on("dblclick","*[lay-event]",function(){return d.call(this,"toolDouble"),!1}),s.layMain.on("scroll",function(){var e=m(this),t=e.scrollLeft(),e=e.scrollTop();s.layHeader.scrollLeft(t),s.layTotal.scrollLeft(t),s.layFixed.find(T).scrollTop(e),g.close(s.tipsIndex)}),_.on("resize",function(){s.resize()})},S.on("click",function(){S.trigger("table.remove.tool.panel")}),S.on("table.remove.tool.panel",function(){m(".layui-table-tool-panel").remove()}),b.init=function(a,i){i=i||{};var e=m(a?'table[lay-filter="'+a+'"]':".layui-table[lay-data]"),d="Table element property lay-data configuration item has a syntax error: ";return e.each(function(){var e=m(this),t=e.attr("lay-data");try{t=new Function("return "+t)()}catch(l){f.error(d+t,"error")}var n=[],o=m.extend({elem:this,cols:[],data:[],skin:e.attr("lay-skin"),size:e.attr("lay-size"),even:"string"==typeof e.attr("lay-even")},b.config,i,t);a&&e.hide(),e.find("thead>tr").each(function(i){o.cols[i]=[],m(this).children().each(function(e){var t=m(this),a=t.attr("lay-data");try{a=new Function("return "+a)()}catch(l){return f.error(d+a)}t=m.extend({title:t.text(),colspan:t.attr("colspan")||1,rowspan:t.attr("rowspan")||1},a);t.colspan<2&&n.push(t),o.cols[i].push(t)})}),e.find("tbody>tr").each(function(e){var a=m(this),l={};a.children("td").each(function(e,t){var a=m(this),i=a.data("field");if(i)return l[i]=a.html()}),layui.each(n,function(e,t){e=a.children("td").eq(e);l[t.field]=e.html()}),o.data[e]=l}),b.render(o)}),this},x.that={},x.config={},function(a,i,e,l){var n,o;l.colGroup&&(n=0,a++,l.CHILD_COLS=[],o=e+(parseInt(l.rowspan)||1),layui.each(i[o],function(e,t){t.parentKey?t.parentKey===l.key&&(t.PARENT_COL_INDEX=a,l.CHILD_COLS.push(t),F(a,i,o,t)):t.PARENT_COL_INDEX||1<=n&&n==(l.colspan||1)||(t.PARENT_COL_INDEX=a,l.CHILD_COLS.push(t),n+=t.hide?0:parseInt(1td'),a!==undefined&&null!==a||(a=""),0==l&&d.push(t.title||""),o.push('"'+k.call(c,{item3:t,content:a,tplData:n,text:"text",obj:c.commonMember.call(i.eq(0),{td:function(e){return i.filter('[data-field="'+e+'"]')}})})+'"')))}),i.push(o.join(","))}),c&&layui.each(c.dataTotal,function(e,t){r[e]||l.push(t)}),d.join(",")+"\r\n"+i.join("\r\n")+"\r\n"+l.join(","))),u.download=(a.title||o.title||"table_"+(o.index||""))+"."+n,document.body.appendChild(u),u.click(),document.body.removeChild(u)},b.resize=function(e){e?l(e)&&x.that[e].resize():layui.each(x.that,function(){this.resize()})},b.reload=function(e,t,a,i){if(l(e))return(e=x.that[e]).reload(t,a,i),x.call(e)},b.reloadData=function(){var a=m.extend([],arguments),i=(a[3]="reloadData",new RegExp("^("+["data","url","method","contentType","dataType","jsonpCallback","headers","where","page","limit","request","response","parseData","scrollPos"].join("|")+")$"));return layui.each(a[1],function(e,t){i.test(e)||delete a[1][e]}),b.reload.apply(null,a)},b.render=function(e){e=new i(e);return x.call(e)},b.clearCacheKey=function(e){return delete(e=m.extend({},e))[b.config.checkName],delete e[b.config.indexName],delete e[b.config.disabledName],e},m(function(){b.init()}),e(C,b)});layui.define("form",function(e){"use strict";var u=layui.$,i=layui.form,p=layui.layer,n="tree",a={config:{},index:layui[n]?layui[n].index+1e4:0,set:function(e){var i=this;return i.config=u.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,n,e,i)}},t=function(){var i=this,e=i.config,n=e.id||i.index;return t.that[n]=i,{config:t.config[n]=e,reload:function(e){i.reload.call(i,e)},getChecked:function(){return i.getChecked.call(i)},setChecked:function(e){return i.setChecked.call(i,e)}}},y="layui-hide",o="layui-disabled",f="layui-tree-set",C="layui-tree-iconClick",k="layui-icon-addition",v="layui-icon-subtraction",m="layui-tree-entry",x="layui-tree-main",b="layui-tree-txt",g="layui-tree-pack",w="layui-tree-spread",N="layui-tree-setLineShort",T="layui-tree-showLine",L="layui-tree-lineExtend",l=function(e){var i=this;i.index=++a.index,i.config=u.extend({},i.config,a.config,e),i.render()};l.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"\u672a\u547d\u540d",none:"\u65e0\u6570\u636e"}},l.prototype.reload=function(e){var n=this;layui.each(e,function(e,i){"array"===layui.type(i)&&delete n.config[e]}),n.config=u.extend(!0,{},n.config,e),n.render()},l.prototype.render=function(){var e=this,i=e.config,n=(e.checkids=[],u('
      ')),a=(e.tree(n),i.elem=u(i.elem));if(a[0]){if(e.key=i.id||e.index,e.elem=n,e.elemNone=u('
      '+i.text.none+"
      "),a.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);i.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=u(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(N),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(N)}),e.events()}},l.prototype.renderForm=function(e){i.render(e,"LAY-tree-"+this.index)},l.prototype.tree=function(c,e){var d=this,s=d.config,e=e||s.data;layui.each(e,function(e,i){var n,a,t=i.children&&0"),r=u(['
      ','
      ','
      ',s.showLine?t?'':'':'',s.showCheckbox?'':"",s.isJump&&i.href?''+(i.title||i.label||s.text.defaultNodeName)+"":''+(i.title||i.label||s.text.defaultNodeName)+"","
      ",s.edit?(n={add:'',update:'',del:''},a=['
      '],!0===s.edit&&(s.edit=["update","del"]),"object"==typeof s.edit?(layui.each(s.edit,function(e,i){a.push(n[i]||"")}),a.join("")+"
      "):void 0):"","
      "].join(""));t&&(r.append(l),d.tree(l,i.children)),c.append(r),r.prev("."+f)[0]&&r.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),t||r.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),d.spread(r,i),s.showCheckbox&&(i.checked&&d.checkids.push(i.id),d.checkClick(r,i)),s.edit&&d.operate(r,i)})},l.prototype.spread=function(a,e){var t=this.config,i=a.children("."+m),n=i.children("."+x),l=i.find("."+C),i=i.find("."+b),r=t.onlyIconControl?l:n,c="";r.on("click",function(e){var i=a.children("."+g),n=(r.children(".layui-icon")[0]?r:r.find(".layui-tree-icon")).children(".layui-icon");i[0]?a.hasClass(w)?(a.removeClass(w),i.slideUp(200),n.removeClass(v).addClass(k)):(a.addClass(w),i.slideDown(200),n.addClass(v).removeClass(k),t.accordion&&((i=a.siblings("."+f)).removeClass(w),i.children("."+g).slideUp(200),i.find(".layui-tree-icon").children(".layui-icon").removeClass(v).addClass(k))):c="normal"}),i.on("click",function(){u(this).hasClass(o)||(c=a.hasClass(w)?t.onlyIconControl?"open":"close":t.onlyIconControl?"close":"open",t.click&&t.click({elem:a,state:c,data:e}))})},l.prototype.setCheckbox=function(e,i,n){this.config;var t,l=n.prop("checked");n.prop("disabled")||("object"!=typeof i.children&&!e.find("."+g)[0]||e.find("."+g).find('input[same="layuiTreeCheck"]').each(function(){this.disabled||(this.checked=l)}),(t=function(e){var i,n,a;e.parents("."+f)[0]&&(n=(e=e.parent("."+g)).parent(),a=e.prev().find('input[same="layuiTreeCheck"]'),l?a.prop("checked",l):(e.find('input[same="layuiTreeCheck"]').each(function(){this.checked&&(i=!0)}),i||a.prop("checked",!1)),t(n))})(e),this.renderForm("checkbox"))},l.prototype.checkClick=function(n,a){var t=this,l=t.config;n.children("."+m).children("."+x).on("click",'input[same="layuiTreeCheck"]+',function(e){layui.stope(e);var e=u(this).prev(),i=e.prop("checked");e.prop("disabled")||(t.setCheckbox(n,a,e),l.oncheck&&l.oncheck({elem:n,checked:i,data:a}))})},l.prototype.operate=function(c,d){var s=this,o=s.config,e=c.children("."+m),h=e.children("."+x);e.children(".layui-tree-btnGroup").on("click",".layui-icon",function(e){layui.stope(e);var i,e=u(this).data("type"),a=c.children("."+g),t={data:d,type:e,elem:c};if("add"==e){a[0]||(o.showLine?(h.find("."+C).addClass("layui-tree-icon"),h.find("."+C).children(".layui-icon").addClass(k).removeClass("layui-icon-file")):h.find(".layui-tree-iconArrow").removeClass(y),c.append('
      '));var n,l=o.operate&&o.operate(t),r={};if(r.title=o.text.defaultNodeName,r.id=l,s.tree(c.children("."+g),[r]),o.showLine&&(a[0]?(a.hasClass(L)||a.addClass(L),c.find("."+g).each(function(){u(this).children("."+f).last().addClass(N)}),(a.children("."+f).last().prev().hasClass(N)?a.children("."+f).last().prev():a.children("."+f).last()).removeClass(N),!c.parent("."+g)[0]&&c.next()[0]&&a.children("."+f).last().removeClass(N)):(l=c.siblings("."+f),n=1,r=c.parent("."+g),layui.each(l,function(e,i){u(i).children("."+g)[0]||(n=0)}),(1==n?(l.children("."+g).addClass(T),l.children("."+g).children("."+f).removeClass(N),c.children("."+g).addClass(T),r.removeClass(L),r.children("."+f).last().children("."+g).children("."+f).last()):c.children("."+g).children("."+f)).addClass(N))),!o.showCheckbox)return;h.find('input[same="layuiTreeCheck"]')[0].checked&&(c.children("."+g).children("."+f).last().find('input[same="layuiTreeCheck"]')[0].checked=!0),s.renderForm("checkbox")}else"update"==e?(l=h.children("."+b).html(),h.children("."+b).html(""),h.append(''),h.children(".layui-tree-editInput").val(l).focus(),i=function(e){var i=e.val().trim()||o.text.defaultNodeName;e.remove(),h.children("."+b).html(i),t.data.title=i,o.operate&&o.operate(t)},h.children(".layui-tree-editInput").blur(function(){i(u(this))}),h.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),i(u(this)))})):p.confirm('\u786e\u8ba4\u5220\u9664\u8be5\u8282\u70b9 "'+(d.title||"")+'" \u5417\uff1f',function(e){var l,n,i;o.operate&&o.operate(t),t.status="remove",p.close(e),c.prev("."+f)[0]||c.next("."+f)[0]||c.parent("."+g)[0]?(c.siblings("."+f).children("."+m)[0]?(o.showCheckbox&&(l=function(e){var i,n,a,t;e.parents("."+f)[0]&&(i=e.siblings("."+f).children("."+m),n=(e=e.parent("."+g).prev()).find('input[same="layuiTreeCheck"]')[0],a=1,(t=0)==n.checked)&&(i.each(function(e,i){i=u(i).find('input[same="layuiTreeCheck"]')[0];0!=i.checked||i.disabled||(a=0),i.disabled||(t=1)}),1==a)&&1==t&&(n.checked=!0,s.renderForm("checkbox"),l(e.parent("."+f)))})(c),o.showLine&&(e=c.siblings("."+f),n=1,i=c.parent("."+g),layui.each(e,function(e,i){u(i).children("."+g)[0]||(n=0)}),1==n?(a[0]||(i.removeClass(L),e.children("."+g).addClass(T),e.children("."+g).children("."+f).removeClass(N)),(c.next()[0]?i.children("."+f).last():c.prev()).children("."+g).children("."+f).last().addClass(N),c.next()[0]||c.parents("."+f)[1]||c.parents("."+f).eq(0).next()[0]||c.prev("."+f).addClass(N)):!c.next()[0]&&c.hasClass(N)&&c.prev().addClass(N))):(e=c.parent("."+g).prev(),o.showLine?(e.find("."+C).removeClass("layui-tree-icon"),e.find("."+C).children(".layui-icon").removeClass(v).addClass("layui-icon-file"),(i=e.parents("."+g).eq(0)).addClass(L),i.children("."+f).each(function(){u(this).children("."+g).children("."+f).last().addClass(N)})):e.find(".layui-tree-iconArrow").addClass(y),c.parents("."+f).eq(0).removeClass(w),c.parent("."+g).remove()),c.remove()):(c.remove(),s.elem.append(s.elemNone))})})},l.prototype.events=function(){var i=this,t=i.config;i.elem.find(".layui-tree-checkedFirst");i.setChecked(i.checkids),i.elem.find(".layui-tree-search").on("keyup",function(){var e=u(this),n=e.val(),e=e.nextAll(),a=[];e.find("."+b).each(function(){var i,e=u(this).parents("."+m);-1!=u(this).html().indexOf(n)&&(a.push(u(this).parent()),(i=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+g)[0]&&i(e.parent("."+g).parent("."+f))})(e.parent("."+f)))}),e.find("."+m).each(function(){var e=u(this).parent("."+f);e.hasClass("layui-tree-searchShow")||e.addClass(y)}),0==e.find(".layui-tree-searchShow").length&&i.elem.append(i.elemNone),t.onsearch&&t.onsearch({elem:a})}),i.elem.find(".layui-tree-search").on("keydown",function(){u(this).nextAll().find("."+m).each(function(){u(this).parent("."+f).removeClass("layui-tree-searchShow "+y)}),u(".layui-tree-emptyText")[0]&&u(".layui-tree-emptyText").remove()})},l.prototype.getChecked=function(){var e=this.config,i=[],n=[],t=(this.elem.find(".layui-form-checked").each(function(){i.push(u(this).prev()[0].value)}),function(e,a){layui.each(e,function(e,n){layui.each(i,function(e,i){if(n.id==i)return delete(i=u.extend({},n)).children,a.push(i),n.children&&(i.children=[],t(n.children,i.children)),!0})})});return t(u.extend({},e.data),n),n},l.prototype.setChecked=function(l){this.config;this.elem.find("."+f).each(function(e,i){var n=u(this).data("id"),a=u(i).children("."+m).find('input[same="layuiTreeCheck"]'),t=a.next();if("number"==typeof l){if(n==l)return a[0].checked||t.click(),!1}else"object"==typeof l&&layui.each(l,function(e,i){if(i==n&&!a[0].checked)return t.click(),!0})})},t.that={},t.config={},a.reload=function(e,i){e=t.that[e];return e.reload(i),t.call(e)},a.getChecked=function(e){return t.that[e].getChecked()},a.setChecked=function(e,i){return t.that[e].setChecked(i)},a.render=function(e){e=new l(e);return t.call(e)},e(n,a)});layui.define(["laytpl","form"],function(e){"use strict";var d=layui.$,n=layui.laytpl,t=layui.form,a="transfer",i={config:{},index:layui[a]?layui[a].index+1e4:0,set:function(e){var t=this;return t.config=d.extend({},t.config,e),t},on:function(e,t){return layui.onevent.call(this,a,e,t)}},l=function(){var t=this,e=t.config,a=e.id||t.index;return l.that[a]=t,{config:l.config[a]=e,reload:function(e){t.reload.call(t,e)},getData:function(){return t.getData.call(t)}}},s="layui-hide",h="layui-btn-disabled",r="layui-none",c="layui-transfer-box",u="layui-transfer-header",o="layui-transfer-search",f="layui-transfer-data",y=function(e){return['
      ','
      ','","
      ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
        ',"
        "].join("")},p=['
        ',y({index:0,checkAllName:"layTransferLeftCheckAll"}),'
        ','",'","
        ",y({index:1,checkAllName:"layTransferRightCheckAll"}),"
        "].join(""),v=function(e){var t=this;t.index=++i.index,t.config=d.extend({},t.config,i.config,e),t.render()};v.prototype.config={title:["\u5217\u8868\u4e00","\u5217\u8868\u4e8c"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"\u65e0\u6570\u636e",searchNone:"\u65e0\u5339\u914d\u6570\u636e"}},v.prototype.reload=function(e){var t=this;t.config=d.extend({},t.config,e),t.render()},v.prototype.render=function(){var e=this,t=e.config,a=e.elem=d(n(p).render({data:t,index:e.index})),i=t.elem=d(t.elem);i[0]&&(t.data=t.data||[],t.value=t.value||[],e.key=t.id||e.index,i.html(e.elem),e.layBox=e.elem.find("."+c),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+o),e.layData=a.find("."+f),e.layBtn=a.find(".layui-transfer-active .layui-btn"),e.layBox.css({width:t.width,height:t.height}),e.layData.css({height:(i=t.height-e.layHeader.outerHeight(),t.showSearch&&(i-=e.laySearch.outerHeight()),i-2)}),e.renderData(),e.events())},v.prototype.renderData=function(){var e=this,i=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,a=["
      • ",'',"
      • "].join("");i[t].views.push(a),delete e.selected}),e.layData.eq(0).html(i[0].views.join("")),e.layData.eq(1).html(i[1].views.join("")),e.renderCheckBtn()},v.prototype.renderForm=function(e){t.render(e,"LAY-transfer-"+this.index)},v.prototype.renderCheckBtn=function(r){var c=this,o=c.config;r=r||{},c.layBox.each(function(e){var t=d(this),a=t.find("."+f),t=t.find("."+u).find('input[type="checkbox"]'),i=a.find('input[type="checkbox"]'),n=0,l=!1;i.each(function(){var e=d(this).data("hide");(this.checked||this.disabled||e)&&n++,this.checked&&!e&&(l=!0)}),t.prop("checked",l&&n===i.length),c.layBtn.eq(e)[l?"removeClass":"addClass"](h),r.stopNone||(i=a.children("li:not(."+s+")").length,c.noneView(a,i?"":o.text.none))}),c.renderForm("checkbox")},v.prototype.noneView=function(e,t){var a=d('

        '+(t||"")+"

        ");e.find("."+r)[0]&&e.find("."+r).remove(),t.replace(/\s/g,"")&&e.append(a)},v.prototype.setValue=function(){var e=this.config,t=[];return this.layBox.eq(1).find("."+f+' input[type="checkbox"]').each(function(){d(this).data("hide")||t.push(this.value)}),e.value=t,this},v.prototype.parseData=function(t){var i=this.config,n=[];return layui.each(i.data,function(e,a){a=("function"==typeof i.parseData?i.parseData(a):a)||a,n.push(a=d.extend({},a)),layui.each(i.value,function(e,t){t==a.value&&(a.selected=!0)}),t&&t(a)}),i.data=n,this},v.prototype.getData=function(e){var t=this.config,i=[];return this.setValue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&i.push(t)})}),i},v.prototype.transfer=function(e,t){var a,i=this,n=i.config,l=i.layBox.eq(e),r=[],t=(t?((a=(t=t).find('input[type="checkbox"]'))[0].checked=!1,l.siblings("."+c).find("."+f).append(t.clone()),t.remove(),r.push(a[0].value),i.setValue()):l.each(function(e){d(this).find("."+f).children("li").each(function(){var e=d(this),t=e.find('input[type="checkbox"]'),a=t.data("hide");t[0].checked&&!a&&(t[0].checked=!1,l.siblings("."+c).find("."+f).append(e.clone()),e.remove(),r.push(t[0].value)),i.setValue()})}),i.renderCheckBtn(),l.siblings("."+c).find("."+o+" input"));""!==t.val()&&t.trigger("keyup"),n.onchange&&n.onchange(i.getData(r),e)},v.prototype.events=function(){var n=this,a=n.config;n.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var e=d(this).prev(),t=e[0].checked,a=e.parents("."+c).eq(0).find("."+f);e[0].disabled||("all"===e.attr("lay-type")&&a.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=t)}),setTimeout(function(){n.renderCheckBtn({stopNone:!0})},0))}),n.elem.on("dblclick","."+f+">li",function(e){var t=d(this),a=t.children('input[type="checkbox"]'),i=t.parent().parent();a[0].disabled||n.transfer(i.data("index"),t)}),n.layBtn.on("click",function(){var e=d(this),t=e.data("index");e.hasClass(h)||n.transfer(t)}),n.laySearch.find("input").on("keyup",function(){var i=this.value,e=d(this).parents("."+o).eq(0).siblings("."+f),t=e.children("li"),t=(t.each(function(){var e=d(this),t=e.find('input[type="checkbox"]'),a=-1!==t[0].title.indexOf(i);e[a?"removeClass":"addClass"](s),t.data("hide",!a)}),n.renderCheckBtn(),t.length===e.children("li."+s).length);n.noneView(e,t?a.text.searchNone:"")})},l.that={},l.config={},i.reload=function(e,t){e=l.that[e];return e.reload(t),l.call(e)},i.getData=function(e){return l.that[e].getData()},i.render=function(e){e=new v(e);return l.call(e)},e(a,i)});layui.define("jquery",function(e){"use strict";var a=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,d,e,i)}}),d="carousel",r="layui-this",s="layui-carousel-left",u="layui-carousel-right",c="layui-carousel-prev",m="layui-carousel-next",t="layui-carousel-arrow",l="layui-carousel-ind",i=function(e){var i=this;i.config=a.extend({},i.config,n.config,e),i.render()};i.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},i.prototype.render=function(){var e=this,i=e.config;i.elem=a(i.elem),i.elem[0]&&(e.elemItem=i.elem.find(">*[carousel-item]>*"),i.index<0&&(i.index=0),i.index>=e.elemItem.length&&(i.index=e.elemItem.length-1),i.interval<800&&(i.interval=800),i.full?i.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):i.elem.css({width:i.width,height:i.height}),i.elem.attr("lay-anim",i.anim),e.elemItem.eq(i.index).addClass(r),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},i.prototype.reload=function(e){var i=this;clearInterval(i.timer),i.config=a.extend({},i.config,e),i.render()},i.prototype.prevIndex=function(){var e=this.config.index-1;return e=e<0?this.elemItem.length-1:e},i.prototype.nextIndex=function(){var e=this.config.index+1;return e=e>=this.elemItem.length?0:e},i.prototype.addIndex=function(e){var i=this.config;i.index=i.index+(e=e||1),i.index>=this.elemItem.length&&(i.index=0)},i.prototype.subIndex=function(e){var i=this.config;i.index=i.index-(e=e||1),i.index<0&&(i.index=this.elemItem.length-1)},i.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},i.prototype.arrow=function(){var i=this,e=i.config,n=a(['",'"].join(""));e.elem.attr("lay-arrow",e.arrow),e.elem.find("."+t)[0]&&e.elem.find("."+t).remove(),e.elem.append(n),n.on("click",function(){var e=a(this).attr("lay-type");i.slide(e)})},i.prototype.indicator=function(){var i,n=this,t=n.config,e=n.elemInd=a(['
          ',(i=[],layui.each(n.elemItem,function(e){i.push("")}),i.join("")),"
        "].join(""));t.elem.attr("lay-indicator",t.indicator),t.elem.find("."+l)[0]&&t.elem.find("."+l).remove(),t.elem.append(e),"updown"===t.anim&&e.css("margin-top",-e.height()/2),e.find("li").on("hover"===t.trigger?"mouseover":t.trigger,function(){var e=a(this).index();e>t.index?n.slide("add",e-t.index):ea.length&&(a.value=a.length),parseInt(a.value)===a.value||a.half||(a.value=Math.ceil(a.value)-a.value<.5?Math.ceil(a.value):Math.floor(a.value)),'
          "),n=1;n<=a.length;n++){var t='
        • ";a.half&&parseInt(a.value)!==a.value&&n==Math.ceil(a.value)?i=i+'
        • ":i+=t}i+="
        "+(a.text?''+a.value+"\u661f":"")+"";var o=a.elem,s=o.next(".layui-rate");s[0]&&s.remove(),e.elemTemp=u(i),a.span=e.elemTemp.next("span"),a.setText&&a.setText(a.value),o.html(e.elemTemp),o.addClass("layui-inline"),a.readonly||e.action()},a.prototype.setvalue=function(e){this.config.value=e,this.render()},a.prototype.action=function(){var i=this.config,n=this.elemTemp,t=n.find("i").width();n.children("li").each(function(e){var a=e+1,l=u(this);l.on("click",function(e){i.value=a,i.half&&e.pageX-u(this).offset().left<=t/2&&(i.value=i.value-.5),i.text&&n.next("span").text(i.value+"\u661f"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),l.on("mousemove",function(e){n.find("i").each(function(){u(this).addClass(c).removeClass(s)}),n.find("i:lt("+a+")").each(function(){u(this).addClass(r).removeClass(f)}),i.half&&e.pageX-u(this).offset().left<=t/2&&l.children("i").addClass(o).removeClass(r)}),l.on("mouseleave",function(){n.find("i").each(function(){u(this).addClass(c).removeClass(s)}),n.find("i:lt("+Math.floor(i.value)+")").each(function(){u(this).addClass(r).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&n.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(o).removeClass("layui-icon-rate-solid layui-icon-rate")})})},a.prototype.events=function(){this.config},l.render=function(e){e=new a(e);return function(){var a=this;return{setvalue:function(e){a.setvalue.call(a,e)},config:a.config}}.call(e)},e(i,l)});layui.define("jquery",function(l){"use strict";var g=layui.$,e=function(l){};e.prototype.load=function(l){var t,i,n,e,r,o,a,c,m,s,u,f,y,d=this,p=0,h=g((l=l||{}).elem);if(h[0])return e=g(l.scrollElem||document),r=l.mb||50,o=!("isAuto"in l)||l.isAuto,a=l.end||"\u6ca1\u6709\u66f4\u591a\u4e86",c=l.scrollElem&&l.scrollElem!==document,s=g('"),h.find(".layui-flow-more")[0]||h.append(s),u=function(l,e){l=g(l),s.before(l),(e=0==e||null)?s.html(a):s.find("a").html(m),i=e,t=null,y&&y()},(f=function(){t=!0,s.find("a").html(''),"function"==typeof l.done&&l.done(++p,u)})(),s.find("a").on("click",function(){g(this);i||t||f()}),l.isLazyimg&&(y=d.lazyimg({elem:l.elem+" img",scrollElem:l.scrollElem})),o&&e.on("scroll",function(){var e=g(this),o=e.scrollTop();n&&clearTimeout(n),!i&&h.width()&&(n=setTimeout(function(){var l=(c?e:g(window)).height();(c?e.prop("scrollHeight"):document.documentElement.scrollHeight)-o-l<=r&&(t||f())},100))}),d},e.prototype.lazyimg=function(l){var e,c=this,m=0,s=g((l=l||{}).scrollElem||document),u=l.elem||"img",f=l.scrollElem&&l.scrollElem!==document,y=function(e,l){var o,t=s.scrollTop(),l=t+l,i=f?e.offset().top-s.offset().top+t:e.offset().top;t<=i&&i<=l&&e.attr("lay-src")&&(o=e.attr("lay-src"),layui.img(o,function(){var l=c.lazyimg.elem.eq(m);e.attr("src",o).removeAttr("lay-src"),l[0]&&n(l),m++},function(){c.lazyimg.elem.eq(m);e.removeAttr("lay-src")}))},n=function(l,e){var o=(f?e||s:g(window)).height(),t=s.scrollTop(),i=t+o;if(c.lazyimg.elem=g(u),l)y(l,o);else for(var n=0;n','
        '+e+"
        ",'
        ','',"
        ",""].join(""));return r.ie&&r.ie<8?c.removeClass("layui-hide").addClass("layui-show"):(u[0]&&u.remove(),f.call(l,o,c[0],n),c.addClass("layui-hide").after(o),l.index)},e.prototype.getContent=function(t){t=n(t);if(t[0])return a(t[0].document.body.innerHTML)},e.prototype.getText=function(t){t=n(t);if(t[0])return p(t[0].document.body).text()},e.prototype.setContent=function(t,e,i){var a=n(t);a[0]&&(i?p(a[0].document.body).append(e):p(a[0].document.body).html(e),layedit.sync(t))},e.prototype.sync=function(t){t=n(t);t[0]&&p("#"+t[1].attr("textarea")).val(a(t[0].document.body.innerHTML))},e.prototype.getSelection=function(t){var t=n(t);if(t[0])return t=y(t[0].document),document.selection?t.text:t.toString()},function(l,n,o){var c=this,s=l.find("iframe");s.css({height:o.height}).on("load",function(){var t=s.contents(),e=s.prop("contentWindow"),i=t.find("head"),a=p([""].join("")),t=t.find("body");i.append(a),t.attr("contenteditable","true").css({"min-height":o.height}).html(n.value||""),u.apply(c,[e,s,n,o]),b.call(c,e,l,o)})}),n=function(t){t=p("#LAY_layedit_"+t);return[t.prop("contentWindow"),t]},a=function(t){return t=8==r.ie?t.replace(/<.+>/g,function(t){return t.toLowerCase()}):t},u=function(e,t,i,a){var l=e.document,n=p(l.body);n.on("keydown",function(t){if(13===t.keyCode){var e=y(l);if("pre"===h(e).parentNode.tagName.toLowerCase())return t.shiftKey?void 0:(m.msg("\u8bf7\u4f7f\u7528shift+enter\u8f93\u5165\u4ee3\u7801\u5757"),!1);l.execCommand("formatBlock",!1,"

        ")}}),p(i).parents("form").on("submit",function(){var t=n.html();8==r.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),i.value=t}),n.on("paste",function(t){l.execCommand("formatBlock",!1,"

        "),setTimeout(function(){o.call(e,n),i.value=n.html()},100)})},o=function(t){this.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),p(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},y=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},h=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,e,i){var a,l,n=this.document,o=document.createElement(t);for(a in e)o.setAttribute(a,e[a]);o.removeAttribute("text"),n.selection?(l=i.text||e.text,"a"===t&&!l||(l&&(o.innerHTML=l),i.pasteHTML(p(o).prop("outerHTML")),i.select())):(l=i.toString()||e.text,"a"===t&&!l||(l&&(o.innerHTML=l),i.deleteContents(),i.insertNode(o)))},g=function(e,t){var i=this.document,a="layedit-tool-active",i=h(y(i)),l=function(t){return e.find(".layedit-tool-"+t)};t&&t[t.hasClass(a)?"removeClass":"addClass"](a),e.find(">i").removeClass(a),l("unlink").addClass(d),p(i).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||l("b").addClass(a),"i"!==t&&"em"!==t||l("i").addClass(a),"u"===t&&l("u").addClass(a),"strike"===t&&l("d").addClass(a),"p"===t&&l("center"===e?"center":"right"===e?"right":"left").addClass(a),"a"===t&&(l("link").addClass(a),l("unlink").removeClass(d))})},b=function(c,t,s){var l=c.document,n=p(l.body),o={link:function(i){var t=h(i),a=p(t).parent();x.call(n,{href:a.attr("href"),target:a.attr("target")},function(t){var e=a[0];"A"===e.tagName?e.href=t.url:v.call(c,"a",{target:t.target,href:t.url,text:t.url},i)})},unlink:function(t){l.execCommand("unlink")},face:function(e){const{elem:t,defaultFaceList:i,recentFaceList:a,customFaceList:l,textFaceList:n,clickFaceCallback:o}=s.face||{};k.call(this,function(t){o&&o(t),"text"===t.type?v.call(c,"span",{text:t.alt},e):v.call(c,"img",{src:t.src,type:t.type,alt:t.alt,style:t.style},e)},i,a,l,n,t)},image:function(n){var o=this;layui.use("upload",function(t){const{url:e,type:i,chooseImageCallback:a,uploadImageCallback:l}=s.image||{};t.render({url:e,method:i,elem:p(o).find("input")[0],choose:function(t){a&&"function"==typeof a&&a(t)},done:function(t){0==t.code&&(t.data=t.data||{},v.call(c,"img",{src:t.data.src,alt:t.data.title,id:t.data.id,style:"width:100px;"},n)),l&&"function"==typeof l&&l(t)}})})},code:function(e){C.call(n,function(t){v.call(c,"pre",{text:t.code,"lay-lang":t.lang},e)})},help:function(){m.open({type:2,title:"\u5e2e\u52a9",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["","no"]})},history:function(){var t=(s.history||{})["historyCallback"];t&&"function"==typeof t&&t()},voice:function(){var t=(s.voice||{})["voiceCallback"];t&&"function"==typeof t&&t()},record:function(){var t=(s.record||{})["recordCallback"];t&&"function"==typeof t&&t()},printCut:function(){var t=(s.printCut||{})["printCutCallback"];t&&"function"==typeof t&&t()},cusFace:function(){var t=(s.cusFace||{})["cusFaceCallback"];t&&"function"==typeof t&&t()},draw:function(){var t=(s.draw||{})["drawCallback"];t&&"function"==typeof t&&t()},file:function(){var n=this;layui.use("upload",function(t){const{url:e,type:i,chooseFileCallback:a,uploadFileCallback:l}=s.file||{};t.render({url:e,accept:"file",method:i,auto:!1,elem:p(n).find("input")[0],choose:function(t){a&&"function"==typeof a&&a(t)},done:function(t){l(t)}})})}},u=t.find(".layui-layedit-tool"),e=function(){var t,e=p(this),i=e.attr("layedit-event"),a=e.attr("lay-command");e.hasClass(d)||(n.focus(),(t=y(l)).commonAncestorContainer,a?(l.execCommand(a),/justifyLeft|justifyCenter|justifyRight/.test(a)&&l.execCommand("formatBlock",!1,"

        "),setTimeout(function(){n.focus()},10)):o[i]&&o[i].call(this,t),g.call(c,u,e))},i=/image/;u.find(">i").on("mousedown",function(){var t=p(this).attr("layedit-event");i.test(t)||e.call(this)}).on("click",function(){var t=p(this).attr("layedit-event");i.test(t)&&e.call(this)}),n.on("click",function(){g.call(c,u),m.close(k.index)})},x=function(t,i){var a=this,t=m.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"\u8d85\u94fe\u63a5",skin:"layui-layer-msg",content:['

          ','
        • ','','
          ','',"
          ","
        • ",'
        • ','','
          ','",'","
          ","
        • ",'
        • ','','',"
        • ","
        "].join(""),success:function(t,e){l.render("radio"),t.find(".layui-btn-primary").on("click",function(){m.close(e),a.focus()}),l.on("submit(layedit-link-yes)",function(t){m.close(x.index),i&&i(t.field)})}});x.index=t},k=function(i,t,e,a,l,n){o={},layui.each(t||[],function(t,e){o[e]=layui.cache.dir+"images/face/"+t+".gif"});var o,c,s,u,r=o,d=(c={},layui.each(e||[],function(t,e){c[e.alt]=e}),c),f=(s={},layui.each(a,function(t,e){s[e]=layui.cache.dir+"images/face/"+t+".gif"}),s),y=(u={},layui.each(l,function(t,e){u[e]=e}),u);return k.hide=k.hide||function(t){"face"!==p(t.target).attr("layedit-event")&&m.close(k.index)},k.index=m.tips(function(){var i=[],a=[],l=[],n=[];layui.each(d,function(t,e){"img"===e.type?i.push('
      • '+t+'
      • '):i.push('
      • '+e.alt+"
      • ")}),layui.each(r,function(t,e){a.push('
      • '+t+'
      • ')}),layui.each(f,function(t,e){l.push('
      • '+t+'
      • ')}),layui.each(y,function(t,e){n.push('
      • '+e+"
      • ")});return` +/** 2.7.4 | MIT Licensed */;!function(d){"use strict";var t,h=d.document,m={modules:{},status:{},timeout:10,event:{}},r=function(){this.v="2.7.4"},e=d.LAYUI_GLOBAL||{},v=(t=h.currentScript?h.currentScript.src:function(){for(var t,e=h.scripts,o=e.length-1,r=o;01e3*m.timeout/4?g(s+" is not a valid module","error"):void(m.status[s]?y():setTimeout(r,4))}())}function y(){e.push(layui[s]),11e3*m.timeout/4?g(s+" is not a valid module","error"):void("string"==typeof m.modules[s]&&m.status[s]?y():setTimeout(f,4))}():((n=h.createElement("script"))["async"]=!0,n.charset="utf-8",n.src=i+((u=!0===m.version?m.v||(new Date).getTime():m.version||"")?"?v="+u:""),l.appendChild(n),!n.attachEvent||n.attachEvent.toString&&n.attachEvent.toString().indexOf("[native code")<0||b?n.addEventListener("load",function(t){p(t,i)},!1):n.attachEvent("onreadystatechange",function(t){p(t,i)}),m.modules[s]=i)),a},r.prototype.disuse=function(t){var o=this;return t=o.isArray(t)?t:[t],o.each(t,function(t,e){m.status[e],delete o[e],delete N[e],delete o.modules[e],delete m.status[e],delete m.modules[e]}),o},r.prototype.getStyle=function(t,e){t=t.currentStyle||d.getComputedStyle(t,null);return t[t.getPropertyValue?"getPropertyValue":"getAttribute"](e)},r.prototype.link=function(o,r,t){var n=this,e=h.getElementsByTagName("head")[0],i=h.createElement("link"),t=((t="string"==typeof r?r:t)||o).replace(/\.|\//g,""),a=i.id="layuicss-"+t,u="creating",l=0;return i.rel="stylesheet",i.href=o+(m.debug?"?v="+(new Date).getTime():""),i.media="all",h.getElementById(a)||e.appendChild(i),"function"==typeof r&&function s(t){var e=h.getElementById(a);return++l>1e3*m.timeout/100?g(o+" timeout"):void(1989===parseInt(n.getStyle(e,"width"))?(t===u&&e.removeAttribute("lay-status"),e.getAttribute("lay-status")===u?setTimeout(s,100):r()):(e.setAttribute("lay-status",u),setTimeout(function(){s(u)},100)))}(),n},r.prototype.addcss=function(t,e,o){return layui.link(m.dir+"css/"+t,e,o)},m.callback={},r.prototype.factory=function(t){if(layui[t])return"function"==typeof m.callback[t]?m.callback[t]:null},r.prototype.img=function(t,e,o){var r=new Image;if(r.src=t,r.complete)return e(r);r.onload=function(){r.onload=null,"function"==typeof e&&e(r)},r.onerror=function(t){r.onerror=null,"function"==typeof o&&o(t)}},r.prototype.config=function(t){for(var e in t=t||{})m[e]=t[e];return this},r.prototype.modules=function(){var t,e={};for(t in N)e[t]=N[t];return e}(),r.prototype.extend=function(t){for(var e in t=t||{})this[e]||this.modules[e]?g(e+" Module already exists","error"):this.modules[e]=t[e];return this},r.prototype.router=r.prototype.hash=function(t){var o={path:[],search:{},hash:((t=t||location.hash).match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(t)&&(t=t.replace(/^#\//,""),o.href="/"+t,t=t.replace(/([^#])(#.*$)/,"$1").split("/")||[],this.each(t,function(t,e){/^\w+=/.test(e)?(e=e.split("="),o.search[e[0]]=e[1]):o.path.push(e)})),o},r.prototype.url=function(t){var n,e,o=this;return{pathname:(t?((t.match(/\.[^.]+?\/.+/)||[])[0]||"").replace(/^[^\/]+/,"").replace(/\?.+/,""):location.pathname).replace(/^\//,"").split("/"),search:(n={},e=(t?((t.match(/\?.+/)||[])[0]||"").replace(/\#.+/,""):location.search).replace(/^\?+/,"").split("&"),o.each(e,function(t,e){var o=e.indexOf("="),r=o<0?e.substr(0,e.length):0!==o&&e.substr(0,o);r&&(n[r]=0(l.innerHeight||f.documentElement.clientHeight)},h.position=function(t,e,n){var o,i,r,c,u,a,s;e&&(n=n||{},t!==f&&t!==h("body")[0]||(n.clickType="right"),u="right"!==n.clickType&&t?t.getBoundingClientRect():{left:(u=n.e||l.event||{}).clientX,top:u.clientY,right:u.clientX,bottom:u.clientY},a=e.offsetWidth,s=e.offsetHeight,o=function(t){return f.body[t=t?"scrollLeft":"scrollTop"]|f.documentElement[t]},r=u.left,c=u.bottom,"center"===n.align?r-=(a-t.offsetWidth)/2:"right"===n.align&&(r=r-a+t.offsetWidth),(r=r+a+5>(i=function(t){return f.documentElement[t?"clientWidth":"clientHeight"]})("width")?i("width")-a-5:r)<5&&(r=5),c+s+5>i()&&(u.top>s+5?c=u.top-s-10:"right"===n.clickType?(c=i()-s-10)<0&&(c=0):c=5),(a=n.position)&&(e.style.position=a),e.style.left=r+("fixed"===a?0:o(1))+"px",e.style.top=c+("fixed"===a?0:o())+"px",h.hasScrollbar()||(s=e.getBoundingClientRect(),!n.SYSTEM_RELOAD&&s.bottom+5>i()&&(n.SYSTEM_RELOAD=!0,setTimeout(function(){h.position(t,e,n)},50))))},h.options=function(t,e){t=h(t),e=e||"lay-options";try{return new Function("return "+(t.attr(e)||"{}"))()}catch(n){return hint.error("parseerror\uff1a"+n,"error"),{}}},h.isTopElem=function(n){var t=[f,h("body")[0]],o=!1;return h.each(t,function(t,e){if(e===n)return o=!0}),o},i.addStr=function(n,t){return n=n.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),h.each(t,function(t,e){new RegExp("\\b"+e+"\\b").test(n)||(n=n+" "+e)}),n.replace(/^\s|\s$/,"")},i.removeStr=function(n,t){return n=n.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),h.each(t,function(t,e){e=new RegExp("\\b"+e+"\\b");e.test(n)&&(n=n.replace(e,""))}),n.replace(/\s+/," ").replace(/^\s|\s$/,"")},i.prototype.find=function(o){var i=this,r=0,c=[],u="object"==typeof o;return this.each(function(t,e){for(var n=u?e.contains(o):e.querySelectorAll(o||null);r]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},error:function(e,r){var n="Laytpl Error: ";return"object"==typeof console&&console.error(n+e+"\n"+(r||"")),n+e}},l=a.exp,r=function(e){this.tpl=e},n=(r.pt=r.prototype,window.errors=0,r.pt.parse=function(e,r){var n=e,c=l("^"+p.open+"#",""),t=l(p.close+"$","");e='"use strict";var view = "'+(e=e.replace(/\s+|\r|\t|\n/g," ").replace(l(p.open+"#"),p.open+"# ").replace(l(p.close+"}"),"} "+p.close).replace(/\\/g,"\\\\").replace(l(p.open+"!(.+?)!"+p.close),function(e){return e=e.replace(l("^"+p.open+"!"),"").replace(l("!"+p.close),"").replace(l(p.open+"|"+p.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(a.query(),function(e){return'";'+(e=e.replace(c,"").replace(t,"")).replace(/\\(.)/g,"$1")+';view+="'}).replace(a.query(1),function(e){var r='"+laytpl.escape(';return e.replace(/\s/g,"")===p.open+p.close?"":(e=e.replace(l(p.open+"|"+p.close),""),/^=/.test(e)?e=e.replace(/^=/,""):/^-/.test(e)&&(e=e.replace(/^-/,""),r='"+('),r+e.replace(/\\(.)/g,"$1")+')+"')}))+'";return view;';try{return this.cache=e=new Function("d, laytpl",e),e(r,a)}catch(o){return delete this.cache,a.error(o,n)}},r.pt.render=function(e,r){var n=this;return e?(e=n.cache?n.cache(e,a):n.parse(n.tpl,e),r?void r(e):e):a.error("no data")},function(e){return"string"!=typeof e?a.error("Template not found"):new r(e)});n.config=function(e){for(var r in e=e||{})p[r]=e[r]},n.v="1.2.0",e("laytpl",n)});layui.define(function(e){"use strict";var n=document,u="getElementById",c="getElementsByTagName",a="layui-disabled",t=function(e){var a=this;a.config=e||{},a.config.index=++o.index,a.render(!0)},o=(t.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return e.elem.length===undefined?2:3},t.prototype.view=function(){var t,i,r=this.config,n=r.groups="groups"in r?Number(r.groups)||0:5,u=(r.layout="object"==typeof r.layout?r.layout:["prev","page","next"],r.count=Number(r.count)||0,r.curr=Number(r.curr)||1,r.limits="object"==typeof r.limits?r.limits:[10,20,30,40,50],r.limit=Number(r.limit)||10,r.pages=Math.ceil(r.count/r.limit)||1,r.curr>r.pages?r.curr=r.pages:r.curr<1&&(r.curr=1),n<0?n=1:n>r.pages&&(n=r.pages),r.prev="prev"in r?r.prev:"上一页",r.next="next"in r?r.next:"下一页",r.pages>n?Math.ceil((r.curr+(1'+r.prev+"":"",page:function(){var e=[];if(r.count<1)return"";1'+(r.first||1)+"");var a=Math.floor((n-1)/2),t=1r.pages?r.pages:a:n;for(i-t…');t<=i;t++)t===r.curr?e.push('"+t+""):e.push(''+t+"");return r.pages>n&&r.pages>i&&!1!==r.last&&(i+1…'),0!==n)&&e.push(''+(r.last||r.pages)+""),e.join("")}(),next:r.next?''+r.next+"":"",count:'\u5171 '+r.count+" \u6761",limit:(t=['"),refresh:['','',""].join(""),skip:['到第','','页',""].join("")};return['
        ',(i=[],layui.each(r.layout,function(e,a){s[a]&&i.push(s[a])}),i.join("")),"
        "].join("")},t.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,n=e[c]("button")[0],u=e[c]("input")[0],e=e[c]("select")[0],s=function(){var e=Number(u.value.replace(/\s|\D/g,""));e&&(i.curr=e,t.render())};if(a)return s();for(var l=0,p=r.length;li.pages||(i.curr=e,t.render())});e&&o.on(e,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),n&&o.on(n,"click",function(){s()})}},t.prototype.skip=function(t){var i,e;t&&(i=this,e=t[c]("input")[0])&&o.on(e,"keyup",function(e){var a=this.value,e=e.keyCode;/^(37|38|39|40)$/.test(e)||(/\D/.test(a)&&(this.value=a.replace(/\D/,"")),13===e&&i.jump(t,!0))})},t.prototype.render=function(e){var a=this,t=a.config,i=a.type(),r=a.view(),i=(2===i?t.elem&&(t.elem.innerHTML=r):3===i?t.elem.html(r):n[u](t.elem)&&(n[u](t.elem).innerHTML=r),t.jump&&t.jump(t,e),n[u]("layui-laypage-"+t.index));a.jump(i),t.hash&&!e&&(location.hash="!"+t.hash+"="+t.curr),a.skip(i)},{render:function(e){return new t(e).index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(a,e,t){return a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1),this}});e("laypage",o)});!function(i,r){"use strict";var n=i.layui&&layui.define,l={getPath:i.lay&&lay.getPath?lay.getPath:"",link:function(e,t,a){u.path&&i.lay&&lay.layui&&lay.layui.link(u.path+e,t,a)}},e=i.LAYUI_GLOBAL||{},u={v:"5.3.1",config:{weekStart:0},index:i.laydate&&i.laydate.v?1e5:0,path:e.laydate_dir||l.getPath,set:function(e){var t=this;return t.config=lay.extend({},t.config,e),t},ready:function(e){var t="laydate",a=(n?"modules/laydate/":"theme/")+"default/laydate.css?v="+u.v;return n?layui.addcss(a,e,t):l.link(a,e,t),this}},s=function(){var t=this,e=t.config.id;return{hint:function(e){t.hint.call(t,e)},refresh:function(e){t.refresh.call(t,e)},prevYear:function(e){lay.each(t.elemHeader,function(e,t){t[0].click()})},prevMonth:function(e){lay.each(t.elemHeader,function(e,t){t[1].click()})},nextMonth:function(e){lay.each(t.elemHeader,function(e,t){t[3].click()})},nextYear:function(e){u.each(t.elemHeader,function(e,t){t[4].click()})},config:(s.that[e]=t).config}},a="laydate",w="layui-this",x="laydate-disabled",h=[100,2e5],p="layui-laydate-static",M="layui-laydate-list",o="layui-laydate-hint",E=".laydate-btns-confirm",k="laydate-time-text",C="laydate-btns-time",f="layui-laydate-preview",g=function(e){var t=this;t.index=++u.index,t.config=lay.extend({},t.config,u.config,e),(e=t.config).id="id"in e?e.id:t.index,u.ready(function(){t.init()})},y="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s";s.formatArr=function(e){return(e||"").match(new RegExp(y+"|.","g"))||[]},g.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},g.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"click",show:!1,showBottom:!0,isPreview:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},holidays:null,zIndex:null,done:null,change:null},g.prototype.lang=function(){var e={cn:{weeks:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],time:["\u65f6","\u5206","\u79d2"],timeTips:"\u9009\u62e9\u65f6\u95f4",startTime:"\u5f00\u59cb\u65f6\u95f4",endTime:"\u7ed3\u675f\u65f6\u95f4",dateTips:"\u8fd4\u56de\u65e5\u671f",month:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],tools:{confirm:"\u786e\u5b9a",clear:"\u6e05\u7a7a",now:"\u73b0\u5728"},timeout:"\u7ed3\u675f\u65f6\u95f4\u4e0d\u80fd\u65e9\u4e8e\u5f00\u59cb\u65f6\u95f4
        \u8bf7\u91cd\u65b0\u9009\u62e9",invalidDate:"\u4e0d\u5728\u6709\u6548\u65e5\u671f\u6216\u65f6\u95f4\u8303\u56f4\u5185",formatError:["\u65e5\u671f\u683c\u5f0f\u4e0d\u5408\u6cd5
        \u5fc5\u987b\u9075\u5faa\u4e0b\u8ff0\u683c\u5f0f\uff1a
        ","
        \u5df2\u4e3a\u4f60\u91cd\u7f6e"],preview:"\u5f53\u524d\u9009\u4e2d\u7684\u7ed3\u679c"},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"},timeout:"End time cannot be less than start Time
        Please re-select",invalidDate:"Invalid date",formatError:["The date format error
        Must be followed\uff1a
        ","
        It has been reset"],preview:"The selected result"}};return e[this.config.lang]||e.cn},g.prototype.refresh=function(){var e=this,t=e.config,a=t.dateTime,t="static"===t.position,n=new Date;e.config.value&&(n=new Date(e.config.value.replace(/-/g,"/"))),lay.extend(a,e.systemDate(n),{hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds()}),e.setValue(e.parse()).remove(),t&&e.calendar(),e.done(null,"change")},g.prototype.init=function(){var r=this,o=r.config,e="static"===o.position,t={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};o.elem=lay(o.elem),o.eventElem=lay(o.eventElem),o.elem[0]&&(r.rangeStr=o.range?"string"==typeof o.range?o.range:"-":"","array"===layui.type(o.range)&&(r.rangeElem=[lay(o.range[0]),lay(o.range[1])]),t[o.type]||(i.console&&console.error&&console.error("laydate type error:'"+o.type+"' is not supported"),o.type="date"),o.format===t.date&&(o.format=t[o.type]||t.date),r.format=s.formatArr(o.format),o.weekStart&&!/^[0-6]$/.test(o.weekStart)&&(t=r.lang(),o.weekStart=t.weeks.indexOf(o.weekStart),-1===o.weekStart)&&(o.weekStart=0),r.EXP_IF="",r.EXP_SPLIT="",lay.each(r.format,function(e,t){e=new RegExp(y).test(t)?"\\d{"+(new RegExp(y).test(r.format[0===e?e+1:e-1]||"")?/^yyyy|y$/.test(t)?4:t.length:/^yyyy$/.test(t)?"1,4":/^y$/.test(t)?"1,308":"1,2")+"}":"\\"+t;r.EXP_IF=r.EXP_IF+e,r.EXP_SPLIT=r.EXP_SPLIT+"("+e+")"}),r.EXP_IF_ONE=new RegExp("^"+r.EXP_IF+"$"),r.EXP_IF=new RegExp("^"+(o.range?r.EXP_IF+"\\s\\"+r.rangeStr+"\\s"+r.EXP_IF:r.EXP_IF)+"$"),r.EXP_SPLIT=new RegExp("^"+r.EXP_SPLIT+"$",""),r.isInput(o.elem[0])||"focus"===o.trigger&&(o.trigger="click"),o.elem.attr("lay-key")||(o.elem.attr("lay-key",r.index),o.eventElem.attr("lay-key",r.index)),o.mark=lay.extend({},o.calendar&&"cn"===o.lang?{"0-1-1":"\u5143\u65e6","0-2-14":"\u60c5\u4eba","0-3-8":"\u5987\u5973","0-3-12":"\u690d\u6811","0-4-1":"\u611a\u4eba","0-5-1":"\u52b3\u52a8","0-5-4":"\u9752\u5e74","0-6-1":"\u513f\u7ae5","0-9-10":"\u6559\u5e08","0-10-1":"\u56fd\u5e86","0-12-25":"\u5723\u8bde"}:{},o.mark),lay.each(["min","max"],function(e,t){var a=[],n=[];if("number"==typeof o[t])var i=o[t],l=new Date,l=r.newDate({year:l.getFullYear(),month:l.getMonth(),date:l.getDate(),hours:"23",minutes:"59",seconds:"59"}).getTime(),i=new Date(i?i<864e5?l+864e5*i:i:l),a=[i.getFullYear(),i.getMonth()+1,i.getDate()],n=[i.getHours(),i.getMinutes(),i.getSeconds()];else if("string"==typeof o[t])a=(o[t].match(/\d+-\d+-\d+/)||[""])[0].split("-"),n=(o[t].match(/\d+:\d+:\d+/)||[""])[0].split(":");else if("object"==typeof o[t])return o[t];o[t]={year:0|a[0]||(new Date).getFullYear(),month:a[1]?(0|a[1])-1:(new Date).getMonth(),date:0|a[2]||(new Date).getDate(),hours:0|n[0],minutes:0|n[1],seconds:0|n[2]}}),r.elemID="layui-laydate"+o.elem.attr("lay-key"),(o.show||e)&&r.render(),e||r.events(),o.value)&&o.isInitValue&&("date"===layui.type(o.value)?r.setValue(r.parse(0,r.systemDate(o.value))):r.setValue(o.value))},g.prototype.render=function(){var n,e,t=this,o=t.config,s=t.lang(),i="static"===o.position,a=t.elem=lay.elem("div",{id:t.elemID,"class":["layui-laydate",o.range?" layui-laydate-range":"",i?" "+p:"",o.theme&&"default"!==o.theme&&!/^#/.test(o.theme)?" laydate-theme-"+o.theme:""].join("")}),y=t.elemMain=[],d=t.elemHeader=[],m=t.elemCont=[],c=t.table=[],l=t.footer=lay.elem("div",{"class":"layui-laydate-footer"});o.zIndex&&(a.style.zIndex=o.zIndex),lay.each(new Array(2),function(e){if(!o.range&&0'+s.timeTips+""),!o.range&&"datetime"===o.type||e.push(''),lay.each(o.btns,function(e,t){var a=s.tools[t]||"btn";o.range&&"now"===t||(i&&"clear"===t&&(a="cn"===o.lang?"\u91cd\u7f6e":"Reset"),n.push(''+a+""))}),e.push('"),e.join(""))),lay.each(y,function(e,t){a.appendChild(t)}),o.showBottom&&a.appendChild(l),/^#/.test(o.theme)&&(e=lay.elem("style"),l=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,t.elemID).replace(/{{theme}}/g,o.theme),"styleSheet"in e?(e.setAttribute("type","text/css"),e.styleSheet.cssText=l):e.innerHTML=l,lay(a).addClass("laydate-theme-molv"),a.appendChild(e)),t.remove(g.thisElemDate),u.thisId=o.id,i?o.elem.append(a):(r.body.appendChild(a),t.position()),t.checkDate().calendar(null,0,"init"),t.changeEvent(),g.thisElemDate=t.elemID,"function"==typeof o.ready&&o.ready(lay.extend({},o.dateTime,{month:o.dateTime.month+1})),t.preview()},g.prototype.remove=function(e){var t=this,a=t.config,n=lay("#"+(e||t.elemID));return n[0]&&!n.hasClass(p)&&t.checkDate(function(){n.remove(),delete u.thisId,"function"==typeof a.close&&a.close(t)}),t},g.prototype.position=function(){var e=this.config;return lay.position(this.bindElem||e.elem[0],this.elem,{position:e.position}),this},g.prototype.hint=function(e){var t=this,a=(t.config,lay.elem("div",{"class":o}));t.elem&&(a.innerHTML=e||"",lay(t.elem).find("."+o).remove(),t.elem.appendChild(a),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){lay(t.elem).find("."+o).remove()},3e3))},g.prototype.getAsYM=function(e,t,a){return a?t--:t++,t<0&&(t=11,e--),11h[1]&&(e.year=h[1],o=!0),11t&&(e.date=t,o=!0)},c=function(n,i,l){var r=["startTime","endTime"];i=(i.match(s.EXP_SPLIT)||[]).slice(1),l=l||0,y.range&&(s[r[l]]=s[r[l]]||{}),lay.each(s.format,function(e,t){var a=parseFloat(i[e]);i[e].lengthn(y.max)?l=y.dateTime=lay.extend({},y.max):n(l)n(y.max))&&(s.endDate=lay.extend({},y.max)),e&&e()),s},g.prototype.mark=function(e,a){var n,t=this.config;return lay.each(t.mark,function(e,t){e=e.split("-");e[0]!=a[0]&&0!=e[0]||e[1]!=a[1]&&0!=e[1]||e[2]!=a[2]||(n=t||a[2])}),n&&e.html(''+n+""),this},g.prototype.holidays=function(n,i){var e=this.config,l=["","work"];return"array"===layui.type(e.holidays)&&lay.each(e.holidays,function(a,e){lay.each(e,function(e,t){t===n.attr("lay-ymd")&&n.html('"+i[2]+"")})}),this},g.prototype.limit=function(e,t,a,i){var l=this,n=l.config,r={},a=n[41h[1]&&(s.year=h[1],o.hint(d.invalidDate)),o.firstDate||(o.firstDate=lay.extend({},s)),y.setFullYear(s.year,s.month,1),i=(y.getDay()+(7-n.weekStart))%7,l=u.getEndDate(s.month||12,s.year),r=u.getEndDate(s.month+1,s.year),lay.each(c,function(e,t){var a=[s.year,s.month],n=0;(t=lay(t)).removeAttr("class"),e"+d.time[t]+"

          "];lay.each(new Array(e),function(e){n.push(""+lay.digit(e,2)+"")}),a.innerHTML=n.join("")+"
        ",m.appendChild(a)}),l()),p&&h.removeChild(p),h.prepend(m),"year"===t||"month"===t?(lay(o.elemMain[n]).addClass("laydate-ym-show"),lay(m).find("li").on("click",function(){var e=0|lay(this).attr("lay-ym");lay(this).hasClass(x)||(0===n?(y[t]=e,o.limit(lay(o.footer).find(E),null,0)):o.endDate[t]=e,"year"===s.type||"month"===s.type?(lay(m).find("."+w).removeClass(w),lay(this).addClass(w),"month"===s.type&&"year"===t&&(o.listYM[n][0]=e,a&&((n?o.endDate:y).year=e),o.list("month",n))):(o.checkDate("limit").calendar(null,n),o.closeList()),o.setBtnStatus(),s.range||("month"===s.type&&"month"===t||"year"===s.type&&"year"===t)&&o.setValue(o.parse()).remove().done(),o.done(null,"change"),lay(o.footer).find("."+C).removeClass(x))})):(e=lay.elem("span",{"class":k}),r=function(){lay(m).find("ol").each(function(e){var a=this,t=lay(a).find("li");a.scrollTop=30*(o[D][T[e]]-2),a.scrollTop<=0&&t.each(function(e,t){if(!lay(this).hasClass(x))return a.scrollTop=30*(e-2),!0})})},u=lay(c[2]).find("."+k),r(),e.innerHTML=s.range?[d.startTime,d.endTime][n]:d.timeTips,lay(o.elemMain[n]).addClass("laydate-time-show"),u[0]&&u.remove(),c[2].appendChild(e),lay(m).find("ol").each(function(t){var a=this;lay(a).find("li").on("click",function(){var e=0|this.innerHTML;lay(this).hasClass(x)||(s.range?o[D][T[t]]=e:y[T[t]]=e,lay(a).find("."+w).removeClass(w),lay(this).addClass(w),l(),r(),!o.endDate&&"time"!==s.type||o.done(null,"change"),o.setBtnStatus())})})),o},g.prototype.listYM=[],g.prototype.closeList=function(){var a=this;a.config;lay.each(a.elemCont,function(e,t){lay(this).find("."+M).remove(),lay(a.elemMain[e]).removeClass("laydate-ym-show laydate-time-show")}),lay(a.elem).find("."+k).remove()},g.prototype.setBtnStatus=function(e,t,a){var n=this,i=n.config,l=n.lang(),r=lay(n.footer).find(E);i.range&&"time"!==i.type&&(t=t||i.dateTime,a=a||n.endDate,i=n.newDate(t).getTime()>n.newDate(a).getTime(),n.limit(null,t)||n.limit(null,a)?r.addClass(x):r[i?"addClass":"removeClass"](x),e)&&i&&n.hint("string"==typeof e?l.timeout.replace(/\u65e5\u671f/g,e):l.timeout)},g.prototype.parse=function(e,t){var a=this,n=a.config,t=t||("end"==e?lay.extend({},a.endDate,a.endTime):n.range?lay.extend({},n.dateTime,a.startTime):n.dateTime),t=u.parse(t,a.format,1);return n.range&&e===undefined?t+" "+a.rangeStr+" "+a.parse("end"):t},g.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},g.prototype.setValue=function(e){var t=this,a=t.config,n=t.bindElem||a.elem[0];return"static"!==a.position&&(e=e||"",t.isInput(n)?lay(n).val(e):(a=t.rangeElem)?("array"!==layui.type(e)&&(e=e.split(" "+t.rangeStr+" ")),a[0].val(e[0]||""),a[1].val(e[1]||"")):(0===lay(n).find("*").length&&lay(n).html(e),lay(n).attr("lay-date",e))),t},g.prototype.preview=function(){var e,t=this,a=t.config;a.isPreview&&(e=lay(t.elem).find("."+f),a=!a.range||t.endDate?t.parse():"",e.html(a).css({color:"#5FB878"}),setTimeout(function(){e.css({color:"#666"})},300))},g.prototype.done=function(e,t){var a=this,n=a.config,i=lay.extend({},lay.extend(n.dateTime,a.startTime)),l=lay.extend({},lay.extend(a.endDate,a.endTime));return lay.each([i,l],function(e,t){"month"in t&&lay.extend(t,{month:t.month+1})}),a.preview(),e=e||[a.parse(),i,l],"function"==typeof n[t||"done"]&&n[t||"done"].apply(n,e),a},g.prototype.choose=function(e,t){var a=this,n=a.config,i=a.thisDateTime(t),l=(lay(a.elem).find("td"),{year:0|(l=e.attr("lay-ymd").split("-"))[0],month:(0|l[1])-1,date:0|l[2]});e.hasClass(x)||(lay.extend(i,l),n.range?(lay.each(["startTime","endTime"],function(e,t){a[t]=a[t]||{hours:e?23:0,minutes:e?59:0,seconds:e?59:0}}),a.calendar(null,t).done(null,"change")):"static"===n.position?a.calendar().done().done(null,"change"):"date"===n.type?a.setValue(a.parse()).remove().done():"datetime"===n.type&&a.calendar().done(null,"change"))},g.prototype.tool=function(e,t){var a=this,n=a.config,i=a.lang(),l=n.dateTime,r="static"===n.position,o={datetime:function(){lay(e).hasClass(x)||(a.list("time",0),n.range&&a.list("time",1),lay(e).attr("lay-type","date").html(a.lang().dateTips))},date:function(){a.closeList(),lay(e).attr("lay-type","datetime").html(a.lang().timeTips)},clear:function(){r&&(lay.extend(l,a.firstDate),a.calendar()),n.range&&(delete n.dateTime,delete a.endDate,delete a.startTime,delete a.endTime),a.setValue("").remove(),a.done(["",{},{}])},now:function(){var e=new Date;lay.extend(l,a.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),a.setValue(a.parse()).remove(),r&&a.calendar(),a.done()},confirm:function(){if(n.range){if(lay(e).hasClass(x))return a.hint("time"===n.type?i.timeout.replace(/\u65e5\u671f/g,"\u65f6\u95f4"):i.timeout)}else if(lay(e).hasClass(x))return a.hint(i.invalidDate);a.setValue(a.parse()).remove(),a.done()}};o[t]&&o[t]()},g.prototype.change=function(n){var i=this,l=i.config,r=i.thisDateTime(n),o=l.range&&("year"===l.type||"month"===l.type),s=i.elemCont[n||0],y=i.listYM[n],e=function(e){var t=lay(s).find(".laydate-year-list")[0],a=lay(s).find(".laydate-month-list")[0];return t&&(y[0]=e?y[0]-15:y[0]+15,i.list("year",n)),a&&(e?y[0]--:y[0]++,i.list("month",n)),(t||a)&&(lay.extend(r,{year:y[0]}),o&&(r.year=y[0]),l.range||i.done(null,"change"),l.range||i.limit(lay(i.footer).find(E),{year:y[0]})),i.setBtnStatus(),t||a};return{prevYear:function(){e("sub")||(r.year--,i.checkDate("limit").calendar(null,n),i.done(null,"change"))},prevMonth:function(){var e=i.getAsYM(r.year,r.month,"sub");lay.extend(r,{year:e[0],month:e[1]}),i.checkDate("limit").calendar(null,n),i.done(null,"change")},nextMonth:function(){var e=i.getAsYM(r.year,r.month);lay.extend(r,{year:e[0],month:e[1]}),i.checkDate("limit").calendar(null,n),i.done(null,"change")},nextYear:function(){e()||(r.year++,i.checkDate("limit").calendar(null,n),i.done(null,"change"))}}},g.prototype.changeEvent=function(){var i=this;i.config;lay(i.elem).on("click",function(e){lay.stope(e)}).on("mousedown",function(e){lay.stope(e)}),lay.each(i.elemHeader,function(n,e){lay(e[0]).on("click",function(e){i.change(n).prevYear()}),lay(e[1]).on("click",function(e){i.change(n).prevMonth()}),lay(e[2]).find("span").on("click",function(e){var t=lay(this),a=t.attr("lay-ym"),t=t.attr("lay-type");a&&(a=a.split("-"),i.listYM[n]=[0|a[0],0|a[1]],i.list(t,n),lay(i.footer).find("."+C).addClass(x))}),lay(e[3]).on("click",function(e){i.change(n).nextMonth()}),lay(e[4]).on("click",function(e){i.change(n).nextYear()})}),lay.each(i.table,function(e,t){lay(t).find("td").on("click",function(){i.choose(lay(this),e)})}),lay(i.footer).find("span").on("click",function(){var e=lay(this).attr("lay-type");i.tool(this,e)})},g.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())||/INPUT|TEXTAREA/.test(e.tagName)},g.prototype.events=function(){var a=this,n=a.config,e=function(e,t){e.on(n.trigger,function(){u.thisId!==n.id&&(t&&(a.bindElem=this),a.render())})};n.elem[0]&&!n.elem[0].eventHandler&&(e(n.elem,"bind"),e(n.eventElem),n.elem[0].eventHandler=!0)},s.that={},s.getThis=function(e){var t=s.that[e];return!t&&n&&layui.hint().error(e?a+" instance with ID '"+e+"' not found":"ID argument required"),t},l.run=function(n){n(r).on("mousedown",function(e){var t,a;u.thisId&&(t=s.getThis(u.thisId))&&(a=t.config,e.target!==a.elem[0])&&e.target!==a.eventElem[0]&&e.target!==n(a.closeStop)[0]&&t.remove()}).on("keydown",function(e){var t;u.thisId&&(t=s.getThis(u.thisId))&&"static"!==t.config.position&&13===e.keyCode&&n("#"+t.elemID)[0]&&t.elemID===g.thisElemDate&&(e.preventDefault(),n(t.footer).find(E)[0].click())}),n(i).on("resize",function(){if(u.thisId){var e=s.getThis(u.thisId);if(e)return!(!e.elem||!n(".layui-laydate")[0])&&void e.position()}})},u.render=function(e){e=new g(e);return s.call(e)},u.parse=function(a,n,i){return a=a||{},n=((n="string"==typeof n?s.formatArr(n):n)||[]).concat(),lay.each(n,function(e,t){/yyyy|y/.test(t)?n[e]=lay.digit(a.year,t.length):/MM|M/.test(t)?n[e]=lay.digit(a.month+(i||0),t.length):/dd|d/.test(t)?n[e]=lay.digit(a.date,t.length):/HH|H/.test(t)?n[e]=lay.digit(a.hours,t.length):/mm|m/.test(t)?n[e]=lay.digit(a.minutes,t.length):/ss|s/.test(t)&&(n[e]=lay.digit(a.seconds,t.length))}),n.join("")},u.getEndDate=function(e,t){var a=new Date;return a.setFullYear(t||a.getFullYear(),e||a.getMonth()+1,1),new Date(a.getTime()-864e5).getDate()},u.close=function(e){lay("#"+(e?"layui-laydate"+e:g.thisElemDate)).remove()},n?(u.ready(),layui.define("lay",function(e){u.path=layui.cache.dir,l.run(lay),e(a,u)})):"function"==typeof define&&define.amd?define(function(){return l.run(lay),u}):(u.ready(),l.run(i.lay),i.laydate=u)}(window,window.document);!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(T,M){var f=[],g=T.document,c=f.slice,O=f.concat,R=f.push,P=f.indexOf,B={},W=B.toString,m=B.hasOwnProperty,y={},e="1.12.4",C=function(e,t){return new C.fn.init(e,t)},I=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,$=/^-ms-/,z=/-([\da-z])/gi,X=function(e,t){return t.toUpperCase()};function U(e){var t=!!e&&"length"in e&&e.length,n=C.type(e);return"function"!==n&&!C.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+a+")"+a+"*"),ee=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),te=new RegExp(G),ne=new RegExp("^"+s+"$"),f={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},re=/^(?:input|select|textarea|button)$/i,ie=/^h\d$/i,c=/^[^{]+\{\s*\[native \w/,oe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ae=/[+~]/,se=/'|\\/g,d=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig"),p=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)},ue=function(){C()};try{D.apply(n=V.call(v.childNodes),v.childNodes),n[v.childNodes.length].nodeType}catch(F){D={apply:n.length?function(e,t){U.apply(e,V.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function H(e,t,n,r){var i,o,a,s,u,l,c,f,d=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:v)!==E&&C(t),t=t||E,N)){if(11!==p&&(l=oe.exec(e)))if(i=l[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&y(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return D.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&g.getElementsByClassName&&t.getElementsByClassName)return D.apply(n,t.getElementsByClassName(i)),n}if(g.qsa&&!A[e+" "]&&(!m||!m.test(e))){if(1!==p)d=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(se,"\\$&"):t.setAttribute("id",s=k),o=(c=w(e)).length,u=ne.test(s)?"#"+s:"[id='"+s+"']";o--;)c[o]=u+" "+_(c[o]);f=c.join(","),d=ae.test(e)&&de(t.parentNode)||t}if(f)try{return D.apply(n,d.querySelectorAll(f)),n}catch(h){}finally{s===k&&t.removeAttribute("id")}}}return P(e.replace(L,"$1"),t,n,r)}function le(){var n=[];function r(e,t){return n.push(e+" ")>b.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function q(e){return e[k]=!0,e}function h(e){var t=E.createElement("div");try{return!!e(t)}catch(F){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function x(a){return q(function(o){return o=+o,q(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function de(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in g=H.support={},O=H.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},C=H.setDocument=function(e){var e=e?e.ownerDocument||e:v;return e!==E&&9===e.nodeType&&e.documentElement&&(t=(E=e).documentElement,N=!O(E),(e=E.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ue,!1):e.attachEvent&&e.attachEvent("onunload",ue)),g.attributes=h(function(e){return e.className="i",!e.getAttribute("className")}),g.getElementsByTagName=h(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),g.getElementsByClassName=c.test(E.getElementsByClassName),g.getById=h(function(e){return t.appendChild(e).id=k,!E.getElementsByName||!E.getElementsByName(k).length}),g.getById?(b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N)return(e=t.getElementById(e))?[e]:[]},b.filter.ID=function(e){var t=e.replace(d,p);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(d,p);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),b.find.TAG=g.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):g.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=g.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&N)return t.getElementsByClassName(e)},r=[],m=[],(g.qsa=c.test(E.querySelectorAll))&&(h(function(e){t.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+a+"*(?:value|"+Y+")"),e.querySelectorAll("[id~="+k+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||m.push(".#.+[+~]")}),h(function(e){var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+a+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(g.matchesSelector=c.test(i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector))&&h(function(e){g.disconnectedMatch=i.call(e,"div"),i.call(e,"[s!='']:x"),r.push("!=",G)}),m=m.length&&new RegExp(m.join("|")),r=r.length&&new RegExp(r.join("|")),e=c.test(t.compareDocumentPosition),y=e||c.test(t.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=e?function(e,t){var n;return e===t?(l=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===E||e.ownerDocument===v&&y(v,e)?-1:t===E||t.ownerDocument===v&&y(v,t)?1:u?j(u,e)-j(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===E?-1:t===E?1:i?-1:o?1:u?j(u,e)-j(u,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]===v?-1:s[r]===v?1:0}),E},H.matches=function(e,t){return H(e,null,null,t)},H.matchesSelector=function(e,t){if((e.ownerDocument||e)!==E&&C(e),t=t.replace(ee,"='$1']"),g.matchesSelector&&N&&!A[t+" "]&&(!r||!r.test(t))&&(!m||!m.test(t)))try{var n=i.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(F){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(d,p),e[3]=(e[3]||e[4]||e[5]||"").replace(d,p),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||H.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&H.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return f.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&te.test(n)&&(t=(t=w(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(d,p).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=H.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1(?:<\/\1>|)$/,G=/^.[^:#\[\.,]*$/;function K(e,n,r){if(C.isFunction(n))return C.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return C.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(G.test(n))return C.filter(n,e,r);n=C.filter(n,e)}return C.grep(e,function(e){return-1)[^>]*|#([\w-]*))$/,ee=((C.fn.init=function(e,t,n){if(e){if(n=n||Q,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):C.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(C):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),C.makeArray(e,this));if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Z.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),J.test(r[1])&&C.isPlainObject(t))for(var r in t)C.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r])}else{if((n=g.getElementById(r[2]))&&n.parentNode){if(n.id!==r[2])return Q.find(e);this.length=1,this[0]=n}this.context=g,this.selector=e}}return this}).prototype=C.fn,Q=C(g),/^(?:parents|prev(?:Until|All))/),te={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t,n=C(e,this),r=n.length;return this.filter(function(){for(t=0;t
        a",y.leadingWhitespace=3===S.firstChild.nodeType,y.tbody=!S.getElementsByTagName("tbody").length,y.htmlSerialize=!!S.getElementsByTagName("link").length,y.html5Clone="<:nav>"!==g.createElement("nav").cloneNode(!0).outerHTML,q.type="checkbox",q.checked=!0,k.appendChild(q),y.appendChecked=q.checked,S.innerHTML="",y.noCloneChecked=!!S.cloneNode(!0).lastChild.defaultValue,k.appendChild(S),(q=g.createElement("input")).setAttribute("type","radio"),q.setAttribute("checked","checked"),q.setAttribute("name","t"),S.appendChild(q),y.checkClone=S.cloneNode(!0).cloneNode(!0).lastChild.checked,y.noCloneEvent=!!S.addEventListener,S[C.expando]=1,y.attributes=!S.getAttribute(C.expando);var x={option:[1,""],legend:[1,"
        ","
        "],area:[1,"",""],param:[1,"",""],thead:[1,"","
        "],tr:[2,"","
        "],col:[2,"","
        "],td:[3,"","
        "],_default:y.htmlSerialize?[0,"",""]:[1,"X
        ","
        "]};function b(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||C.nodeName(r,t)?o.push(r):C.merge(o,b(r,t));return t===undefined||t&&C.nodeName(e,t)?C.merge([e],o):o}function we(e,t){for(var n,r=0;null!=(n=e[r]);r++)C._data(n,"globalEval",!t||C._data(t[r],"globalEval"))}x.optgroup=x.option,x.tbody=x.tfoot=x.colgroup=x.caption=x.thead,x.th=x.td;var Te=/<|&#?\w+;/,Ce=/"!==f[1]||Ce.test(a)?0:u:u.firstChild)&&a.childNodes.length;o--;)C.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(C.merge(h,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=p.lastChild}else h.push(t.createTextNode(a));for(u&&p.removeChild(u),y.appendChecked||C.grep(b(h,"input"),Ee),g=0;a=h[g++];)if(r&&-1]","i"),Pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Be=/\s*$/g,ze=be(g).appendChild(g.createElement("div"));function Xe(e,t){return C.nodeName(e,"table")&&C.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ue(e){return e.type=(null!==C.find.attr(e,"type"))+"/"+e.type,e}function Ve(e){var t=Ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ye(e,t){if(1===t.nodeType&&C.hasData(e)){var n,r,i,e=C._data(e),o=C._data(t,e),a=e.events;if(a)for(n in delete o.handle,o.events={},a)for(r=0,i=a[n].length;r")},clone:function(e,t,n){var r,i,o,a,s,u=C.contains(e.ownerDocument,e);if(y.html5Clone||C.isXMLDoc(e)||!Re.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ze.innerHTML=e.outerHTML,ze.removeChild(o=ze.firstChild)),!(y.noCloneEvent&&y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(r=b(o),s=b(e),a=0;null!=(i=s[a]);++a)if(r[a]){f=c=l=p=d=void 0;var l,c,f,d=i,p=r[a];if(1===p.nodeType){if(l=p.nodeName.toLowerCase(),!y.noCloneEvent&&p[C.expando]){for(c in(f=C._data(p)).events)C.removeEvent(p,c,f.handle);p.removeAttribute(C.expando)}"script"===l&&p.text!==d.text?(Ue(p).text=d.text,Ve(p)):"object"===l?(p.parentNode&&(p.outerHTML=d.outerHTML),y.html5Clone&&d.innerHTML&&!C.trim(p.innerHTML)&&(p.innerHTML=d.innerHTML)):"input"===l&&ge.test(d.type)?(p.defaultChecked=p.checked=d.checked,p.value!==d.value&&(p.value=d.value)):"option"===l?p.defaultSelected=p.selected=d.defaultSelected:"input"!==l&&"textarea"!==l||(p.defaultValue=d.defaultValue)}}if(t)if(n)for(s=s||b(e),r=r||b(o),a=0;null!=(i=s[a]);a++)Ye(i,r[a]);else Ye(e,o);return 0<(r=b(o,"script")).length&&we(r,!u&&b(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,o,a=0,s=C.expando,u=C.cache,l=y.attributes,c=C.event.special;null!=(n=e[a]);a++)if((t||v(n))&&(o=(i=n[s])&&u[i])){if(o.events)for(r in o.events)c[r]?C.event.remove(n,r):C.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeAttribute?n[s]=undefined:n.removeAttribute(s),f.push(i))}}}),C.fn.extend({domManip:w,detach:function(e){return Je(this,e,!0)},remove:function(e){return Je(this,e)},text:function(e){return d(this,function(e){return e===undefined?C.text(this):this.empty().append((this[0]&&this[0].ownerDocument||g).createTextNode(e))},null,e,arguments.length)},append:function(){return w(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Xe(this,e).appendChild(e)})},prepend:function(){return w(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Xe(this,e)).insertBefore(e,t.firstChild)})},before:function(){return w(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return w(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&C.cleanData(b(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&C.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return d(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(Oe,""):undefined;if("string"==typeof e&&!Be.test(e)&&(y.htmlSerialize||!Re.test(e))&&(y.leadingWhitespace||!ve.test(e))&&!x[(me.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n")).appendTo(t.documentElement))[0].contentWindow||Ge[0].contentDocument).document).write(),t.close(),n=Qe(e,t),Ge.detach()),Ke[e]=n),n}var n,et,tt,nt,rt,it,ot,a,at=/^margin/,st=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),ut=function(e,t,n,r){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,r||[]),t)e.style[i]=o[i];return r},lt=g.documentElement;function t(){var e,t=g.documentElement;t.appendChild(ot),a.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=tt=it=!1,et=rt=!0,T.getComputedStyle&&(e=T.getComputedStyle(a),n="1%"!==(e||{}).top,it="2px"===(e||{}).marginLeft,tt="4px"===(e||{width:"4px"}).width,a.style.marginRight="50%",et="4px"===(e||{marginRight:"4px"}).marginRight,(e=a.appendChild(g.createElement("div"))).style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",rt=!parseFloat((T.getComputedStyle(e)||{}).marginRight),a.removeChild(e)),a.style.display="none",(nt=0===a.getClientRects().length)&&(a.style.display="",a.innerHTML="
        t
        ",a.childNodes[0].style.borderCollapse="separate",(e=a.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",nt=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",nt=0===e[0].offsetHeight),t.removeChild(ot)}ot=g.createElement("div"),(a=g.createElement("div")).style&&(a.style.cssText="float:left;opacity:.5",y.opacity="0.5"===a.style.opacity,y.cssFloat=!!a.style.cssFloat,a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===a.style.backgroundClip,(ot=g.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.innerHTML="",ot.appendChild(a),y.boxSizing=""===a.style.boxSizing||""===a.style.MozBoxSizing||""===a.style.WebkitBoxSizing,C.extend(y,{reliableHiddenOffsets:function(){return null==n&&t(),nt},boxSizingReliable:function(){return null==n&&t(),tt},pixelMarginRight:function(){return null==n&&t(),et},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),rt},reliableMarginLeft:function(){return null==n&&t(),it}}));var l,p,ct=/^(top|right|bottom|left)$/;function ft(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}T.getComputedStyle?(l=function(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:T).getComputedStyle(e)},p=function(e,t,n){var r,i,o=e.style;return""!==(i=(n=n||l(e))?n.getPropertyValue(t)||n[t]:undefined)&&i!==undefined||C.contains(e.ownerDocument,e)||(i=C.style(e,t)),n&&!y.pixelMarginRight()&&st.test(i)&&at.test(t)&&(e=o.width,t=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=i,i=n.width,o.width=e,o.minWidth=t,o.maxWidth=r),i===undefined?i:i+""}):lt.currentStyle&&(l=function(e){return e.currentStyle},p=function(e,t,n){var r,i,o,a=e.style;return null==(n=(n=n||l(e))?n[t]:undefined)&&a&&a[t]&&(n=a[t]),st.test(n)&&!ct.test(t)&&(r=a.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),a.left="fontSize"===t?"1em":n,n=a.pixelLeft+"px",a.left=r,o)&&(i.left=o),n===undefined?n:n+""||"auto"});var dt=/alpha\([^)]*\)/i,pt=/opacity\s*=\s*([^)]*)/i,ht=/^(none|table(?!-c[ea]).+)/,gt=new RegExp("^("+e+")(.*)$","i"),mt={position:"absolute",visibility:"hidden",display:"block"},yt={letterSpacing:"0",fontWeight:"400"},vt=["Webkit","O","Moz","ms"],xt=g.createElement("div").style;function bt(e){if(e in xt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=vt.length;n--;)if((e=vt[n]+t)in xt)return e}function wt(e,t){for(var n,r,i,o=[],a=0,s=e.length;a
        a",F=q.getElementsByTagName("a")[0],k.setAttribute("type","checkbox"),q.appendChild(k),(F=q.getElementsByTagName("a")[0]).style.cssText="top:1px",y.getSetAttribute="t"!==q.className,y.style=/top/.test(F.getAttribute("style")),y.hrefNormalized="/a"===F.getAttribute("href"),y.checkOn=!!k.value,y.optSelected=e.selected,y.enctype=!!g.createElement("form").enctype,S.disabled=!0,y.optDisabled=!e.disabled,(k=g.createElement("input")).setAttribute("value",""),y.input=""===k.getAttribute("value"),k.value="t",k.setAttribute("type","radio"),y.radioValue="t"===k.value;var Lt=/\r/g,Ht=/[\x20\t\r\n\f]+/g;C.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=C.isFunction(t),this.each(function(e){1!==this.nodeType||(null==(e=r?t.call(this,e,C(this).val()):t)?e="":"number"==typeof e?e+="":C.isArray(e)&&(e=C.map(e,function(e){return null==e?"":e+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,e,"value")!==undefined)||(this.value=e)})):i?(n=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&(e=n.get(i,"value"))!==undefined?e:"string"==typeof(e=i.value)?e.replace(Lt,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:C.trim(C.text(e)).replace(Ht," ")}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,i="select-one"===e.type||r<0,o=i?null:[],a=i?r+1:n.length,s=r<0?a:i?r:0;s").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this)},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.filters.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,n){var r,i,o,a,s=C.css(e,"position"),u=C(e),l={};"static"===s&&(e.style.position="relative"),o=u.offset(),r=C.css(e,"top"),a=C.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1'+(o?n.title[0]:n.title)+"":"";return n.zIndex=a,t([n.shade?'
        ':"",'
        '+(e&&2!=n.type?"":o)+'
        '+(0==n.type&&-1!==n.icon?'':"")+((1!=n.type||!e)&&n.content||"")+'
        '+(i=s?'':"",n.closeBtn&&(i+='ဆ'),i)+""+(n.btn?function(){var e="";"string"==typeof n.btn&&(n.btn=[n.btn]);for(var t=0,i=n.btn.length;t'+n.btn[t]+"";return'
        '+e+"
        "}():"")+(n.resize?'':"")+"
        "],o,h('
        ')),this},t.pt.creat=function(){var e,n=this,a=n.config,o=n.index,s="object"==typeof(l=a.content),r=h("body");if(!a.id||!h("#"+a.id)[0]){switch("string"==typeof a.area&&(a.area="auto"===a.area?["",""]:[a.area,""]),a.shift&&(a.anim=a.shift),6==m.ie&&(a.fixed=!1),a.type){case 0:a.btn="btn"in a?a.btn:c.btn[0],m.closeAll("dialog");break;case 2:var l=a.content=s?a.content:[a.content||"","auto"];a.content='';break;case 3:delete a.title,delete a.closeBtn,-1===a.icon&&a.icon,m.closeAll("loading");break;case 4:s||(a.content=[a.content,"body"]),a.follow=a.content[1],a.content=a.content[0]+'',delete a.title,a.tips="object"==typeof a.tips?a.tips:[a.tips,!0],a.tipsMore||m.closeAll("tips")}n.vessel(s,function(e,t,i){r.append(e[0]),s?2==a.type||4==a.type?h("body").append(e[1]):l.parents("."+d[0])[0]||(l.data("display",l.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),h("#"+d[0]+o).find("."+d[5]).before(t)):r.append(e[1]),h("#"+d.MOVE)[0]||r.append(c.moveElem=i),n.layero=h("#"+d[0]+o),n.shadeo=h("#"+d.SHADE+o),a.scrollbar||d.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),n.shadeo.css({"background-color":a.shade[1]||"#000",opacity:a.shade[0]||a.shade}),2==a.type&&6==m.ie&&n.layero.find("iframe").attr("src",l[0]),4==a.type?n.tips():(n.offset(),parseInt(c.getStyle(document.getElementById(d.MOVE),"z-index"))||(n.layero.css("visibility","hidden"),m.ready(function(){n.offset(),n.layero.css("visibility","visible")}))),a.fixed&&f.on("resize",function(){n.offset(),(/^\d+%$/.test(a.area[0])||/^\d+%$/.test(a.area[1]))&&n.auto(o),4==a.type&&n.tips()}),a.time<=0||setTimeout(function(){m.close(n.index)},a.time),n.move().callback(),d.anim[a.anim]&&(e="layer-anim "+d.anim[a.anim],n.layero.addClass(e).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){h(this).removeClass(e)})),a.isOutAnim&&n.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){var t=this.config,i=h("#"+d[0]+e),n=(""===t.area[0]&&0t.maxWidth)&&i.width(t.maxWidth),[i.innerWidth(),i.innerHeight()]),a=i.find(d[1]).outerHeight()||0,o=i.find("."+d[6]).outerHeight()||0,e=function(e){(e=i.find(e)).height(n[1]-a-o-2*(0|parseFloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0t.maxHeight?(n[1]=t.maxHeight,e("."+d[5])):t.fixed&&n[1]>=f.height()&&(n[1]=f.height(),e("."+d[5])):e("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,i=e.layero,n=[i.outerWidth(),i.outerHeight()],a="object"==typeof t.offset;e.offsetTop=(f.height()-n[1])/2,e.offsetLeft=(f.width()-n[0])/2,a?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=f.width()-n[0]:"b"===t.offset?e.offsetTop=f.height()-n[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=f.height()-n[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=f.width()-n[0]):"rb"===t.offset?(e.offsetTop=f.height()-n[1],e.offsetLeft=f.width()-n[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?f.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?f.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=f.scrollTop(),e.offsetLeft+=f.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=f.height()-(i.find(d[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},t.pt.tips=function(){var e=this.config,t=this.layero,i=[t.outerWidth(),t.outerHeight()],n=h(e.follow),a={width:(n=n[0]?n:h("body")).outerWidth(),height:n.outerHeight(),top:n.offset().top,left:n.offset().left},o=t.find(".layui-layer-TipsG"),n=e.tips[0];e.tips[1]||o.remove(),a.autoLeft=function(){0":'',o=i.success;return delete i.success,m.open(h.extend({type:1,btn:["确定","取消"],content:t,skin:"layui-layer-prompt"+g("prompt"),maxWidth:f.width(),success:function(e){(a=e.find(".layui-layer-input")).val(i.value||"").focus(),"function"==typeof o&&o(e)},resize:!1,yes:function(e){var t=a.val();""===t?a.focus():t.length>(i.maxlength||500)?m.tips("最多输入"+(i.maxlength||500)+"个字数",a,{tips:1}):n&&n(t,e,a)}},i))},m.tab=function(n){var a=(n=n||{}).tab||{},o="layui-this",s=n.success;return delete n.success,m.open(h.extend({type:1,skin:"layui-layer-tab"+g("tab"),resize:!1,title:function(){var e=a.length,t=1,i="";if(0'+a[0].title+"";t"+a[t].title+"";return i}(),content:'
          '+function(){var e=a.length,t=1,i="";if(0'+(a[0].content||"no content")+"";t'+(a[t].content||"no content")+"";return i}()+"
        ",success:function(e){var t=e.find(".layui-layer-title").children(),i=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var e=h(this),t=e.index();e.addClass(o).siblings().removeClass(o),i.eq(t).show().siblings().hide(),"function"==typeof n.change&&n.change(t)}),"function"==typeof s&&s(e)}},n))},m.photos=function(i,e,n){var a={};if((i=i||{}).photos){var t=!("string"==typeof i.photos||i.photos instanceof h),o=t?i.photos:{},s=o.data||[],r=o.start||0,l=(a.imgIndex=1+(0|r),i.img=i.img||"img",i.success);if(delete i.success,t){if(0===s.length)return m.msg("没有图片")}else{var f=h(i.photos),c=function(){s=[],f.find(i.img).each(function(e){var t=h(this);t.attr("layer-index",e),s.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(c(),0===s.length)return;if(e||f.on("click",i.img,function(){c();var e=h(this).attr("layer-index");m.photos(h.extend(i,{photos:{start:e,data:s,tab:i.tab},full:i.full}),!0)}),!e)return}a.imgprev=function(e){a.imgIndex--,a.imgIndex<1&&(a.imgIndex=s.length),a.tabimg(e)},a.imgnext=function(e,t){a.imgIndex++,a.imgIndex>s.length&&(a.imgIndex=1,t)||a.tabimg(e)},a.keyup=function(e){var t;a.end||(t=e.keyCode,e.preventDefault(),37===t?a.imgprev(!0):39===t?a.imgnext(!0):27===t&&m.close(a.index))},a.tabimg=function(e){if(!(s.length<=1))return o.start=a.imgIndex-1,m.close(a.index),m.photos(i,!0,e)},a.event=function(){a.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),a.imgprev(!0)}),a.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),a.imgnext(!0)}),h(document).on("keyup",a.keyup)},a.loadi=m.load(1,{shade:!("shade"in i)&&.9,scrollbar:!1});var t=s[r].src,d=function(e){var t;m.close(a.loadi),n&&(i.anim=-1),a.index=m.open(h.extend({type:1,id:"layui-layer-photos",area:(e=[e.width,e.height],t=[h(p).width()-100,h(p).height()-100],!i.full&&(t[0]'+(s[r].alt||'+(1
        '+(s[r].alt||"")+""+a.imgIndex+" / "+s.length+"
        ":"")+"",success:function(e,t){a.bigimg=e.find(".layui-layer-phimg"),a.imgsee=e.find(".layui-layer-imgbar"),a.event(e),i.tab&&i.tab(s[r],e),"function"==typeof l&&l(e)},end:function(){a.end=!0,h(document).off("keyup",a.keyup)}},i))},u=function(){m.close(a.loadi),m.msg("当前图片地址异常
        是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1',t.bar1?'
      • '+l[0]+"
      • ":"",t.bar2?'
      • '+l[1]+"
      • ":"",'
      • '+l[2]+"
      • ",""].join("")),c=l.find("."+o),g=function(){a.scrollTop()>=t.showHeight?e||(c.show(),e=1):e&&(c.hide(),e=0)};u("."+n)[0]||("object"==typeof t.css&&l.css(t.css),r.append(l),g(),l.find("li").on("click",function(){var e=u(this).attr("lay-type");"top"===e&&u("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,e)}),a.on("scroll",function(){clearTimeout(i),i=setTimeout(function(){g()},100)}))},countdown:function(e,t,i){var n=this,o="function"==typeof t,a=new Date(e).getTime(),r=new Date(!t||o?(new Date).getTime():t).getTime(),a=a-r,l=[Math.floor(a/864e5),Math.floor(a/36e5)%24,Math.floor(a/6e4)%60,Math.floor(a/1e3)%60],o=(o&&(i=t),setTimeout(function(){n.countdown(e,r+1e3,i)},1e3));return i&&i(0]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},unescape:function(e){return e!==undefined&&null!==e||(e=""),(e+="").replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">").replace(/\'/g,"'").replace(/\"/g,'"')},toVisibleArea:function(e){var t,i,n,o,a,r,l,c;(e=u.extend({margin:160,duration:200,type:"y"},e)).scrollElem[0]&&e.thisElem[0]&&(t=e.scrollElem,l=e.thisElem,n=(a="y"===e.type)?"top":"left",o=t[i=a?"scrollTop":"scrollLeft"](),a=t[a?"height":"width"](),r=t.offset()[n],c={},(l=l.offset()[n]-r)>a-e.margin||l."+f,x=function(e){var i=this;i.index=++p.index,i.config=s.extend({},i.config,p.config,e),i.init()};x.prototype.config={trigger:"click",content:"",className:"",style:"",show:!1,isAllowSpread:!0,isSpreadItem:!0,data:[],delay:300},x.prototype.reload=function(e){var i=this;i.config=s.extend({},i.config,e),i.init(!0)},x.prototype.init=function(e){var i,t=this,n=t.config,l=n.elem=s(n.elem);return 1",(t="href"in i?''+a+"":a,n?'
        '+t+("parent"===o?'':"group"===o&&u.isAllowSpread?'':"")+"
        ":'
        '+t+"
        "),""].join(""))).data("item",i),n&&(l=s('
        '),t=s("
          "),"parent"===o?(l.append(d(t,i.child)),a.append(l)):a.append(d(t,i.child))),r.append(a))}),r},t=['
          ',"
          "].join("");!(e="contextmenu"!==u.trigger&&!lay.isTopElem(u.elem[0])?e:!0)&&u.elem.data(r+"_opened")||(n.elemView=s(t),n.elemView.append(u.content||(e=s('
            '),0no menu'),e)),u.className&&n.elemView.addClass(u.className),u.style&&n.elemView.attr("style",u.style),p.thisId=u.id,n.remove(),i.append(n.elemView),u.elem.data(r+"_opened",!0),n.position(),(y.prevElem=n.elemView).data("prevElem",u.elem),n.elemView.find(".layui-menu").on(a,function(e){layui.stope(e)}),n.elemView.find(".layui-menu li").on("click",function(e){var i=s(this),t=i.data("item")||{};t.child&&0n.width()&&(t.addClass(V),(i=t[0].getBoundingClientRect()).left<0)&&t.removeClass(V),i.bottom>n.height())&&t.eq(0).css("margin-top",-(i.bottom-n.height()))}).on("mouseleave",t,function(e){var i=s(this).children("."+C);i.removeClass(V),i.css("margin-top",0)}),p.close=function(e){e=y.getThis(e);return e?(e.remove(),y.call(e)):this},p.reload=function(e,i){e=y.getThis(e);return e?(e.reload(i),y.call(e)):this},p.render=function(e){e=new x(e);return y.call(e)},e(o,p)});layui.define("jquery",function(e){"use strict";var h=layui.$,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var i=this;return i.config=h.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,a,e,i)}},a="slider",c="layui-disabled",y="layui-slider-bar",g="layui-slider-wrap",b="layui-slider-wrap-btn",x="layui-slider-tips",T="layui-slider-input-txt",w="layui-slider-hover",i=function(e){var i=this;i.index=++t.index,i.config=h.extend({},i.config,t.config,e),i.render()};i.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},i.prototype.render=function(){var a,n=this,l=n.config,e=(l.step<1&&(l.step=1),l.maxl.min?i:l.min,l.value[1]=s>l.min?s:l.min,l.value[0]=l.value[0]>l.max?l.max:l.value[0],l.value[1]=l.value[1]>l.max?l.max:l.value[1],i=Math.floor((l.value[0]-l.min)/(l.max-l.min)*100),t=(s=Math.floor((l.value[1]-l.min)/(l.max-l.min)*100))-i+"%",i+="%",s+="%"):("object"==typeof l.value&&(l.value=Math.min.apply(null,l.value)),l.valuel.max&&(l.value=l.max),t=Math.floor((l.value-l.min)/(l.max-l.min)*100)+"%"),l.disabled?"#c2c2c2":l.theme),i='
            '+(l.tips?'
            ':"")+'
            '+(l.range?'
            ':"")+"
            ",t=h(l.elem),s=t.next(".layui-slider");if(s[0]&&s.remove(),n.elemTemp=h(i),l.range?(n.elemTemp.find("."+g).eq(0).data("value",l.value[0]),n.elemTemp.find("."+g).eq(1).data("value",l.value[1])):n.elemTemp.find("."+g).data("value",l.value),t.html(n.elemTemp),"vertical"===l.type&&n.elemTemp.height(l.height+"px"),l.showstep){for(var r=(l.max-l.min)/l.step,o="",u=1;u<1+r;u++){var d=100*u/r;d<100&&(o+='
            ')}n.elemTemp.append(o)}l.input&&!l.range&&(e=h('
            '),t.css("position","relative"),t.append(e),t.find("."+T).children("input").val(l.value),"vertical"===l.type?e.css({left:0,top:-48}):n.elemTemp.css("margin-right",e.outerWidth()+15)),l.disabled?(n.elemTemp.addClass(c),n.elemTemp.find("."+b).addClass(c)):n.slide(),n.elemTemp.find("."+b).on("mouseover",function(){var e="vertical"===l.type?l.height:n.elemTemp[0].offsetWidth,i=n.elemTemp.find("."+g),t=("vertical"===l.type?e-h(this).parent()[0].offsetTop-i.height():h(this).parent()[0].offsetLeft)/e*100,i=h(this).parent().data("value"),e=l.setTips?l.setTips(i):i;n.elemTemp.find("."+x).html(e),clearTimeout(a),a=setTimeout(function(){"vertical"===l.type?n.elemTemp.find("."+x).css({bottom:t+"%","margin-bottom":"20px",display:"inline-block"}):n.elemTemp.find("."+x).css({left:t+"%",display:"inline-block"})},300)}).on("mouseout",function(){clearTimeout(a),n.elemTemp.find("."+x).css("display","none")})},i.prototype.slide=function(e,i,t){var r=this.config,o=this.elemTemp,u=function(){return"vertical"===r.type?r.height:o[0].offsetWidth},d=o.find("."+g),s=o.next(".layui-slider-input"),c=s.children("."+T).children("input").val(),m=100/((r.max-r.min)/Math.ceil(r.step)),v=function(e,i){e=100<(e=100t[1]&&t.reverse(),r.change&&r.change(r.range?t:n)},p=function(e){var i=e/u()*100/m,t=Math.round(i)*m;return t=e==u()?Math.ceil(i)*m:t},f=h(['
            u()?u():i)/u()*100/m;v(i,l),s.addClass(w),o.find("."+x).show(),e.preventDefault()},i=function(){s.removeClass(w),o.find("."+x).hide()},t=function(){i&&i(),f.remove()},h("#LAY-slider-moving")[0]||h("body").append(f),f.on("mousemove",e),f.on("mouseup",t).on("mouseleave",t)})}),o.on("click",function(e){var i,t=h("."+b);!t.is(event.target)&&0===t.has(event.target).length&&t.length&&(i=(t=(t=(t="vertical"===r.type?u()-e.clientY+h(this).offset().top:e.clientX-h(this).offset().left)<0?0:t)>u()?u():t)/u()*100/m,t=r.range?"vertical"===r.type?Math.abs(t-parseInt(h(d[0]).css("bottom")))>Math.abs(t-parseInt(h(d[1]).css("bottom")))?1:0:Math.abs(t-d[0].offsetLeft)>Math.abs(t-d[1].offsetLeft)?1:0:0,v(i,t),e.preventDefault())}),s.children(".layui-slider-input-btn").children("i").each(function(i){h(this).on("click",function(){c=s.children("."+T).children("input").val();var e=((c=1==i?c-r.stepr.max?r.max:Number(c)+r.step)-r.min)/(r.max-r.min)*100/m;v(e,0)})});var a=function(){var e=this.value,e=(e=(e=(e=isNaN(e)?0:e)r.max?r.max:e,((this.value=e)-r.min)/(r.max-r.min)*100/m);v(e,0)};s.children("."+T).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),a.call(this))}).on("change",a)},i.prototype.events=function(){this.config},t.render=function(e){e=new i(e);return function(){var t=this,a=t.config;return{setValue:function(e,i){return a.value=e,t.slide("set",e,i||0)},config:a}}.call(e)},e(a,t)});layui.define(["jquery","lay"],function(e){"use strict";var y=layui.jquery,o=layui.lay,r=layui.device().mobile?"click":"mousedown",i={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var i=this;return i.config=y.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},n="layui-colorpicker",t=".layui-colorpicker-main",k="layui-colorpicker-trigger-span",m="layui-colorpicker-side-slider",x="layui-colorpicker-basis",P="layui-colorpicker-alpha-bgcolor",C="layui-colorpicker-alpha-slider",B="layui-colorpicker-basis-cursor",w="layui-colorpicker-main-input",D=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),n=r-o;return i.b=r,i.s=0!=r?255*n/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/n:e.g==r?i.h=2+(e.b-e.r)/n:i.h=4+(e.r-e.g)/n:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},I=function(e){var i,o={},r=e.h,n=255*e.s/100,e=255*e.b/100;return 0==n?o.r=o.g=o.b=e:(e=r%60*((i=e)-(n=(255-n)*e/255))/60,(r=360==r?0:r)<60?(o.r=i,o.b=n,o.g=n+e):r<120?(o.g=i,o.b=n,o.r=i-e):r<180?(o.g=i,o.r=n,o.b=n+e):r<240?(o.b=i,o.r=n,o.g=i-e):r<300?(o.b=i,o.g=n,o.r=n+e):r<360?(o.r=i,o.g=n,o.b=i-e):(o.r=0,o.g=0,o.b=0)),{r:Math.round(o.r),g:Math.round(o.g),b:Math.round(o.b)}},u=function(e){var e=I(e),o=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];return y.each(o,function(e,i){1==i.length&&(o[e]="0"+i)}),o.join("")},j=function(e){e=e.match(/[0-9]{1,3}/g)||[];return{r:e[0],g:e[1],b:e[2]}},E=y(window),l=y(document),c=function(e){this.index=++i.index,this.config=y.extend({},this.config,i.config,e),this.render()};c.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},c.prototype.render=function(){var e=this,i=e.config,o=y(['
            ',"",'',"',"","","
            "].join("")),r=y(i.elem);i.size&&o.addClass("layui-colorpicker-"+i.size),r.addClass("layui-inline").html(e.elemColorBox=o),e.color=e.elemColorBox.find("."+k)[0].style.background,e.events()},c.prototype.renderPicker=function(){var o,e=this,i=e.config,r=e.elemColorBox[0],i=e.elemPicker=y(['
            ','
            ','
            ','
            ','
            ','
            ',"
            ",'
            ','
            ',"
            ","
            ",'
            ','
            ','
            ',"
            ","
            ",i.predefine?(o=['
            '],layui.each(i.colors,function(e,i){o.push(['
            ','
            ',"
            "].join(""))}),o.push("
            "),o.join("")):"",'
            ','
            ','',"
            ",'
            ','','',"","
            "].join(""));e.elemColorBox.find("."+k)[0];y(t)[0]&&y(t).data("index")==e.index?e.removePicker(c.thisElemInd):(e.removePicker(c.thisElemInd),y("body").append(i)),c.thisElemInd=e.index,c.thisColor=r.style.background,e.position(),e.pickerEvents()},c.prototype.removePicker=function(e){this.config;return y("#layui-colorpicker"+(e||this.index)).remove(),this},c.prototype.position=function(){var e=this,i=e.config;return o.position(e.bindElem||e.elemColorBox[0],e.elemPicker[0],{position:i.position,align:"center"}),e},c.prototype.val=function(){var e,i=this,o=(i.config,i.elemColorBox.find("."+k)),r=i.elemPicker.find("."+w),n=o[0].style.backgroundColor;n?(e=D(j(n)),o=o.attr("lay-type"),i.select(e.h,e.s,e.b),"torgb"===o&&r.find("input").val(n),"rgba"===o&&(e=j(n),3==(n.match(/[0-9]{1,3}/g)||[]).length?(r.find("input").val("rgba("+e.r+", "+e.g+", "+e.b+", 1)"),i.elemPicker.find("."+C).css("left",280)):(r.find("input").val(n),o=280*n.slice(n.lastIndexOf(",")+1,n.length-1),i.elemPicker.find("."+C).css("left",o)),i.elemPicker.find("."+P)[0].style.background="linear-gradient(to right, rgba("+e.r+", "+e.g+", "+e.b+", 0), rgb("+e.r+", "+e.g+", "+e.b+"))")):(i.select(0,100,100),r.find("input").val(""),i.elemPicker.find("."+P)[0].style.background="",i.elemPicker.find("."+C).css("left",280))},c.prototype.side=function(){var n=this,t=n.config,l=n.elemColorBox.find("."+k),c=l.attr("lay-type"),a=n.elemPicker.find(".layui-colorpicker-side"),e=n.elemPicker.find("."+m),s=n.elemPicker.find("."+x),r=n.elemPicker.find("."+B),f=n.elemPicker.find("."+P),u=n.elemPicker.find("."+C),d=e[0].offsetTop/180*360,p=100-(r[0].offsetTop+3)/180*100,g=(r[0].offsetLeft+3)/260*100,h=Math.round(u[0].offsetLeft/280*100)/100,i=(n.elemColorBox.find(".layui-colorpicker-trigger-i"),n.elemPicker.find(".layui-colorpicker-pre").children("div")),v=function(e,i,o,r){n.select(e,i,o);e=I({h:e,s:i,b:o});l[0].style.background="rgb("+e.r+", "+e.g+", "+e.b+")","torgb"===c&&n.elemPicker.find("."+w).find("input").val("rgb("+e.r+", "+e.g+", "+e.b+")"),"rgba"===c&&(u.css("left",280*r),n.elemPicker.find("."+w).find("input").val("rgba("+e.r+", "+e.g+", "+e.b+", "+r+")"),l[0].style.background="rgba("+e.r+", "+e.g+", "+e.b+", "+r+")",f[0].style.background="linear-gradient(to right, rgba("+e.r+", "+e.g+", "+e.b+", 0), rgb("+e.r+", "+e.g+", "+e.b+"))"),t.change&&t.change(n.elemPicker.find("."+w).find("input").val())},o=y(['
            '].join("")),b=function(e){y("#LAY-colorpicker-moving")[0]||y("body").append(o),o.on("mousemove",e),o.on("mouseup",function(){o.remove()}).on("mouseleave",function(){o.remove()})};e.on("mousedown",function(e){var r=this.offsetTop,n=e.clientY;b(function(e){var i=r+(e.clientY-n),o=a[0].offsetHeight,o=(i=o<(i=i<0?0:i)?o:i)/180*360;v(d=o,g,p,h),e.preventDefault()}),e.preventDefault()}),a.on("click",function(e){var i=e.clientY-y(this).offset().top,i=(i=(i=i<0?0:i)>this.offsetHeight?this.offsetHeight:i)/180*360;v(d=i,g,p,h),e.preventDefault()}),r.on("mousedown",function(e){var t=this.offsetTop,l=this.offsetLeft,c=e.clientY,a=e.clientX;layui.stope(e),b(function(e){var i=t+(e.clientY-c),o=l+(e.clientX-a),r=s[0].offsetHeight-3,n=s[0].offsetWidth-3,n=((o=n<(o=o<-3?-3:o)?n:o)+3)/260*100,o=100-((i=r<(i=i<-3?-3:i)?r:i)+3)/180*100;v(d,g=n,p=o,h),e.preventDefault()}),e.preventDefault()}),s.on("mousedown",function(e){var i=e.clientY-y(this).offset().top-3+E.scrollTop(),o=e.clientX-y(this).offset().left-3+E.scrollLeft(),o=((i=i<-3?-3:i)>this.offsetHeight-3&&(i=this.offsetHeight-3),((o=(o=o<-3?-3:o)>this.offsetWidth-3?this.offsetWidth-3:o)+3)/260*100),i=100-(i+3)/180*100;v(d,g=o,p=i,h),layui.stope(e),e.preventDefault(),r.trigger(e,"mousedown")}),u.on("mousedown",function(e){var r=this.offsetLeft,n=e.clientX;b(function(e){var i=r+(e.clientX-n),o=f[0].offsetWidth,o=(o<(i=i<0?0:i)&&(i=o),Math.round(i/280*100)/100);v(d,g,p,h=o),e.preventDefault()}),e.preventDefault()}),f.on("click",function(e){var i=e.clientX-y(this).offset().left,i=((i=i<0?0:i)>this.offsetWidth&&(i=this.offsetWidth),Math.round(i/280*100)/100);v(d,g,p,h=i),e.preventDefault()}),i.each(function(){y(this).on("click",function(){y(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e=this.style.backgroundColor,i=D(j(e)),o=e.slice(e.lastIndexOf(",")+1,e.length-1);d=i.h,g=i.s,p=i.b,3==(e.match(/[0-9]{1,3}/g)||[]).length&&(o=1),h=o,v(i.h,i.s,i.b,o)})})},c.prototype.select=function(e,i,o,r){var n=this,t=(n.config,u({h:e,s:100,b:100})),l=u({h:e,s:i,b:o}),e=e/360*180,o=180-o/100*180-3,i=i/100*260-3;n.elemPicker.find("."+m).css("top",e),n.elemPicker.find("."+x)[0].style.background="#"+t,n.elemPicker.find("."+B).css({top:o,left:i}),"change"!==r&&n.elemPicker.find("."+w).find("input").val("#"+l)},c.prototype.pickerEvents=function(){var c=this,a=c.config,s=c.elemColorBox.find("."+k),f=c.elemPicker.find("."+w+" input"),o={clear:function(e){s[0].style.background="",c.color="",a.done&&a.done(""),c.removePicker()},confirm:function(e,i){var o,r,n=f.val(),t=n,l={};-1>16,g:(65280&o)>>8,b:255&o},l=D(r),s[0].style.background=t="#"+u(l)),"change"===i?(c.select(l.h,l.s,l.b,i),a.change&&a.change(t)):(c.color=n,a.done&&a.done(n),c.removePicker())}};c.elemPicker.on("click","*[colorpicker-events]",function(){var e=y(this),i=e.attr("colorpicker-events");o[i]&&o[i].call(this,e)}),f.on("keyup",function(e){var i=y(this);o.confirm.call(this,i,13===e.keyCode?null:"change")})},c.prototype.events=function(){var i=this,e=i.config,o=i.elemColorBox.find("."+k);i.elemColorBox.on("click",function(){i.renderPicker(),y(t)[0]&&(i.val(),i.side())}),e.elem[0]&&!i.elemColorBox[0].eventHandler&&(l.on(r,function(e){y(e.target).hasClass(n)||y(e.target).parents("."+n)[0]||y(e.target).hasClass(t.replace(/\./g,""))||y(e.target).parents(t)[0]||i.elemPicker&&(i.color&&(e=D(j(i.color)),i.select(e.h,e.s,e.b)),o[0].style.background=i.color||"",i.removePicker())}),E.on("resize",function(){if(!i.elemPicker||!y(t)[0])return!1;i.position()}),i.elemColorBox[0].eventHandler=!0)},i.render=function(e){e=new c(e);return function(){return{config:this.config}}.call(e)},e("colorpicker",i)});layui.define("jquery",function(t){"use strict";var u=layui.$,d=(layui.hint(),layui.device()),c="element",r="layui-this",y="layui-show",i=function(){this.config={}},h=(i.prototype.set=function(t){return u.extend(!0,this.config,t),this},i.prototype.on=function(t,i){return layui.onevent.call(this,c,t,i)},i.prototype.tabAdd=function(t,i){var a,t=u(".layui-tab[lay-filter="+t+"]"),e=t.children(".layui-tab-title"),l=e.children(".layui-tab-bar"),t=t.children(".layui-tab-content"),n=""+(i.title||"unnaming")+"";return l[0]?l.before(n):e.append(n),t.append('
            '+(i.content||"")+"
            "),C.hideTabMore(!0),C.tabAuto(),this},i.prototype.tabDelete=function(t,i){t=u(".layui-tab[lay-filter="+t+"]").children(".layui-tab-title").find('>li[lay-id="'+i+'"]');return C.tabDelete(null,t),this},i.prototype.tabChange=function(t,i){t=u(".layui-tab[lay-filter="+t+"]").children(".layui-tab-title").find('>li[lay-id="'+i+'"]');return C.tabClick.call(t[0],null,null,t),this},i.prototype.tab=function(a){a=a||{},e.on("click",a.headerElem,function(t){var i=u(this).index();C.tabClick.call(this,t,i,null,a)})},i.prototype.progress=function(t,i){var a="layui-progress",t=u("."+a+"[lay-filter="+t+"]").find("."+a+"-bar"),a=t.find("."+a+"-text");return t.css("width",i).attr("lay-percent",i),a.text(i),this},".layui-nav"),f="layui-nav-item",l="layui-nav-bar",p="layui-nav-tree",b="layui-nav-child",v="layui-nav-more",m="layui-anim layui-anim-upbit",C={tabClick:function(t,i,a,e){e=e||{};var a=a||u(this),i=i||a.parent().children("li").index(a),l=e.headerElem?a.parent():a.parents(".layui-tab").eq(0),e=e.bodyElem?u(e.bodyElem):l.children(".layui-tab-content").children(".layui-tab-item"),n=a.find("a"),n="javascript:;"!==n.attr("href")&&"_blank"===n.attr("target"),s="string"==typeof a.attr("lay-unselect"),o=l.attr("lay-filter");n||s||(a.addClass(r).siblings().removeClass(r),e.eq(i).addClass(y).siblings().removeClass(y)),layui.event.call(this,c,"tab("+o+")",{elem:l,index:i})},tabDelete:function(t,i){var i=i||u(this).parent(),a=i.index(),e=i.parents(".layui-tab").eq(0),l=e.children(".layui-tab-content").children(".layui-tab-item"),n=e.attr("lay-filter");i.hasClass(r)&&(i.next()[0]?C.tabClick.call(i.next()[0],null,a+1):i.prev()[0]&&C.tabClick.call(i.prev()[0],null,a-1)),i.remove(),l.eq(a).remove(),setTimeout(function(){C.tabAuto()},50),layui.event.call(this,c,"tabDelete("+n+")",{elem:e,index:a})},tabAuto:function(){var e="layui-tab-bar",l="layui-tab-close",n=this;u(".layui-tab").each(function(){var t=u(this),i=t.children(".layui-tab-title"),a=(t.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),a=u('');n===window&&8!=d.ie&&C.hideTabMore(!0),t.attr("lay-allowClose")&&i.find("li").each(function(){var t,i=u(this);i.find("."+l)[0]||((t=u('')).on("click",C.tabDelete),i.append(t))}),"string"!=typeof t.attr("lay-unauto")&&(i.prop("scrollWidth")>i.outerWidth()+1?i.find("."+e)[0]||(i.append(a),t.attr("overflow",""),a.on("click",function(t){i[this.title?"removeClass":"addClass"]("layui-tab-more"),this.title=this.title?"":"\u6536\u7f29"})):(i.find("."+e).remove(),t.removeAttr("overflow")))})},hideTabMore:function(t){var i=u(".layui-tab-title");!0!==t&&"tabmore"===u(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=u(this),i=t.parents(h),a=i.attr("lay-filter"),e=t.parent(),l=t.siblings("."+b),n="string"==typeof e.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||n||l[0]||(i.find("."+r).removeClass(r),e.addClass(r)),i.hasClass(p)&&(l.removeClass(m),l[0])&&(e["none"===l.css("display")?"addClass":"removeClass"](f+"ed"),"all"===i.attr("lay-shrink"))&&e.siblings().removeClass(f+"ed"),layui.event.call(this,c,"nav("+a+")",t)},collapse:function(){var t=u(this),i=t.find(".layui-colla-icon"),a=t.siblings(".layui-colla-content"),e=t.parents(".layui-collapse").eq(0),l=e.attr("lay-filter"),n="none"===a.css("display");"string"==typeof e.attr("lay-accordion")&&((e=e.children(".layui-colla-item").children("."+y)).siblings(".layui-colla-title").children(".layui-colla-icon").html(""),e.removeClass(y)),a[n?"addClass":"removeClass"](y),i.html(n?"":""),layui.event.call(this,c,"collapse("+l+")",{title:t,content:a,show:n})}},a=(i.prototype.render=i.prototype.init=function(t,i){var a=i?'[lay-filter="'+i+'"]':"",i={tab:function(){C.tabAuto.call({})},nav:function(){var s={},o={},c={},r="layui-nav-title";u(h+a).each(function(t){var i=u(this),a=u(''),e=i.find("."+f);i.find("."+l)[0]||(i.append(a),(i.hasClass(p)?e.find("dd,>."+r):e).on("mouseenter",function(){!function(t,i,a){var e,l=u(this),n=l.find("."+b);i.hasClass(p)?n[0]||(e=l.children("."+r),t.css({top:l.offset().top-i.offset().top,height:(e[0]?e:l).outerHeight(),opacity:1})):(n.addClass(m),n.hasClass("layui-nav-child-c")&&n.css({left:-(n.outerWidth()-l.width())/2}),n[0]?t.css({left:t.position().left+t.width()/2,width:0,opacity:0}):t.css({left:l.position().left+parseFloat(l.css("marginLeft")),top:l.position().top+l.height()-t.height()}),s[a]=setTimeout(function(){t.css({width:n[0]?0:l.width(),opacity:n[0]?0:1})},d.ie&&d.ie<10?0:200),clearTimeout(c[a]),"block"===n.css("display")&&clearTimeout(o[a]),o[a]=setTimeout(function(){n.addClass(y),l.find("."+v).addClass(v+"d")},300))}.call(this,a,i,t)}).on("mouseleave",function(){i.hasClass(p)?a.css({height:0,opacity:0}):(clearTimeout(o[t]),o[t]=setTimeout(function(){i.find("."+b).removeClass(y),i.find("."+v).removeClass(v+"d")},300))}),i.on("mouseleave",function(){clearTimeout(s[t]),c[t]=setTimeout(function(){i.hasClass(p)||a.css({width:0,left:a.position().left+a.width()/2,opacity:0})},200)})),e.find("a").each(function(){var t=u(this);t.parent();t.siblings("."+b)[0]&&!t.children("."+v)[0]&&t.append(''),t.off("click",C.clickThis).on("click",C.clickThis)})})},breadcrumb:function(){u(".layui-breadcrumb"+a).each(function(){var t=u(this),i="lay-separator",a=t.attr(i)||"/",e=t.find("a");e.next("span["+i+"]")[0]||(e.each(function(t){t!==e.length-1&&u(this).after(""+a+"")}),t.css("visibility","visible"))})},progress:function(){var e="layui-progress";u("."+e+a).each(function(){var t=u(this),i=t.find(".layui-progress-bar"),a=i.attr("lay-percent");i.css("width",/^.+\/.+$/.test(a)?100*new Function("return "+a)()+"%":a),t.attr("lay-showPercent")&&setTimeout(function(){i.html(''+a+"")},350)})},collapse:function(){u(".layui-collapse"+a).each(function(){u(this).find(".layui-colla-item").each(function(){var t=u(this),i=t.find(".layui-colla-title"),t="none"===t.find(".layui-colla-content").css("display");i.find(".layui-colla-icon").remove(),i.append(''+(t?"":"")+""),i.off("click",C.collapse).on("click",C.collapse)})})}};return i[t]?i[t]():layui.each(i,function(t,i){i()})},new i),e=u(document);u(function(){a.render()});e.on("click",".layui-tab-title li",C.tabClick),e.on("click",C.hideTabMore),u(window).on("resize",C.tabAuto),t(c,a)});layui.define("layer",function(e){"use strict";var v=layui.$,r=(layui.layer,layui.hint()),y=layui.device(),i={config:{},set:function(e){var t=this;return t.config=v.extend({},t.config,e),t},on:function(e,t){return layui.onevent.call(this,n,e,t)}},n="upload",o="layui-upload-file",a="layui-upload-form",F="layui-upload-iframe",b="layui-upload-choose",x=function(e){var t=this;t.config=v.extend({},t.config,i.config,e),t.render()};x.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",force:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},x.prototype.render=function(e){var t=this;(e=t.config).elem=v(e.elem),e.bindAction=v(e.bindAction),t.file(),t.events()},x.prototype.file=function(){var e=this,t=e.config,i=e.elemFile=v(['"].join("")),n=t.elem.next();(n.hasClass(o)||n.hasClass(a))&&n.remove(),y.ie&&y.ie<10&&t.elem.wrap('
            '),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(i),y.ie&&y.ie<10&&e.initIE()},x.prototype.initIE=function(){var i,e=this.config,t=v(''),n=v(['
            ',"
            "].join(""));v("#"+F)[0]||v("body").append(t),e.elem.next().hasClass(a)||(this.elemFile.wrap(n),e.elem.next("."+a).append((i=[],layui.each(e.data,function(e,t){t="function"==typeof t?t():t,i.push('')}),i.join(""))))},x.prototype.msg=function(e){window.subModule.$emit("component-popup-add-toast-msg",{type:"warning",message:e})},x.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},x.prototype.preview=function(n){window.FileReader&&layui.each(this.chooseFiles,function(e,t){var i=new FileReader;i.readAsDataURL(t),i.onload=function(){n&&n(e,t,this.result)}})},x.prototype.upload=function(i,e){var n,o,t,a,l=this,r=l.config,u=l.elemFile[0],c=function(){var t=0,o=0,e=i||l.files||l.chooseFiles||u.files,a=function(){r.multiple&&t+o===l.fileLength&&"function"==typeof r.allDone&&r.allDone({total:l.fileLength,successful:t,failed:o})};layui.each(e,function(i,e){var n=new FormData,e=(n.append(r.field,e),layui.each(r.data,function(e,t){t="function"==typeof t?t():t,n.append(e,t)}),{url:r.url,type:"post",data:n,contentType:!1,processData:!1,dataType:"json",headers:r.headers||{},success:function(e){t++,f(i,e),a()},error:function(e){o++,l.msg("Request URL is abnormal: "+(e.statusText||"error")),p(i),a()}});"function"==typeof r.progress&&(e.xhr=function(){var e=v.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){var t;e.lengthComputable&&(t=Math.floor(e.loaded/e.total*100),r.progress(t,(r.item||r.elem)[0],e,i))}),e}),v.ajax(e)})},s=function(){var n=v("#"+F);l.elemFile.parent().submit(),clearInterval(x.timer),x.timer=setInterval(function(){var e,t=n.contents().find("body");try{e=t.text()}catch(i){l.msg("Cross-domain requests are not supported"),clearInterval(x.timer),p()}e&&(clearInterval(x.timer),t.html(""),f(0,e))},30)},f=function(e,t){if(l.elemFile.next("."+b).remove(),u.value="","json"===r.force&&"object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},l.msg("Please return JSON data format")}"function"==typeof r.done&&r.done(t,e||0,function(e){l.upload(e)})},p=function(e){r.auto&&(u.value=""),"function"==typeof r.error&&r.error(e||0,function(e){l.upload(e)})},d=r.exts,m=(o=[],layui.each(i||l.chooseFiles,function(e,t){o.push(t.name)}),o),h={preview:function(e){l.preview(e)},upload:function(e,t){var i={};i[e]=t,l.upload(i)},pushFile:function(){return l.files=l.files||{},layui.each(l.chooseFiles,function(e,t){l.files[e]=t}),l.files},resetFile:function(e,t,i){t=new File([t],i);l.files=l.files||{},l.files[e]=t},clearAllFile:function(){l.files={}}},g={file:"\u6587\u4ef6",images:"\u56fe\u7247",video:"\u89c6\u9891",audio:"\u97f3\u9891"}[r.accept]||"\u6587\u4ef6",m=0===m.length?u.value.match(/[^\/\\]+\..+/g)||[]:m;if(0!==m.length){switch(r.accept){case"file":layui.each(m,function(e,t){if(d&&!RegExp(".\\.("+d+")$","i").test(escape(t)))return n=!0});break;case"video":layui.each(m,function(e,t){if(!RegExp(".\\.("+(d||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(t)))return n=!0});break;case"audio":layui.each(m,function(e,t){if(!RegExp(".\\.("+(d||"mp3|wav|mid")+")$","i").test(escape(t)))return n=!0});break;default:layui.each(m,function(e,t){if(!RegExp(".\\.("+(d||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(t)))return n=!0})}if(n)return l.msg("\u9009\u62e9\u7684"+g+"\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"),u.value="";if("choose"!==e&&!r.auto||(r.choose&&r.choose(h),"choose"!==e)){if(l.fileLength=(t=0,g=i||l.files||l.chooseFiles||u.files,layui.each(g,function(){t++}),t),r.number&&l.fileLength>r.number)return l.msg("\u540c\u65f6\u6700\u591a\u53ea\u80fd\u4e0a\u4f20: "+r.number+" \u4e2a\u6587\u4ef6
            \u60a8\u5f53\u524d\u5df2\u7ecf\u9009\u62e9\u4e86: "+l.fileLength+" \u4e2a\u6587\u4ef6");if(01024*r.size&&(t=1<=(t=r.size/1024)?t.toFixed(2)+"MB":r.size+"KB",u.value="",a=t)}),a)return l.msg("\u6587\u4ef6\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 "+a);if(!r.before||!1!==r.before(h))y.ie?(9'+e+"")};o.elem.off("upload.start").on("upload.start",function(){var e=v(this),t=e.attr("lay-data");if(t)try{t=new Function("return "+t)(),n.config=v.extend({},o,t)}catch(i){r.error("Upload element property lay-data configuration item has a syntax error: "+t)}n.config.item=e,n.elemFile[0].click()}),y.ie&&y.ie<10||o.elem.off("upload.over").on("upload.over",function(){v(this).attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){v(this).removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(e,t){var i=v(this),t=t.originalEvent.dataTransfer.files||[];i.removeAttr("lay-over"),a(t),o.auto?n.upload():l(t)}),n.elemFile.off("upload.change").on("upload.change",function(){var e=this.files||[];a(e),o.auto?n.upload():l(e)}),o.bindAction.off("upload.action").on("upload.action",function(){n.upload()}),o.elem.data("haveEvents")||(n.elemFile.on("change",function(){v(this).trigger("upload.change")}),o.elem.on("click",function(){n.isFile()||v(this).trigger("upload.start")}),o.drag&&o.elem.on("dragover",function(e){e.preventDefault(),v(this).trigger("upload.over")}).on("dragleave",function(e){v(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),v(this).trigger("upload.drop",e)}),o.bindAction.on("click",function(){v(this).trigger("upload.action")}),o.elem.data("haveEvents",!0))},i.render=function(e){e=new x(e);return function(){var t=this;return{upload:function(e){t.upload.call(t,e)},reload:function(e){t.reload.call(t,e)},config:t.config}}.call(e)},e(n,i)});layui.define("layer",function(e){"use strict";var C=layui.$,h=layui.layer,l=layui.hint(),w=(layui.device(),"form"),s=".layui-form",T="layui-this",$="layui-hide",E="layui-disabled",t=function(){this.config={verify:{required:[/[\S]+/,"\u5fc5\u586b\u9879\u4e0d\u80fd\u4e3a\u7a7a"],phone:[/^1\d{10}$/,"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e"],url:[/^(#|(http(s?)):\/\/|\/\/)[^\s]+\.[^\s]+$/,"\u94fe\u63a5\u683c\u5f0f\u4e0d\u6b63\u786e"],number:function(e){if(!e||isNaN(e))return"\u53ea\u80fd\u586b\u5199\u6570\u5b57"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"\u65e5\u671f\u683c\u5f0f\u4e0d\u6b63\u786e"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7"]},autocomplete:null}},i=(t.prototype.set=function(e){return C.extend(!0,this.config,e),this},t.prototype.verify=function(e){return C.extend(!0,this.config.verify,e),this},t.prototype.getFormElem=function(e){return C(s+(e?'[lay-filter="'+e+'"]':""))},t.prototype.on=function(e,t){return layui.onevent.call(this,w,e,t)},t.prototype.val=function(e,i){return this.getFormElem(e).each(function(e,t){var a=C(this);layui.each(i,function(e,t){var i,e=a.find('[name="'+e+'"]');e[0]&&("checkbox"===(i=e[0].type)?e[0].checked=t:"radio"===i?e.each(function(){this.value==t&&(this.checked=!0)}):e.val(t))})}),r.render(null,e),this.getValue(e)},t.prototype.getValue=function(e,t){t=t||this.getFormElem(e);var a={},n={},e=t.find("input,select,textarea");return layui.each(e,function(e,t){var i;C(this);t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name&&(/^.*\[\]$/.test(t.name)&&(i=t.name.match(/^(.*)\[\]$/g)[0],a[i]=0|a[i],i=t.name.replace(/^(.*)\[\]$/,"$1["+a[i]+++"]")),/^checkbox|radio$/.test(t.type)&&!t.checked||(n[i||t.name]=t.value))}),n},t.prototype.render=function(e,t){var i=this.config,a=C(s+(t?'[lay-filter="'+t+'"]':"")),n={input:function(e){e=e||a.find("input,textarea");i.autocomplete&&e.attr("autocomplete",i.autocomplete)},select:function(e){var p,c="\u8bf7\u9009\u62e9",m="layui-form-select",g="layui-select-title",k="layui-select-none",x="",e=e||a.find("select"),b=function(e,t){C(e.target).parent().hasClass(g)&&!t||(C("."+m).removeClass(m+"ed "+m+"up"),p&&x&&p.val(x)),p=null},u=function(a,e,t){var o,r,i,n,s,l,c=C(this),u=a.find("."+g),d=u.find("input"),f=a.find("dl"),h=f.children("dd"),y=f.children("dt"),v=this.selectedIndex;e||(r=c.attr("lay-search"),i=function(){var e=a.offset().top+a.outerHeight()+5-q.scrollTop(),t=f.outerHeight();v=c[0].selectedIndex,a.addClass(m+"ed"),h.removeClass($),y.removeClass($),o=null,h.eq(v).addClass(T).siblings().removeClass(T),e+t>q.height()&&t<=e&&a.addClass(m+"up"),s()},n=function(e){a.removeClass(m+"ed "+m+"up"),d.blur(),o=null,e||l(d.val(),function(e){var t=c[0].selectedIndex;e&&(x=C(c[0].options[t]).html(),0===t&&x===d.attr("placeholder")&&(x=""),d.val(x||""))})},s=function(){var e,t,i=f.children("dd."+T);i[0]&&(e=i.position().top,t=f.height(),i=i.height(),t\u65e0\u5339\u914d\u9879

            '):f.find("."+k).remove()},"keyup"),""===t&&f.find("."+k).remove(),s()}).on("blur",function(e){var t=c[0].selectedIndex;p=d,x=C(c[0].options[t]).html(),0===t&&x===d.attr("placeholder")&&(x=""),setTimeout(function(){l(d.val(),function(e){x||d.val("")},"blur")},200)}),h.on("click",function(){var e=C(this),t=e.attr("lay-value"),i=c.attr("lay-filter");return e.hasClass(E)||(e.hasClass("layui-select-tips")?d.val(""):(d.val(e.text()),e.addClass(T)),e.siblings().removeClass(T),c.val(t).removeClass("layui-form-danger"),layui.event.call(this,w,"select("+i+")",{elem:c[0],value:t,othis:a}),n(!0)),!1}),a.find("dl>dt").on("click",function(e){return!1}),C(document).off("click",b).on("click",b))};e.each(function(e,t){var i=C(this),a=i.next("."+m),n=this.disabled,l=t.value,r=C(t.options[t.selectedIndex]),t=t.options[0];if("string"==typeof i.attr("lay-ignore"))return i.show();var o,s="string"==typeof i.attr("lay-search"),t=t&&!t.value&&t.innerHTML||c,r=C(['
            ','
            ','','
            ','
            ',(t=i.find("*"),o=[],layui.each(t,function(e,t){0!==e||t.value?"optgroup"===t.tagName.toLowerCase()?o.push("
            "+t.label+"
            "):o.push('
            '+C.trim(t.innerHTML)+"
            "):o.push('
            '+C.trim(t.innerHTML||c)+"
            ")}),0===o.length&&o.push('
            \u6ca1\u6709\u9009\u9879
            '),o.join("")+"
            "),"
            "].join(""));a[0]&&a.remove(),i.after(r),u.call(this,r,n,s)})},checkbox:function(e){var s={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},e=e||a.find("input[type=checkbox]");e.each(function(e,t){var i=C(this),a=i.attr("lay-skin"),n=(i.attr("lay-text")||"").split("|"),l=this.disabled,r=s[a="switch"===a?"_"+a:a]||s.checkbox;if("string"==typeof i.attr("lay-ignore"))return i.show();var o=i.next("."+r[0]),t=C(['
            ",(l={checkbox:[t.title.replace(/\s/g,"")?""+t.title+"":"",''].join(""),_switch:""+((t.checked?n[0]:n[1])||"")+""})[a]||l.checkbox,"
            "].join(""));o[0]&&o.remove(),i.after(t),function(i,a){var n=C(this);i.on("click",function(){var e=n.attr("lay-filter"),t=(n.attr("lay-text")||"").split("|");n[0].disabled||(n[0].checked?(n[0].checked=!1,i.removeClass(a[1]).find("em").text(t[1])):(n[0].checked=!0,i.addClass(a[1]).find("em").text(t[0])),layui.event.call(n[0],w,a[2]+"("+e+")",{elem:n[0],value:n[0].value,othis:i}))})}.call(this,t,r)})},radio:function(e){var r="layui-form-radio",o=["",""],e=e||a.find("input[type=radio]");e.each(function(e,t){var i=C(this),a=i.next("."+r),n=this.disabled;if("string"==typeof i.attr("lay-ignore"))return i.show();a[0]&&a.remove();n=C(['
            ',''+o[t.checked?0:1]+"","
            "+(a=t.title||"",a="string"==typeof i.next().attr("lay-radio")?i.next().html():a)+"
            ","
            "].join(""));i.after(n),function(a){var n=C(this),l="layui-anim-scaleSpring";a.on("click",function(){var e=n[0].name,t=n.parents(s),i=n.attr("lay-filter"),e=t.find("input[name="+e.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(e,function(){var e=C(this).next("."+r);this.checked=!1,e.removeClass(r+"ed"),e.find(".layui-icon").removeClass(l).html(o[1])}),n[0].checked=!0,a.addClass(r+"ed"),a.find(".layui-icon").addClass(l).html(o[0]),layui.event.call(n[0],w,"radio("+i+")",{elem:n[0],value:n[0].value,othis:a}))})}.call(this,n)})}};return"object"===layui.type(e)?e.each(function(e,t){var i=C(t);i.closest(s).length&&("SELECT"===t.tagName?n.select(i):"INPUT"===t.tagName&&("checkbox"===(t=t.type)||"radio"===t?n[t](i):n.input(i)))}):e?n[e]?n[e]():l.error('\u4e0d\u652f\u6301\u7684 "'+e+'" \u8868\u5355\u6e32\u67d3'):layui.each(n,function(e,t){t()}),this},t.prototype.validate=function(e){var u=null,d=r.config.verify,f="layui-form-danger";return!(e=C(e))[0]||(e.attr("lay-verify")!==undefined||!1!==this.validate(e.find("*[lay-verify]")))&&(layui.each(e,function(e,r){var o=C(this),t=(o.attr("lay-verify")||"").split("|"),s=o.attr("lay-verType"),c=o.val();if(o.removeClass(f),layui.each(t,function(e,t){var i="",a=d[t];if(a){var n="function"==typeof a?i=a(c,r):!a[0].test(c),l="select"===r.tagName.toLowerCase()||/^checkbox|radio$/.test(r.type),i=i||a[1];if("required"===t&&(i=o.attr("lay-reqText")||i),n)return"tips"===s?h.tips(i,"string"!=typeof o.attr("lay-ignore")&&l?o.next():o,{tips:1}):"alert"===s?h.alert(i,{title:"\u63d0\u793a",shadeClose:!0}):/\bstring|number\b/.test(typeof i)&&h.msg(i,{icon:5,shift:6}),setTimeout(function(){(l?o.next().find("input"):r).focus()},7),o.addClass(f),u=!0}}),u)return u}),!u)},t.prototype.submit=function(e,t){var i={},a=C(this),e="string"==typeof e?e:a.attr("lay-filter"),n=this.getFormElem?this.getFormElem(e):a.parents(s).eq(0),l=n.find("*[lay-verify]");return!!r.validate(l)&&(i=r.getValue(null,n),l={elem:this.getFormElem?window.event&&window.event.target:this,form:(this.getFormElem?n:a.parents("form"))[0],field:i},"function"==typeof t&&t(l),layui.event.call(this,w,"submit("+e+")",l))}),r=new t,t=C(document),q=C(window);C(function(){r.render()}),t.on("reset",s,function(){var e=C(this).attr("lay-filter");setTimeout(function(){r.render(null,e)},50)}),t.on("submit",s,i).on("click","*[lay-submit]",i),e(w,r)});layui.define(["laytpl","laypage","form","util"],function(e){"use strict";var m=layui.$,v=layui.laytpl,d=layui.laypage,g=layui.layer,y=layui.form,h=layui.util,f=layui.hint(),p=layui.device(),b={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX",disabledName:"LAY_DISABLED"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var t=this;return t.config=m.extend({},t.config,e),t},on:function(e,t){return layui.onevent.call(this,C,e,t)}},x=function(){var a=this,e=a.config,i=e.id||e.index;return i&&(x.that[i]=a,x.config[i]=e),{config:e,reload:function(e,t){a.reload.call(a,e,t)},reloadData:function(e,t){b.reloadData(i,e,t)},setColsWidth:function(){a.setColsWidth.call(a)},resize:function(){a.resize.call(a)}}},l=function(e){var t=x.config[e];return t||f.error(e?"The table instance with ID '"+e+"' not found":"ID argument required"),t||null},k=function(e){var t=this.config||{},a=(e=e||{}).item3,i=e.content,t=(t.escape&&(i=h.escape(i)),e.text&&a.exportTemplet||a.templet||a.toolbar);return t&&(i="function"==typeof t?t.call(a,e.tplData,e.obj):v(m(t).html()||String(i)).render(e.tplData)),e.text?m("
            "+i+"
            ").text():i},C="table",w="layui-hide",r="layui-hide-v",c="layui-none",s="layui-table-view",u=".layui-table-header",T=".layui-table-body",N=".layui-table-pageview",L=".layui-table-sort",D="layui-table-edit",E="layui-table-hover",A="layui-table-col-special",j="LAY_TABLE_MOVE_DICT",t=function(e){return['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',(e=e||{}).fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':"","{{# var isSort = !(item2.colGroup) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
            ','
            ','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{-item2.title||""}}',"{{# if(isSort){ }}",'',"{{# } }}","{{# } }}","
            ","
            "].join("")},a=['',"","
            "].join(""),R=[,"{{# if(d.data.toolbar){ }}",'
            ','
            ','
            ',"
            ","{{# } }}",'
            ',"{{# if(d.data.loading){ }}",'
            ','',"
            ","{{# } }}","{{# var left, right; }}",'
            ',t(),"
            ",'
            ',a,"
            ","{{# if(left){ }}",'
            ','
            ',t({fixed:!0}),"
            ",'
            ',a,"
            ","
            ","{{# }; }}","{{# if(right){ }}",'
            ','
            ',t({fixed:"right"}),'
            ',"
            ",'
            ',a,"
            ","
            ","{{# }; }}","
            ","{{# if(d.data.totalRow){ }}",'
            ','','',"
            ","
            ","{{# } }}",'
            ','
            ',"
            ",""].join(""),_=m(window),S=m(document),i=function(e){this.index=++b.index,this.config=m.extend({},this.config,b.config,e),this.render()},F=(i.prototype.config={limit:10,loading:!0,escape:!0,cellMinWidth:60,editTrigger:"click",defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"\u65e0\u6570\u636e"}},i.prototype.render=function(e){var t=this,a=t.config;if(a.elem=m(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||t.index,a.request=m.extend({pageName:"page",limitName:"limit"},a.request),a.response=m.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",totalRowName:"totalRow",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,t.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return t;if("reloadData"===e)return t.pullData(t.page,{type:"reloadData"});a.height&&/^full-\d+$/.test(a.height)&&(t.fullHeightGap=a.height.split("-")[1],a.height=_.height()-t.fullHeightGap),t.setInit();var i,l,e=a.elem,n=e.next("."+s),o=t.elem=m("
            ");o.addClass((i=[s,s+"-"+t.index,"layui-form","layui-border-box"],a.className&&i.push(a.className),i.join(" "))).attr({"lay-filter":"LAY-TABLE-FORM-DF-"+t.index,"lay-id":a.id,style:(i=[],a.width&&i.push("width:"+a.width+"px;"),a.height&&i.push("height:"+a.height+"px;"),i.join(""))}).html(v(R).render({data:a,index:t.index})),a.index=t.index,t.key=a.id||a.index,n[0]&&n.remove(),e.after(o),t.layTool=o.find(".layui-table-tool"),t.layBox=o.find(".layui-table-box"),t.layHeader=o.find(u),t.layMain=o.find(".layui-table-main"),t.layBody=o.find(T),t.layFixed=o.find(".layui-table-fixed"),t.layFixLeft=o.find(".layui-table-fixed-l"),t.layFixRight=o.find(".layui-table-fixed-r"),t.layTotal=o.find(".layui-table-total"),t.layPage=o.find(".layui-table-page"),t.renderToolbar(),t.renderPagebar(),t.fullSize(),1
            ','
            ','
            '].join(""),a=this.layTool.find(".layui-table-tool-temp"),i=("default"===e.toolbar?a.html(t):"string"==typeof e.toolbar&&(t=m(e.toolbar).html()||"")&&a.html(v(t).render(e)),{filter:{title:"\u7b5b\u9009\u5217",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"\u5bfc\u51fa",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"\u6253\u5370",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}}),l=[];"object"==typeof e.defaultToolbar&&layui.each(e.defaultToolbar,function(e,t){t="string"==typeof t?i[t]:t;t&&l.push('
            ')}),this.layTool.find(".layui-table-tool-self").html(l.join(""))},i.prototype.renderPagebar=function(){var e,t=this.config,a=this.layPagebar=m('
            ');t.pagebar&&((e=m(t.pagebar).html()||"")&&a.append(v(e).render(t)),this.layPage.append(a))},i.prototype.setParentCol=function(e,t){var a=this.config,i=this.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),l=parseInt(i.attr("colspan"))||0;i[0]&&(t=t.split("-"),t=a.cols[t[0]][t[1]],e?l--:l++,i.attr("colspan",l),i[l<1?"addClass":"removeClass"](w),t.colspan=l,t.hide=l<1,a=i.data("parentkey"))&&this.setParentCol(e,a)},i.prototype.setColsPatch=function(){var a=this,e=a.config;layui.each(e.cols,function(e,t){layui.each(t,function(e,t){t.hide&&a.setParentCol(t.hide,t.parentKey)})})},i.prototype.setColsWidth=function(){var t,a,i=this,o=i.config,l=0,d=0,r=0,c=0,s=i.setInit("width"),e=(i.eachCols(function(e,t){t.hide||l++}),s=s-("line"===o.skin||"nob"===o.skin?2:l+1)-i.getScrollWidth(i.layMain[0])-1,function(n){layui.each(o.cols,function(e,l){layui.each(l,function(e,t){var a=0,i=t.minWidth||o.cellMinWidth;t?t.colGroup||t.hide||(n?r&&r'+(e||"Error")+"
            ");a[0]&&(t.layNone.remove(),a.remove()),t.layFixed.addClass(w),t.layMain.find("tbody").html(""),t.layMain.append(t.layNone=e),t.layTotal.addClass(r),t.layPage.find(N).addClass(r),b.cache[t.key]=[],t.syncCheckAll()},i.prototype.page=1,i.prototype.pullData=function(t,a){var e,i=this,l=i.config,n=l.request,o=l.response,d=function(){"object"==typeof l.initSort&&i.sort(l.initSort.field,l.initSort.type)};a=a||{},"function"==typeof l.before&&l.before(l),i.startTime=(new Date).getTime(),l.url?((e={})[n.pageName]=t,e[n.limitName]=l.limit,n=m.extend(e,l.where),l.contentType&&0==l.contentType.indexOf("application/json")&&(n=JSON.stringify(n)),i.loading(),m.ajax({type:l.method||"get",url:l.url,contentType:l.contentType,data:n,dataType:l.dataType||"json",jsonpCallback:l.jsonpCallback,headers:l.headers||{},success:function(e){(e="function"==typeof l.parseData?l.parseData(e)||e:e)[o.statusName]!=o.statusCode?(i.renderForm(),i.errorView(e[o.msgName]||'\u8fd4\u56de\u7684\u6570\u636e\u4e0d\u7b26\u5408\u89c4\u8303\uff0c\u6b63\u786e\u7684\u6210\u529f\u72b6\u6001\u7801\u5e94\u4e3a\uff1a"'+o.statusName+'": '+o.statusCode)):(i.renderData({res:e,curr:t,count:e[o.countName],type:a.type}),d(),l.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof l.done&&l.done(e,t,e[o.countName])},error:function(e,t){i.errorView("\u8bf7\u6c42\u5f02\u5e38\uff0c\u9519\u8bef\u63d0\u793a\uff1a"+t),i.renderForm(),i.setColsWidth(),"function"==typeof l.error&&l.error(e,t)}})):"array"===layui.type(l.data)&&(e=t*l.limit-l.limit,(n={})[o.dataName]=l.data.concat().splice(e,l.limit),n[o.countName]=l.data.length,"object"==typeof l.totalRow&&(n[o.totalRowName]=m.extend({},l.totalRow)),i.renderData({res:n,curr:t,count:n[o.countName],type:a.type}),d(),i.setColsWidth(),"function"==typeof l.done)&&l.done(n,t,n[o.countName])},i.prototype.eachCols=function(e){return b.eachCols(null,e,this.config.cols),this},i.prototype.renderData=function(e){var u=this,y=u.config,t=e.res,l=e.curr,a=e.count,n=e.sort,i=t[y.response.dataName]||[],t=t[y.response.totalRowName],h=[],f=[],p=[],o=function(){var s;if(y.HAS_SET_COLS_PATCH||u.setColsPatch(),y.HAS_SET_COLS_PATCH=!0,!n&&u.sortKey)return u.sort(u.sortKey.field,u.sortKey.sort,!0);layui.each(i,function(o,d){var a=[],i=[],r=[],c=o+y.limit*(l-1)+1;"array"===layui.type(d)&&0===d.length||(n||(d[b.config.indexName]=o),u.eachCols(function(e,l){var e=l.field||e,t=y.index+"-"+l.key,n=d[e];n!==undefined&&null!==n||(n=""),l.colGroup||(t=['','
            "+function(){var e,t=m.extend(!0,{LAY_INDEX:c,LAY_COL:l},d),a=b.config.checkName,i=b.config.disabledName;switch(l.type){case"checkbox":return'";case"radio":return t[a]&&(s=o),'';case"numbers":return c}return l.toolbar?v(m(l.toolbar).html()||"").render(t):k.call(u,{item3:l,content:n,tplData:t})}(),"
            "].join(""),a.push(t),l.fixed&&"right"!==l.fixed&&i.push(t),"right"===l.fixed&&r.push(t))}),h.push(''+a.join("")+""),f.push(''+i.join("")+""),p.push(''+r.join("")+""))}),"fixed"===y.scrollPos&&"reloadData"===e.type||u.layBody.scrollTop(0),"reset"===y.scrollPos&&u.layBody.scrollLeft(0),u.layMain.find("."+c).remove(),u.layMain.find("tbody").html(h.join("")),u.layFixLeft.find("tbody").html(f.join("")),u.layFixRight.find("tbody").html(p.join("")),u.renderForm(),"number"==typeof s&&u.setThisRowChecked(s),u.syncCheckAll(),u.fullSize(),u.haveInit?u.scrollPatch():setTimeout(function(){u.scrollPatch()},50),u.haveInit=!0,g.close(u.tipsIndex)};return b.cache[u.key]=i,u.layTotal[0==i.length?"addClass":"removeClass"](r),u.layPage[y.page||y.pagebar?"removeClass":"addClass"](w),u.layPage.find(N)[!y.page||0==a||0===i.length&&1==l?"addClass":"removeClass"](r),0===i.length?(u.renderForm(),u.errorView(y.text.none)):(u.layFixLeft.removeClass(w),n?o():(o(),u.renderTotal(i,t),u.layTotal&&u.layTotal.removeClass(w),void(y.page&&(y.page=m.extend({elem:"layui-table-page"+y.index,count:a,limit:y.limit,limits:y.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(u.page=e.curr,y.limit=e.limit,u.pullData(e.curr))}},y.page),y.page.count=a,d.render(y.page)))))},i.prototype.renderTotal=function(e,o){var d,r=this,c=r.config,s={};c.totalRow&&(layui.each(e,function(e,i){"array"===layui.type(i)&&0===i.length||r.eachCols(function(e,t){var e=t.field||e,a=i[e];t.totalRow&&(s[e]=(s[e]||0)+(parseFloat(a)||0))})}),r.dataTotal={},d=[],r.eachCols(function(e,t){var a,e=t.field||e,i=o&&o[t.field],l=(a=t.totalRowText||"",n="totalRowDecimals"in t?t.totalRowDecimals:2,n=parseFloat(s[e]).toFixed(n),(l={LAY_COL:t})[e]=n,n=t.totalRow&&k.call(r,{item3:t,content:n,tplData:l})||a,i||n),n=['','
            "+("string"==typeof(a=t.totalRow||c.totalRow)?v(a).render(m.extend({TOTAL_NUMS:i||s[e],LAY_COL:t},t)):l),"
            "].join("");t.field&&(r.dataTotal[e]=l),d.push(n)}),r.layTotal.find("tbody").html(""+d.join("")+""))},i.prototype.getColElem=function(e,t){var a=this.config;return e.eq(0).find(".laytable-cell-"+a.index+"-"+t+":eq(0)")},i.prototype.renderForm=function(e){this.config;var t=this.elem.attr("lay-filter");y.render(e,t)},i.prototype.setThisRowChecked=function(e){this.config;var t="layui-table-click";this.layBody.find('tr[data-index="'+e+'"]').addClass(t).siblings("tr").removeClass(t)},i.prototype.sort=function(l,e,t,a){var i,n=this,o={},d=n.config,r=d.elem.attr("lay-filter"),c=b.cache[n.key];"string"==typeof l&&(s=l,n.layHeader.find("th").each(function(e,t){var a=m(this),i=a.data("field");if(i===l)return l=a,s=i,!1}));try{var s=s||l.data("field"),u=l.data("key");if(n.sortKey&&!t&&s===n.sortKey.field&&e===n.sortKey.sort)return;var y=n.layHeader.find("th .laytable-cell-"+u).find(L);n.layHeader.find("th").find(L).removeAttr("lay-sort"),y.attr("lay-sort",e||null),n.layFixed.find("th")}catch(h){f.error("Table modules: sort field '"+s+"' not matched")}n.sortKey={field:s,sort:e},d.autoSort&&("asc"===e?i=layui.sort(c,s):"desc"===e?i=layui.sort(c,s,!0):(i=layui.sort(c,b.config.indexName),delete n.sortKey,delete d.initSort)),o[d.response.dataName]=i||c,n.renderData({res:o,curr:n.page,count:n.count,sort:!0}),a&&(d.initSort={field:s,type:e},layui.event.call(l,C,"sort("+r+")",d.initSort))},i.prototype.loading=function(e){var t=this;t.config.loading&&(e?(t.layInit&&t.layInit.remove(),delete t.layInit,t.layBox.find(".layui-table-init").remove()):(t.layInit=m(['
            ','',"
            "].join("")),t.layBox.append(t.layInit)))},i.prototype.setCheckData=function(e,t){var a=this.config,i=b.cache[this.key];i[e]&&"array"!==layui.type(i[e])&&(i[e][a.checkName]=t)},i.prototype.syncCheckAll=function(){var e=this,i=e.config,t=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(a){return e.eachCols(function(e,t){"checkbox"===t.type&&(t[i.checkName]=a)}),a};t[0]&&(b.checkStatus(e.key).isAll?(t[0].checked||(t.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(t[0].checked&&(t.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},i.prototype.getCssRule=function(a,i){var e=this.elem.find("style")[0],e=e.sheet||e.styleSheet||{},e=e.cssRules||e.rules;layui.each(e,function(e,t){if(t.selectorText===".laytable-cell-"+a)return i(t),!0})},i.prototype.fullSize=function(){var e=this,t=e.config,a=t.height;e.fullHeightGap&&(a=_.height()-e.fullHeightGap,e.elem.css("height",a=a<135?135:a)),a&&(a=parseFloat(a)-(e.layHeader.outerHeight()||38),t.toolbar&&(a-=e.layTool.outerHeight()||50),t.totalRow&&(a-=e.layTotal.outerHeight()||40),(t.page||t.pagebar)&&(a-=e.layPage.outerHeight()||43),e.layMain.outerHeight(a))},i.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:((e=document.createElement("div")).style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},i.prototype.scrollPatch=function(){var e=this,t=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),i=e.layMain.height()-e.layMain.prop("clientHeight"),l=(e.getScrollWidth(e.layMain[0]),t.outerWidth()-e.layMain.width()),n=function(e){var t;a&&i?(e=e.eq(0)).find(".layui-table-patch")[0]||((t=m('
            ')).find("div").css({width:a}),e.find("tr").append(t)):e.find(".layui-table-patch").remove()};n(e.layHeader),n(e.layTotal);n=e.layMain.height()-i;e.layFixed.find(T).css("height",t.height()>=n?n:"auto"),e.layFixRight[0');a.html(t),r.height&&a.css("max-height",r.height-(s.layTool.outerHeight()||50)),i.find(".layui-table-tool-panel")[0]||i.append(a),s.renderForm(),a.on("click",function(e){layui.stope(e)}),e.done&&e.done(a,t)};switch(layui.stope(e),S.trigger("table.tool.panel.remove"),g.close(s.tipsIndex),t){case"LAYTABLE_COLS":l({list:(a=[],s.eachCols(function(e,t){t.field&&"normal"==t.type&&a.push('
          • ')}),a.join("")),done:function(){y.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var e=m(e.elem),i=this.checked,l=e.data("key"),n=e.data("parentkey");layui.each(r.cols,function(a,e){layui.each(e,function(e,t){a+"-"+e===l&&(e=t.hide,t.hide=!i,s.elem.find('*[data-key="'+r.index+"-"+l+'"]')[i?"removeClass":"addClass"](w),e!=t.hide&&s.setParentCol(!i,n),s.resize())})})})}});break;case"LAYTABLE_EXPORT":p.ie?g.tips("\u5bfc\u51fa\u529f\u80fd\u4e0d\u652f\u6301 IE\uff0c\u8bf7\u7528 Chrome \u7b49\u9ad8\u7ea7\u6d4f\u89c8\u5668\u5bfc\u51fa",this,{tips:3}):l({list:['
          • \u5bfc\u51fa csv \u683c\u5f0f\u6587\u4ef6
          • ','
          • \u5bfc\u51fa xls \u683c\u5f0f\u6587\u4ef6
          • '].join(""),done:function(e,t){t.on("click",function(){var e=m(this).data("type");b.exportFile.call(s,r.id,null,e)})}});break;case"LAYTABLE_PRINT":var n=window.open("about:blank","_blank"),o=[""].join(""),d=m(s.layHeader.html());d.append(s.layMain.find("table").html()),d.append(s.layTotal.find("table").html()),d.find("th.layui-table-patch").remove(),d.find("thead>tr>th."+A).filter(function(e,t){return!m(t).children(".laytable-cell-group").length}).remove(),d.find("tbody>tr>td."+A).remove(),n.document.write(o+d.prop("outerHTML")),n.document.close(),n.print(),n.close()}layui.event.call(this,C,"toolbar("+c+")",m.extend({event:t,config:r},{}))}),s.layPagebar.on("click","*[lay-event]",function(e){var t=m(this).attr("lay-event");layui.event.call(this,C,"pagebar("+c+")",m.extend({event:t,config:r},{}))}),e.on("mousemove",function(e){var t=m(this),a=t.offset().left,e=e.clientX-a;t.data("unresize")||x.eventMoveElem||(l.allowResize=t.width()-e<=10,i.css("cursor",l.allowResize?"col-resize":""))}).on("mouseleave",function(){m(this);x.eventMoveElem||i.css("cursor","")}).on("mousedown",function(e){var t,a=m(this);l.allowResize&&(t=a.data("key"),e.preventDefault(),l.offset=[e.clientX,e.clientY],s.getCssRule(t,function(e){var t=e.style.width||a.outerWidth();l.rule=e,l.ruleWidth=parseFloat(t),l.minWidth=a.data("minwidth")||r.cellMinWidth}),a.data(j,l),x.eventMoveElem=a)}),x.docEvent||S.on("mousemove",function(e){var t;x.eventMoveElem&&(t=x.eventMoveElem.data(j)||{},x.eventMoveElem.data("resizing",1),e.preventDefault(),t.rule)&&((e=t.ruleWidth+e.clientX-t.offset[0])':''))[0].value=t.data("content")||i.text(),t.find("."+D)[0]||t.append(a),a.focus(),layui.stope(e))}).on("mouseenter","td",function(){a.call(this)}).on("mouseleave","td",function(){a.call(this,"hide")}),"layui-table-grid-down"),a=function(e){var t=m(this),a=t.children(u);t.data("off")||(e?t.find(".layui-table-grid-down").remove():!(a.prop("scrollWidth")>a.outerWidth()||0
            '))},d=(s.layBody.on("click","."+o,function(e){var t=m(this).parent().children(u);s.tipsIndex=g.tips(['
            ',t.html(),"
            ",''].join(""),t[0],{tips:[3,""],time:-1,anim:-1,maxWidth:p.ios||p.android?300:s.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){g.close(t)})}}),layui.stope(e)}),function(e){var t=m(this),a=t.parents("tr").eq(0).data("index");layui.event.call(this,C,(e||"tool")+"("+c+")",n.call(this,{event:t.attr("lay-event")})),s.setThisRowChecked(a)});s.layBody.on("click","*[lay-event]",function(){return d.call(this),!1}).on("dblclick","*[lay-event]",function(){return d.call(this,"toolDouble"),!1}),s.layMain.on("scroll",function(){var e=m(this),t=e.scrollLeft(),e=e.scrollTop();s.layHeader.scrollLeft(t),s.layTotal.scrollLeft(t),s.layFixed.find(T).scrollTop(e),g.close(s.tipsIndex)}),_.on("resize",function(){s.resize()})},S.on("click",function(){S.trigger("table.remove.tool.panel")}),S.on("table.remove.tool.panel",function(){m(".layui-table-tool-panel").remove()}),b.init=function(a,i){i=i||{};var e=m(a?'table[lay-filter="'+a+'"]':".layui-table[lay-data]"),d="Table element property lay-data configuration item has a syntax error: ";return e.each(function(){var e=m(this),t=e.attr("lay-data");try{t=new Function("return "+t)()}catch(l){f.error(d+t,"error")}var n=[],o=m.extend({elem:this,cols:[],data:[],skin:e.attr("lay-skin"),size:e.attr("lay-size"),even:"string"==typeof e.attr("lay-even")},b.config,i,t);a&&e.hide(),e.find("thead>tr").each(function(i){o.cols[i]=[],m(this).children().each(function(e){var t=m(this),a=t.attr("lay-data");try{a=new Function("return "+a)()}catch(l){return f.error(d+a)}t=m.extend({title:t.text(),colspan:t.attr("colspan")||1,rowspan:t.attr("rowspan")||1},a);t.colspan<2&&n.push(t),o.cols[i].push(t)})}),e.find("tbody>tr").each(function(e){var a=m(this),l={};a.children("td").each(function(e,t){var a=m(this),i=a.data("field");if(i)return l[i]=a.html()}),layui.each(n,function(e,t){e=a.children("td").eq(e);l[t.field]=e.html()}),o.data[e]=l}),b.render(o)}),this},x.that={},x.config={},function(a,i,e,l){var n,o;l.colGroup&&(n=0,a++,l.CHILD_COLS=[],o=e+(parseInt(l.rowspan)||1),layui.each(i[o],function(e,t){t.parentKey?t.parentKey===l.key&&(t.PARENT_COL_INDEX=a,l.CHILD_COLS.push(t),F(a,i,o,t)):t.PARENT_COL_INDEX||1<=n&&n==(l.colspan||1)||(t.PARENT_COL_INDEX=a,l.CHILD_COLS.push(t),n+=t.hide?0:parseInt(1td'),a!==undefined&&null!==a||(a=""),0==l&&d.push(t.title||""),o.push('"'+k.call(c,{item3:t,content:a,tplData:n,text:"text",obj:c.commonMember.call(i.eq(0),{td:function(e){return i.filter('[data-field="'+e+'"]')}})})+'"')))}),i.push(o.join(","))}),c&&layui.each(c.dataTotal,function(e,t){r[e]||l.push(t)}),d.join(",")+"\r\n"+i.join("\r\n")+"\r\n"+l.join(","))),u.download=(a.title||o.title||"table_"+(o.index||""))+"."+n,document.body.appendChild(u),u.click(),document.body.removeChild(u)},b.resize=function(e){e?l(e)&&x.that[e].resize():layui.each(x.that,function(){this.resize()})},b.reload=function(e,t,a,i){if(l(e))return(e=x.that[e]).reload(t,a,i),x.call(e)},b.reloadData=function(){var a=m.extend([],arguments),i=(a[3]="reloadData",new RegExp("^("+["data","url","method","contentType","dataType","jsonpCallback","headers","where","page","limit","request","response","parseData","scrollPos"].join("|")+")$"));return layui.each(a[1],function(e,t){i.test(e)||delete a[1][e]}),b.reload.apply(null,a)},b.render=function(e){e=new i(e);return x.call(e)},b.clearCacheKey=function(e){return delete(e=m.extend({},e))[b.config.checkName],delete e[b.config.indexName],delete e[b.config.disabledName],e},m(function(){b.init()}),e(C,b)});layui.define("form",function(e){"use strict";var u=layui.$,i=layui.form,p=layui.layer,n="tree",a={config:{},index:layui[n]?layui[n].index+1e4:0,set:function(e){var i=this;return i.config=u.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,n,e,i)}},t=function(){var i=this,e=i.config,n=e.id||i.index;return t.that[n]=i,{config:t.config[n]=e,reload:function(e){i.reload.call(i,e)},getChecked:function(){return i.getChecked.call(i)},setChecked:function(e){return i.setChecked.call(i,e)}}},y="layui-hide",o="layui-disabled",f="layui-tree-set",C="layui-tree-iconClick",k="layui-icon-addition",v="layui-icon-subtraction",m="layui-tree-entry",x="layui-tree-main",b="layui-tree-txt",g="layui-tree-pack",w="layui-tree-spread",N="layui-tree-setLineShort",T="layui-tree-showLine",L="layui-tree-lineExtend",l=function(e){var i=this;i.index=++a.index,i.config=u.extend({},i.config,a.config,e),i.render()};l.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"\u672a\u547d\u540d",none:"\u65e0\u6570\u636e"}},l.prototype.reload=function(e){var n=this;layui.each(e,function(e,i){"array"===layui.type(i)&&delete n.config[e]}),n.config=u.extend(!0,{},n.config,e),n.render()},l.prototype.render=function(){var e=this,i=e.config,n=(e.checkids=[],u('
            ')),a=(e.tree(n),i.elem=u(i.elem));if(a[0]){if(e.key=i.id||e.index,e.elem=n,e.elemNone=u('
            '+i.text.none+"
            "),a.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);i.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=u(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(N),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(N)}),e.events()}},l.prototype.renderForm=function(e){i.render(e,"LAY-tree-"+this.index)},l.prototype.tree=function(c,e){var d=this,s=d.config,e=e||s.data;layui.each(e,function(e,i){var n,a,t=i.children&&0"),r=u(['
            ','
            ','
            ',s.showLine?t?'':'':'',s.showCheckbox?'':"",s.isJump&&i.href?''+(i.title||i.label||s.text.defaultNodeName)+"":''+(i.title||i.label||s.text.defaultNodeName)+"","
            ",s.edit?(n={add:'',update:'',del:''},a=['
            '],!0===s.edit&&(s.edit=["update","del"]),"object"==typeof s.edit?(layui.each(s.edit,function(e,i){a.push(n[i]||"")}),a.join("")+"
            "):void 0):"","
            "].join(""));t&&(r.append(l),d.tree(l,i.children)),c.append(r),r.prev("."+f)[0]&&r.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),t||r.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),d.spread(r,i),s.showCheckbox&&(i.checked&&d.checkids.push(i.id),d.checkClick(r,i)),s.edit&&d.operate(r,i)})},l.prototype.spread=function(a,e){var t=this.config,i=a.children("."+m),n=i.children("."+x),l=i.find("."+C),i=i.find("."+b),r=t.onlyIconControl?l:n,c="";r.on("click",function(e){var i=a.children("."+g),n=(r.children(".layui-icon")[0]?r:r.find(".layui-tree-icon")).children(".layui-icon");i[0]?a.hasClass(w)?(a.removeClass(w),i.slideUp(200),n.removeClass(v).addClass(k)):(a.addClass(w),i.slideDown(200),n.addClass(v).removeClass(k),t.accordion&&((i=a.siblings("."+f)).removeClass(w),i.children("."+g).slideUp(200),i.find(".layui-tree-icon").children(".layui-icon").removeClass(v).addClass(k))):c="normal"}),i.on("click",function(){u(this).hasClass(o)||(c=a.hasClass(w)?t.onlyIconControl?"open":"close":t.onlyIconControl?"close":"open",t.click&&t.click({elem:a,state:c,data:e}))})},l.prototype.setCheckbox=function(e,i,n){this.config;var t,l=n.prop("checked");n.prop("disabled")||("object"!=typeof i.children&&!e.find("."+g)[0]||e.find("."+g).find('input[same="layuiTreeCheck"]').each(function(){this.disabled||(this.checked=l)}),(t=function(e){var i,n,a;e.parents("."+f)[0]&&(n=(e=e.parent("."+g)).parent(),a=e.prev().find('input[same="layuiTreeCheck"]'),l?a.prop("checked",l):(e.find('input[same="layuiTreeCheck"]').each(function(){this.checked&&(i=!0)}),i||a.prop("checked",!1)),t(n))})(e),this.renderForm("checkbox"))},l.prototype.checkClick=function(n,a){var t=this,l=t.config;n.children("."+m).children("."+x).on("click",'input[same="layuiTreeCheck"]+',function(e){layui.stope(e);var e=u(this).prev(),i=e.prop("checked");e.prop("disabled")||(t.setCheckbox(n,a,e),l.oncheck&&l.oncheck({elem:n,checked:i,data:a}))})},l.prototype.operate=function(c,d){var s=this,o=s.config,e=c.children("."+m),h=e.children("."+x);e.children(".layui-tree-btnGroup").on("click",".layui-icon",function(e){layui.stope(e);var i,e=u(this).data("type"),a=c.children("."+g),t={data:d,type:e,elem:c};if("add"==e){a[0]||(o.showLine?(h.find("."+C).addClass("layui-tree-icon"),h.find("."+C).children(".layui-icon").addClass(k).removeClass("layui-icon-file")):h.find(".layui-tree-iconArrow").removeClass(y),c.append('
            '));var n,l=o.operate&&o.operate(t),r={};if(r.title=o.text.defaultNodeName,r.id=l,s.tree(c.children("."+g),[r]),o.showLine&&(a[0]?(a.hasClass(L)||a.addClass(L),c.find("."+g).each(function(){u(this).children("."+f).last().addClass(N)}),(a.children("."+f).last().prev().hasClass(N)?a.children("."+f).last().prev():a.children("."+f).last()).removeClass(N),!c.parent("."+g)[0]&&c.next()[0]&&a.children("."+f).last().removeClass(N)):(l=c.siblings("."+f),n=1,r=c.parent("."+g),layui.each(l,function(e,i){u(i).children("."+g)[0]||(n=0)}),(1==n?(l.children("."+g).addClass(T),l.children("."+g).children("."+f).removeClass(N),c.children("."+g).addClass(T),r.removeClass(L),r.children("."+f).last().children("."+g).children("."+f).last()):c.children("."+g).children("."+f)).addClass(N))),!o.showCheckbox)return;h.find('input[same="layuiTreeCheck"]')[0].checked&&(c.children("."+g).children("."+f).last().find('input[same="layuiTreeCheck"]')[0].checked=!0),s.renderForm("checkbox")}else"update"==e?(l=h.children("."+b).html(),h.children("."+b).html(""),h.append(''),h.children(".layui-tree-editInput").val(l).focus(),i=function(e){var i=e.val().trim()||o.text.defaultNodeName;e.remove(),h.children("."+b).html(i),t.data.title=i,o.operate&&o.operate(t)},h.children(".layui-tree-editInput").blur(function(){i(u(this))}),h.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),i(u(this)))})):p.confirm('\u786e\u8ba4\u5220\u9664\u8be5\u8282\u70b9 "'+(d.title||"")+'" \u5417\uff1f',function(e){var l,n,i;o.operate&&o.operate(t),t.status="remove",p.close(e),c.prev("."+f)[0]||c.next("."+f)[0]||c.parent("."+g)[0]?(c.siblings("."+f).children("."+m)[0]?(o.showCheckbox&&(l=function(e){var i,n,a,t;e.parents("."+f)[0]&&(i=e.siblings("."+f).children("."+m),n=(e=e.parent("."+g).prev()).find('input[same="layuiTreeCheck"]')[0],a=1,(t=0)==n.checked)&&(i.each(function(e,i){i=u(i).find('input[same="layuiTreeCheck"]')[0];0!=i.checked||i.disabled||(a=0),i.disabled||(t=1)}),1==a)&&1==t&&(n.checked=!0,s.renderForm("checkbox"),l(e.parent("."+f)))})(c),o.showLine&&(e=c.siblings("."+f),n=1,i=c.parent("."+g),layui.each(e,function(e,i){u(i).children("."+g)[0]||(n=0)}),1==n?(a[0]||(i.removeClass(L),e.children("."+g).addClass(T),e.children("."+g).children("."+f).removeClass(N)),(c.next()[0]?i.children("."+f).last():c.prev()).children("."+g).children("."+f).last().addClass(N),c.next()[0]||c.parents("."+f)[1]||c.parents("."+f).eq(0).next()[0]||c.prev("."+f).addClass(N)):!c.next()[0]&&c.hasClass(N)&&c.prev().addClass(N))):(e=c.parent("."+g).prev(),o.showLine?(e.find("."+C).removeClass("layui-tree-icon"),e.find("."+C).children(".layui-icon").removeClass(v).addClass("layui-icon-file"),(i=e.parents("."+g).eq(0)).addClass(L),i.children("."+f).each(function(){u(this).children("."+g).children("."+f).last().addClass(N)})):e.find(".layui-tree-iconArrow").addClass(y),c.parents("."+f).eq(0).removeClass(w),c.parent("."+g).remove()),c.remove()):(c.remove(),s.elem.append(s.elemNone))})})},l.prototype.events=function(){var i=this,t=i.config;i.elem.find(".layui-tree-checkedFirst");i.setChecked(i.checkids),i.elem.find(".layui-tree-search").on("keyup",function(){var e=u(this),n=e.val(),e=e.nextAll(),a=[];e.find("."+b).each(function(){var i,e=u(this).parents("."+m);-1!=u(this).html().indexOf(n)&&(a.push(u(this).parent()),(i=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+g)[0]&&i(e.parent("."+g).parent("."+f))})(e.parent("."+f)))}),e.find("."+m).each(function(){var e=u(this).parent("."+f);e.hasClass("layui-tree-searchShow")||e.addClass(y)}),0==e.find(".layui-tree-searchShow").length&&i.elem.append(i.elemNone),t.onsearch&&t.onsearch({elem:a})}),i.elem.find(".layui-tree-search").on("keydown",function(){u(this).nextAll().find("."+m).each(function(){u(this).parent("."+f).removeClass("layui-tree-searchShow "+y)}),u(".layui-tree-emptyText")[0]&&u(".layui-tree-emptyText").remove()})},l.prototype.getChecked=function(){var e=this.config,i=[],n=[],t=(this.elem.find(".layui-form-checked").each(function(){i.push(u(this).prev()[0].value)}),function(e,a){layui.each(e,function(e,n){layui.each(i,function(e,i){if(n.id==i)return delete(i=u.extend({},n)).children,a.push(i),n.children&&(i.children=[],t(n.children,i.children)),!0})})});return t(u.extend({},e.data),n),n},l.prototype.setChecked=function(l){this.config;this.elem.find("."+f).each(function(e,i){var n=u(this).data("id"),a=u(i).children("."+m).find('input[same="layuiTreeCheck"]'),t=a.next();if("number"==typeof l){if(n==l)return a[0].checked||t.click(),!1}else"object"==typeof l&&layui.each(l,function(e,i){if(i==n&&!a[0].checked)return t.click(),!0})})},t.that={},t.config={},a.reload=function(e,i){e=t.that[e];return e.reload(i),t.call(e)},a.getChecked=function(e){return t.that[e].getChecked()},a.setChecked=function(e,i){return t.that[e].setChecked(i)},a.render=function(e){e=new l(e);return t.call(e)},e(n,a)});layui.define(["laytpl","form"],function(e){"use strict";var d=layui.$,n=layui.laytpl,t=layui.form,a="transfer",i={config:{},index:layui[a]?layui[a].index+1e4:0,set:function(e){var t=this;return t.config=d.extend({},t.config,e),t},on:function(e,t){return layui.onevent.call(this,a,e,t)}},l=function(){var t=this,e=t.config,a=e.id||t.index;return l.that[a]=t,{config:l.config[a]=e,reload:function(e){t.reload.call(t,e)},getData:function(){return t.getData.call(t)}}},s="layui-hide",h="layui-btn-disabled",r="layui-none",c="layui-transfer-box",u="layui-transfer-header",o="layui-transfer-search",f="layui-transfer-data",y=function(e){return['
            ','
            ','","
            ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
              ',"
              "].join("")},p=['
              ',y({index:0,checkAllName:"layTransferLeftCheckAll"}),'
              ','",'","
              ",y({index:1,checkAllName:"layTransferRightCheckAll"}),"
              "].join(""),v=function(e){var t=this;t.index=++i.index,t.config=d.extend({},t.config,i.config,e),t.render()};v.prototype.config={title:["\u5217\u8868\u4e00","\u5217\u8868\u4e8c"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"\u65e0\u6570\u636e",searchNone:"\u65e0\u5339\u914d\u6570\u636e"}},v.prototype.reload=function(e){var t=this;t.config=d.extend({},t.config,e),t.render()},v.prototype.render=function(){var e=this,t=e.config,a=e.elem=d(n(p).render({data:t,index:e.index})),i=t.elem=d(t.elem);i[0]&&(t.data=t.data||[],t.value=t.value||[],e.key=t.id||e.index,i.html(e.elem),e.layBox=e.elem.find("."+c),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+o),e.layData=a.find("."+f),e.layBtn=a.find(".layui-transfer-active .layui-btn"),e.layBox.css({width:t.width,height:t.height}),e.layData.css({height:(i=t.height-e.layHeader.outerHeight(),t.showSearch&&(i-=e.laySearch.outerHeight()),i-2)}),e.renderData(),e.events())},v.prototype.renderData=function(){var e=this,i=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,a=["
            • ",'',"
            • "].join("");i[t].views.push(a),delete e.selected}),e.layData.eq(0).html(i[0].views.join("")),e.layData.eq(1).html(i[1].views.join("")),e.renderCheckBtn()},v.prototype.renderForm=function(e){t.render(e,"LAY-transfer-"+this.index)},v.prototype.renderCheckBtn=function(r){var c=this,o=c.config;r=r||{},c.layBox.each(function(e){var t=d(this),a=t.find("."+f),t=t.find("."+u).find('input[type="checkbox"]'),i=a.find('input[type="checkbox"]'),n=0,l=!1;i.each(function(){var e=d(this).data("hide");(this.checked||this.disabled||e)&&n++,this.checked&&!e&&(l=!0)}),t.prop("checked",l&&n===i.length),c.layBtn.eq(e)[l?"removeClass":"addClass"](h),r.stopNone||(i=a.children("li:not(."+s+")").length,c.noneView(a,i?"":o.text.none))}),c.renderForm("checkbox")},v.prototype.noneView=function(e,t){var a=d('

              '+(t||"")+"

              ");e.find("."+r)[0]&&e.find("."+r).remove(),t.replace(/\s/g,"")&&e.append(a)},v.prototype.setValue=function(){var e=this.config,t=[];return this.layBox.eq(1).find("."+f+' input[type="checkbox"]').each(function(){d(this).data("hide")||t.push(this.value)}),e.value=t,this},v.prototype.parseData=function(t){var i=this.config,n=[];return layui.each(i.data,function(e,a){a=("function"==typeof i.parseData?i.parseData(a):a)||a,n.push(a=d.extend({},a)),layui.each(i.value,function(e,t){t==a.value&&(a.selected=!0)}),t&&t(a)}),i.data=n,this},v.prototype.getData=function(e){var t=this.config,i=[];return this.setValue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&i.push(t)})}),i},v.prototype.transfer=function(e,t){var a,i=this,n=i.config,l=i.layBox.eq(e),r=[],t=(t?((a=(t=t).find('input[type="checkbox"]'))[0].checked=!1,l.siblings("."+c).find("."+f).append(t.clone()),t.remove(),r.push(a[0].value),i.setValue()):l.each(function(e){d(this).find("."+f).children("li").each(function(){var e=d(this),t=e.find('input[type="checkbox"]'),a=t.data("hide");t[0].checked&&!a&&(t[0].checked=!1,l.siblings("."+c).find("."+f).append(e.clone()),e.remove(),r.push(t[0].value)),i.setValue()})}),i.renderCheckBtn(),l.siblings("."+c).find("."+o+" input"));""!==t.val()&&t.trigger("keyup"),n.onchange&&n.onchange(i.getData(r),e)},v.prototype.events=function(){var n=this,a=n.config;n.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var e=d(this).prev(),t=e[0].checked,a=e.parents("."+c).eq(0).find("."+f);e[0].disabled||("all"===e.attr("lay-type")&&a.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=t)}),setTimeout(function(){n.renderCheckBtn({stopNone:!0})},0))}),n.elem.on("dblclick","."+f+">li",function(e){var t=d(this),a=t.children('input[type="checkbox"]'),i=t.parent().parent();a[0].disabled||n.transfer(i.data("index"),t)}),n.layBtn.on("click",function(){var e=d(this),t=e.data("index");e.hasClass(h)||n.transfer(t)}),n.laySearch.find("input").on("keyup",function(){var i=this.value,e=d(this).parents("."+o).eq(0).siblings("."+f),t=e.children("li"),t=(t.each(function(){var e=d(this),t=e.find('input[type="checkbox"]'),a=-1!==t[0].title.indexOf(i);e[a?"removeClass":"addClass"](s),t.data("hide",!a)}),n.renderCheckBtn(),t.length===e.children("li."+s).length);n.noneView(e,t?a.text.searchNone:"")})},l.that={},l.config={},i.reload=function(e,t){e=l.that[e];return e.reload(t),l.call(e)},i.getData=function(e){return l.that[e].getData()},i.render=function(e){e=new v(e);return l.call(e)},e(a,i)});layui.define("jquery",function(e){"use strict";var a=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,d,e,i)}}),d="carousel",r="layui-this",s="layui-carousel-left",u="layui-carousel-right",c="layui-carousel-prev",m="layui-carousel-next",t="layui-carousel-arrow",l="layui-carousel-ind",i=function(e){var i=this;i.config=a.extend({},i.config,n.config,e),i.render()};i.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},i.prototype.render=function(){var e=this,i=e.config;i.elem=a(i.elem),i.elem[0]&&(e.elemItem=i.elem.find(">*[carousel-item]>*"),i.index<0&&(i.index=0),i.index>=e.elemItem.length&&(i.index=e.elemItem.length-1),i.interval<800&&(i.interval=800),i.full?i.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):i.elem.css({width:i.width,height:i.height}),i.elem.attr("lay-anim",i.anim),e.elemItem.eq(i.index).addClass(r),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},i.prototype.reload=function(e){var i=this;clearInterval(i.timer),i.config=a.extend({},i.config,e),i.render()},i.prototype.prevIndex=function(){var e=this.config.index-1;return e=e<0?this.elemItem.length-1:e},i.prototype.nextIndex=function(){var e=this.config.index+1;return e=e>=this.elemItem.length?0:e},i.prototype.addIndex=function(e){var i=this.config;i.index=i.index+(e=e||1),i.index>=this.elemItem.length&&(i.index=0)},i.prototype.subIndex=function(e){var i=this.config;i.index=i.index-(e=e||1),i.index<0&&(i.index=this.elemItem.length-1)},i.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},i.prototype.arrow=function(){var i=this,e=i.config,n=a(['",'"].join(""));e.elem.attr("lay-arrow",e.arrow),e.elem.find("."+t)[0]&&e.elem.find("."+t).remove(),e.elem.append(n),n.on("click",function(){var e=a(this).attr("lay-type");i.slide(e)})},i.prototype.indicator=function(){var i,n=this,t=n.config,e=n.elemInd=a(['
                ',(i=[],layui.each(n.elemItem,function(e){i.push("")}),i.join("")),"
              "].join(""));t.elem.attr("lay-indicator",t.indicator),t.elem.find("."+l)[0]&&t.elem.find("."+l).remove(),t.elem.append(e),"updown"===t.anim&&e.css("margin-top",-e.height()/2),e.find("li").on("hover"===t.trigger?"mouseover":t.trigger,function(){var e=a(this).index();e>t.index?n.slide("add",e-t.index):ea.length&&(a.value=a.length),parseInt(a.value)===a.value||a.half||(a.value=Math.ceil(a.value)-a.value<.5?Math.ceil(a.value):Math.floor(a.value)),'
                "),n=1;n<=a.length;n++){var t='
              • ";a.half&&parseInt(a.value)!==a.value&&n==Math.ceil(a.value)?i=i+'
              • ":i+=t}i+="
              "+(a.text?''+a.value+"\u661f":"")+"";var o=a.elem,s=o.next(".layui-rate");s[0]&&s.remove(),e.elemTemp=u(i),a.span=e.elemTemp.next("span"),a.setText&&a.setText(a.value),o.html(e.elemTemp),o.addClass("layui-inline"),a.readonly||e.action()},a.prototype.setvalue=function(e){this.config.value=e,this.render()},a.prototype.action=function(){var i=this.config,n=this.elemTemp,t=n.find("i").width();n.children("li").each(function(e){var a=e+1,l=u(this);l.on("click",function(e){i.value=a,i.half&&e.pageX-u(this).offset().left<=t/2&&(i.value=i.value-.5),i.text&&n.next("span").text(i.value+"\u661f"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),l.on("mousemove",function(e){n.find("i").each(function(){u(this).addClass(c).removeClass(s)}),n.find("i:lt("+a+")").each(function(){u(this).addClass(r).removeClass(f)}),i.half&&e.pageX-u(this).offset().left<=t/2&&l.children("i").addClass(o).removeClass(r)}),l.on("mouseleave",function(){n.find("i").each(function(){u(this).addClass(c).removeClass(s)}),n.find("i:lt("+Math.floor(i.value)+")").each(function(){u(this).addClass(r).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&n.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(o).removeClass("layui-icon-rate-solid layui-icon-rate")})})},a.prototype.events=function(){this.config},l.render=function(e){e=new a(e);return function(){var a=this;return{setvalue:function(e){a.setvalue.call(a,e)},config:a.config}}.call(e)},e(i,l)});layui.define("jquery",function(l){"use strict";var g=layui.$,e=function(l){};e.prototype.load=function(l){var t,i,n,e,r,o,a,c,m,s,u,f,y,d=this,p=0,h=g((l=l||{}).elem);if(h[0])return e=g(l.scrollElem||document),r=l.mb||50,o=!("isAuto"in l)||l.isAuto,a=l.end||"\u6ca1\u6709\u66f4\u591a\u4e86",c=l.scrollElem&&l.scrollElem!==document,s=g('"),h.find(".layui-flow-more")[0]||h.append(s),u=function(l,e){l=g(l),s.before(l),(e=0==e||null)?s.html(a):s.find("a").html(m),i=e,t=null,y&&y()},(f=function(){t=!0,s.find("a").html(''),"function"==typeof l.done&&l.done(++p,u)})(),s.find("a").on("click",function(){g(this);i||t||f()}),l.isLazyimg&&(y=d.lazyimg({elem:l.elem+" img",scrollElem:l.scrollElem})),o&&e.on("scroll",function(){var e=g(this),o=e.scrollTop();n&&clearTimeout(n),!i&&h.width()&&(n=setTimeout(function(){var l=(c?e:g(window)).height();(c?e.prop("scrollHeight"):document.documentElement.scrollHeight)-o-l<=r&&(t||f())},100))}),d},e.prototype.lazyimg=function(l){var e,c=this,m=0,s=g((l=l||{}).scrollElem||document),u=l.elem||"img",f=l.scrollElem&&l.scrollElem!==document,y=function(e,l){var o,t=s.scrollTop(),l=t+l,i=f?e.offset().top-s.offset().top+t:e.offset().top;t<=i&&i<=l&&e.attr("lay-src")&&(o=e.attr("lay-src"),layui.img(o,function(){var l=c.lazyimg.elem.eq(m);e.attr("src",o).removeAttr("lay-src"),l[0]&&n(l),m++},function(){c.lazyimg.elem.eq(m);e.removeAttr("lay-src")}))},n=function(l,e){var o=(f?e||s:g(window)).height(),t=s.scrollTop(),i=t+o;if(c.lazyimg.elem=g(u),l)y(l,o);else for(var n=0;n','
              '+e+"
              ",'
              ','',"
              ",""].join(""));return r.ie&&r.ie<8?c.removeClass("layui-hide").addClass("layui-show"):(u[0]&&u.remove(),y.call(l,o,c[0],n),c.addClass("layui-hide").after(o),l.index)},e.prototype.getContent=function(t){t=n(t);if(t[0])return a(t[0].document.body.innerHTML)},e.prototype.getText=function(t){t=n(t);if(t[0])return p(t[0].document.body).text()},e.prototype.setContent=function(t,e,i){var a=n(t);a[0]&&(i?p(a[0].document.body).append(e):p(a[0].document.body).html(e),layedit.sync(t))},e.prototype.sync=function(t){t=n(t);t[0]&&p("#"+t[1].attr("textarea")).val(a(t[0].document.body.innerHTML))},e.prototype.getSelection=function(t){var t=n(t);if(t[0])return t=f(t[0].document),document.selection?t.text:t.toString()},function(l,n,o){var c=this,s=l.find("iframe");s.css({height:o.height}).on("load",function(){var t=s.contents(),e=s.prop("contentWindow"),i=t.find("head"),a=p([""].join("")),t=t.find("body");i.append(a),t.attr("contenteditable","true").css({"min-height":o.height}).html(n.value||""),u.apply(c,[e,s,n,o]),b.call(c,e,l,o)})}),n=function(t){t=p("#LAY_layedit_"+t);return[t.prop("contentWindow"),t]},a=function(t){return t=8==r.ie?t.replace(/<.+>/g,function(t){return t.toLowerCase()}):t},u=function(e,t,i,a){var l=e.document,n=p(l.body);n.on("keydown",function(t){if(13===t.keyCode){var e=f(l);if("pre"===h(e).parentNode.tagName.toLowerCase())return t.shiftKey?void 0:(m.msg("\u8bf7\u4f7f\u7528shift+enter\u8f93\u5165\u4ee3\u7801\u5757"),!1);l.execCommand("formatBlock",!1,"

              ")}}),p(i).parents("form").on("submit",function(){var t=n.html();8==r.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),i.value=t}),n.on("paste",function(t){l.execCommand("formatBlock",!1,"

              "),setTimeout(function(){o.call(e,n),i.value=n.html()},100)})},o=function(t){this.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),p(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},f=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},h=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,e,i){var a,l,n=this.document,o=document.createElement(t);for(a in e)o.setAttribute(a,e[a]);o.removeAttribute("text"),n.selection?(l=i.text||e.text,"a"===t&&!l||(l&&(o.innerHTML=l),i.pasteHTML(p(o).prop("outerHTML")),i.select())):(l=i.toString()||e.text,"a"===t&&!l||(l&&(o.innerHTML=l),i.deleteContents(),i.insertNode(o)))},g=function(e,t){var i=this.document,a="layedit-tool-active",i=h(f(i)),l=function(t){return e.find(".layedit-tool-"+t)};t&&t[t.hasClass(a)?"removeClass":"addClass"](a),e.find(">i").removeClass(a),l("unlink").addClass(d),p(i).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||l("b").addClass(a),"i"!==t&&"em"!==t||l("i").addClass(a),"u"===t&&l("u").addClass(a),"strike"===t&&l("d").addClass(a),"p"===t&&l("center"===e?"center":"right"===e?"right":"left").addClass(a),"a"===t&&(l("link").addClass(a),l("unlink").removeClass(d))})},b=function(c,t,s){var l=c.document,n=p(l.body),o={link:function(i){var t=h(i),a=p(t).parent();x.call(n,{href:a.attr("href"),target:a.attr("target")},function(t){var e=a[0];"A"===e.tagName?e.href=t.url:v.call(c,"a",{target:t.target,href:t.url,text:t.url},i)})},unlink:function(t){l.execCommand("unlink")},face:function(e){const{elem:t,defaultFaceList:i,recentFaceList:a,customFaceList:l,textFaceList:n,clickFaceCallback:o}=s.face||{};k.call(this,function(t){o&&o(t),"text"===t.type?v.call(c,"span",{text:t.alt},e):v.call(c,"img",{src:t.src,type:t.type,alt:t.alt,"class":t["class"]},e)},i,a,l,n,t)},image:function(n){var o=this;layui.use("upload",function(t){const{url:e,type:i,chooseImageCallback:a,uploadImageCallback:l}=s.image||{};t.render({url:e,method:i,elem:p(o).find("input")[0],choose:function(t){a&&"function"==typeof a&&a(t)},done:function(t){0==t.code&&(t.data=t.data||{},v.call(c,"img",{src:t.data.src,alt:t.data.title,id:t.data.id,"class":"tl-rtc-app-textarea-img"},n)),l&&"function"==typeof l&&l(t)}})})},code:function(e){C.call(n,function(t){v.call(c,"pre",{text:t.code,"lay-lang":t.lang},e)})},help:function(){m.open({type:2,title:"\u5e2e\u52a9",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["","no"]})},history:function(){var t=(s.history||{})["historyCallback"];t&&"function"==typeof t&&t()},quickMessage:function(){var t=(s.quickMessage||{})["quickMessageCallback"];t&&"function"==typeof t&&t()},card:function(){var t=(s.card||{})["cardCallback"];t&&"function"==typeof t&&t()},voice:function(){var t=(s.voice||{})["voiceCallback"];t&&"function"==typeof t&&t()},record:function(){var t=(s.record||{})["recordCallback"];t&&"function"==typeof t&&t()},printCut:function(){var t=(s.printCut||{})["printCutCallback"];t&&"function"==typeof t&&t()},cusFace:function(){var t=(s.cusFace||{})["cusFaceCallback"];t&&"function"==typeof t&&t()},draw:function(){var t=(s.draw||{})["drawCallback"];t&&"function"==typeof t&&t()},file:function(){var n=this;layui.use("upload",function(t){const{url:e,type:i,chooseFileCallback:a,uploadFileCallback:l}=s.file||{};t.render({url:e,accept:"file",method:i,auto:!1,elem:p(n).find("input")[0],choose:function(t){a&&"function"==typeof a&&a(t)},done:function(t){l(t)}})})}},u=t.find(".layui-layedit-tool"),e=function(){var t,e=p(this),i=e.attr("layedit-event"),a=e.attr("lay-command");e.hasClass(d)||(n.focus(),(t=f(l)).commonAncestorContainer,a?(l.execCommand(a),/justifyLeft|justifyCenter|justifyRight/.test(a)&&l.execCommand("formatBlock",!1,"

              "),setTimeout(function(){n.focus()},10)):o[i]&&o[i].call(this,t),g.call(c,u,e))},i=/image/;u.find(">i").on("mousedown",function(){var t=p(this).attr("layedit-event");i.test(t)||e.call(this)}).on("click",function(){var t=p(this).attr("layedit-event");i.test(t)&&e.call(this)}),n.on("click",function(){g.call(c,u),m.close(k.index)})},x=function(t,i){var a=this,t=m.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"\u8d85\u94fe\u63a5",skin:"layui-layer-msg",content:['

                ','
              • ','','
                ','',"
                ","
              • ",'
              • ','','
                ','",'","
                ","
              • ",'
              • ','','',"
              • ","
              "].join(""),success:function(t,e){l.render("radio"),t.find(".layui-btn-primary").on("click",function(){m.close(e),a.focus()}),l.on("submit(layedit-link-yes)",function(t){m.close(x.index),i&&i(t.field)})}});x.index=t},k=function(i,t,e,a,l,n){o={},layui.each(t||[],function(t,e){o[e]=layui.cache.dir+"images/face/"+t+".gif"});var o,c,s,u,r=o,d=(c={},layui.each(e||[],function(t,e){c[e.alt]=e}),c),y=(s={},layui.each(a,function(t,e){s[e]=layui.cache.dir+"images/face/"+t+".gif"}),s),f=(u={},layui.each(l,function(t,e){u[e]=e}),u);return k.hide=k.hide||function(t){"face"!==p(t.target).attr("layedit-event")&&m.close(k.index)},k.index=m.tips(function(){var i=[],a=[],l=[],n=[];layui.each(d,function(t,e){"img"===e.type?i.push('
            • '+t+'
            • '):i.push('
            • '+e.alt+"
            • ")}),layui.each(r,function(t,e){a.push('
            • '+t+'
            • ')}),layui.each(y,function(t,e){l.push('
            • '+t+'
            • ')}),layui.each(f,function(t,e){n.push('
            • '+e+"
            • ")});return` @@ -20,4 +20,4 @@ 可爱文字 专属定制 - `}(),n||document.querySelector(".layui-icon.layedit-tool-face")||document.body,{tips:1,time:0,shade:.01,shadeClose:!0,skin:"layui-box layui-util-face tl-rtc-app-face-layer",maxWidth:500,fixed:!1,success:function(t,e){t.css({}).find("#recent-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:d[this.title].src,type:this.getAttribute("face-type"),alt:this.title,style:"width:30px; height:30px;user-select: none;-webkit-user-drag: none;"}),m.close(e)}),t.css({}).find("#default-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:r[this.title],type:this.getAttribute("face-type"),alt:this.title,style:"width:30px; height:30px;user-select: none;-webkit-user-drag: none;"}),m.close(e)}),t.css({}).find("#text-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:y[this.title],type:this.getAttribute("face-type"),alt:this.title}),m.close(e)}),t.css({}).find("#custom-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:f[this.title],type:this.getAttribute("face-type"),alt:this.title,style:"width:30px; height:30px;user-select: none;-webkit-user-drag: none;"}),m.close(e)}),p(".tl-rtc-app-face-tab span").on("click",function(){var t=p(this).attr("id"),e=p(".tl-rtc-app-face-search-content"),t=(p(".tl-rtc-app-face-tab span").removeClass("active"),p(this).addClass("active"),p(`#${t}-ul`)),i=e.offset().top,t=t.offset().top,t=e.scrollTop()+(t-i);e.animate({scrollTop:t},{duration:200,easing:"swing",queue:!1})})}})},C=function(i){var a=this,t=m.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"\u63d2\u5165\u4ee3\u7801",skin:"layui-layer-msg",content:['
                ','
              • ','','
                ','","
                ","
              • ",'
              • ','','
                ','',"
                ","
              • ",'
              • ','','',"
              • ","
              "].join(""),success:function(t,e){l.render("select"),t.find(".layui-btn-primary").on("click",function(){m.close(e),a.focus()}),l.on("submit(layedit-code-yes)",function(t){m.close(C.index),i&&i(t.field)})}});C.index=t},w={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',code:'',cusFace:'',face:''},c=new e;e.prototype.face=function(t){const{callback:e,clickFaceCallback:i,defaultFaceList:a,recentFaceList:l,customFaceList:n,textFaceList:o,elem:c}=t||{};p(function(){return k.call(this,function(t){e&&e(t),i&&i(t)},a,l,n,o,c)}.bind(this))},t(i,c)});layui.define(["lay","util"],function(e){"use strict";var d=layui.$,o=layui.util,u="layui-code-title",l={elem:".layui-code",title:"</>",about:"",ln:!0};e("code",function(e){var c=e=d.extend({},l,e);e.elem=d(e.elem),e.elem[0]&&layui.each(e.elem.get().reverse(),function(e,l){var t,a=d(l),i=(i=a.html(),d.trim(i).replace(/^\n|\n$/,"")),l=d.extend({},c,lay.options(l),(t={},layui.each(["title","height","encode","skin","about"],function(e,l){var i=a.attr("lay-"+l);"string"==typeof i&&(t[l]=i)}),t)),s=l.ln?"ol":"ul",s=d("<"+s+' class="layui-code-'+s+'">'),n=d('
              ');a.addClass("layui-code-view layui-box"),l.skin&&("notepad"===l.skin&&(l.skin="dark"),a.addClass("layui-code-"+l.skin)),i=(i=l.encode?o.escape(i):i).replace(/[\r\t\n]+/g,"
            • "),a.html(s.html("
            • "+i+"
            • ")),a.children("."+u)[0]||(n.html(l.title+(l.about?'
              '+l.about+"
              ":"")),a.prepend(n)),0<(i=Math.floor(s.find("li").length/100))&&s.css("margin-left",i+"px"),l.height&&s.css("max-height",l.height)})})}).addcss("modules/code.css?v=3","skincodecss"); \ No newline at end of file + `}(),n||document.querySelector(".layui-icon.layedit-tool-face")||document.body,{tips:1,time:0,shade:.01,shadeClose:!0,skin:"layui-box layui-util-face tl-rtc-app-face-layer",maxWidth:500,fixed:!1,success:function(t,e){t.css({}).find("#recent-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:d[this.title].src,type:this.getAttribute("face-type"),alt:this.title,"class":"tl-rtc-app-textarea-face-img"}),m.close(e)}),t.css({}).find("#default-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:r[this.title],type:this.getAttribute("face-type"),alt:this.title,"class":"tl-rtc-app-textarea-face-img"}),m.close(e)}),t.css({}).find("#text-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:f[this.title],type:this.getAttribute("face-type"),alt:this.title}),m.close(e)}),t.css({}).find("#custom-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:y[this.title],type:this.getAttribute("face-type"),alt:this.title,"class":"tl-rtc-app-textarea-face-img"}),m.close(e)}),p(".tl-rtc-app-face-tab span").on("click",function(){var t=p(this).attr("id"),e=p(".tl-rtc-app-face-search-content"),t=(p(".tl-rtc-app-face-tab span").removeClass("active"),p(this).addClass("active"),p(`#${t}-ul`)),i=e.offset().top,t=t.offset().top,t=e.scrollTop()+(t-i);e.animate({scrollTop:t},{duration:200,easing:"swing",queue:!1})})}})},C=function(i){var a=this,t=m.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"\u63d2\u5165\u4ee3\u7801",skin:"layui-layer-msg",content:['
                ','
              • ','','
                ','","
                ","
              • ",'
              • ','','
                ','',"
                ","
              • ",'
              • ','','',"
              • ","
              "].join(""),success:function(t,e){l.render("select"),t.find(".layui-btn-primary").on("click",function(){m.close(e),a.focus()}),l.on("submit(layedit-code-yes)",function(t){m.close(C.index),i&&i(t.field)})}});C.index=t},w={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',code:'',image:'',cusFace:'',face:'',history:'',voice:'',record:'',printCut:'',draw:'',file:'',quickMessage:'',card:''},c=new e;e.prototype.face=function(t){const{callback:e,clickFaceCallback:i,defaultFaceList:a,recentFaceList:l,customFaceList:n,textFaceList:o,elem:c}=t||{};p(function(){return k.call(this,function(t){e&&e(t),i&&i(t)},a,l,n,o,c)}.bind(this))},t(i,c)});layui.define(["lay","util"],function(e){"use strict";var d=layui.$,o=layui.util,u="layui-code-title",l={elem:".layui-code",title:"</>",about:"",ln:!0};e("code",function(e){var c=e=d.extend({},l,e);e.elem=d(e.elem),e.elem[0]&&layui.each(e.elem.get().reverse(),function(e,l){var t,a=d(l),i=(i=a.html(),d.trim(i).replace(/^\n|\n$/,"")),l=d.extend({},c,lay.options(l),(t={},layui.each(["title","height","encode","skin","about"],function(e,l){var i=a.attr("lay-"+l);"string"==typeof i&&(t[l]=i)}),t)),s=l.ln?"ol":"ul",s=d("<"+s+' class="layui-code-'+s+'">'),n=d('
              ');a.addClass("layui-code-view layui-box"),l.skin&&("notepad"===l.skin&&(l.skin="dark"),a.addClass("layui-code-"+l.skin)),i=(i=l.encode?o.escape(i):i).replace(/[\r\t\n]+/g,"
            • "),a.html(s.html("
            • "+i+"
            • ")),a.children("."+u)[0]||(n.html(l.title+(l.about?'
              '+l.about+"
              ":"")),a.prepend(n)),0<(i=Math.floor(s.find("li").length/100))&&s.css("margin-left",i+"px"),l.height&&s.css("max-height",l.height)})})}).addcss("modules/code.css?v=3","skincodecss"); \ No newline at end of file diff --git a/system-res/system.html b/system-res/system.html new file mode 100644 index 0000000..a6f24ff --- /dev/null +++ b/system-res/system.html @@ -0,0 +1,217 @@ + + + + + + TL-RTC-APP 系统管理 + + + + + + + + + + + + + + + + + + + + + + + +
              + +
              + +
              + +
              + +
              + + +
              + + + + + +
              + + + + + + + + + + + + + + + + + + + + +
              +
              +
              + + + + + + + + + + + + + + diff --git a/tlapi.js b/tlapi.js index eb81f4b..834c6a8 100644 --- a/tlapi.js +++ b/tlapi.js @@ -20,10 +20,10 @@ const fs = require('fs'); const https = require('https'); const loginAuthHandler = require("./src/middleware/loginAuth"); const { loginRoleHandler, loginChannelRoleHandler } = require("./src/middleware/loginRole"); +const { storageConfig } = require("./src/middleware/multerConfig"); const resRouter = { - "/": "dist/", - "/website/": "website-res/" + "/": "web-dist/", } @@ -44,11 +44,13 @@ async function start() { app.use(loginRoleHandler) // channel role auth app.use(loginChannelRoleHandler) + // parse file upload + app.use(multer({ storage: storageConfig() }).any()); tlConsole("db init start ...") if (!conf.db_open) {// 没开db - tlConsole("db not open ...") + tlConsoleError("db not open ...") }else{ await dbInit(); } diff --git a/tlrtcapp.env b/tlrtcapp.env index d9c2366..e53eab3 100644 --- a/tlrtcapp.env +++ b/tlrtcapp.env @@ -1,20 +1,27 @@ #-----------------以下为基础配置-----------------# -tl_rtc_app_version=0.0.1 +tl_rtc_app_version=0.0.2 +## 后台管理端口 +tl_rtc_app_super_api_port=9098 ## api服务端口 tl_rtc_app_api_port=9096 ## websocket服务端口 tl_rtc_app_socket_port=9097 ## websocket服务地址 tl_rtc_app_socket_host=localhost:9097 +## admin帐号 +tl_rtc_app_admin_user_email=tlrtcapp@demo.com +## admin密码 +tl_rtc_app_admin_password=123456 -#-----------------以下为集群配置-----------------# -## 是否开启集群 -tl_rtc_app_cluster_open=true -## 集群注册中心 -tl_rtc_app_cluster_registry=redis -## 集群key前缀 -tl_rtc_app_cluster_prefix=tlrtcappcluster +#-----------------以下为redis缓存相关配置-----------------# +## redis地址 +tl_rtc_app_redis_host=localhost +## redis端口 +tl_rtc_app_redis_port=6379 +## redis auth密码 +tl_rtc_app_redis_password= + #-----------------以下为webrtc相关配置-----------------# ## webrtc-stun中继服务地址 @@ -31,17 +38,6 @@ tl_rtc_app_webrtc_turn_secret=tlrtcapp tl_rtc_app_webrtc_turn_expire=86400000 -#-----------------以下为redis缓存相关配置-----------------# -## 是否开启redis -tl_rtc_app_redis_open=true -## redis地址 -tl_rtc_app_redis_host=localhost -## redis端口 -tl_rtc_app_redis_port=6379 -## redis auth密码 -tl_rtc_app_redis_password= - - #-----------------以下为mysql数据库相关配置-----------------# ## 是否开启数据库 tl_rtc_app_db_open=true @@ -50,7 +46,7 @@ tl_rtc_app_db_mysql_host=localhost ## 数据库端口 tl_rtc_app_db_mysql_port=3306 ## 数据库名称 -tl_rtc_app_db_mysql_dbName=tlrtcapp +tl_rtc_app_db_mysql_database=tlrtcapp ## 数据库用户名 tl_rtc_app_db_mysql_user=root ## 数据库密码 @@ -59,29 +55,7 @@ tl_rtc_app_db_mysql_password=123456 #-----------------以下为oss相关配置-----------------# # 服务器本地文件存储路径 -tl_rtc_app_file_folder='./tmp' -# 腾讯云对象存储secretId -tl_rtc_app_oss_tx_secretId= -# 腾讯云对象存储secretKey -tl_rtc_app_oss_tx_secretKey= -# 腾讯云对象存储bucket -tl_rtc_app_oss_tx_bucket= -# 腾讯云对象存储region -tl_rtc_app_oss_tx_region= -# 腾讯云对象存储域名 -tl_rtc_app_oss_tx_domain= - -# 阿里云对象存储secretId -tl_rtc_app_oss_ali_secretId= -# 阿里云对象存储secretKey -tl_rtc_app_oss_ali_secretKey= -# 阿里云对象存储bucket -tl_rtc_app_oss_ali_bucket= -# 阿里云对象存储region -tl_rtc_app_oss_ali_region= -# 阿里云对象存储域名 -tl_rtc_app_oss_ali_domain= - +tl_rtc_app_file_folder='tmp' #-----------------以下为邮箱相关配置-----------------# ## 邮箱地址 @@ -91,12 +65,4 @@ tl_rtc_app_mail_port=465 ## 邮箱用户名 tl_rtc_app_mail_user= ## 邮箱密码 -tl_rtc_app_mail_password= - -#-----------------以下为任务队列相关配置-----------------# -## 任务队列Redis地址 -tl_rtc_app_task_queue_redis_host=localhost -## 任务队列Redis端口 -tl_rtc_app_task_queue_redis_port=6379 -## 任务队列Redis密码 -tl_rtc_app_task_queue_redis_password= \ No newline at end of file +tl_rtc_app_mail_password= \ No newline at end of file diff --git a/tlsocket.js b/tlsocket.js index 1e3ceb8..a29ae4c 100644 --- a/tlsocket.js +++ b/tlsocket.js @@ -38,7 +38,7 @@ async function start(){ tlConsole("db init start ...") if (!conf.db_open) {// 没开db - tlConsole("db not open ...") + tlConsoleError("db not open ...") }else{ await dbInit(); } diff --git a/tlsuperapi.js b/tlsuperapi.js new file mode 100644 index 0000000..7d0574d --- /dev/null +++ b/tlsuperapi.js @@ -0,0 +1,102 @@ +const { get_env_config, load_env_config } = require("./conf/env_config"); +//加载环境变量 +load_env_config(); +//获取环境变量 +const conf = get_env_config(); +const { + tlConsoleSuperApiIcon, tlConsole, tlConsoleError +} = require("./src/utils/utils"); +//打印logo +tlConsoleSuperApiIcon() + +const express = require("express"); +const bodyParser = require('body-parser'); +const multer = require('multer'); +const cookieParser = require('cookie-parser'); +const apiRouters = require("./src/controller/router")(); +const { dbInit } = require("./src/tables/db"); //db +const { redisInit } = require("./src/utils/cache/redis"); //redis +const fs = require('fs'); +const https = require('https'); +const loginAuthHandler = require("./src/middleware/loginAuth"); +const { loginRoleHandler, loginChannelRoleHandler } = require("./src/middleware/loginRole"); +const { storageConfig } = require("./src/middleware/multerConfig"); +const { + checkDefaultBeforStartServer +} = require("./src/middleware/checkAdmin"); + +const resRouter = { + "/": "system-dist/", +} + + +process.on('unhandledRejection', (reason, promise) => { + tlConsoleError('Unhandled Rejection reason:', reason); +}) + +async function start() { + let app = express(); + + // parse json + app.use(bodyParser.json()); + // parse cookie + app.use(cookieParser()); + // login auth + app.use(loginAuthHandler) + // role auth + app.use(loginRoleHandler) + // channel role auth + app.use(loginChannelRoleHandler) + // parse file upload + app.use(multer({ storage: storageConfig() }).any()); + + + tlConsole("db init start ...") + if (!conf.db_open) {// 没开db + tlConsoleError("db not open ...") + }else{ + await dbInit(); + } + tlConsole("db init done ...") + + tlConsole("redis init start ...") + await redisInit(); + tlConsole("redis init done ...") + + tlConsole("api init start ...") + for (let key in apiRouters) { + let keyRouterCount = 0 + apiRouters[key].stack.forEach(function (r) { + if (r.route && r.route.path) keyRouterCount++; + }) + tlConsole(key, "router count", keyRouterCount) + } + // api + for (let key in apiRouters) app.use(key, apiRouters[key]) + // res api + for (let key in resRouter) app.use(key, express.static(resRouter[key])); + tlConsole("api init done ...") + + // check admin user + await checkDefaultBeforStartServer(); + + //start server + if(process.env.tl_rtc_app_env_mode === 'http'){ + app.listen(conf.super_api_port); + }else { + let options = { + key: fs.readFileSync('./conf/keys/server.key'), + cert: fs.readFileSync('./conf/keys/server.crt') + } + https.createServer(options,app).listen(conf.super_api_port); + } + + tlConsole(process.env.tl_rtc_app_env_mode, "super-api", " server running on", conf.super_api_port, "successful") +} + + +try{ + start(); +}catch(e){ + tlConsoleError(e) +} \ No newline at end of file diff --git a/web-res/css/channel/channel-invite.css b/web-res/css/channel/channel-invite.css new file mode 100644 index 0000000..da9b10a --- /dev/null +++ b/web-res/css/channel/channel-invite.css @@ -0,0 +1,288 @@ +/*********************************************************************************** +************************************************************************************ + 频道邀请好友列表 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-layer-channel-invite{ + background: var(--skin-body-background) !important; + color: var(--skin-body-color) !important; +} + +.tl-rtc-app-layer-channel-invite .layui-layer-title { + color: var(--skin-body-color) !important; + border-bottom: 1px solid var(--skin-body-border-color) !important; + border-radius: 6px; +} + +.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header{ + display: flex; + width: 100%; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + align-items: center; +} + +.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-search{ + padding: 0px 15px 5px 15px; + width: calc(50% - 30px); +} + +.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-search i{ + position: relative; + margin-left: 8px; + top: 25px; + color: var(--skin-channel-content-invite-search-i-color); +} + +.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-search input{ + width: 100%; + height: 30px; + padding-left: 30px !important; + border-radius: 4px; + background: var(--skin-channel-content-invite-search-input-background); + color: var(--skin-channel-content-invite-search-input-color); + font-size: 13px; + letter-spacing: 1px; + border-width: 0.5px; + border-color: var(--skin-channel-content-invite-search-input-background); +} + +.tl-rtc-app-right-channel-content-invite-body{ + display: flex; + flex-direction: row; + height: 100%; +} + +.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-title{ + padding: 15px 15px 5px 15px; + width: calc(50% - 30px); + font-size: 13px; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list{ + width: 50%; + border-right: 1px solid var(--skin-body-border-color); + user-select: none; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list-item{ + display: flex; + width: auto; + flex-direction: row; + justify-content: flex-start; + align-items: center; + flex-wrap: nowrap; + line-height: 40px; + padding:0 25px 0 25px; + cursor: pointer; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list-item img{ + width: 28px; + height: 28px; + margin-right: 10px; + border-radius: 3px; + margin-left: 5px; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list-item:hover{ + background: var(--skin-channel-list-item-hover-background); +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-list-item-username{ + font-size: 13px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + max-width: 150px; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list{ + width: 50%; + user-select: none; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-empty{ + text-align: center; + line-height: 80px; + color: var(--skin-body-color); + font-size: 12px; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item{ + display: flex; + width: auto; + flex-direction: row; + justify-content: flex-start; + align-items: center; + flex-wrap: nowrap; + padding:0 25px 0 25px; + cursor: pointer; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item img{ + width: 28px; + height: 28px; + margin-right: 10px; + margin-left: 5px; + border-radius: 3px; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item svg{ + position: absolute; + right: 20px; + color: grey; +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item:hover{ + background: var(--skin-channel-content-invite-choose-list-item-hover-background); +} + +.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-item-username{ + font-size: 13px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} + + +/********** 移动端样式 ***********/ +.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header{ + display: flex; + width: 100%; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + align-items: center; +} + +.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header-search{ + padding: 0px 15px 5px 15px; + width: calc(100% - 30px); +} + +.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header-search i{ + position: relative; + margin-left: 8px; + top: 25px; + color: var(--skin-channel-content-invite-search-i-color); +} + +.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header-search input{ + width: 100%; + height: 30px; + padding-left: 30px !important; + border-radius: 4px; + background: var(--skin-channel-content-invite-search-input-background); + color: var(--skin-channel-content-invite-search-input-color); + border-color: var(--skin-channel-content-invite-search-input-background); + font-size: 13px; + letter-spacing: 1px; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile{ + display: flex; + flex-direction: column-reverse; + height: 100%; + flex-wrap: wrap; + justify-content: center; + align-items: center; + align-content: center; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list{ + width: 100%; + border-right: 1px solid var(--skin-body-border-color); + border-top: 1px solid var(--skin-body-border-color) !important; + user-select: none; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list-item{ + display: flex; + width: auto; + flex-direction: row; + justify-content: flex-start; + align-items: center; + flex-wrap: nowrap; + line-height: 40px; + padding:0 25px 0 25px; + cursor: pointer; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list-item img{ + width: 28px; + height: 28px; + margin-right: 10px; + border-radius: 3px; + margin-left: 5px; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list-item:hover{ + background: var(--skin-channel-content-invite-choose-list-item-hover-background); +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-list-item-username{ + font-size: 13px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + max-width: 150px; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list{ + user-select: none; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-empty{ + text-align: center; + line-height: 80px; + color: var(--skin-channel-content-invite-choose-list-empty-color); + font-weight: bold; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item{ + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + cursor: pointer; + flex-wrap: wrap; + align-content: center; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item img{ + width: 28px; + height: 28px; + margin-right: 10px; + margin-left: 5px; + border-radius: 3px; + margin-bottom: 5px; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item svg{ + position: absolute; + right: 14px; + color: grey; + top: 10px; +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item:hover{ + background: var(--skin-channel-content-invite-choose-list-item-hover-background); +} + +.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-item-username{ + font-size: 13px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} +/*********************************************************************************** +************************************************************************************ + 频道邀请好友列表 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/channel/channel-list.css b/web-res/css/channel/channel-list.css new file mode 100644 index 0000000..3c9b766 --- /dev/null +++ b/web-res/css/channel/channel-list.css @@ -0,0 +1,875 @@ +/*********************************************************************************** +************************************************************************************ + 消息频道列表 start +************************************************************************************ +************************************************************************************/ +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel +.tl-rtc-app-left-panel-no-channel{ + text-align: center; + line-height: 100px; + font-size: 14px; + font-weight: bold; + color: var(--skin-channel-list-no-channel-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top{ + height: var(--left-channel-top); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header{ + display: flex; + padding: 15px 10px 15px 0px; + flex-direction: row; + justify-content: space-between; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-title{ + font-size: 16px; + font-weight: bold; + color: var(--skin-top-header-title-color); + margin-right: 10px; + margin-left: 10px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + width: 80%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool{ + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + transition: all 0.3s; + background: var(--skin-top-header-tool-background); + padding: 2px 5px; + border-radius: 4px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool svg{ + width: 14px; + height: 14px; + fill: var(--skin-top-header-tool-fill-color); + transition: all 0.3s; + scale: 1.5; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool:hover{ + box-shadow: var(--skin-top-header-tool-hover-shadow); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool:hover svg{ + fill: var(--skin-top-header-tool-hover-fill-color); + scale: 1.7; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search{ + padding: 5px 0; + line-height: 0px; + width: 96%; + margin-left: 2%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search i{ + position: relative; + margin-left: 8px; + top: 16px; + color: var(--skin-channel-top-search-i-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search svg{ + color: var(--skin-channel-top-search-i-color); + position: relative; + float: right; + right: 8px; + margin-top: -22px; + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search input{ + width: 100%; + height: 30px; + padding-left: 30px !important; + border-radius: 4px; + background: var(--skin-channel-top-search-input-background); + color: var(--skin-channel-top-search-input-color); + font-size: 13px; + letter-spacing: 1px; + border-width: 0.5px; + border-color: var(--skin-channel-top-search-input-background); +} + +.tl-rtc-app-left-panel-channel-top-tag{ + padding: 7px 10px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list span{ + background: var(--skin-body-background); + font-size: 12px; + border-radius: 4px; + color: var(--skin-channel-list-item-message-color); + cursor: pointer; + word-break: keep-all; + white-space: nowrap; + text-align: center; + letter-spacing: 1px; + line-height: 20px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list span:hover{ + background: var(--skin-channel-list-item-hover-background); + color: var(--skin-body-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list .tag-active{ + background: var(--skin-channel-list-item-hover-background); + color: var(--skin-body-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel{ + height: calc(100% - var(--left-channel-top)); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel #channelListSwiper{ + height: calc(100% - 3px); +} + +.tl-rtc-app-left-panel-channel-sub{ + height: 100%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item{ + display: flex; + align-items: center; + cursor: pointer; + border-radius: 2px; + transition: all 0.3s; +} + +.tl-rtc-app-left-panel-channel-item-actions{ + display: flex; + position: absolute; + right: 10px; + top: 50%; + transform: translateY(-50%); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item:hover{ + background: var(--skin-channel-list-item-hover-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-active{ + background: var(--skin-channel-list-item-hover-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-top{ + background: var(--skin-channel-list-item-top-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-img{ + width: 20%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-img img{ + height: 32px; + width: 32px; + margin: 25% 20%; + -webkit-user-drag: none; + border-radius: 3px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content{ + width: 55%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content div{ + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-nickname{ + font-weight: bold; + font-size: 13px; + margin-top: 5px; + letter-spacing: 0.5px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-nickname-black{ + font-size: 11px; + color: red; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-nickname-black svg{ + fill: red; + scale: 1.2; + padding: 0 1px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message{ + font-size: 12px; + margin-top: 10px; + color: var(--skin-channel-list-item-message-color); + letter-spacing: 0.5px; + display: flex; + flex-direction: row; + align-items: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message p{ + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} + +#tl-rtc-app .tl-rtc-app-left .textarea-at-user-text{ + color: var(--skin-channel-list-item-message-at-user-text-color); + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message +.tl-rtc-app-left-panel-channel-item-content-message-at-me{ + color: var(--skin-channel-list-item-message-at-me-text-color); + cursor: pointer; + margin-right: 5px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message svg{ + height: 15px; + width: 14px; + margin-right: 3px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message +.tl-rtc-app-left-panel-channel-item-content-message-file{ + display: flex; + align-items: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message +.tl-rtc-app-left-panel-channel-item-content-message-file-info{ + margin-left: 5px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message img{ + width: 24px !important; + height: 24px !important; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other{ + width: 25%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other div{ + text-align: right; + font-size: 12px; + scale: 0.9; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-time{ + margin-top: 10px; + color: var(--skin-channel-list-item-time-color); + padding-right: 8px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-unread{ + margin-top: 10px; + padding-right: 8px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-unread div{ + line-height: 16px !important; + padding: 0 4px; + border-radius: 4px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-unread .layui-badge{ + display: inline; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick{ + display: flex; + height: 100%; + flex-wrap: nowrap; + flex-direction: row; + justify-content: flex-start; + text-align: center; + align-items: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick div{ + font-size: 12px; + width: calc(100% / 5); + height: 100%; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: center; + align-items: center; + word-break: keep-all; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick +.tl-rtc-app-left-panel-channel-item-quick-mark-unread{ + background-color: var(--skin-channel-list-item-quick-mark-unread-background); + color: var(--skin-channel-list-item-quick-mark-unread-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick +.tl-rtc-app-left-panel-channel-item-quick-top{ + background-color: var(--skin-channel-list-item-quick-top-background); + color: var(--skin-channel-list-item-quick-top-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick +.tl-rtc-app-left-panel-channel-item-quick-delete{ + background-color: var(--skin-channel-list-item-quick-delete-background); + color: var(--skin-channel-list-item-quick-delete-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick +.tl-rtc-app-left-panel-channel-item-quick-un-notify{ + background-color: var(--skin-channel-list-item-quick-un-notify-background); + color: var(--skin-channel-list-item-quick-un-notify-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick +.tl-rtc-app-left-panel-channel-item-quick-hidden{ + background-color: var(--skin-channel-list-item-quick-hidden-background); + color: var(--skin-channel-list-item-quick-hidden-color); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content{ + height: 100%; + border-radius: 10px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top{ + height: var(--right-channel-content-top); + display: flex; + align-items: center; + flex-direction: row; + justify-content: space-between; + border-bottom: 1px solid var(--skin-body-border-color); +} + +.tl-rtc-app-rc .tl-rtc-app-right .tl-rtc-app-right-channel-content-top{ + margin: 0 !important; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-nickname{ + font-weight: bold; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + margin-left: 10px; + letter-spacing: 0.5px; + max-width: calc(100% - 260px); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-edit-channel-name{ + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more{ + text-align: right; + margin-right: 10px; + max-width: 260px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more svg{ + padding-left: 15px; + cursor: pointer; + width: 20px; + height: 20px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more svg:hover{ + fill: var(--skin-channel-content-top-more-fill-color); + /* 左右摇摆, 有渲染性能问题 */ + /* animation: tl-rtc-app-right-channel-content-top-more-svg-hover 0.6s; */ +} +/* +@keyframes tl-rtc-app-right-channel-content-top-more-svg-hover { + 0% { transform: rotate(-10deg); } + 50% { transform: rotate(10deg); } + 100% { transform: rotate(-10deg); } +} */ + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body{ + height: var(--right-channel-content-body); + overflow-y: auto; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item{ + padding: 0 10px; + display: block; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item:hover +.tl-rtc-app-right-channel-content-body-item-message-menu{ + opacity: 1; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-system{ + text-align: center; + font-size: 12px; + color: var(--skin-channel-content-body-message-system-color); + user-select: none; + padding: 5px 0; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-time{ + text-align: center; + font-size: 12px; + color: var(--skin-channel-content-body-message-time-color); + user-select: none; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-load-more{ + text-align: center; + font-size: 12px; + color: var(--skin-channel-content-body-message-load-more-color); + user-select: none; + padding: 5px 0; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-load-more:hover{ + color: var(--skin-channel-content-body-message-load-more-hover-color); + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-avatar{ + cursor: pointer; + user-select: none; + --webkit-user-select: none; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-avatar img{ + -webkit-user-drag: none; + width: 28px; + height: 28px; + border-radius: 3px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-avatar img:hover{ + /* 上下跳动动画 */ + animation: tl-rtc-app-right-channel-content-body-item-avatar-img-hover 0.6s; +} + +@keyframes tl-rtc-app-right-channel-content-body-item-avatar-img-hover { + 0% { transform: rotate(-10deg); } + 50% { transform: rotate(10deg); } + 100% { transform: rotate(-10deg); } +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: flex-start; + justify-content: flex-start; + width: 50%; + word-break: break-all; + margin-top: 10px; + letter-spacing: 0.5px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-menu{ + padding: 10px 10px 0 0; + border-radius: 4px; + opacity: 0; + transition: opacity 0.2s; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-menu svg{ + padding: 2px 4px; + background: var(--skin-channel-content-body-message-menu-icon-background); + fill: var(--skin-channel-content-body-message-menu-icon-color); + cursor: pointer; + border-radius: 4px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-menu svg:hover{ + background: var(--skin-channel-content-body-message-menu-icon-hover-background); + fill: var(--skin-channel-content-body-message-menu-icon-hover-color); + animation: tl-rtc-app-right-channel-content-body-item-message-menu-icon-hover 0.3s; +} + +@keyframes tl-rtc-app-right-channel-content-body-item-message-menu-icon-hover { + 0% { transform: scale(1); } + 50% { transform: scale(1.2); } + 100% { transform: scale(1); } +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name{ + padding: 0 0 5px 0; + text-align: left; + font-size: 11px; + overflow: hidden; + font-weight: bold; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + max-width: 60px; + color: var(--skin-channel-content-body-message-name-color); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name:hover{ + color: var(--skin-channel-content-body-message-name-hover-color); + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name b{ + font-size: 12px; + color: var(--skin-channel-content-body-message-name-at-color); + opacity: 0; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name:hover b{ + opacity: 1; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message{ + margin: 0px 10px 0 0px; + font-size: 13px; + background: var(--skin-channel-content-body-message-background); + padding: 7px; + border-radius: 4px; + color: var(--skin-channel-content-body-message-color); + cursor: text; +} + +#tl-rtc-app .tl-rtc-app-right .textarea-at-user-text{ + color: var(--skin-channel-content-body-item-message-at-user-text-color); + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-reply{ + padding: 10px; + color: var(--skin-channel-content-body-reply-content-block-color); + font-size: 12px; + margin: 5px 10px 0 0; + user-select: none; + display: flex; + border-top: .5px solid var(--skin-body-border-color); + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: center; + background: var(--skin-channel-content-body-reply-content-block-background); + border-radius: 4px; + cursor: pointer; + position: relative; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info +.tl-rtc-app-right-channel-content-body-item-message-reply-triangle{ + width: 0; + height: 0; + border-top: 5px solid transparent; + border-bottom: 5px solid transparent; + border-right: 5px solid var(--skin-channel-content-body-reply-content-block-background); + top: -8px; + transform: rotate(90deg); + left: 10px; + position: absolute; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info-self +.tl-rtc-app-right-channel-content-body-item-message-reply-triangle{ + width: 0; + height: 0; + border-top: 5px solid transparent; + border-bottom: 5px solid transparent; + border-right: 5px solid var(--skin-channel-content-body-reply-content-block-background); + top: -8px; + transform: rotate(90deg); + right: 10px; + position: absolute; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block{ + padding: 10px; + color: var(--skin-channel-content-body-reply-content-block-color); + font-size: 12px; + user-select: none; + display: flex; + border-top: .5px solid var(--skin-body-border-color); + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: center; + position: absolute; + bottom: calc(var(--right-channel-editor-height) - 1px); + background: var(--skin-body-background); + width: calc(100% - var(--left-width) - var(--sidebar-width) - 20px); + box-shadow: 20px -20px 20px 0 rgb(0 0 0 / 6%); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block i{ + padding-top: 1px; + position: absolute; + border-radius: 50%; + background: #b5bebb; + font-size: 11px; + color: #fff; + cursor: pointer; + width: 14px; + height: 13px; + text-align: center; + right: 5px; + top: 4px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block-content{ + border-radius: 3px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block-content p { + display: inline; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message img{ + width: 150px; + height: 150px; + border-radius: 3px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message +.tl-rtc-app-right-channel-content-body-item-message-file{ + display: flex; + align-items: center; + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message +.tl-rtc-app-right-channel-content-body-item-message-file-left{ + width: 20%; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message +.tl-rtc-app-right-channel-content-body-item-message-file-left svg{ + width: 100%; + height: 55px; + min-width: 32px; + min-height: 32px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message +.tl-rtc-app-right-channel-content-body-item-message-file-info{ + width: calc(80% - 10px); + margin-left: 5px; + display: flex; + flex-direction: column; + flex-wrap: nowrap; + justify-content: center; + align-items: flex-start; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message +.tl-rtc-app-right-channel-content-body-item-message-file-download{ + position: relative; + width: 10%; + height: 16px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info-self{ + display: flex; + flex-direction: row-reverse; + flex-wrap: nowrap; + align-items: flex-start; + width: 50%; + word-break: break-all; + margin-top: 10px; + margin-left: 50%; + justify-content: flex-start; + letter-spacing: 0.5px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-bottom{ + height: var(--right-channel-editor-height); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-bottom img{ + width: 30px; + border-radius: 3px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-bottom-btn{ + position: absolute; + right: 10px; + bottom: 10px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: flex-end; + user-select: none; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-bottom-tips{ + font-size: 12px; + margin-right: 10px; + color: #c3b4b4; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-bottom-resize-handle{ + width: 100%; + height: 1px; + cursor: row-resize; + position: absolute; + background-color: var(--skin-body-border-color); +} + + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-quick-message-content-block{ + color: var(--skin-channel-content-body-reply-content-block-color); + font-size: 12px; + user-select: none; + display: flex; + border-top: .5px solid var(--skin-body-border-color); + flex-direction: column; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: flex-start; + position: absolute; + bottom: calc(var(--right-channel-editor-height) - 1px); + background: var(--skin-body-background); + width: calc(100% - var(--left-width) - var(--sidebar-width)); + box-shadow: 20px -20px 20px 0 rgb(0 0 0 / 6%); + max-height: 189px; + overflow-y: auto; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-quick-message-content-block-item{ + padding: 10px 20px; + border-bottom: 0.5px solid var(--skin-body-border-color); + width: calc(100% - 40px); + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-quick-message-content-block i{ + position: absolute; + right: 5px; + top: 6px; + border-radius: 50%; + background: #b5bebb; + font-size: 11px; + color: white; + cursor: pointer; + width: 14px; + padding-top: 1px; + height: 13px; + text-align: center; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-quick-message-content-block-item:hover{ + background: #fdfbfb; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-quick-message-content-block-item:last-child{ + border-bottom: none; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-textarea-quick-message-hit-text{ + color: #909fea; + font-weight: bold; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-at-user-content-block{ + color: var(--skin-channel-content-body-reply-content-block-color); + font-size: 12px; + user-select: none; + display: flex; + border-top: .5px solid var(--skin-body-border-color); + flex-direction: column; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: flex-start; + position: absolute; + bottom: calc(var(--right-channel-editor-height) - 1px); + background: var(--skin-body-background); + width: calc(100% - var(--left-width) - var(--sidebar-width)); + box-shadow: 20px -20px 20px 0 rgb(0 0 0 / 6%); + max-height: 189px; + overflow-y: auto; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-at-user-content-block-item{ + padding: 10px 10px; + border-bottom: .5px solid var(--skin-body-border-color); + width: calc(100% - 20px); + cursor: pointer; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + gap: 8px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-at-user-content-block-item-info{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: center; + gap: 5px; + font-size: 14px; + font-weight: bold; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-at-user-content-block i{ + position: absolute; + right: 5px; + top: 6px; + border-radius: 50%; + background: #b5bebb; + font-size: 11px; + color: white; + cursor: pointer; + width: 14px; + padding-top: 1px; + height: 13px; + text-align: center; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-at-user-content-block-item:hover{ + background: #fdfbfb; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-at-user-content-block-item:last-child{ + border-bottom: none; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-at-user-content-block-item img{ + -webkit-user-drag: none; + width: 18px; + height: 18px; + border-radius: 3px; +} +/*********************************************************************************** +************************************************************************************ + 消息频道列表 end +************************************************************************************ +************************************************************************************/ + diff --git a/web-res/css/channel/channel-message-search.css b/web-res/css/channel/channel-message-search.css new file mode 100644 index 0000000..2671565 --- /dev/null +++ b/web-res/css/channel/channel-message-search.css @@ -0,0 +1,251 @@ +/*********************************************************************************** +************************************************************************************ + 频道历史消息 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-layer-search-channel-message{ + background: var(--skin-body-background) !important; + color: var(--skin-body-color) !important; +} + +.tl-rtc-app-layer-search-channel-message .layui-layer-title{ + background: var(--skin-body-background) !important; + color: var(--skin-body-color) !important; + border-bottom: 1px solid var(--skin-body-border-color); + border-radius: 6px; +} + +.tl-rtc-app-right-channel-content-search-message-panel-header{ + padding: 0 10px; +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-search{ + margin-top: -10px; +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-search i{ + position: relative; + margin-left: 8px; + top: 25px; + color: var(--skin-channel-history-message-top-search-i-color); +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-search input{ + width: 100%; + height: 30px; + padding-left: 30px !important; + border-radius: 4px; + background: var(--skin-channel-history-message-top-search-input-background); + color: var(--skin-channel-history-message-top-search-input-color); + font-size: 13px; + letter-spacing: 1px; + border-width: 0.5px; + border-color: var(--skin-channel-history-message-top-search-input-background); +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-tools{ + padding: 5px 0px; + max-height: 120px; + overflow-y: auto; + border-bottom: 1px solid var(--skin-body-border-color); +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-tools-item{ + padding: 5px 0 0 0; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: center; +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-tools-item-title{ + font-size: 12px; + color: var(--skin-channel-history-message-header-tool-item-title-color); + font-weight: bold; + padding-right: 5px; + word-break: keep-all; +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-tools-item-content{ + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-content: center; + justify-content: flex-start; + align-items: center; +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-tools-item-content .layui-badge{ + padding: 3px 10px; + background: unset; + color: var(--skin-channel-history-message-search-param-badge-color); + border-radius: 4px; + cursor: pointer; + transition: all 0.1s; + margin: 5px 10px 5px 0px; +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-tools-item-content .layui-badge:hover{ + background: var(--skin-channel-history-message-search-param-badge-hover-background); + color: var(--skin-channel-history-message-search-param-badge-hover-color); +} + +.tl-rtc-app-right-channel-content-search-message-panel-header-tools-item-content .layui-badge-active{ + background: var(--skin-channel-history-message-search-param-badge-active-background); + color: var(--skin-channel-history-message-search-param-badge-active-color); +} + +.tl-rtc-app-right-channel-content-search-message-panel-list{ + overflow-y: auto; +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item{ + display: flex; + flex-direction: column; + justify-content: center; + align-items: flex-start; + padding: 5px 15px; + margin: 5px 0 0 0; +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item:hover{ + background: var(--skin-channel-list-item-hover-background); +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item-time{ + font-size: 12px; + color: var(--skin-channel-history-message-list-item-time-color); +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item-info{ + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + flex-wrap: nowrap; + padding: 5px 0; + width: 100%; +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item-user{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: center; +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item-avatar{ + padding: 5px 5px 5px 0px; +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item-avatar img{ + width: 28px; + height: 28px; + cursor: pointer; + border-radius: 2px; +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item-user-name{ + font-size: 13px; + font-weight: bold; +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item-content{ + font-size: 12px; + line-height: 20px; + margin: 0px 5px 0 5px; + background: var(--skin-channel-history-message-content-body-message-background); + padding: 7px; + border-radius: 4px; + color: var(--skin-channel-history-message-content-body-message-color); +} + +.tl-rtc-app-right-channel-content-search-message-panel-footer{ + line-height: 50px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-end; + align-items: center; + border-top: 1px solid var(--skin-body-border-color); + margin: 0 5px; + user-select: none; +} + +.tl-rtc-app-right-channel-content-search-message-panel-footer-total{ + padding: 2px; + text-align: right; + font-size: 13px; + color: var(--skin-channel-history-message-footer-total-color); + font-weight: bold; + padding-right: 5px; + margin-right: 20px; +} + +.tl-rtc-app-right-channel-content-search-message-panel-footer-load-more{ + color: var(--skin-channel-history-message-footer-load-more-color); + font-size: 13px; + cursor: pointer; + transition: all 0.2s; + margin-left: 20px; + display: none; +} + +.tl-rtc-app-right-channel-content-search-message-panel-footer-load-more:hover{ + color: var(--skin-channel-history-message-footer-load-more-hover-color); +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-item-file{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: center; + align-items: center; +} + +.tl-rtc-app-right-channel-content-body-item-message-file-left{ + width: 20%; +} + +.tl-rtc-app-right-channel-content-body-item-message-file-left svg{ + height: 55px; + min-width: 32px; + min-height: 32px; +} + +.tl-rtc-app-right-channel-content-body-item-message-file-info{ + width: calc(80% - 10px); + margin: 0 5px; + display: flex; + flex-direction: column; + flex-wrap: nowrap; + justify-content: center; + align-items: flex-start; + min-width: 170px; +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-empty{ + padding: 10px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: center; + align-items: center; + color: #00000059; /** TODO **/ + height: 40%; + font-weight: bold; +} + +.tl-rtc-app-right-channel-content-search-message-panel-list-empty svg{ + width: 20px; + height: 20px; + padding: 10px; +} +/*********************************************************************************** +************************************************************************************ + 频道历史消息 end +************************************************************************************ +************************************************************************************/ + diff --git a/web-res/css/channel/channel-more.css b/web-res/css/channel/channel-more.css new file mode 100644 index 0000000..f2c42d0 --- /dev/null +++ b/web-res/css/channel/channel-more.css @@ -0,0 +1,201 @@ +/*********************************************************************************** +************************************************************************************ + 频道更多列表 start +************************************************************************************ +************************************************************************************/ +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more{ + position: absolute; + right: 0; + transform: translateX(300px); + height: calc(100% - var(--right-channel-content-top)); + width: 260px; + top: var(--right-channel-content-top); + background: var(--skin-channel-content-more-background); + border-top: 1px solid var(--skin-body-border-color); + border-bottom-left-radius: 6px; + border-top-left-radius: 6px; + transition: transform 0.3s; + box-shadow: var(--skin-channel-content-more-shadow); + user-select: none; + --webkit-user-select: none; + z-index: 1001; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list{ + text-align: center; + padding: 0 20px 0px 20px; + height: calc(100% - 1px); + overflow-y: auto; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item{ + line-height: 45px; + padding: 5px 0; + border-radius: 4px; + cursor: pointer; + text-align: left; + display: flex; + flex-wrap: nowrap; + align-items: center; + justify-content: space-between; + border-bottom: 1px solid var(--skin-channel-content-more-list-item-border-color); + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item:hover{ + color: var(--skin-channel-content-more-list-item-hover-color); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-title{ + font-size: 13px; + font-weight: bold; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-title svg{ + width: 14px; + height: 14px; + margin-left: 3px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-oper{ + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: nowrap; + align-items: center; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-oper svg{ + margin-left: 5px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-oper-channel-name{ + color: var(--skin-channel-content-more-list-item-oper-channel-name-color); + font-size: 12px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + max-width: 100px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-list{ + line-height: 30px; + border-radius: 4px; + cursor: pointer; + padding-bottom: 5px; + text-align: center; + border-bottom: 1px solid var(--skin-channel-content-more-list-item-border-color); + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper{ + padding: 10px 0 0; + border-radius: 4px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper:hover{ + background: var(--skin-channel-content-more-list-user-item-oper-hover-background); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper svg{ + scale: 1.9; + margin-top: 11px; + fill: var(--skin-channel-content-more-list-user-item-oper-hover-fill-color); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper svg:hover{ + animation: rotate 0.3s; +} + +@keyframes rotate { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-title{ + font-size: 13px; + font-weight: bold; + margin-bottom: 10px; + padding-bottom: 5px; + width: 100%; + text-align: left; + border-bottom: 1px solid var(--skin-channel-content-more-list-item-border-color); + border-bottom-right-radius: 0px; + border-bottom-left-radius: 0px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-username{ + font-size: 12px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-avatar{ + width: 32px; + height: 32px; + border-radius: 3px; +} + +#group-more-swiper-scrollbar{ + min-width: 20px !important; + max-width: 40px !important; + width: 5% !important; + margin-left: 50% !important; + height: 3px !important; +} + +.tl-rtc-app-layer-channel-share{ + background: var(--skin-body-background) !important; + color: var(--skin-body-color) !important; +} + + +.tl-rtc-app-layer-channel-share .layui-layer-title{ + color: var(--skin-body-color) !important; + border-color: var(--skin-body-border-color) !important; + border-radius: 6px; +} + +.tl-rtc-app-layer-channel-share #tl-rtc-app-channel-share-image{ + text-align: center; + user-select: none; +} + +.tl-rtc-app-layer-channel-share #tl-rtc-app-channel-share-image img{ + width: 70%; + height: 70%; + margin-left: 15%; + margin-top: 7%; + -webkit-user-drag: none; +} + +.tl-rtc-app-layer-channel-share .tl-rtc-app-channel-share-tools{ + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + margin-top: 8%; +} + +.tl-rtc-app-layer-channel-share .tl-rtc-app-channel-share-tools-item{ + padding: 5px 10px; + border-radius: 4px; + cursor: pointer; + transition: all 0.2s; + margin: 0 10px; + border: 1px solid var(--skin-body-border-color); +} +/*********************************************************************************** +************************************************************************************ + 频道更多列表 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/channel/channel-notice.css b/web-res/css/channel/channel-notice.css new file mode 100644 index 0000000..8bb50bd --- /dev/null +++ b/web-res/css/channel/channel-notice.css @@ -0,0 +1,74 @@ +/*********************************************************************************** +************************************************************************************ + 频道公告 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-right-channel-notice{ + overflow-y: auto; + overflow-x: hidden; + height: calc(100% - 20px); + margin-top: 10px; +} + +.tl-rtc-app-layer-channel-notice{ + background-color: var(--skin-body-background) !important; + color: var(--skin-body-color) !important; +} + +.tl-rtc-app-layer-channel-notice .layui-layer-title{ + color: var(--skin-body-color) !important; + border-bottom: 1px solid var(--skin-body-border-color) !important; + border-radius: 6px; +} + +.tl-rtc-app-right-channel-notice-list{ + display: flex; + flex-direction: column; + flex-wrap: nowrap; + justify-content: center; +} + +.tl-rtc-app-right-channel-notice-empty{ + text-align: center; + margin-top: 100px; + font-size: 14px; + font-weight: bold; + color: var(--skin-channel-content-notice-empty-color); +} + +.tl-rtc-app-right-channel-notice-list-item{ + padding: 10px 20px; + border-bottom: 1px solid var(--skin-body-border-color); + cursor: pointer; + transition: background 0.3s; +} + +.tl-rtc-app-right-channel-notice-list-item:hover{ + background: var(--skin-channel-content-notice-item-hover-background); +} + +.tl-rtc-app-right-channel-notice-list-item-time{ + text-align: right; + color: var(--skin-channel-content-notice-item-time-color); + font-size: 12px; + margin-top: 5px; +} + +.tl-rtc-app-right-channel-notice-list-item-content{ + font-weight: bold; + font-size: 14px; + text-indent: 30px; +} + +.tl-rtc-app-right-channel-notice-list-item-title{ + font-weight: bold; + font-size: 12px; + color: var(--skin-channel-content-notice-item-title-color); + margin-bottom: 15px; +} +/*********************************************************************************** +************************************************************************************ + 频道公告 end +************************************************************************************ +************************************************************************************/ + diff --git a/web-res/css/component/draw.css b/web-res/css/component/draw.css new file mode 100644 index 0000000..acb4657 --- /dev/null +++ b/web-res/css/component/draw.css @@ -0,0 +1,201 @@ +/*********************************************************************************** +************************************************************************************ + 画一画 start +************************************************************************************ +************************************************************************************/ +#tl-rtc-app-mouse-draw svg{ + cursor: pointer; + width: 18px; + height: 18px; + padding: 2px; + margin-left: 5px; + border-radius: 6px; +} + +#tl-rtc-app-mouse-draw svg:hover{ + background: white; +} + +#tl-rtc-app-mouse-draw svg-active{ + background: white; +} + +#tl-rtc-app-mouse-draw{ + height: 100%; + width: 100%; + overflow: auto; + position: absolute; +} + +#tl-rtc-app-mouse-draw .layui-colorpicker{ + padding: 3px 5px; + transition: padding .3s; + margin-left: 5px; +} + +#tl-rtc-app-mouse-draw .layui-colorpicker i{ + color: #000 !important; + padding: 0 !important; + margin-left: 0 !important; + background: unset !important; +} + +.tl-rtc-app-mouse-draw-body{ + padding: 15px 10px; + user-select: none; +} + +.tl-rtc-app-mouse-draw-layer .layui-layer-title{ + user-select: none; +} + +.tl-rtc-app-mouse-draw-body-item{ + padding: 5px; + display: inline-flex; + font-weight: 300; + flex-direction: row; + flex-wrap: nowrap; + justify-content: center; + align-items: center; + font-size: 12px; +} + +.tl-rtc-app-mouse-draw-body-item i{ + font-size: 16px; + font-weight: 500; + margin-left: 5px; + border-radius: 6px; + color: #000; + cursor: pointer; + padding: 2px; +} + +.tl-rtc-app-mouse-draw-canvas-button{ + position: absolute; + bottom: 0px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-end; + align-items: center; + float: right; + right: 0px; +} + +.tl-rtc-app-mouse-draw-canvas-button button{ + border-radius: 6px; + width: auto; + height: 35px; + opacity: .7; + line-height: 33px; + font-size: 12px; + padding: 0 10px; + margin: 20px; + z-index: 3; +} + +.tl-rtc-app-mouse-draw-body-item .tl-rtc-app-mouse-draw-stroke-color{ + margin: unset !important; +} + +.tl-rtc-app-mouse-draw-body-item .layui-colorpicker{ + padding: unset !important; +} + +.tl-rtc-app-mouse-draw-body-item i:hover{ + background: white; +} + +.tl-rtc-app-mouse-draw-body-item i-active{ + background: white; +} + +#tl-rtc-app-mouse-draw-line-size-txt, #tl-rtc-app-mouse-draw-div-size-txt{ + position: relative; + top: 3px; + margin-left: 5px; + font-size: 20px; + margin-top: -2px; + font-weight: 900; + color: black !important; + cursor: pointer; +} + +.tl-rtc-app-mouse-draw-body-item i:hover{ + color: #5280d7; +} + +#tl-rtc-app-mouse-draw-stroke-color{ + margin-left: 3px; + margin-top: -8px; +} + +.tl-rtc-app-mouse-draw-body-item:disabled{ + color: #4c53d91f; + cursor: no-drop; +} + +.tl-rtc-app-mouse-draw-canvas-line{ + cursor: url("./../image/drawline.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-delete{ + cursor: url("./../image/drawdelete.png") 15 20, auto; +} + +.tl-rtc-app-mouse-draw-canvas-circle{ + cursor: url("./../image/drawcircle.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-circle-fill{ + cursor: url("./../image/drawcirclefill.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-rectangle{ + cursor: url("./../image/drawrectangle.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-rectangle-fill{ + cursor: url("./../image/drawrectanglefill.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-hexagon{ + cursor: url("./../image/drawhexagon.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-hexagon-fill{ + cursor: url("./../image/drawhexagonfill.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-triangle{ + cursor: url("./../image/drawtriangle.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-triangle-fill{ + cursor: url("./../image/drawtrianglefill.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-rhomboid{ + cursor: url("./../image/drawrhomboid.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-rhomboid-fill{ + cursor: url("./../image/drawrhomboidfill.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-star{ + cursor: url("./../image/drawstar.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-star-fill{ + cursor: url("./../image/drawstarfill.png") 5 24, auto; +} + +.tl-rtc-app-mouse-draw-canvas-text{ + cursor: url("./../image/drawtext.png") 5 24, auto; +} +/*********************************************************************************** +************************************************************************************ + 画一画 end +************************************************************************************ +************************************************************************************/ \ No newline at end of file diff --git a/web-res/css/component/layedit.css b/web-res/css/component/layedit.css new file mode 100644 index 0000000..78ea38b --- /dev/null +++ b/web-res/css/component/layedit.css @@ -0,0 +1,97 @@ +/*********************************************************************************** +************************************************************************************ + 输入内容编辑器 start +************************************************************************************ +************************************************************************************/ +.layui-layedit{ + border-radius: 8px !important; + border: none; + border-top-width: 0px; + border-top-style: outset; + border-top-color: #c4eee0; +} + +.layui-layedit i{ + color: var(--skin-body-color) !important; +} + +.layui-layedit-tool{ + border-bottom-style: none; +} + +.layui-layedit-iframe iframe{ + user-select: none; +} + +.layedit-tool-face{ + font-size: 20px !important; +} + +.layedit-tool-print-cut svg{ + width: 20px !important; + height: 30px !important; + margin-right: 7px !important; + fill: var(--skin-body-color) !important; +} + +.layedit-tool-voice svg{ + width: 16px !important; + height: 29px !important; + margin-right: 7px !important; + fill: var(--skin-body-color) !important; +} + +.layedit-tool-quick-message svg{ + scale: 1.1; + width: 21px !important; + height: 30px !important; + margin-right: 7px !important; + fill: var(--skin-body-color) !important; +} + +.layedit-tool-card svg{ + width: 21px !important; + height: 30px !important; + margin-right: 7px !important; + fill: var(--skin-body-color) !important; +} + +.layedit-tool-record svg{ + width: 18px !important; + height: 30px !important; + margin-right: 7px !important; + fill: var(--skin-body-color) !important; +} + +.layedit-tool-draw svg{ + width: 19px !important; + height: 30px !important; + margin-right: 7px !important; + fill: var(--skin-body-color) !important; +} + +.layedit-tool-code svg{ + width: 19px !important; + height: 30px !important; + margin-right: 7px !important; + fill: var(--skin-body-color) !important; +} + +.layedit-tool-face svg{ + width: 19px !important; + height: 30px !important; + fill: var(--skin-body-color) !important; +} + +.layedit-tool-history{ + scale: 1.3; +} + +.layedit-tool-voice{ + scale: 1.3; +} +/*********************************************************************************** +************************************************************************************ + 输入内容编辑器 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/component/layer-face.css b/web-res/css/component/layer-face.css new file mode 100644 index 0000000..d2daba0 --- /dev/null +++ b/web-res/css/component/layer-face.css @@ -0,0 +1,130 @@ + +/*********************************************************************************** +************************************************************************************ + 聊天表情包 start +************************************************************************************ +************************************************************************************/ +.layui-util-face ul li img{ + width: 100%; + margin-top: -2px; +} + +.layui-tl-img{ + width: 100px; +} + +.layui-util-face .layui-layer-content{ + border-radius: 8px !important; + box-shadow: 0 0 20px rgba(0, 0, 0, .2) !important; + overflow: hidden; +} + +.layui-util-face ul{ + width: 248px; + border-radius: 8px; + padding: 5px 10px 5px; + border: unset; + box-shadow: unset; + transition: transform 0.3s; +} + +.tl-rtc-app-face-search{ + margin: 0px; + padding: 10px; +} + +.tl-rtc-app-face-search input{ + width: 100%; + height: 28px; + font-size: 11px; + border-radius: 4px; + border: 1px solid var(--skin-body-border-color); + background: var(--skin-face-search-input-background); + color: var(--skin-face-search-input-color); + border-color: var(--skin-face-search-input-background); + letter-spacing: 1px; + border-width: 0.5px; +} + +.tl-rtc-app-face-tab{ + padding: 5px; + line-height: 25px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-around; + align-items: center; + text-align: center; +} + +.tl-rtc-app-face-tab span{ + padding: 2px 5px; + cursor: pointer; + width: calc(25% - 10px); + background: var(--skin-face-tab-background); + color: var(--skin-face-tab-color); +} + +.tl-rtc-app-face-tab span:hover{ + background: var(--skin-face-tab-hover-background); + color: var(--skin-face-tab-hover-color); + border-radius: 4px; +} + +.tl-rtc-app-face-search-content{ + height: 105px; + overflow-y: auto; +} + +#text-face-ul{ + font-size: 11px; +} + +.tl-rtc-app-face-search-content-title{ + padding: 5px 10px 0; + font-size: 10px; + color: #999; + color: var(--skin-face-content-title-color); +} + +.tl-rtc-app-face-layer{ + background: var(--skin-body-background) !important; + color: var(--skin-body-color) !important; +} + +.tl-rtc-app-face-layer .layui-layer-title{ + color: var(--skin-body-color) !important; + border-bottom: 1px solid var(--skin-body-border-color) !important; + border-radius: 6px; +} + +.tl-rtc-app-face-layer .layui-layer-content{ + background: unset !important; + border: 1px solid var(--skin-body-border-color) !important; +} + +.tl-rtc-app-face-layer ul{ + background: unset !important; +} + +.tl-rtc-app-face-layer ul li{ + border: 1px solid var(--skin-body-border-color) !important; + color: var(--skin-body-color) !important; +} + +.tl-rtc-app-face-layer ul li:hover{ + background-color: var(--skin-face-item-hover-background); + color: var(--skin-face-item-hover-color); +} + +.tl-rtc-app-textarea-face-img{ + width: 30px !important; + height: 30px !important; + user-select: none !important; + -webkit-user-drag: none !important; +} +/*********************************************************************************** +************************************************************************************ + 聊天表情包 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/component/layer-msg.css b/web-res/css/component/layer-msg.css new file mode 100644 index 0000000..e7ae808 --- /dev/null +++ b/web-res/css/component/layer-msg.css @@ -0,0 +1,54 @@ +/*********************************************************************************** +************************************************************************************ + layer消息提示 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-layer-msg{ + background: var(--skin-layer-msg-background) !important; + color: var(--skin-layer-msg-color) !important; + font-size: 14px !important; + scale: 0.9 !important; + font-weight: bold !important; + border-radius: 10px !important; + box-shadow: 0 4px 40px #00000026 !important; + min-width: unset !important; +} + +.tl-rtc-app-layer-msg .layui-layer-content{ + line-height: 18px !important; + letter-spacing: 1px !important; + display: flex !important; + padding: 12px 15px !important; + flex-direction: row !important; + + display: flex !important; + align-content: center !important; + justify-content: center !important; + align-items: center !important; +} + +.tl-rtc-app-layer-msg .layui-layer-content .tl-toast-msg-success{ + color: var(--skin-layer-msg-success-color) !important; + font-size: 20px !important; + font-weight: bold !important; + margin-right: 5px !important; +} + +.tl-rtc-app-layer-msg .layui-layer-content .tl-toast-msg-warning{ + color: var(--skin-layer-msg-warning-color) !important; + font-weight: bold !important; + font-size: 20px !important; + margin-right: 5px !important; +} + +.tl-rtc-app-layer-msg .layui-layer-content .tl-toast-msg-error{ + color: var(--skin-layer-msg-error-color) !important; + font-weight: bold !important; + font-size: 20px !important; + margin-right: 5px !important; +} +/*********************************************************************************** +************************************************************************************ + layer消息提示 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/component/layer-tips.css b/web-res/css/component/layer-tips.css new file mode 100644 index 0000000..aa54e14 --- /dev/null +++ b/web-res/css/component/layer-tips.css @@ -0,0 +1,32 @@ +/*********************************************************************************** +************************************************************************************ + layer-tips start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-layer-tips .layui-layer-content{ + background: var(--skin-layer-tips-background) !important; + color: var(--skin-layer-tips-color) !important; +} + +.tl-rtc-app-layer-tips .layui-layer-content{ + border-radius: 4px !important; +} + +.tl-rtc-app-layer-tips .layui-layer-TipsG.layui-layer-TipsR{ + border-right-color: var(--skin-layer-tips-background) !important; + border-bottom-color: var(--skin-layer-tips-background) !important; +} + +.tl-rtc-app-layer-tips .layui-layer-TipsG.layui-layer-TipsB{ + border-right-color: var(--skin-layer-tips-background) !important; +} + +.tl-rtc-app-layer-tips .layui-layer-TipsG.layui-layer-TipsT{ + border-right-color: var(--skin-layer-tips-background) !important; +} + +/*********************************************************************************** +************************************************************************************ + layer-tips end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/component/layer.css b/web-res/css/component/layer.css new file mode 100644 index 0000000..c945b8b --- /dev/null +++ b/web-res/css/component/layer.css @@ -0,0 +1,49 @@ + +.layui-layer-loading{ + background: unset !important; +} + +.tl-rtc-app-close-i{ + color: var(--skin-body-color) !important; +} + +.tl-rtc-app-max-i{ + color: var(--skin-body-color) !important; + font-weight: bold; + background: unset; +} + +.layui-layer-prompt{ + border-radius: 8px !important; +} + +.layui-layer-dialog{ + border-radius: 8px !important; +} + +.layui-layer-page .layui-layer-content{ + overflow: unset !important; +} + +.layui-layer-prompt, .layui-layer-dialog, .layui-layer-page{ + background: var(--skin-body-background) !important; + color: var(--skin-body-color) !important; +} + +.layui-layer-prompt .layui-layer-title, +.layui-layer-dialog .layui-layer-title, +.layui-layer-page .layui-layer-title{ + color: var(--skin-body-color) !important; +} + +.layui-layer-prompt .layui-layer-title, +.layui-layer-dialog .layui-layer-title, +.layui-layer-page .layui-layer-title{ + border-bottom: 1px solid var(--skin-body-border-color); +} + +.layui-layer-prompt .layui-layer-input{ + background: var(--skin-body-background) !important; + border: 1px solid var(--skin-body-border-color) !important; + color: var(--skin-body-color) !important; +} \ No newline at end of file diff --git a/web-res/css/component/layui-collapse.css b/web-res/css/component/layui-collapse.css new file mode 100644 index 0000000..29ffb11 --- /dev/null +++ b/web-res/css/component/layui-collapse.css @@ -0,0 +1,32 @@ +/*********************************************************************************** +************************************************************************************ + 折叠面板 start +************************************************************************************ +************************************************************************************/ +.layui-collapse{ + border: none; +} + +.layui-colla-title{ + background-color: unset; + padding: 0 0px 0 35px; + transition: color 0.3s; + color: unset; +} + +.layui-colla-content, .layui-colla-item{ + border: none; +} + +.layui-colla-content{ + color: unset; +} + +.layui-colla-content { + padding: 0px !important; +} +/*********************************************************************************** +************************************************************************************ + 折叠面板 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/component/layui-colorpicker.css b/web-res/css/component/layui-colorpicker.css new file mode 100644 index 0000000..9b847cc --- /dev/null +++ b/web-res/css/component/layui-colorpicker.css @@ -0,0 +1,38 @@ +/*********************************************************************************** +************************************************************************************ + 颜色选择器 start +************************************************************************************ +************************************************************************************/ +.layui-colorpicker.layui-colorpicker-xs{ + width: 18px; + height: 18px; + line-height: 16px; +} + +.layui-colorpicker{ + padding: 3px 15px; + transition: padding 0.3s; +} + +.layui-colorpicker .layui-icon-edit{ + transition: all 0.3s; +} + +.layui-colorpicker-main{ + border: unset; + border-radius: 8px; +} + +.layui-colorpicker-basis{ + width: auto; +} + +.layui-colorpicker-trigger-span{ + border: unset; + background: unset; +} +/*********************************************************************************** +************************************************************************************ + 颜色选择器 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/component/layui-form.css b/web-res/css/component/layui-form.css new file mode 100644 index 0000000..c69f519 --- /dev/null +++ b/web-res/css/component/layui-form.css @@ -0,0 +1,60 @@ +/*********************************************************************************** +************************************************************************************ + form表单 start +************************************************************************************ +************************************************************************************/ +.layui-form-select dl dd.layui-this{ + background-color: var(--skin-body-background); + color: var(--skin-body-color); +} + +.layui-form-select dl{ + background-color: var(--skin-body-background); +} + +.layui-form-switch{ + margin-top: unset !important; + height: 18px !important; + line-height: 18px !important; + min-width: 28px !important; +} + +.layui-form-switch i{ + width: 12px !important; + height: 12px !important; +} + +.layui-form-onswitch i{ + margin-left: -16px !important; + /* background: var(--skin-body-color); */ +} + +.layui-form-onswitch{ + /* border-color: var(--skin-body-background) !important; + background-color: var(--skin-body-background) !important; */ +} + +.layui-form-checkbox[lay-skin=primary] i{ + border-radius: 50%; +} + +.layui-form-checked[lay-skin=primary] i{ + border-color: var(--skin-body-color) !important; + /* background-color: var(--skin-body-background) !important; */ +} + +.layui-form-radio { + display: unset !important; + vertical-align: unset !important; + line-height: unset !important; + margin: unset !important; + padding-right: unset !important; + cursor: pointer; + font-size: unset !important; +} +/*********************************************************************************** +************************************************************************************ + form表单 end +************************************************************************************ +************************************************************************************/ + diff --git a/web-res/css/component/layui-menu.css b/web-res/css/component/layui-menu.css new file mode 100644 index 0000000..2d2b09e --- /dev/null +++ b/web-res/css/component/layui-menu.css @@ -0,0 +1,112 @@ +/*********************************************************************************** +************************************************************************************ + 自定义右键菜单 start +************************************************************************************ +************************************************************************************/ +.custom-context-menu { + position: absolute; + background-color: var(--skin-body-background) !important; + border: 1px solid var(--skin-body-border-color) !important; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + color: var(--skin-body-color) !important; + width: 140px; + padding: 4px 0; + z-index: 1000; + user-select: none; + border-radius: 4px; +} + +.custom-context-menu ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +.custom-context-menu ul li { + padding: 5px 10px; + cursor: pointer; + text-align: left; + font-size: 13px; + transition: background-color 0s; +} + +.custom-context-menu ul li:hover { + background-color: var(--skin-body-color) !important; + color: var(--skin-body-background) !important; +} + +.custom-context-menu ul li:not(:last-child) { + border-bottom: 1px solid var(--skin-body-border-color); +} + +.custom-context-menu ul li.disabled { + color: #d8d5d58a; + cursor: not-allowed; +} + +.layui-menu-body-title svg{ + margin-right: 5px; +} + +.layui-menu-body-title>.layui-icon{ + font-size: 12px; +} + +.layui-menu-body-panel{ + position: absolute; + background-color: var(--skin-body-background); + border: 1px solid var(--skin-body-border-color); + width: 140px; + padding: 0; + z-index: 1000; + user-select: none; + margin-left: 0px; + top: -1px; +} + +.layui-menu-body-panel-left{ + margin-right: 0px; +} + +.layui-menu-body-panel ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +.layui-menu-body-panel ul li { + padding: 5px 10px; + cursor: pointer; + text-align: left; + font-size: 13px; + transition: background-color 0.2s; +} + +.layui-menu-body-panel ul li:hover { + background-color: var(--skin-body-background) !important; +} + +.layui-menu-body-panel ul li:not(:last-child) { + border-bottom: 1px solid var(--skin-body-border-color); +} + +.layui-menu-body-panel ul li.disabled { + color: #d8d5d58a; + cursor: not-allowed; +} + +.layui-menu{ + background: var(--skin-body-background) !important; +} + +.layui-menu li{ + line-height: 20px; + margin: 0; + width: 100%; + color: var(--skin-body-color) !important; +} +/*********************************************************************************** +************************************************************************************ + 自定义右键菜单 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/component/macos-tips.css b/web-res/css/component/macos-tips.css new file mode 100644 index 0000000..29f1fc6 --- /dev/null +++ b/web-res/css/component/macos-tips.css @@ -0,0 +1,79 @@ + +/*********************************************************************************** +************************************************************************************ + macos样式弹窗 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-notification-container{ + position: fixed; + top: 10px; + z-index: 9999; + display: flex; + flex-direction: column; + transition: right .45s; +} + +.tl-rtc-app-notification { + background-color: #fff; + box-shadow: 0 20px 32px -8px rgba(9,30,66,0.25), 0 0 1px rgba(9,30,66,0.31); + transition: opacity .45s; + border-radius: 10px; + padding: 16px; + margin: 10px; + height: 32px; + width: 240px; + display: inline-flex; + flex-direction: initial; + align-items: center; + opacity: 0; +} + +.tl-rtc-app-notification-content{ + color: #000000b0; + margin-left: 10px; + word-break: break-all; +} + +.tl-rtc-app-notification-icon{ + margin-left: -20px; +} + +.tl-rtc-app-notification-icon i{ + font-size: 22px; + color: #77b7e8; +} + +.tl-rtc-app-notification-title{ + font-weight: bold; +} + +.tl-rtc-app-notification-close{ + position: relative; + top: -34px; + left: -23px; + line-height: 12px; + background: white; + border-radius: 50%; + padding: 3px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); +} + +.tl-rtc-app-notification-close i{ + font-size: 12px; +} + +.tl-rtc-app-notification-content-msg{ + font-size: 12px; + height: 18px; + margin-top: 5px; + width: 230px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} +/*********************************************************************************** +************************************************************************************ + macos样式弹窗 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/component/media.css b/web-res/css/component/media.css new file mode 100644 index 0000000..5480bbc --- /dev/null +++ b/web-res/css/component/media.css @@ -0,0 +1,226 @@ +/*********************************************************************************** +************************************************************************************ + 音视频样式 start +************************************************************************************ +************************************************************************************/ +#tl-rtc-app-video-media-list{ + display: flex; + position: absolute; + top: 0; + flex-direction: column; +} + +#tl-rtc-app-video-self-media-item{ + width: 100%; + height: 100%; +} + +.tl-rtc-app-video-other-media-item{ + width: 30%; + height: 30%; + margin-bottom: 5px; + margin-left: 5px; + box-shadow: var(--skin-video-other-item-shadow); +} + +#tl-rtc-app-video-tool-list{ + display: flex; + position: absolute; + bottom: 30px; + cursor: pointer; + left: 0; + flex-direction: row; + width: 100%; + justify-content: center; + z-index: 100000; +} + +#tl-rtc-app-video-tool-list svg{ + width: 25px; + height: 25px; + fill: var(--skin-media-video-tool-list-svg-fill-color); + padding: 10px; + border-radius: 50%; + margin: 0px 15px 0px 15px; + background: var(--skin-media-video-tool-list-svg-background); + transition: all 0.3s; +} + +#tl-rtc-app-video-tool-list svg:hover{ + fill: var(--skin-media-video-tool-list-svg-hover-fill-color); + background: var(--skin-media-video-tool-list-svg-hover-background); +} + +#tl-rtc-app-video-mkf-close-tool, #tl-rtc-app-video-ysq-close-tool{ + background: var(--skin-media-video-tool-list-ysq-close-background) !important; +} + +#tl-rtc-app-video-call-status{ + text-align: center; + position: absolute; + width: 100%; + top: 20px; + color: black; + font-weight: bold; + font-family: system-ui; + z-index: 100000; +} + +#tl-rtc-app-video-call-avatar{ + text-align: center; + height: 0; +} + +#tl-rtc-app-video-call-avatar img{ + width: 50%; + margin-top: 70px; + border-radius: 3px; +} +/*********************************************************************************** +************************************************************************************ + 音视频样式 end +************************************************************************************ +************************************************************************************/ + + + +/*********************************************************************************** +************************************************************************************ + 音视频邀请弹窗 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-popup-invite{ + display: flex; + flex-direction: row; + align-items: center; + height: inherit; + justify-content: space-around; + flex-wrap: nowrap; +} + +.tl-rtc-app-popup-invite .tl-rtc-app-popup-invite-img{ + width: 20%; +} + +.tl-rtc-app-popup-invite .tl-rtc-app-popup-invite-img img{ + width: 36px; + height: 36px; + border-radius: 3px; + user-select: none; + -webkit-user-drag: none; +} + +.tl-rtc-app-popup-invite .tl-rtc-app-popup-invite-svg{ + width: 40%; +} + +.tl-rtc-app-popup-invite .tl-rtc-app-popup-invite-svg #acceptInvite{ + fill: #fcfffc; + width: 22px; + height: 22px; + background: #27c445; + padding: 8px; + border-radius: 50%; + transition: all 0.2s; + cursor: pointer; +} + +.tl-rtc-app-popup-invite .tl-rtc-app-popup-invite-svg #acceptInvite:hover{ + fill: #c5cfc5; + background: #49d263; +} + +.tl-rtc-app-popup-invite .tl-rtc-app-popup-invite-svg #rejectInvite{ + fill: #fef6f6; + width: 22px; + height: 22px; + background: #ce6868; + padding: 8px; + border-radius: 50%; + margin-right: 10px; + transition: all 0.2s; + cursor: pointer; +} + +.tl-rtc-app-popup-invite .tl-rtc-app-popup-invite-svg #rejectInvite:hover{ + fill: #decdcd; +} + +.tl-rtc-app-popup-invite .tl-rtc-app-popup-invite-text{ + font-weight: bold; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + width: 40%; + text-align: left; +} +/*********************************************************************************** +************************************************************************************ + 音视频邀请弹窗 end +************************************************************************************ +************************************************************************************/ + + + + + +/*********************************************************************************** +************************************************************************************ + 本地录制 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-record-stop-div{ + position: absolute; + bottom: 20px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: center; + align-items: center; + width: 100%; + line-height: 30px; + font-size: 13px; + z-index: 19891020; +} + +.tl-rtc-app-record-stop-body{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: center; + align-items: center; + line-height: 28px; + border-radius: 4px; + padding: 0; + cursor: pointer; + transition: all 0.2s; + font-weight: bold; +} + +.tl-rtc-app-record-stop-body svg{ + scale: 1.2; + padding: 0 10px; +} + +.tl-rtc-app-record-stop-svg{ + animation: tl-rtc-app-record-stop-svg 1s infinite; +} + +@keyframes tl-rtc-app-record-stop-svg{ + 0%{ + transform: scale(1.2); + } + 50%{ + transform: scale(1); + } + 100%{ + transform: scale(1.2); + } +} +/*********************************************************************************** +************************************************************************************ + 本地录制 end +************************************************************************************ +************************************************************************************/ + diff --git a/web-res/css/component/quick-oper.css b/web-res/css/component/quick-oper.css new file mode 100644 index 0000000..64fbe9a --- /dev/null +++ b/web-res/css/component/quick-oper.css @@ -0,0 +1,75 @@ +/*********************************************************************************** +************************************************************************************ + 快捷操作面板 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-layer-quick-oper-panel{ + background: var(--skin-quick-oper-panel-background) !important; + color: var(--skin-quick-oper-panel-item-color) !important; +} + +.tl-rtc-app-layer-quick-oper-panel .layui-layer-title{ + color: var(--skin-body-color) !important; + border-bottom: 1px solid var(--skin-body-border-color) !important; + border-radius: 6px; +} + +.tl-rtc-app-quick-oper-panel{ + user-select: none; + width: 100%; + height: 250px; + padding: 5px 0; +} + +.tl-rtc-app-quick-oper-panel-list{ + display: flex; + flex-wrap: wrap; + flex-direction: row; + align-content: center; + justify-content: flex-start; + align-items: center; +} + +.tl-rtc-app-quick-oper-panel-list-item{ + display: flex; + flex-direction: column; + flex-wrap: nowrap; + justify-content: center; + align-items: center; + cursor: pointer; + font-size: 12px; + color: var(--skin-quick-oper-panel-item-color); + font-weight: 700; + transition: all .2s; + border-radius: 4px; + width: calc((100% - 80px) / 4); + line-height: 25px; + padding: 5px; + margin: 5px; +} + +.tl-rtc-app-quick-oper-panel-list-item:hover{ + background: var(--skin-quick-oper-panel-item-hover-background); +} + +.tl-rtc-app-quick-oper-panel-list-item:hover{ + color: var(--skin-quick-oper-panel-item-hover-color); +} + +.tl-rtc-app-quick-oper-panel-list-item svg{ + width: 28px; + height: 28px; +} + +#quick-oper-panel-scrollbar{ + min-width: 20px !important; + max-width: 40px !important; + width: 5% !important; + margin-left: 48% !important; + height: 3px !important; +} +/*********************************************************************************** +************************************************************************************ + 快捷操作面板 start +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/component/shade.css b/web-res/css/component/shade.css new file mode 100644 index 0000000..ffeb59d --- /dev/null +++ b/web-res/css/component/shade.css @@ -0,0 +1,65 @@ + +/*********************************************************************************** +************************************************************************************ + 遮罩层 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-right-shade-content-body{ + background: #2e2e2e91; + opacity: 0; +} + +.tl-rtc-app-right-channel-file-shade-content-body{ + height: 100%; + width: 100%; + position: absolute; + top: 0; + z-index: 10001; + opacity: 1; + text-align: center; + font-size: 20px; + font-weight: bold; + color: white; +} + +.tl-rtc-app-right-channel-more-shade-content-body{ + height: 100%; + width: 100%; + position: absolute; + top:0; + z-index: 4; + opacity: 1; + transition: opacity 0.3s; +} + +.tl-rtc-app-right-dropdow-shade-content-body{ + height: 100%; + width: 100%; + position: absolute; + top: 0; + z-index: 4; + opacity: 0; + transition: opacity 0.3s; +} + +.tl-rtc-app-right-blank-content-body{ + display: flex; + flex-wrap: nowrap; + flex-direction: row; + height: 100%; + justify-content: center; + align-items: center; +} + +.tl-rtc-app-right-blank-content-body-tips{ + font-size: 28px; + font-weight: bold; + color: #0000000d; + user-select: none; + margin-top: -50px; +} +/*********************************************************************************** +************************************************************************************ + 遮罩层 end +************************************************************************************ +************************************************************************************/ \ No newline at end of file diff --git a/web-res/css/component/user-info.css b/web-res/css/component/user-info.css new file mode 100644 index 0000000..aa3f777 --- /dev/null +++ b/web-res/css/component/user-info.css @@ -0,0 +1,118 @@ +/*********************************************************************************** +************************************************************************************ + 弹窗 - 用户信息 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-user-info-popup{ + padding: 3px; + width: calc(100% - 6px); + height: calc(100% - 6px); +} + +.tl-rtc-app-layer-user-info-popup{ + background: var(--skin-body-background) !important; + color: var(--skin-body-color) !important; +} + +.tl-rtc-app-layer-user-info-popup .layui-layer-title{ + color: var(--skin-body-color) !important; + border-bottom: 1px solid var(--skin-body-border-color) !important; + border-radius: 6px; +} + +.tl-rtc-app-user-info-popup-footer button{ + color: var(--skin-body-color); +} + +.tl-rtc-app-user-info-popup-footer button:hover{ + color: var(--skin-body-color); +} + +.tl-rtc-app-user-info-popup-header{ + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + padding: 10px; + border-bottom: 1px solid var(--skin-body-border-color); +} + +.tl-rtc-app-user-info-popup-header-mobile{ + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + padding: 10px; + border-bottom: 1px solid var(--skin-body-border-color); +} + +.tl-rtc-app-user-info-popup-header-avatar{ + padding-right: 10px; +} + +.tl-rtc-app-user-info-popup-header-avatar img{ + width: 50px; + height: 50px; +} + +.tl-rtc-app-user-info-popup-content{ + padding: 10px; + height: 90px; + overflow-y: scroll; +} + +.tl-rtc-app-user-info-popup-content-mobile{ + padding: 20px; + overflow-y: scroll; +} + +.tl-rtc-app-user-info-popup-content-item{ + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; + padding: 5px; +} + +.tl-rtc-app-user-info-popup-content-item-mobile{ + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; + padding: 10px 5px; +} + +.tl-rtc-app-user-info-popup-content-item-title{ + padding-right: 10px; +} + +.tl-rtc-app-user-info-popup-footer{ + position: absolute; + display: flex; + flex-direction: row; + justify-content: space-evenly; + align-items: center; + padding: 10px; + bottom: 0; + width: calc(100% - 26px); +} + +.tl-rtc-app-user-info-popup-footer-mobile{ + position: absolute; + display: flex; + flex-direction: row; + justify-content: space-evenly; + align-items: center; + padding: 10px; + bottom: 15px; + width: calc(100% - 26px); +} + +.tl-rtc-app-user-info-popup-footer button { + border-radius: 4px; +} +/*********************************************************************************** +************************************************************************************ + 弹窗 - 用户信息 end +************************************************************************************ +************************************************************************************/ \ No newline at end of file diff --git a/web-res/css/contact/contact-list.css b/web-res/css/contact/contact-list.css new file mode 100644 index 0000000..2bc3ff2 --- /dev/null +++ b/web-res/css/contact/contact-list.css @@ -0,0 +1,359 @@ +/*********************************************************************************** +************************************************************************************ + 联系人列表 start +************************************************************************************ +************************************************************************************/ +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top{ + height: var(--left-contact-top); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header{ + display: flex; + padding: 15px 10px 15px 0px; + flex-direction: row; + justify-content: space-between; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-block{ + display: flex; + align-items: flex-end; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-title{ + font-size: 16px; + font-weight: bold; + color: var(--skin-top-header-title-color); + margin-right: 10px; + margin-left: 20px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + width: 70%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool{ + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + transition: all 0.3s; + background: var(--skin-top-header-tool-background); + padding: 2px 5px; + border-radius: 4px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool:hover{ + box-shadow: var(--skin-contact-header-tool-hover-shadow); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool svg{ + width: 14px; + height: 14px; + fill: var(--skin-contact-header-tool-svg-fill-color); + transition: all 0.3s; + scale: 1.5; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool:hover svg{ + fill: var(--skin-contact-header-tool-svg-hover-fill-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search{ + padding: 5px 0; + line-height: 0px; + width: 96%; + margin-left: 2%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search i{ + position: relative; + margin-left: 8px; + top: 16px; + color: var(--skin-contact-top-search-i-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search svg{ + color: var(--skin-contact-top-search-i-color); + position: relative; + float: right; + right: 8px; + margin-top: -22px; + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search input{ + width: 100%; + height: 30px; + padding-left: 30px !important; + border-radius: 4px; + background: var(--skin-contact-top-search-input-background); + color: var(--skin-contact-top-search-input-color); + font-size: 13px; + letter-spacing: 1px; + border-width: 0.5px; + border-color: var(--skin-contact-top-search-input-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact{ + height: calc(100% - var(--left-contact-top) - 5px); + overflow-y: auto; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item{ + border-bottom: 1px solid var(--skin-body-border-color); + display: flex; + justify-content: flex-start; + align-items: center; + padding: 4px 0; + cursor: pointer; + border-radius: 2px; + transition: all 0.1s; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item:hover{ + background: var(--skin-contact-list-item-hover-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-img{ + width: 20%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-img img{ + height: 32px; + width: 32px; + margin: 20%; + -webkit-user-drag: none; + border-radius: 3px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content{ + width: 50%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content div{ + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content-nickname{ + font-weight: bold; + font-size: 13px; + letter-spacing: 0.5px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content-state{ + font-size: 11px; + color: var(--skin-contact-content-item-message-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content-message{ + font-size: 12px; + margin-top: 10px; + color: var(--skin-contact-content-item-message-color); + letter-spacing: 0.5px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other{ + width: 30%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other div{ + text-align: right; + font-size: 12px; + scale: 0.9; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other-status{ + margin-top: 10px; + color: var(--skin-contact-content-item-other-status-color); + padding-right: 8px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other-unread{ + padding-right: 8px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other-unread div{ + border-radius: 50%; + width: 10px; + height: 10px; + padding: 0; + font-size: 7px; + transition: right 0.3s; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content{ + padding: 5px 10px; + transition: padding 0.3s; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content .goBack{ + top: 17px; + left: 15px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info{ + display: flex; + flex-direction: row; + padding: 30px 20px; + border-bottom: solid 1px var(--skin-body-border-color); + flex-wrap: nowrap; + justify-content: flex-start; + align-items: center; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other{ + padding: 0px 20px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item{ + padding: 20px 0px; + border-bottom: solid 1px var(--skin-body-border-color); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item-value{ + margin-left: 5px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item-value-avatar{ + height: 32px; + width: 32px; + padding-left: 5px; + -webkit-user-drag: none; + border-radius: 3px; + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-type{ + position: absolute; + right: 40px; + font-size: 12px; + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-type svg{ + width: 18px; + height: 18px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-type svg:hover{ + fill: var(--skin-contact-content-other-item-badge-background); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item-value-badge{ + background-color: var(--skin-contact-content-other-item-badge-background) !important; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-avatar{ + margin-right: 20px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-avatar img{ + width: 60px; + height: 60px; + user-select: none; + -webkit-user-drag: none; + border-radius: 3px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-more-item{ + margin-bottom: 10px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-more-item b{ + font-size: 18px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool-btn{ + text-align: center; + padding: 25px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool-btn button{ + font-size: 12px; + border-radius: 4px; + width: 100px; + letter-spacing: 1px; + background-color: var(--skin-contact-content-apply-button-background); + color: var(--skin-contact-content-apply-button-color); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool{ + display: flex; + justify-content: space-around; + align-items: center; + flex-direction: row; + text-align: center; + padding: 30px 20px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool +.tl-rtc-app-right-contact-content-tool-item{ + padding: 5px 10px; + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool +.tl-rtc-app-right-contact-content-tool-item svg{ + width: 18px; + height: 18px; + padding: 5px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool-item:hover{ + color: var(--skin-contact-content-tool-item-hover-background); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-top{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + align-items: center; + border-bottom: 1px solid var(--skin-body-border-color); + padding-bottom: 10px; + height: 30px; + margin-left: 15px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-top-title{ + font-size: 15px; + font-weight: bold; + user-select: none; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} + +.tl-rtc-app-right-contact-content-friend{ + height: 100%; + padding: 5px 0; + width: 100%; +} + +.tl-rtc-app-right-contact-content-apply{ + height: 100%; + padding: 5px 0; + width: 100%; +} + +.tl-rtc-app-right-contact-content-search{ + height: 100%; + padding: 5px 0; + width: 100%; +} + +.tl-rtc-app-right-contact-content-group{ + height: 100%; + padding: 5px 0; + width: 100%; +} +/*********************************************************************************** +************************************************************************************ + 联系人列表 end +************************************************************************************ +************************************************************************************/ diff --git a/web-v2-res/css/ipad.css b/web-res/css/ipad.css similarity index 100% rename from web-v2-res/css/ipad.css rename to web-res/css/ipad.css diff --git a/web-res/css/login/login-scan.css b/web-res/css/login/login-scan.css new file mode 100644 index 0000000..99f18a3 --- /dev/null +++ b/web-res/css/login/login-scan.css @@ -0,0 +1,233 @@ + +/*********************************************************************************** +************************************************************************************ + 登录界面-扫码登陆 start +************************************************************************************ +************************************************************************************/ +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header-mobile{ + line-height: var(--left-login-top); + padding: 30px 0 30px; + border-bottom: 1px solid var(--skin-body-border-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header-title-mobile{ + font-size: 20px; + font-weight: bold; + color: var(--skin-top-header-title-color); + margin-left: 10px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + text-align: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-footer-mobile{ + position: absolute; + bottom: 0px; + width: 100%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-help-mobile{ + text-align: center; + font-size: 12px; + color: var(--skin-login-help-mobile-color); + padding: 15px 0; + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-help-mobile:hover{ + color: var(--skin-login-help-mobile-hover-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-mobile{ + border-bottom: 1px solid var(--skin-body-border-color); + display: flex; + padding: 10px 30px; + cursor: pointer; + border-radius: 4px; + flex-direction: row; + justify-content: space-evenly; + flex-wrap: wrap; + align-content: center; + align-items: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-mobile{ + padding: 30px 0; + text-align: center; + transition: all 0.3s; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-mobile{ + padding: 20px; + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-list-mobile{ + display: flex; + justify-content: center; + transition: all 1s; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-mobile .layui-badge-dot{ + width: 50px; + height: 23px; + line-height: 23px; + font-size: 10px; + border-radius: 4px; + margin-top: 10px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-mobile img{ + width: 45px; + height: 45px; + border-radius: 50%; +} + +.tl-rtc-app-left-panel-login-body-username{ + padding: 10px 0 0; + font-size: 14px; + font-weight: bold; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-btns{ + padding: 45px 0; + width: 70%; + margin-left: 15%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-btns button{ + width: 100%; + font-size: 11px; + background-color: var(--skin-login-button-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-btns button b{ + letter-spacing: 3px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-clean{ + margin: 35px 0; + font-size: 12px; + cursor: pointer; + transition: all 0.2s; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-clean:hover{ + color: var(--skin-login-body-clean-color); +} + +/* #tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-mobile:hover{ + color: var(--skin-login-body-clean-hover-color); +} */ + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-name-mobile{ + margin-left: 10px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon-mobile{ + border-radius: 50%; + padding: 10px; + border: 0.5px solid var(--skin-body-border-color); + transition: all 0.2s; + margin: 6px 8px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon-mobile:hover{ + background: var(--skin-login-item-mobile-icon-background); + color: var(--skin-login-body-clean-hover-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon-mobile svg{ + width: 20px; + height: 20px; + transition: all 0.2s; +} + +#tl-rtc-app .tl-rtc-app-left #tl-rtc-app-left-panel-login-body-scan-mobile{ + text-align: center; + display: flex; + flex-direction: row; + align-content: center; + flex-wrap: wrap; + justify-content: center; + align-items: center; + margin-top: 10px; +} + +#tl-rtc-app .tl-rtc-app-left #tl-rtc-app-left-panel-login-body-scan-mobile img{ + width: 150px; + height: 150px; + user-select: none; + -webkit-user-drag: none; + -webkit-user-select: none; + -moz-user-select: none; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-code-mobile{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: center; + padding: 30px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-code-mobile input{ + width: 140px; + font-size: 18px; + letter-spacing: 10px; + font-weight: bold; + padding-left: 15px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-title-mobile{ + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-content: center; + justify-content: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-title-mobile div{ + margin-top: 20px; + color: var(--skin-login-content-body-scan-title-color); + font-size: 11px; + font-weight: bold; + border: 1px solid var(--skin-body-border-color); + width: 100px; + padding: 6px; + background: var(--skin-login-content-body-scan-title-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container { + display: flex; + justify-content: center; + gap: 10px; + padding: 20px 0; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container-item { + width: 35px; + height: 40px; + font-size: 24px; + text-align: center; + border: aliceblue; + border-radius: 5px; + outline: none; + transition: border-color 0.3s; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container-item:disabled { + background-color: var(--skin-login-content-body-scan-code-item-disabled-background); + cursor: not-allowed; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container-item:focus { + border-color: var(--skin-login-content-body-scan-code-item-focus-border-color); +} +/*********************************************************************************** +************************************************************************************ + 登录界面-扫码登陆 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/login/login.css b/web-res/css/login/login.css new file mode 100644 index 0000000..18ea2e6 --- /dev/null +++ b/web-res/css/login/login.css @@ -0,0 +1,206 @@ +/*********************************************************************************** +************************************************************************************ + 登陆界面 start +************************************************************************************ +************************************************************************************/ +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login{ + height: 100%; + text-align: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header{ + line-height: var(--left-login-top); + padding: 10px; + border-bottom: 1px solid var(--skin-body-border-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header-title{ + font-size: 16px; + font-weight: bold; + color: var(--skin-top-header-title-color); + margin-left: 10px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + text-align: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item{ + height: 50px; + border-bottom: 1px solid var(--skin-body-border-color); + display: flex; + padding: 4px 0; + cursor: pointer; + flex-direction: row; + justify-content: center; + flex-wrap: wrap; + align-content: center; + align-items: center; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item:hover{ + color: var(--skin-login-list-item-hover-color); + background-color: var(--skin-login-list-item-hover-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-name{ + margin-left: 10px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon svg{ + width: 20px; + height: 20px; + transition: all 0.2s; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content{ + height: 100%; + border-radius: 10px; + text-align: center; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body{ + padding: 30px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-header{ + height: 50px; + font-size: 22px; + font-weight: bold; + font-family: serif; + margin-top: 100px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form{ + padding: 20px 100px 20px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form img{ + width: 60%; + border-radius: 50%; + -webkit-user-drag: none; + border-radius: 3px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item{ + padding: 10px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item input{ + border-radius: 4px; + padding: 0 15px; + color: var(--skin-login-content-form-input-color); + letter-spacing: 1px; + font-weight: bold; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item button{ + width: 100%; + font-size: 11px; + background-color: var(--skin-login-button-background); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item button b{ + letter-spacing: 3px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-bottom{ + display: flex; + flex-direction: row; + justify-content: space-around; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-bottom div{ + color: var(--skin-login-content-body-bottom-color); + cursor: pointer; + transition: all 0.2s; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-bottom div:hover{ + color: var(--skin-login-content-body-bottom-hover-color); + font-weight: bold; +} + +.tl-rtc-app-get-email-code-btn{ + border: unset !important; + width: 30% !important; + border-top-left-radius: 0 !important; + border-bottom-left-radius: 0 !important; + color: var(--skin-login-email-code-btn-color) !important; +} + +.tl-rtc-app-get-email-code-btn-disabled{ + background-color: var(--skin-login-email-code-btn-disabled-background) !important; + color: var(--skin-login-email-code-btn-color) !important; +} + +#tl-rtc-app .tl-rtc-app-right #tl-rtc-app-right-login-content-body-scan-qrcode{ + text-align: center; + display: flex; + flex-direction: row; + align-content: center; + flex-wrap: wrap; + justify-content: center; + align-items: center; + margin-top: 45px; +} + +#tl-rtc-app .tl-rtc-app-right #tl-rtc-app-right-login-content-body-scan-qrcode img{ + width: 150px; + height: 150px; + user-select: none; + --webkit-user-drag: none; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-title { + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-content: center; + justify-content: center; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-title div{ + margin-top: 30px; + color: var(--skin-login-content-body-scan-title-color); + font-size: 11px; + font-weight: bold; + border: 1px solid var(--skin-body-border-color); + width: 100px; + padding: 6px; + background: var(--skin-login-content-body-scan-title-background); +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container { + display: flex; + justify-content: center; + gap: 10px; + padding: 30px 0; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container-item { + width: 35px; + height: 40px; + font-size: 24px; + text-align: center; + border: aliceblue; + border-radius: 5px; + outline: none; + transition: border-color 0.3s; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container-item:disabled { + background-color: var(--skin-login-content-body-scan-code-item-disabled-background); + cursor: not-allowed; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container-item:focus { + border-color: var(--skin-login-content-body-scan-code-item-focus-background); +} + +/*********************************************************************************** +************************************************************************************ + 登录界面 end +************************************************************************************ +************************************************************************************/ diff --git a/web-v2-res/css/max-mobile.css b/web-res/css/max-mobile.css similarity index 100% rename from web-v2-res/css/max-mobile.css rename to web-res/css/max-mobile.css diff --git a/web-v2-res/css/max.css b/web-res/css/max.css similarity index 100% rename from web-v2-res/css/max.css rename to web-res/css/max.css diff --git a/web-v2-res/css/mobile.css b/web-res/css/mobile.css similarity index 72% rename from web-v2-res/css/mobile.css rename to web-res/css/mobile.css index 2d85916..9b77f9f 100644 --- a/web-v2-res/css/mobile.css +++ b/web-res/css/mobile.css @@ -191,37 +191,6 @@ left: 15px; } - .tl-rtc-app-right-cloud-content-recent-top-title, - .tl-rtc-app-right-cloud-content-history-top-title, - .tl-rtc-app-right-cloud-content-self-top-title, - .tl-rtc-app-right-cloud-content-group-top-title, - .tl-rtc-app-right-cloud-content-collect-top-title, - .tl-rtc-app-right-cloud-content-recycle-top-title, - .tl-rtc-app-right-p2p-channel-content-top-title, - .tl-rtc-app-right-cut-paste-content-top-title, - .tl-rtc-app-right-document-content-code-top-title, - .tl-rtc-app-right-document-content-pdf-top-title, - .tl-rtc-app-right-document-content-word-top-title, - .tl-rtc-app-right-document-content-excel-top-title, - .tl-rtc-app-right-document-content-ppt-top-title - { - margin-left: 30px; - } - - .tl-rtc-app-right-cloud-content-recent-top-tool-item:first-child, - .tl-rtc-app-right-cloud-content-history-top-tool-item:first-child, - .tl-rtc-app-right-cloud-content-group-top-tool-item:first-child, - .tl-rtc-app-right-cloud-content-self-top-tool-item:first-child, - .tl-rtc-app-right-cloud-content-collect-top-tool-item:first-child, - .tl-rtc-app-right-cloud-content-recycle-top-tool-item:first-child - { - display: none; - } - - .tl-rtc-app-right-cloud-content-upload{ - width: calc(100% - 20px); - } - #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info-self{ width: calc(100% - 28px); margin-left: 28px; @@ -248,14 +217,6 @@ margin-left: 30px; } - #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-meeting-content-top{ - margin-left: 30px; - } - - #tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-dates-content-top{ - margin-left: 30px; - } - .layui-colorpicker{ padding: 3px 5px; } @@ -276,40 +237,22 @@ scale: .9; } - .tl-rtc-app-meeting-list .tl-rtc-app-meeting-list-item{ - padding: 0px 20px 0 25px; + .tl-rtc-app-cloud-file-qrcode-section img{ + width: 200px; + height: 200px; + padding: 30px; + } + + .tl-rtc-app-right-channel-content-body-quick-message-content-block{ + width: 100% !important; } - .tl-rtc-app-right-document-content #word-editor{ - height: calc(100% - 110px) !important; + .tl-rtc-app-right-channel-content-body-at-user-content-block{ + width: 100% !important; } - .tl-rtc-app-right-document-content #pdf-editor{ - height: calc(100% - 110px) !important; - } - - .tl-rtc-app-right-document-content #code-editor{ - height: calc(100% - 110px) !important; - } - - .tl-rtc-app-right-document-content #ppt-editor{ - height: calc(100% - 110px) !important; - } - - .tl-rtc-app-right-document-content #excel-editor{ - height: calc(100% - 110px) !important; - } - - .tl-rtc-app-right-document-content .tl-rtc-app-editor-footer{ - width: calc(100% - 30px) !important; - } - - .tl-rtc-app-right-document-content .tl-rtc-app-editor-footer .tl-rtc-app-editor-footer-btn{ - padding: 2px 6px !important; - } - - .tl-rtc-app-right-document-content .tl-rtc-app-editor-footer .tl-rtc-app-editor-footer-left{ - font-size: 11px !important; + .tl-rtc-app-right-channel-content-body-reply-content-block{ + width: calc(100% - 20px) !important; } /*********************************************************************************** ************************************************************************************ diff --git a/web-res/css/pc.css b/web-res/css/pc.css new file mode 100644 index 0000000..519143c --- /dev/null +++ b/web-res/css/pc.css @@ -0,0 +1,355 @@ +html { + box-sizing: border-box; + + --body-width: 80%; + --body-max-width: 1200px; + --body-height: 90%; + + --sidebar-width: 65px; + --left-width: 315px; + --left-channel-top: 130px; + --left-p2p-channel-top: 90px; + --left-contact-top: 100px; + --left-cut-paste-top: 90px; + --left-login-top: 30px; + + --right-channel-content-more-width: 260px; + --right-channel-content-top: 49px; + --right-channel-editor-height: 30%; + --right-channel-content-body: calc(100% - var(--right-channel-content-top) - var(--right-channel-editor-height)); + + /* 主界面配色 */ + --skin-top-header-title-color: #333333; + --skin-top-header-tool-background: #ffffff; + --skin-top-header-tool-fill-color: #959595; + --skin-top-header-tool-hover-fill-color: #333333; + --skin-top-header-tool-hover-shadow: 0 4px 40px #00000026; + --skin-body-color: #000000; + --skin-body-background: #f6f6f6; + --skin-body-shadow: 0 4px 40px #00000026; + --skin-body-border-color: #eae2e28f; + + /* layer消息提示配色 */ + --skin-layer-msg-background: #f6f6f6; + --skin-layer-msg-color: #000000; + --skin-layer-msg-success-color: #04dd04; + --skin-layer-msg-warning-color: #bfbf5d; + --skin-layer-msg-error-color: #ff0000; + + /* layer-tips提示配色 */ + --skin-layer-tips-background: #4f4f4f; + --skin-layer-tips-color: #ffffff; + + /* 侧边栏相关配色 */ + --skin-sidebar-tool-background: #f4f4f4; + --skin-sidebar-tool-hover-background: #a7a4a435; + --skin-sidebar-tool-fill-color: #000000; + --skin-sidebar-tool-hover-fill-color: #000000; + --skin-sidebar-tool-color: #7c7b7b; + --skin-sidebar-tool-hover-color: #000000; + --skin-sidebar-tool-more-border-color: #fbe6e6; + + /* 快捷面板相关配色 */ + --skin-quick-oper-panel-background: #f6f6f6; + --skin-quick-oper-panel-item-color: #797e7e; + --skin-quick-oper-panel-item-hover-background: #eae6e1; + --skin-quick-oper-panel-item-hover-color: #000000; + + /* 频道相关配色 */ + --skin-channel-list-no-channel-color: #00000047; + --skin-channel-list-item-hover-background: #d2deff96; + --skin-channel-list-item-top-background: #e5ebfc96; + --skin-channel-list-item-message-color: #777777; + --skin-channel-list-item-message-at-user-text-color: #ff0000; + --skin-channel-list-item-message-at-me-text-color: #ff0000; + --skin-channel-list-item-time-color: #b8b8b8; + --skin-channel-list-item-quick-mark-unread-background: #6b95be; + --skin-channel-list-item-quick-mark-unread-color: #ffffff; + --skin-channel-list-item-quick-top-background: #75b963; + --skin-channel-list-item-quick-top-color: #ffffff; + --skin-channel-list-item-quick-delete-background: #da5d5d;; + --skin-channel-list-item-quick-delete-color: #ffffff; + --skin-channel-list-item-quick-hidden-background: #88adac;; + --skin-channel-list-item-quick-hidden-color: #ffffff; + --skin-channel-list-item-quick-un-notify-background: #c2b862; + --skin-channel-list-item-quick-un-notify-color: #ffffff; + --skin-channel-top-search-i-color: #c8c8c8; + --skin-channel-top-search-input-background: #F8F9FB; + --skin-channel-top-search-input-color: #3333339e; + --skin-channel-content-top-more-fill-color: #4A4BDB; + --skin-channel-content-body-message-background: #d9deff; + --skin-channel-content-body-message-color: #000000; + --skin-channel-content-body-item-message-at-user-text-color: #4A4BDB; + --skin-channel-content-body-message-system-color: #b7bbc7; + --skin-channel-content-body-message-time-color: #b7bbc7; + --skin-channel-content-body-message-load-more-color: #b7bbc7; + --skin-channel-content-body-message-load-more-hover-color: #4A4BDB; + --skin-channel-content-body-message-name-color: #7a7777; + --skin-channel-content-body-message-name-hover-color: #4A4BDB; + --skin-channel-content-body-message-name-at-color: #4A4BDB; + --skin-channel-content-body-message-menu-icon-background: #ffffff; + --skin-channel-content-body-message-menu-icon-color: #000000; + --skin-channel-content-body-message-menu-icon-hover-background: #ffffff; + --skin-channel-content-body-message-menu-icon-hover-color: #000000; + --skin-channel-content-body-reply-content-block-color: #939392; + --skin-channel-content-body-reply-content-block-background: #dbe6e378; + + /* 频道更多侧边栏相关配色 */ + --skin-channel-content-more-background: #ffffff; + --skin-channel-content-more-shadow: -2px 3px 6px rgba(0,0,0,.15); + --skin-channel-content-more-list-item-hover-color: #7575bd; + --skin-channel-content-more-list-item-oper-channel-name-color: #0000008a; + --skin-channel-content-more-share-tool-item-hover-background: #00c3ff1e; + --skin-channel-content-more-list-item-border-color: #f9f9f9; + --skin-channel-content-more-list-user-item-oper-hover-background: #eeeeee; + --skin-channel-content-more-list-user-item-oper-hover-fill-color: #557189; + + /* 频道邀请好友相关配色 */ + --skin-channel-content-invite-search-i-color: #c8c8c8; + --skin-channel-content-invite-search-input-background: #F8F9FB; + --skin-channel-content-invite-search-input-color: #3333339e; + --skin-channel-content-invite-choose-list-item-hover-background: #d2deff96; + --skin-channel-content-invite-choose-list-empty-color: #b3aaaa; + /* 频道公告相关配色 */ + --skin-channel-content-notice-empty-color: #00000047; + --skin-channel-content-notice-item-hover-background: #f7f6f6; + --skin-channel-content-notice-item-time-color: #b7bbc7; + --skin-channel-content-notice-item-title-color: #b6c1bb; + + /* 音视频相关配色 */ + --skin-media-video-other-item-shadow: 1px 1px 50px rgba(0,0,0,.3); + --skin-media-video-tool-list-svg-fill-color: #ffffff; + --skin-media-video-tool-list-svg-background: #00000069; + --skin-media-video-tool-list-svg-hover-background: #000000db; + --skin-media-video-tool-list-svg-hover-fill-color: #ffffff; + --skin-media-video-tool-list-ysq-close-background: #9ba498c7; + + /* 联系人相关配色 */ + --skin-contact-header-tool-hover-shadow: 0 4px 40px #00000026; + --skin-contact-header-tool-svg-fill-color: #959595; + --skin-contact-header-tool-svg-hover-fill-color: #333333; + --skin-contact-top-search-i-color: #c8c8c8; + --skin-contact-top-search-input-background: #F8F9FB; + --skin-contact-top-search-input-color: #3333339e; + --skin-contact-list-item-hover-background: #d2deff96; + --skin-contact-content-tool-item-hover-background: #6263FB; + --skin-contact-content-other-item-badge-background: #1e9fff; + --skin-contact-content-item-message-color: #777777; + --skin-contact-content-item-other-status-color: #b8b8b8; + --skin-contact-content-apply-button-background: #6263FB; + --skin-contact-content-apply-button-color: #ffffff; + + /* 登陆相关配色 */ + --skin-login-button-background: #6263FB; + --skin-login-list-item-hover-background: #d2deff96; + --skin-login-list-item-hover-color: #1e71ee; + --skin-login-content-form-input-color: #3333339e; + --skin-login-content-body-bottom-color: #5c8dd7; + --skin-login-content-body-bottom-hover-color: #1e71ee; + --skin-login-content-body-scan-title-color: #939ea6; + --skin-login-content-body-scan-title-background: azure; + --skin-login-content-body-scan-code-item-disabled-background: #e6e8ea7a; + --skin-login-content-body-scan-code-item-focus-background: #007bff; + --skin-login-content-body-scan-code-item-focus-border-color: #007bff; + --skin-login-email-code-btn-color: #ffffff; + --skin-login-email-code-btn-disabled-background: #ccc; + --skin-login-help-mobile-color: #8b8b9e; + --skin-login-help-mobile-hover-color: #1e71ee; + --skin-login-body-clean-color: #1e71ee; + --skin-login-body-clean-hover-color: #1e71ee; + --skin-login-item-mobile-icon-background: #bddcff47; + + /* 设置相关配色 */ + --skin-setting-list-item-hover-background: #d2deff96; + --skin-setting-list-item-active-background: #d2deff96; + --skin-setting-top-search-i-color: #c8c8c8; + --skin-setting-top-search-input-background: #F8F9FB; + --skin-setting-top-search-input-color: #3333339e; + --skin-setting-content-top-export-background: #ffffff; + --skin-setting-content-top-export-fill-color: #000000; + --skin-setting-content-block-background: #ffffff69; + --skin-setting-content-block-badge-background: white; + --skin-setting-content-block-badge-color: black; + --skin-setting-content-block-badge-hover-background: #6263FB; + --skin-setting-content-block-badge-hover-color: #ffffff; + --skin-setting-content-block-item-hover-background: #e6f4ff; + --skin-setting-content-bind-icon-hover-color: #1e71ee; + --skin-setting-content-bind-icon-tip-fill-color: #c4c4f4; + --skin-setting-content-preview-item-svg-background: #ffffff; + --skin-setting-content-preview-item-svg-hover-background: #e1f3ff; + --skin-setting-content-account-bind-email-btn-background: #7878c5; + --skin-setting-content-account-bind-email-btn-color: #ffffff; + --skin-setting-content-account-bind-email-input-background: #F8F9FB; + --skin-setting-content-account-bind-email-input-color: #3333339e; + --skin-setting-content-account-bind-email-btn-disabled-background: #ccc; + --skin-setting-content-account-bind-email-btn-disabled-color: #ffffff; + + /* 音视频弹窗相关配色 - 暂不处理 */ + + /* macos弹窗相关配色 - 暂不处理 */ + + /* 用户信息弹窗相关配色 暂不处理 */ + + /* 历史频道消息相关配色 */ + --skin-channel-history-message-top-search-i-color: #c8c8c8; + --skin-channel-history-message-top-search-input-background: #F8F9FB; + --skin-channel-history-message-top-search-input-color: #3333339e; + --skin-channel-history-message-header-tool-item-title-color: #0000004d; + --skin-channel-history-message-search-param-badge-color: #000000; + --skin-channel-history-message-search-param-badge-hover-background: #5c84e9; + --skin-channel-history-message-search-param-badge-hover-color: #fff3f3; + --skin-channel-history-message-search-param-badge-active-background: #6e8fe4; + --skin-channel-history-message-search-param-badge-active-color: #ffffff; + --skin-channel-history-message-list-item-time-color: #000000; + --skin-channel-history-message-content-body-message-background: #d9deff; + --skin-channel-history-message-content-body-message-color: #000000; + --skin-channel-history-message-footer-total-color: #00000091; + --skin-channel-history-message-footer-load-more-color: #00000080; + --skin-channel-history-message-footer-load-more-hover-color: #7b85df; + + /* 表情弹窗相关配色 */ + --skin-face-item-hover-background: #d2deff96; + --skin-face-item-hover-color: #000000; + --skin-face-tab-background: #f6f6f6; + --skin-face-tab-color: #736d6d; + --skin-face-tab-hover-background: #d2deff96; + --skin-face-tab-hover-color: #000000; + --skin-face-search-input-background: #F8F9FB; + --skin-face-search-input-color: #3333339e; + --skin-face-content-title-color: #999; +} + + +[v-cloak] { + visibility: hidden !important; +} + +.vc-switch{ + right: 10px !important; + bottom: 100px !important; +} + +::-webkit-scrollbar{ + width: 0.1px; + height: 4px; + background-color: var(--skin-body-background) +} +::-webkit-scrollbar-track{ + border-radius: 10px; + background-color: var(--skin-body-background) +} +::-webkit-scrollbar-thumb{ + border-radius: 10px; + -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,.2); + background-color: var(--skin-body-background) +} + +.tl-rtc-app-left-show{ + opacity: 1; +} +.tl-rtc-app-left-hidden{ + opacity: 0; +} + +.tl-rtc-app-right-show{ + right: 0; +} +.tl-rtc-app-right-hidden{ + right: -100%; +} + +.tl-rtc-app-sidebar-show{ + opacity: 1; +} +.tl-rtc-app-sidebar-hidden{ + opacity: 0; +} + +.goBack{ + position: absolute; + top: 20px; + left: 20px; + cursor: pointer; + width: 16px !important; + height: 16px !important; +} + +.simulated-focus-outline { + outline: -webkit-focus-ring-color auto 1px; + outline: Highlight auto 1px; + outline-offset: 1px; +} + +#simulated-caret { + position: absolute; + display: none; + width: 1px; + background-color: black; + z-index: 99999999; + pointer-events: none; +} + +@keyframes blink { + 0%, 100% { opacity: 1; } + 50% { opacity: 0; } +} + +.blinking-caret { + animation: blink 1s step-end infinite; +} + +/*********************************************************************************** +************************************************************************************ + 主界面布局 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-body{ + overflow: hidden; + width: var(--body-width); + max-width: var(--body-max-width); + height: var(--body-height); + position: absolute; + + top: calc((100% - var(--body-height)) / 2); + left: calc((100% - var(--body-width)) / 2); + + box-shadow: var(--skin-body-shadow); + z-index: 1000; + background-color: var(--skin-body-background); + color: var(--skin-body-color); + border-radius: 12px; + min-height: 500px; + transition: all 0.3s; +} + +#tl-rtc-app{ + width: 100%; + height: 100%; + display: flex; +} + +#tl-rtc-app .tl-rtc-app-left{ + width: var(--left-width); + display: flex; + user-select: none; + transition: width 0.3s, opacity 0.5s; + background-color: var(--skin-body-background); + border-right: 1px solid var(--skin-body-border-color); +} + +#tl-rtc-app .tl-rtc-app-right{ + width: calc(100% - var(--left-width) - var(--sidebar-width)); + transition: width 0.3s, right 0.5s; + height: 100%; + background-color: var(--skin-body-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel{ + width: 100%; + height: 100%; +} +/*********************************************************************************** +************************************************************************************ + 主界面布局 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/setting/setting-account.css b/web-res/css/setting/setting-account.css new file mode 100644 index 0000000..655bd67 --- /dev/null +++ b/web-res/css/setting/setting-account.css @@ -0,0 +1,197 @@ +/*********************************************************************************** +************************************************************************************ + 设置中心 - 帐号设置 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-right-setting-content-account{ + overflow-y: auto; + height: calc(100% - 55px); +} + +.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block{ + padding: 10px; +} + +.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-title{ + font-size: 13px; + font-weight: bold; + user-select: none; + padding-left: 10px; +} + +.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content{ + padding: 10px; + background: var(--skin-setting-content-block-background); + border-radius: 4px; + margin-top: 10px; +} + +.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content +.tl-rtc-app-right-setting-content-account-block-item{ + display: flex; + flex-wrap: nowrap; + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 10px 5px; + border-bottom: 1px solid var(--skin-body-border-color); + line-height: 25px; +} + +.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content +.tl-rtc-app-right-setting-content-account-block-item:last-child{ + border-bottom: 0px; +} + +.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content +.tl-rtc-app-right-setting-content-account-block-item-title{ + user-select: none; +} + +.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-item-oper{ + text-align: right; +} + +.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-item-oper input{ + height: 33px; + border-radius: 4px; + font-size: 12px; +} + +.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-item-oper.fileSaveToServer +.layui-form-onswitch{ + background-color: #c6f3d1; +} + +.tl-rtc-app-right-setting-content-account-block-item-go-bind-mobile{ + cursor: pointer; + color: var(--skin-body-color); +} + +.tl-rtc-app-right-setting-content-account-block-item-go-bind-mobile:hover{ + color: var(--skin-setting-content-bind-icon-hover-color); +} + +.tl-rtc-app-right-setting-content-account-block-item-go-bind-email{ + cursor: pointer; + color: var(--skin-body-color); +} + +.tl-rtc-app-right-setting-content-account-block-item-go-bind-email:hover{ + color: var(--skin-setting-content-bind-icon-hover-color); +} + +.tl-rtc-app-right-setting-content-account-block-item-go-bind-wx{ + cursor: pointer; + color: var(--skin-body-color); +} + +.tl-rtc-app-right-setting-content-account-block-item-go-bind-wx:hover{ + color: var(--skin-setting-content-bind-icon-hover-color); +} + +.tl-rtc-app-right-setting-content-account-block-item-go-bind-tips{ + fill: var(--skin-setting-content-bind-icon-tip-fill-color) !important; +} + +.tl-rtc-app-right-setting-content-account-block-item-avatar{ + width: 50px; + height: 50px; + border-radius: 50%; + -webkit-user-drag: none; +} + +.tl-rtc-app-right-setting-content-account-block-item-avatar img{ + width: 100%; + height: 100%; + border-radius: 8px; + -webkit-user-drag: none; + cursor: pointer; + transition: all 0.2s; +} + +.tl-rtc-app-right-setting-content-account-block-item-avatar img:hover{ + opacity: 0.5; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-setting-content-top{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + align-items: center; + border-bottom: 1px solid var(--skin-body-border-color); + padding-bottom: 10px; + height: 30px; + margin-left: 15px; +} + +#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-setting-content-top-title{ + font-size: 15px; + font-weight: bold; + user-select: none; + width: 40%; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; +} + +.tl-rtc-app-right-contact-setting-account{ + height: 100%; + padding: 5px 0; + width: 100%; +} + +.tl-rtc-app-right-setting-content-account-bind-email{ + padding: 20px; +} + +.tl-rtc-app-right-setting-content-account-bind-email-item{ + padding: 10px; +} + +.tl-rtc-app-right-setting-content-account-bind-email-item-oper{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-start; + align-items: center; +} + +.tl-rtc-app-right-setting-content-account-bind-email-item-oper button{ + height: 38px; + line-height: 38px; + border-top-left-radius: unset; + border-bottom-left-radius: unset; + border: unset !important; + background-color: var(--skin-setting-content-account-bind-email-btn-background); + color: var(--skin-setting-content-account-bind-email-btn-color); +} + +.tl-rtc-app-right-setting-content-account-bind-email-item-oper #bindEmail, +.tl-rtc-app-right-setting-content-account-bind-email-item-oper #bindEmailCode{ + border-radius: 4px; + padding: 0 15px; + color: var(--skin-setting-content-account-bind-email-input-color); + background-color: var(--skin-setting-content-account-bind-email-input-background); + letter-spacing: 1px; + font-size: 13px; + border-color: var(--skin-setting-content-account-bind-email-input-background); +} + +.tl-rtc-app-right-setting-content-account-bind-email-item-oper #bindEmailCode{ + border-top-right-radius: 0px; + border-bottom-right-radius: 0px; + border-right: unset; +} + +.tl-rtc-app-right-setting-content-account-bind-email-item-oper-disabled{ + background-color: var(--skin-setting-content-account-bind-email-btn-disabled-background) !important; + color: var(--skin-setting-content-account-bind-email-btn-disabled-color) !important; +} +/*********************************************************************************** +************************************************************************************ + 设置中心 - 帐号设置 end +************************************************************************************ +************************************************************************************/ \ No newline at end of file diff --git a/web-res/css/setting/setting-list.css b/web-res/css/setting/setting-list.css new file mode 100644 index 0000000..3c7411d --- /dev/null +++ b/web-res/css/setting/setting-list.css @@ -0,0 +1,159 @@ +/*********************************************************************************** +************************************************************************************ + 设置中心 - 设置列表 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-setting-list{ + height: auto; + overflow-y: auto; +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header{ + display: flex; + padding: 15px 10px 15px 0px; + flex-direction: row; + justify-content: space-between; +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-block{ + display: flex; + align-items: flex-end; +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-title{ + font-size: 16px; + font-weight: bold; + color: var(--skin-top-header-title-color); + margin-right: 10px; + margin-left: 20px; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + width: 70%; +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-tool{ + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + transition: all 0.3s; + background: var(--skin-top-header-tool-background); + padding: 2px 5px; + border-radius: 4px; +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-tool svg{ + width: 14px; + height: 14px; + fill: var(--skin-top-header-tool-fill-color); + transition: all 0.3s; + scale: 1.5; +} + +.tl-rtc-app-setting-list.tl-rtc-app-left-panel-setting-top-header-tool:hover{ + box-shadow: var(--skin-top-header-tool-hover-shadow); +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-tool:hover svg{ + fill: var(--skin-top-header-tool-hover-fill-color); +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-search{ + padding: 5px 0; + line-height: 0px; + width: 96%; + margin-left: 2%; +} + +.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item{ + line-height: 50px; + text-align: center; + cursor: pointer; + transition: all 0.2s; + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: nowrap; + padding: 0px 20px 0 30px; + justify-content: space-between; +} +.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item:hover{ + background-color: var(--skin-setting-list-item-hover-background); +} + +.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item-active{ + background-color: var(--skin-setting-list-item-active-background); +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-item-icon{ + margin-right: 20px; + line-height: 40px; + margin-top: 4px; +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-item-icon svg{ + width: 18px; + height: 18px; + transition: all 0.3s; +} + +.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item:hover +.tl-rtc-app-left-panel-setting-item-icon svg{ + scale: 1.5; +} + +.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-item-name{ + font-size: 14px; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search{ + padding: 5px 0 10px 0; + line-height: 0px; + width: 96%; + margin-left: 2%; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search i{ + position: relative; + margin-left: 8px; + top: 16px; + z-index: 1; + color: var(--skin-setting-top-search-i-color); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search svg{ + color: var(--skin-setting-top-search-i-color); + position: relative; + float: right; + right: 8px; + margin-top: -22px; + cursor: pointer; +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search input{ + width: 100%; + height: 30px; + padding-left: 30px !important; + border-radius: 4px; + background: var(--skin-setting-top-search-input-background); + color: var(--skin-setting-top-search-input-color); + font-size: 13px; + letter-spacing: 1px; + border-width: 0.5px; + border-color: var(--skin-setting-top-search-input-background); +} + +#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-item-body{ + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: center; + align-items: center; +} +/*********************************************************************************** +************************************************************************************ + 设置中心 - 设置列表 end +************************************************************************************ +************************************************************************************/ \ No newline at end of file diff --git a/web-res/css/setting/setting-message.css b/web-res/css/setting/setting-message.css new file mode 100644 index 0000000..e7e421e --- /dev/null +++ b/web-res/css/setting/setting-message.css @@ -0,0 +1,66 @@ +/*********************************************************************************** +************************************************************************************ + 设置中心 - 消息设置 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-right-setting-content-message{ + overflow-y: auto; + height: calc(100% - 55px); +} + +.tl-rtc-app-right-setting-content-message .tl-rtc-app-right-setting-content-message-block{ + padding: 10px; +} + +.tl-rtc-app-right-setting-content-message .tl-rtc-app-right-setting-content-message-block-title{ + font-size: 13px; + font-weight: bold; + user-select: none; + padding-left: 10px; +} + +.tl-rtc-app-right-setting-content-message .tl-rtc-app-right-setting-content-message-block-content{ + padding: 10px; + background: var(--skin-setting-content-block-background); + border-radius: 4px; + margin-top: 10px; +} + +.tl-rtc-app-right-setting-content-message .tl-rtc-app-right-setting-content-message-block-content +.tl-rtc-app-right-setting-content-message-block-item{ + display: flex; + flex-wrap: nowrap; + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 10px 5px; + border-bottom: 1px solid var(--skin-body-border-color); + line-height: 25px; +} + +.tl-rtc-app-right-setting-content-message .tl-rtc-app-right-setting-content-message-block-content +.tl-rtc-app-right-setting-content-message-block-item:last-child{ + border-bottom: 0px; +} + +.tl-rtc-app-right-setting-content-message .tl-rtc-app-right-setting-content-message-block-content +.tl-rtc-app-right-setting-content-message-block-item-title{ + width: 60%; + user-select: none; +} + +.tl-rtc-app-right-setting-content-message .tl-rtc-app-right-setting-content-message-block-item-oper{ + width: 40%; + text-align: right; +} + +.tl-rtc-app-right-setting-content-message .tl-rtc-app-right-setting-content-message-block-item-oper input{ + height: 33px; + border-radius: 4px; + font-size: 12px; +} +/*********************************************************************************** +************************************************************************************ + 设置中心 - 消息设置 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/setting/setting-normal.css b/web-res/css/setting/setting-normal.css new file mode 100644 index 0000000..ff568b5 --- /dev/null +++ b/web-res/css/setting/setting-normal.css @@ -0,0 +1,100 @@ +/*********************************************************************************** +************************************************************************************ + 设置中心 - 通用设置 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-right-setting-content{ + height: 100%; + padding: 5px 10px; +} + +.tl-rtc-app-right-setting-content-normal{ + overflow-y: auto; + height: calc(100% - 55px); +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block{ + padding: 10px; +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-title{ + font-size: 13px; + font-weight: bold; + user-select: none; + padding-left: 10px; +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content{ + padding: 10px; + background: var(--skin-setting-content-block-background); + border-radius: 4px; + margin-top: 10px; +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content +.tl-rtc-app-right-setting-content-normal-block-item{ + display: flex; + flex-wrap: nowrap; + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 10px 5px; + border-bottom: 1px solid var(--skin-body-border-color); + line-height: 25px; +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content +.tl-rtc-app-right-setting-content-normal-block-item:last-child{ + /* border-bottom: 0px; */ +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content +.tl-rtc-app-right-setting-content-normal-block-item-title{ + width: 40%; + user-select: none; +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper{ + width: 60%; + text-align: right; +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper input{ + height: 33px; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + font-size: 12px; +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper +.layui-badge{ + height: 20px; + line-height: 20px; + cursor: pointer; + padding: 0 15px; + transition: all 0.2s; + background-color: var(--skin-setting-content-block-badge-background); + color: var(--skin-setting-content-block-badge-color); +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper +.layui-badge-active{ + background-color: var(--skin-setting-content-block-badge-hover-background) !important; + color: var(--skin-setting-content-block-badge-hover-color); +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper +.layui-badge:hover{ + background-color: var(--skin-setting-content-block-badge-hover-background) !important; + color: var(--skin-setting-content-block-badge-hover-color); +} + +.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper +button{ + height: 33px; +} +/*********************************************************************************** +************************************************************************************ + 设置中心 - 通用设置 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/setting/setting-other.css b/web-res/css/setting/setting-other.css new file mode 100644 index 0000000..b9cb9b8 --- /dev/null +++ b/web-res/css/setting/setting-other.css @@ -0,0 +1,100 @@ +/*********************************************************************************** +************************************************************************************ + 设置中心 - 其他设置 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-right-setting-content-other{ + overflow-y: auto; + height: calc(100% - 55px); +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block{ + padding: 10px; +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-title{ + font-size: 13px; + font-weight: bold; + user-select: none; + padding-left: 10px; +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content{ + padding: 10px; + background: var(--skin-setting-content-block-background); + border-radius: 4px; + margin-top: 10px; +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content +.tl-rtc-app-right-setting-content-other-block-item{ + display: flex; + flex-wrap: nowrap; + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 10px 5px; + border-bottom: 1px solid var(--skin-body-border-color); + line-height: 25px; +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content +.tl-rtc-app-right-setting-content-other-block-item-title{ + width: 40%; + user-select: none; +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper{ + width: 60%; + text-align: right; +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content +.tl-rtc-app-right-setting-content-other-block-item:last-child{ + border-bottom: 0px; +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper +.layui-badge{ + height: 20px; + line-height: 20px; + cursor: pointer; + padding: 0 15px; + transition: all 0.2s; + background-color: var(--skin-setting-content-block-badge-background); + color: var(--skin-setting-content-block-badge-color); +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper +.layui-badge-active{ + background-color: var(--skin-setting-content-block-badge-hover-background) !important; + color: var(--skin-setting-content-block-badge-hover-color); +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper +.layui-badge:hover{ + background-color: var(--skin-setting-content-block-badge-hover-background) !important; + color: var(--skin-setting-content-block-badge-hover-color); +} + +.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper +button{ + height: 33px; +} + +.tl-rtc-app-right-setting-content-other #customWss{ + height: 33px; + border-radius: 2px; + background: var(--skin-setting-top-search-input-background); + color: var(--skin-setting-top-search-input-color); + font-size: 13px; + letter-spacing: 1px; + border-width: 1px; + border-color: var(--skin-body-border-color); +} + +/*********************************************************************************** +************************************************************************************ + 设置中心 - 其他设置 end +************************************************************************************ +************************************************************************************/ \ No newline at end of file diff --git a/web-res/css/setting/setting-skin.css b/web-res/css/setting/setting-skin.css new file mode 100644 index 0000000..4b3e5be --- /dev/null +++ b/web-res/css/setting/setting-skin.css @@ -0,0 +1,206 @@ +/*********************************************************************************** +************************************************************************************ + 设置中心 - 皮肤设置 start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-right-setting-content-skin{ + height: calc(100% - 55px); + overflow-y: auto; +} + +.tl-rtc-app-right-setting-content-top-export{ + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; +} + +.tl-rtc-app-right-setting-content-top-export svg{ + cursor: pointer; + transition: all 0.3s; + width: 16px; + height: 16px; + padding: 5px; + background: var(--skin-setting-content-top-export-background); + fill: var(--skin-setting-content-top-export-fill-color); + border-radius: 4px; +} + +.tl-rtc-app-right-setting-content-top-export svg:hover{ + scale: 1.3; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block{ + padding: 10px; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-title{ + font-size: 13px; + font-weight: bold; + user-select: none; + padding-left: 10px; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-content{ + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-content: center; + justify-content: flex-start; + align-items: center; + padding: 10px 5px; + background: var(--skin-setting-content-block-background); + border-radius: 4px; + margin-top: 10px; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-content +.tl-rtc-app-right-setting-content-skin-block-item{ + display: flex; + flex-direction: column-reverse; + padding: 10px 15px; + margin-right: 10px; + align-items: center; + cursor: pointer; + text-align: center; + transition: all 0.2s; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-content +.tl-rtc-app-right-setting-content-skin-block-item svg{ + width: 24px; + height: 24px; + border-radius: 6px; + user-select: none; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-content +.tl-rtc-app-right-setting-content-skin-block-item:hover{ + background: var(--skin-setting-content-block-item-hover-background); +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-content +.tl-rtc-app-right-setting-content-skin-block-item-active{ + border: 1px solid var(--skin-setting-content-skin-block-item-active-border); + background: var(--skin-setting-content-block-item-hover-background); +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-content +.tl-rtc-app-right-setting-content-skin-block-item-title{ + margin-top: 10px; + font-size: 12px; + user-select: none; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom{ + padding: 0px 10px 20px 10px; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-title{ + font-size: 13px; + font-weight: bold; + user-select: none; + padding-left: 10px; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-title svg{ + scale: 1.5; + cursor: pointer; + transition: all 0.2s; + margin-left: 5px; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-title svg:hover{ + scale: 2; + /* margin-left: 10px; */ +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-content{ + display: flex; + flex-direction: column; + flex-wrap: nowrap; + justify-content: flex-start; + padding: 5px 15px 5px 15px; + background: var(--skin-setting-content-block-background); + border-radius: 4px; + margin-top: 10px; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-item{ + display: flex; + flex-wrap: nowrap; + flex-direction: row; + justify-content: space-between; + align-items: center; + width: 100%; + padding: 10px 0; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-item:last-child{ + border-bottom: 0px; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-item-title{ + user-select: none; + width: 60%; +} + + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-item-oper{ + text-align: right; + width: 40%; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-item-oper svg{ + margin-left: 7px; + border-radius: 50%; + background: var(--skin-setting-content-preview-item-svg-background); + width: 16px; + height: 16px; + padding: 5px; + cursor: pointer; +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-item-oper svg:hover{ + background: var(--skin-setting-content-preview-item-svg-hover-background) +} + +.tl-rtc-app-right-setting-content-skin .tl-rtc-app-right-setting-content-skin-block-custom-item-oper div{ + border-radius: 4px; +} + + +.tl-rtc-app-right-setting-content-skin-preview{ + height: 200px; +} + +.tl-rtc-app-right-setting-content-skin-preview .tl-rtc-app-right-setting-content-skin-block-preview{ + padding: 10px; + height: calc(100% - 20px); +} + +.tl-rtc-app-right-setting-content-skin-preview .tl-rtc-app-right-setting-content-skin-block-title-preview{ + font-size: 13px; + font-weight: bold; + user-select: none; + padding-left: 10px; + line-height: 20px; +} + +.tl-rtc-app-right-setting-content-skin-preview .tl-rtc-app-right-setting-content-skin-block-content-preview{ + align-content: center; + padding: 10px 5px; + background: var(--skin-setting-content-block-background); + border-radius: 4px; + margin-top: 10px; + height: calc(100% - 50px); + overflow: auto; + box-shadow: inset 19px 17px 100px -50px #6d919d4f; + border-top-left-radius: 8px; + border-top-right-radius: 8px; +} +/*********************************************************************************** +************************************************************************************ + 设置中心 - 皮肤设置 end +************************************************************************************ +************************************************************************************/ diff --git a/web-res/css/sidebar/sidebar.css b/web-res/css/sidebar/sidebar.css new file mode 100644 index 0000000..dae808b --- /dev/null +++ b/web-res/css/sidebar/sidebar.css @@ -0,0 +1,309 @@ +/*********************************************************************************** +************************************************************************************ + 侧边栏 start +************************************************************************************ +************************************************************************************/ +#tl-rtc-app .tl-rtc-app-left-sidebar{ + width: var(--sidebar-width); + background-color: var(--skin-sidebar-tool-background); + box-shadow: var(--skin-body-shadow); + transition: width 0.3s, opacity 0.5s; +} + +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-tool{ + height: calc(var(--body-height) - 65px); +} + +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item{ + width: 100%; + height: 50px; + margin-top: 5px; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + transition: all 0.3s; + position: relative; + color: var(--skin-sidebar-tool-color); + font-size: 11px; +} + +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:first-child{ + margin-top: 1px; +} + +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item svg{ + width: 20px; + height: 20px; + fill: var(--skin-sidebar-tool-fill-color); + transition: all 0.3s; +} + +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:hover, +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item-hover { + background-color: var(--skin-sidebar-tool-hover-background); + color: var(--skin-sidebar-tool-hover-color); +} + +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:hover svg, +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item-hover svg{ + scale: 1.1; + fill: var(--skin-sidebar-tool-hover-fill-color); +} + +.tl-rtc-app-left-sidebar-item-dog{ + position: absolute; + margin-top: -25px; + transition: right .3s; + right: 3px; + line-height: 14px; + height: 14px; + border-radius: 4px; + font-size: 11px; + padding: 0px 4px; + scale: .9; + display: inline; +} + +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-bottom{ + position: absolute; + bottom: 10px; + width: calc(var(--sidebar-width) - 1px); + transition: width 0.3s; +} + +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-logo{ + color: var(--skin-sidebar-tool-color); + font-weight: bold; + width: 100%; + height: 50px; + margin-top: 5px; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + transition: all 0.3s; + font-size: 12px; +} + +#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-logo p{ + width: 80%; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + white-space: nowrap; + text-align: center; + font-size: 10px; +} +/*********************************************************************************** +************************************************************************************ + 侧边栏 end +************************************************************************************ +************************************************************************************/ + + + + +/*********************************************************************************** +************************************************************************************ + 侧边栏 - 更多hovertips start +************************************************************************************ +************************************************************************************/ +.tl-rtc-app-hovertips { + position: fixed; + z-index: 1000; + background-color: var(--skin-body-background); + border-radius: 8px; + box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); + transition: opacity 0.3s; + animation: fadeIn 0.2s ease-in-out; + padding: 0; + border: 1px solid rgba(0, 0, 0, 0.1); + max-width: 90vw; +} + +@keyframes fadeIn { + from { opacity: 0; } + to { opacity: 1; } +} + +.tl-rtc-app-hovertips-content { + padding: 5px 0; + min-width: 150px; + max-width: 180px; + overflow: hidden; +} + +.tl-rtc-app-hovertips-title { + font-size: 14px; + font-weight: bold; + margin-bottom: 10px; + color: var(--skin-body-color); + text-align: center; + padding-bottom: 5px; + border-bottom: 1px solid rgba(255, 255, 255, 0.1); +} + +/* 新的垂直布局 */ +.tl-rtc-app-hovertips-tools-vertical { + display: flex; + flex-direction: column; + width: 100%; + scrollbar-width: thin; + scrollbar-color: #ddd transparent; +} + +/* 自定义滚动条样式 */ +.tl-rtc-app-hovertips-tools-vertical::-webkit-scrollbar { + width: 4px; +} + +.tl-rtc-app-hovertips-tools-vertical::-webkit-scrollbar-track { + background: transparent; +} + +.tl-rtc-app-hovertips-tools-vertical::-webkit-scrollbar-thumb { + background-color: #ddd; + border-radius: 4px; +} + +.tl-rtc-app-hovertips-tools-vertical::-webkit-scrollbar-thumb:hover { + background-color: #ccc; +} + +.tl-rtc-app-hovertips-tool-vertical { + display: flex; + align-items: center; + padding: 8px 15px; + cursor: pointer; + transition: background-color 0.2s; + color: var(--skin-body-color); + border-bottom: 0.5px solid var(--skin-sidebar-tool-more-border-color); /** #3b3939**/ +} + +.tl-rtc-app-hovertips-tool-vertical:last-child { + border-bottom: none; +} + +.tl-rtc-app-hovertips-tool-vertical:hover { + background-color: var(--skin-sidebar-tool-hover-background); +} + +.tl-rtc-app-hovertips-tool-icon { + position: relative; + margin-right: 10px; + display: flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; +} + +.tl-rtc-app-hovertips-tool-vertical .tl-rtc-app-hovertips-tool-icon svg { + width: 20px; + height: 20px; + fill: var(--skin-sidebar-tool-fill-color); + transition: transform 0.2s; +} + +.tl-rtc-app-hovertips-tool-title { + font-size: 14px; + white-space: nowrap; + flex: 1; +} + +.tl-rtc-app-hovertips-badge { + position: absolute; + top: -5px; + right: -5px; + background-color: red; + color: white; + border-radius: 50%; + min-width: 16px; + height: 16px; + font-size: 10px; + display: flex; + align-items: center; + justify-content: center; + padding: 0 2px; +} + +/* 箭头样式 */ +.tl-rtc-app-hovertips-arrow { + position: absolute; + width: 0; + height: 0; + border-style: solid; + pointer-events: none; + z-index: 1001; +} + +/* 左侧箭头 - 调整为指向右侧的三角形 */ +.tl-rtc-app-hovertips-arrow-left { + left: -8px; + border-width: 8px 8px 8px 0; + border-color: transparent var(--skin-body-background) transparent transparent; + filter: drop-shadow(-2px 0px 1px rgba(0, 0, 0, 0.05)); + margin-top: -8px; /* 调整垂直居中 */ +} + +/* 右侧箭头 - 调整为指向左侧的三角形 */ +.tl-rtc-app-hovertips-arrow-right { + right: -8px; + border-width: 8px 0 8px 8px; + border-color: transparent transparent transparent var(--skin-body-background); + filter: drop-shadow(2px 0px 1px rgba(0, 0, 0, 0.05)); + margin-top: -8px; /* 调整垂直居中 */ +} + +/* 顶部箭头 */ +.tl-rtc-app-hovertips-arrow-top { + top: -8px; + border-width: 0 8px 8px 8px; + border-color: transparent transparent var(--skin-body-background) transparent; + filter: drop-shadow(0px -2px 1px rgba(0, 0, 0, 0.05)); +} + +/* 底部箭头 */ +.tl-rtc-app-hovertips-arrow-bottom { + bottom: -8px; + border-width: 8px 8px 0 8px; + border-color: var(--skin-body-background) transparent transparent transparent; + filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.05)); +} + +.tl-rtc-app-hovertips-tool-icon svg { + width: 20px; + height: 20px; + fill: var(--skin-sidebar-tool-fill-color); + transition: transform 0.2s; +} + +.tl-rtc-app-hovertips-tool:hover svg, +.tl-rtc-app-hovertips-tool-vertical:hover svg { + transform: scale(1.1); + fill: var(--skin-sidebar-tool-hover-fill-color); +} + +@media (max-width: 768px) { + .tl-rtc-app-hovertips { + max-width: 95vw; + } + + .tl-rtc-app-hovertips-content { + min-width: 120px; + } + + .tl-rtc-app-hovertips-tool-vertical { + padding: 10px 12px; + } + + .tl-rtc-app-hovertips-tool-title { + font-size: 13px; + } +} +/*********************************************************************************** +************************************************************************************ + 侧边栏 - 更多hovertips end +************************************************************************************ +************************************************************************************/ \ No newline at end of file diff --git a/web-res/image/ai-default-avatar.png b/web-res/image/ai-default-avatar.png new file mode 100644 index 0000000..2720ede Binary files /dev/null and b/web-res/image/ai-default-avatar.png differ diff --git a/web-res/image/channel-chat-full.png b/web-res/image/channel-chat-full.png new file mode 100644 index 0000000..061883d Binary files /dev/null and b/web-res/image/channel-chat-full.png differ diff --git a/web-res/image/channel-chat.png b/web-res/image/channel-chat.png new file mode 100644 index 0000000..a5e281f Binary files /dev/null and b/web-res/image/channel-chat.png differ diff --git a/web-res/image/default-avatar.png b/web-res/image/default-avatar.png new file mode 100644 index 0000000..837274c Binary files /dev/null and b/web-res/image/default-avatar.png differ diff --git a/web-res/image/default-call-audio.mp3 b/web-res/image/default-call-audio.mp3 new file mode 100644 index 0000000..ebc6bd5 Binary files /dev/null and b/web-res/image/default-call-audio.mp3 differ diff --git a/web-res/image/drawcircle.png b/web-res/image/drawcircle.png new file mode 100644 index 0000000..4a0b7cc Binary files /dev/null and b/web-res/image/drawcircle.png differ diff --git a/web-res/image/drawcirclefill.png b/web-res/image/drawcirclefill.png new file mode 100644 index 0000000..f3cdf06 Binary files /dev/null and b/web-res/image/drawcirclefill.png differ diff --git a/web-res/image/drawdelete.png b/web-res/image/drawdelete.png new file mode 100644 index 0000000..d3aa75f Binary files /dev/null and b/web-res/image/drawdelete.png differ diff --git a/web-res/image/drawhexagon.png b/web-res/image/drawhexagon.png new file mode 100644 index 0000000..6b58393 Binary files /dev/null and b/web-res/image/drawhexagon.png differ diff --git a/web-res/image/drawhexagonfill.png b/web-res/image/drawhexagonfill.png new file mode 100644 index 0000000..960639b Binary files /dev/null and b/web-res/image/drawhexagonfill.png differ diff --git a/web-res/image/drawline.png b/web-res/image/drawline.png new file mode 100644 index 0000000..f08d090 Binary files /dev/null and b/web-res/image/drawline.png differ diff --git a/web-res/image/drawrectangle.png b/web-res/image/drawrectangle.png new file mode 100644 index 0000000..4866d36 Binary files /dev/null and b/web-res/image/drawrectangle.png differ diff --git a/web-res/image/drawrectanglefill.png b/web-res/image/drawrectanglefill.png new file mode 100644 index 0000000..bee8ff8 Binary files /dev/null and b/web-res/image/drawrectanglefill.png differ diff --git a/web-res/image/drawrhomboid.png b/web-res/image/drawrhomboid.png new file mode 100644 index 0000000..59d7338 Binary files /dev/null and b/web-res/image/drawrhomboid.png differ diff --git a/web-res/image/drawrhomboidfill.png b/web-res/image/drawrhomboidfill.png new file mode 100644 index 0000000..ab3995b Binary files /dev/null and b/web-res/image/drawrhomboidfill.png differ diff --git a/web-res/image/drawstar.png b/web-res/image/drawstar.png new file mode 100644 index 0000000..7e66091 Binary files /dev/null and b/web-res/image/drawstar.png differ diff --git a/web-res/image/drawstarfill.png b/web-res/image/drawstarfill.png new file mode 100644 index 0000000..2386926 Binary files /dev/null and b/web-res/image/drawstarfill.png differ diff --git a/web-res/image/drawtext.png b/web-res/image/drawtext.png new file mode 100644 index 0000000..d7d1644 Binary files /dev/null and b/web-res/image/drawtext.png differ diff --git a/web-res/image/drawtriangle.png b/web-res/image/drawtriangle.png new file mode 100644 index 0000000..610ebbd Binary files /dev/null and b/web-res/image/drawtriangle.png differ diff --git a/web-res/image/drawtrianglefill.png b/web-res/image/drawtrianglefill.png new file mode 100644 index 0000000..d5e14ab Binary files /dev/null and b/web-res/image/drawtrianglefill.png differ diff --git a/web-v2-res/image/friend-default-avatar.png b/web-res/image/friend-default-avatar.png similarity index 100% rename from web-v2-res/image/friend-default-avatar.png rename to web-res/image/friend-default-avatar.png diff --git a/web-v2-res/image/group-default-avatar.png b/web-res/image/group-default-avatar.png similarity index 100% rename from web-v2-res/image/group-default-avatar.png rename to web-res/image/group-default-avatar.png diff --git a/web-res/image/message-notice.mp3 b/web-res/image/message-notice.mp3 new file mode 100644 index 0000000..e02ede8 Binary files /dev/null and b/web-res/image/message-notice.mp3 differ diff --git a/web-v2-res/image/qrcode.jpeg b/web-res/image/qrcode.jpeg similarity index 100% rename from web-v2-res/image/qrcode.jpeg rename to web-res/image/qrcode.jpeg diff --git a/web-res/image/tl-open-source-icon.png b/web-res/image/tl-open-source-icon.png new file mode 100644 index 0000000..36760ae Binary files /dev/null and b/web-res/image/tl-open-source-icon.png differ diff --git a/web-res/image/tl-open-source-logo.png b/web-res/image/tl-open-source-logo.png new file mode 100644 index 0000000..a0bd86b Binary files /dev/null and b/web-res/image/tl-open-source-logo.png differ diff --git a/web-res/image/tlrtcapp-logo.svg b/web-res/image/tlrtcapp-logo.svg new file mode 100644 index 0000000..bb2e772 --- /dev/null +++ b/web-res/image/tlrtcapp-logo.svg @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web-res/image/xspreadsheet.svg b/web-res/image/xspreadsheet.svg new file mode 100644 index 0000000..46b6077 --- /dev/null +++ b/web-res/image/xspreadsheet.svg @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web-v2-res/index.html b/web-res/index.html similarity index 91% rename from web-v2-res/index.html rename to web-res/index.html index 12eca5a..47fe9ca 100644 --- a/web-v2-res/index.html +++ b/web-res/index.html @@ -12,11 +12,12 @@ - + + @@ -24,14 +25,7 @@ - - - - - - - - + diff --git a/web-v2-res/js/basic/comm.js b/web-res/js/basic/comm.js similarity index 57% rename from web-v2-res/js/basic/comm.js rename to web-res/js/basic/comm.js index 61e58fa..f1623b9 100644 --- a/web-v2-res/js/basic/comm.js +++ b/web-res/js/basic/comm.js @@ -11,6 +11,15 @@ s[8] = s[13] = s[18] = s[23] = "-"; return s.join("") }, + randomIdLen: function (len){ + let chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; + let maxPos = chars.length; + let id = ''; + for (let i = 0; i < len; i++) { + id += chars.charAt(Math.floor(Math.random() * maxPos)); + } + return id; + }, addUrlHashParams: function (obj) { let redirect = window.location.protocol + "//" + window.location.host + "#" let oldObj = this.getRequestHashArgsObj(); @@ -337,7 +346,7 @@ */ copyTxt: function (id, content, callback, closeDomIds) { const dom = document.querySelector("#" + id) - if(!dom){ + if (!dom) { return; } dom.setAttribute("data-clipboard-text", content); @@ -353,10 +362,10 @@ }, 1000); }) - if(closeDomIds && closeDomIds.length > 0){ + if (closeDomIds && closeDomIds.length > 0) { closeDomIds.forEach((closeId) => { const closeDom = document.querySelector("#" + closeId) - if(closeDom){ + if (closeDom) { closeDom.addEventListener('click', function () { clipboard.destroy(); }) @@ -371,7 +380,7 @@ * @param {*} wss * @returns */ - isWssHost: function(wss){ + isWssHost: function (wss) { const websocketRegex = /^(wss?:\/\/)((\d{1,3}(\.\d{1,3}){3})|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))(:(\d+))?(\/[^\s]*)?$/; if (typeof wss !== 'string') return false; @@ -466,7 +475,7 @@ * @param {*} hex * @returns */ - invertColor: function(hex) { + invertColor: function (hex) { // 去掉前面的 # hex = hex.replace(/^#/, ''); @@ -523,22 +532,22 @@ * @param {*} param0 */ mouseEnterTips: function ({ - id, text, time=1000, color='#50393d', position='top' + id, text, time = 1000, color = '#50393d', position = 'top' }) { - if(position === 'top'){ + if (position === 'top') { position = 1; - }else if(position === 'right'){ + } else if (position === 'right') { position = 2; - }else if(position === 'bottom'){ + } else if (position === 'bottom') { position = 3; - }else if(position === 'left'){ + } else if (position === 'left') { position = 4; - }else{ + } else { position = 1; } - layer.tips(text, '#'+id, { + layer.tips(text, '#' + id, { skin: 'tl-rtc-app-layer-tips', - tips: [ position, color ], + tips: [position, color], time: time }); }, @@ -684,20 +693,20 @@ }, nameDatabase: function () { const adjectives = [ - + ]; const nouns = [ - + ] return { adjectives, nouns } }, nameDatabaseEn: function () { const adjectives = [ - + ]; const nouns = [ - + ]; return { adjectives, nouns } @@ -921,7 +930,7 @@ * @param {string} sourceId 源元素ID * @param {string} targetId 目标元素ID */ - animateCurveMove: function({ + animateCurveMove: function ({ sourceId, targetId }) { // 获取元素 @@ -937,8 +946,6 @@ const sourceRect = source.getBoundingClientRect(); const targetRect = target.getBoundingClientRect(); - console.log(sourceRect, targetRect); - // 创建动画元素 const animationElem = document.createElement('div'); animationElem.classList.add('tl-rtc-app-p2p-channel-animation'); @@ -972,18 +979,18 @@ const xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.responseType = 'blob'; - + xhr.onload = function () { if (xhr.status === 200) { const blob = xhr.response; const link = document.createElement('a'); const objectUrl = window.URL.createObjectURL(blob); - + link.href = objectUrl; link.download = fileName; document.body.appendChild(link); link.click(); - + window.URL.revokeObjectURL(objectUrl); document.body.removeChild(link); @@ -993,11 +1000,11 @@ console.error('Download failed:', xhr.statusText); } }; - + xhr.onerror = function (e) { reject(e); }; - + xhr.send(); }) }, @@ -1006,7 +1013,7 @@ * @param {*} mobile * @returns */ - checkIsMobile: function(mobile){ + checkIsMobile: function (mobile) { return /^1[3456789]\d{9}$/.test(mobile) }, /** @@ -1014,7 +1021,7 @@ * @param {*} email * @returns */ - checkIsEmail: function(email){ + checkIsEmail: function (email) { return /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(email) }, /** @@ -1065,14 +1072,14 @@ * @param {*} params * @returns */ - checkRequestParams: function(params){ + checkRequestParams: function (params) { const reg = /<|>|&|;|'|"/g; for (const key in params) { - if(reg.test(key)){ + if (reg.test(key)) { return false; } const value = params[key]; - if(value && value instanceof Object){ + if (value && value instanceof Object) { return this.checkRequestParams(value); } if (reg.test(params[key])) { @@ -1081,6 +1088,544 @@ } return true; }, + sanitizeHTML: function (html) { + // 定义允许的标签及其对应的允许属性,以及属性对应的值的白名单 + const allowedTags = { + div: [], + p: [], + span: ['class'], + b: [], + i: [], + u: [], + br: [], + img: ['src', 'alt', 'title', 'class'], + }; + + const allowedTagsValue = { + span: { + class: ['textarea-at-user-text'], + }, + }; + + return html + // 第一阶段:标签级过滤 + .replace(/<\/?([a-z][a-z0-9]*)(?:[^>]*?)?\/?>/gi, (match, tag) => { + tag = tag.toLowerCase(); + if (allowedTags[tag]) { + return match; // 如果标签是允许的,就保留它 + } + return ''; // 否则删除这个标签 + }) + // 第二阶段:属性过滤 + .replace(/<[^>]+>/g, tag => { + return tag + // 匹配标签内的所有属性 + .replace(/(\s+)([a-z][a-z0-9-]*)(\s*=\s*['"][^'"]*['"])?/gi, (match, space, attribute, value) => { + const tagName = tag.match(/<\/?([a-z]+)/)[1].toLowerCase(); + const allowedAttributes = allowedTags[tagName]; + if (allowedAttributes && allowedAttributes.includes(attribute.toLowerCase())) { + // 如果属性是允许的,检查属性值是否在白名单中 + const allowedValues = allowedTagsValue[tagName] && allowedTagsValue[tagName][attribute]; + let val = '' + if(typeof value === 'string') { + val = value.split('=')[1] + val = val.replace(/['"]/g, '') + } + if (allowedValues && allowedValues.length) { + for (let i = 0; i < allowedValues.length; i++) { + if (val == allowedValues[i]) { + return match; // 如果属性值在白名单中,保留属性 + } + } + } else if (!allowedValues) { + return match; // 如果没有设置白名单,保留属性 + } + } + + return ''; // 否则删除这个属性 + }) + // 删除脚本类的标签 + .replace(/<\/?(script|iframe|object|embed|link|meta).*?>/gi, ''); + }) + // 第三阶段:内容净化 + .replace(/(href|src)=("|')/gi, (match, p1, p2) => { + // 仅处理链接和图片等元素的 href 和 src 属性 + if (p1 === 'href' || p1 === 'src') { + // 仅处理恶意的 javascript: 协议 + return match.replace(/javascript:\s*[^'"]*/gi, ''); // 清除 javascript: 协议 + } + return match; // 对其他属性不做修改 + }) + .replace(/javascript:\s*[^'"]*/gi, '') // 移除 javascript: 开头的 URL + .replace(/&#(\d+);?/g, (m, code) => { + const char = String.fromCharCode(code); + return char === '>' ? '' : m; // 防止编码绕过 + }); + }, + /** + * 解密函数 + * @param {*} data + * @param {*} value + * @returns + */ + decryptResData: function ({ + data, value + }, str) { + // 使用 str 生成密钥 + const key = CryptoJS.SHA256(str).toString(CryptoJS.enc.Base64); + + // 转换 value 为字节数组 + const ivArray = CryptoJS.enc.Base64.parse(value); + + // 转换 Base64 编码的 key 为 WordArray + const keyArray = CryptoJS.enc.Base64.parse(key); + + // 解密 + const decrypted = CryptoJS.AES.decrypt(data, keyArray, { + iv: ivArray, + mode: CryptoJS.mode.CBC, + padding: CryptoJS.pad.Pkcs7 + }); + + // 转换为 UTF-8 字符串并解析为 JSON + const decryptedData = decrypted.toString(CryptoJS.enc.Utf8); + + return JSON.parse(decryptedData); + }, + /** + * 替换 HTML 内容中的 标签为实际的 SVG 内容 + * @param {*} htmlContent + * @returns + */ + replaceUseWithSymbolInHTML: function () { + // 获取所有的 元素 + const useElements = document.querySelectorAll('use'); + + useElements.forEach(useElement => { + // 获取 元素的 xlink:href 或 href 属性 + const hrefValue = useElement.getAttribute('xlink:href') || useElement.getAttribute('href'); + + if (hrefValue) { + // 提取符号的 ID,去掉前面的 # 符号 + const symbolId = hrefValue.startsWith('#') ? hrefValue.substring(1) : hrefValue; + + // 查找对应的 元素 + const symbolElement = document.querySelector(`#${symbolId}`); + + if (symbolElement) { + // 克隆 元素的内容 + const symbolContent = symbolElement.innerHTML; + // 找到use元素的父元素 + const parentElement = useElement.parentElement; + parentElement.setAttribute('viewBox', '0 0 1024 1024'); + parentElement.setAttribute('p-id', symbolId); + parentElement.innerHTML = symbolContent; + } + } + }); + }, + /** + * 截图 + */ + captureScreenshot: async function () { + // 直接操作 DOM 中的 标签,替换为实际的 SVG + this.replaceUseWithSymbolInHTML(); + + return await new Promise((resolve) => { + // 使用 html2canvas 对临时容器进行截图 + html2canvas(document.body, { + allowTaint: true, // 允许跨域图片 + useCORS: true, // 使用 CORS 跨域策略 + logging: true, // 开启日志(可选) + scale: 2, // 缩放 + ignoreElements: (element) => { + // style如果有display:none则不截图 + if (element.style.display === 'none') { + return true; + } + } + }).then(canvas => { + // 获取截图的图片 Data URL + const imgData = canvas.toDataURL('image/png'); + + // 创建一个 元素来触发下载 + const link = document.createElement('a'); + link.href = imgData; // 设置下载链接为截图的 Data URL + link.download = 'screenshot.png'; // 设置下载的文件名 + + // 触发点击事件来下载图片 + link.click(); + + resolve(true); + }).catch(err => { + console.error('Error during screenshot capture:', err); + resolve(false); + }); + }) + }, + getQuickMessageList: function () { + const quickMessageList = [ + "你好", + "你好呀", + "你们好呀", + "大家好", + "欢迎", + "在干嘛", + "最近怎么样?", + "吃饭了吗?", + "忙什么呢", + "有空吗?", + "好久不见", + "早上好", + "下午好", + "晚上好", + "今天心情怎么样?", + "今天有啥计划?", + "工作顺利吗?", + "今天过得怎么样?", + "天气不错吧", + "天气怎么样?", + "最近有啥新鲜事?", + "长时间没联系了", + "最近好吗?", + "一切还好吗?", + "你今天忙什么呢", + "一切都还顺利吧", + "你做的怎么样了?", + "有新进展吗?", + "请多指教", + "真高兴见到你", + "怎么了,发生什么事了?", + "最近有点忙", + "今天辛苦了吗", + "下午有空吗?", + "一会儿聊吗", + "你这几天怎么样", + "好久没见面了", + "最近有没有什么好玩的", + "周末有什么安排吗?", + "祝你今天过得愉快", + "今天心情不错呢", + "有机会一起聚聚", + "我来帮忙", + "需要我帮忙吗", + "要一起吃个饭吗?", + "工作怎么样?", + "周末愉快", + "假期过得怎么样?", + "今天做了什么有趣的事?", + "最近在忙什么项目?", + "有什么新动态吗?", + "今天有没有计划去哪里玩?", + "你现在有时间吗?", + "忙完了吗?", + "最近有啥好看的电影推荐?", + "想一起出去走走吗?", + "一切都还好吧", + "最近在忙什么工作呢?", + "工作累吗?", + "听说你最近在做大项目,怎么样了?", + "大家好久不见了", + "今天看起来心情不错呢", + "今天过得挺充实的", + "看你最近挺忙的啊", + "加油,你一定能行的", + "一起喝个咖啡吗?", + "好久没聊天了", + "最近工作有没有压力?", + "这周末有什么安排吗?", + "来一起聊聊吗?", + "最近吃得怎么样?", + "休息一下,别太累", + "周末要不要一起去爬山?", + "要不要一起去看电影?", + "什么时候有空,一起聚聚?", + "可以借你点时间吗?", + "今天过得还好吗?", + "有没有什么新的想法或计划?", + "我在等你消息呢", + "你今天有什么开心的事情吗?", + "最近健身怎么样?", + "你最近有新的兴趣爱好吗?", + "你周末都做什么了?", + "最近是不是特别忙?", + "听说你最近工作很忙,辛苦了", + "你最近都做了些什么?", + "今天有空一起出去走走吗?", + "今天的工作结束了吗?", + "工作有点累吧", + "工作怎么样,忙不忙?", + "最近有什么新进展吗?", + "今天好像有点冷呀", + "今天是什么好日子吗?", + "最近有哪些有趣的事发生?", + "最近看了什么好书?", + "最近常去哪里放松?", + "想和你聊聊生活琐事", + "你最近一直在忙什么呢?", + "天气变冷了,记得保暖", + "你打算什么时候休假?", + "你有时间一起吃个饭吗?", + "周末打算去哪儿玩呢?", + "你最近有什么困惑吗?", + "什么时候一起出去走走?", + "周末去看展览怎么样?", + "去哪里旅游最放松呢?", + "听说最近有个很棒的展览", + "晚上去看个电影如何?", + "你今天做了什么好玩的事情?", + "要不要一起去参加聚会?", + "下午去喝杯咖啡吗?", + "你最近都忙些什么项目呢?", + "希望你今天有个愉快的心情", + "你做的项目进展怎么样了?", + "最近比较忙,能否稍后联系?", + "有什么有趣的活动可以推荐吗?", + "最近压力大吗?", + "聊聊最近的趣事吧", + "今天有点小事需要帮忙", + "工作上遇到什么问题了?", + "最近有啥好玩的计划吗?", + "最近工作还顺利吗?", + "今天挺忙的,不过还好", + "最近有些新点子吗?", + "这段时间一直很忙", + "最近换了新工作吗?", + "这几天有点累,需要休息一下", + "来一起聊聊生活吧", + "最近怎么样,有什么烦恼吗?", + "工作上的事情是不是有点多?", + "你最近有什么想法或者计划吗?", + "最近有没有什么值得分享的事?", + "今天过得特别充实", + "你最近有没有去做什么有趣的事情?", + "周末去徒步怎么样?", + "最近的电影值得一看吗?", + "今天心情很好,想和你分享", + "你最近有时间一起喝杯茶吗?", + "我也在想周末的活动", + "今晚一起去逛街怎么样?", + "今天想和你聊聊工作上的事", + "想知道最近的行业动态", + "你最近有做些什么项目?", + "最近有什么行业新闻值得关注的?", + "最近这个领域有什么新趋势吗?", + "今天的工作有什么突破吗?", + "最近行业里发生了什么重要的变化?", + "你最近有啥好项目可以分享吗?", + "这个项目进展如何?", + "最近在忙什么行业趋势?", + "工作上有什么新进展吗?", + "最近有个很棒的项目,想和你分享", + "你们公司最近在做什么创新的事情?", + "最近的团队合作顺利吗?", + "有没有什么好的合作机会?", + "最近有啥挑战和机会呢?", + "工作忙碌中,也很充实", + "你今天心情怎么样?", + "最近忙什么呢?", + "这段时间好像挺充实的", + "有空一起喝个咖啡吗?", + "最近有什么有趣的活动吗?", + "工作上有没有什么新进展?", + "有时间聊聊吗?", + "最近有没有遇到什么困难?", + "你最近在忙什么项目?", + "工作有没有什么挑战?", + "今天过得如何?", + "周末安排好了吗?", + "最近有没有遇到什么麻烦?", + "你现在在做的项目怎么样?", + "最近有看什么好书吗?", + "今天是不是特别忙?", + "最近工作是不是很紧张?", + "最近工作顺利吗?", + "今天完成了哪些任务?", + "今天的天气真不错", + "最近都在忙什么?", + "今天要做什么特别的事情吗?", + "有时间一起聚一下吗?", + "晚上去哪里吃饭?", + "这几天过得怎么样?", + "工作上遇到什么难题了吗?", + "今天的工作进展怎么样?", + "最近有啥新鲜事吗?", + "今天的心情好像不错", + "今天忙完了没?", + "最近有点忙,聊会儿吗?", + "最近有啥新动态?", + "一起去喝杯咖啡吧", + "今天有点累了", + "今天过得真快", + "你最近如何?", + "最近吃得还好吗?", + "最近过得怎么样?", + "你最近有遇到什么有趣的事情吗?", + "今天是个特别的日子吗?", + "工作上有没有遇到新的挑战?", + "最近有什么让你开心的事吗?", + "工作要加油啊", + "最近有没有什么值得分享的经验?", + "最近有没有什么新的想法?", + "今天过得不错吧?", + "最近你做的事情怎么样?", + "有没有什么开心的事要分享?", + "最近如何度过忙碌的日子?", + "你最近都在做什么呢?", + "最近身体还好吗?", + "工作有点辛苦吧", + "今天感觉时间过得飞快", + "今天的任务完成了吗?", + "最近有新的目标或计划吗?", + "你最近有什么新打算吗?", + "最近有任何有趣的事发生吗?", + "今天的工作比较顺利", + "你最近有看什么有趣的电影吗?", + "最近有兴趣一起看个电影吗?", + "今天是不是有点热?", + "最近有什么新鲜事可以分享吗?", + "今天过得怎么样,有什么新消息?", + "最近有没有学到什么新东西?", + "今天有没有什么特别的事情发生?", + "你最近都在忙些什么?", + "这个周末有没有想做的事情?", + "今天心情不错,聊聊吧", + "有时间一起去散步吗?", + "最近你做的项目怎么样?", + "这个周末要不要一起出去玩?", + "最近有没有看到什么好玩的节目?", + "你最近有去哪里旅行吗?", + "有没有新的趣事可以分享?", + "今天过得挺轻松的", + "你今天心情好吗?", + "这周的工作进展如何?", + "最近你都在做些什么工作?", + "你最近打算去哪儿度假?", + "今天有点冷,记得穿暖和点", + "你最近有没有什么新计划?", + "有空一起喝点什么吗?", + "最近有什么好消息要分享?", + "今天过得蛮快的", + "最近有什么事情需要帮忙吗?", + "你最近忙吗?", + "最近有没有什么新鲜事发生?", + "今天有什么特别的安排吗?", + "今天工作忙吗?", + "你最近有没有什么好玩的活动?", + "最近有什么新的挑战要面对吗?", + "今天的心情真好", + "你最近忙什么工作呢?", + "今天很充实,有些小成就", + "最近有没有学到什么有趣的东西?", + "你最近有些什么有趣的想法吗?", + "今天有点挑战,还是挺好", + "最近工作上有没有新的进展?", + "你最近有啥特别的计划吗?", + "最近有时间聚一聚吗?", + "最近都在忙哪些项目?", + "今天的工作有没有完成?", + "最近有新的工作目标吗?", + "你最近都在处理什么事情?", + "今天有点忙碌,不过还行", + "最近有机会休息一下吗?", + "今天很充实,感觉挺好", + "你最近有点累吧", + "今天过得好像特别快", + "最近遇到什么有意思的事了吗?", + "今天有点忙,但也很充实", + "最近怎么样,有没有什么新的收获?", + "最近一直很忙,有没有时间聚聚?", + "今天过得特别顺利", + "你最近都在忙什么呢?", + "工作上有没有什么突破?", + "今天有点挑战,但也挺好", + "最近在忙些什么工作呢?", + "工作上有没有遇到什么难题?", + "今天真的挺忙的", + "最近有新的任务吗?", + "今天进展很快,挺好的", + "最近做得还不错吧", + "你最近还好吗?", + "今天过得很顺利,算是有小小的成就", + "最近有没有什么好玩的活动?", + "有时间一起聊聊吗?", + "今天工作怎么样?", + "最近都在忙些什么?", + "今天有点忙,不过完成得还不错", + "最近有没有新计划吗?", + "最近有空一起聚聚吗?", + "今天过得挺充实", + "你最近怎么样?", + "今天心情不错", + "今天一切顺利吗?", + "最近有啥新动态啊?", + "你最近忙什么呢?", + "今天有点特别,真好", + "最近忙完了吗?", + "今天有点忙碌,不过也挺充实的", + "最近工作有点忙吧", + "今天工作有些挑战,但也挺好", + "最近有没有学到什么新的东西?" + ] + + return quickMessageList; + }, + /** + * 获取文件类型 + * @param {*} fileName + * @returns + */ + supportedTypes: function(){ + return { + // excel类型 + excel: [ + 'xlsx', 'xls', 'csv', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'application/vnd.ms-excel' + ], + // word类型 + word: [ + // 'doc', // Word 97-2003 文档 - 不支持 + 'docx', // Word 2007+ 文档 + 'docm', // 启用宏的 Word 文档 + 'dotx', // Word 模板 + 'dotm', // 启用宏的 Word 模板 + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'application/vnd.ms-word.document.macroEnabled.12', + 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', + 'application/vnd.ms-word.template.macroEnabled.12' + ], + // pdf类型 + pdf: [ + 'pdf', 'pdx', 'pdn', 'fdf', 'pdp' + ], + // 代码类型 + code: [ + 'log', 'txt', 'sh', 'conf', 'env', 'envrc', 'ini', 'properties', 'cfg', 'config', + 'json', 'xml', 'html', 'htm', 'css', 'scss', 'less', 'styl', 'js', 'ts', 'jsx', 'tsx', + 'java', 'php', 'py', 'go', 'cpp', 'c', 'h', 'hpp', 'hxx', 'cc', 'hh', 'c++', 'c#', + 'sql', 'db', 'dbf', 'mdb', 'accdb', 'sqlit', 'db3', 'db2', 'db1', 'md', 'lua' + ], + // ppt类型 + ppt: ['pptx', 'pptm', 'potx', 'potm'], + // 视频类型 + video: [ + 'mp4', 'webm', 'ogg' + ], + // 音频类型 + audio: [ + 'mp3', 'wav', 'ogg' + ], + // zip类型 + zip: [ + 'zip' + ], + // image + image: [ + 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'webp', 'svg' + ], + } + } } window.tl_rtc_app_comm = tl_rtc_app_comm; })() diff --git a/web-v2-res/js/basic/lang.js b/web-res/js/basic/lang.js similarity index 100% rename from web-v2-res/js/basic/lang.js rename to web-res/js/basic/lang.js diff --git a/web-v2-res/js/component/api.js b/web-res/js/component/api.js similarity index 77% rename from web-v2-res/js/component/api.js rename to web-res/js/component/api.js index 7b28b78..4bfe02a 100644 --- a/web-v2-res/js/component/api.js +++ b/web-res/js/component/api.js @@ -2,7 +2,7 @@ const tl_rtc_app_api = new Vue({ el: '#tl-rtc-app-api', data : function(){ return { - defaultOpenCache : true, + defaultOpenCache : false, detaultCacheTime : 2 * 1000 } }, @@ -77,7 +77,7 @@ const tl_rtc_app_api = new Vue({ callback, delCaches = [], responseType - }){ + }){ const token = window.localStorage.getItem('token'); let cacheKey = token + ":" + window.location.origin + ":" + url; @@ -101,6 +101,14 @@ const tl_rtc_app_api = new Vue({ }); if(cacheData && Date.now() < cacheData.expireTime){ + const resHeaders = cacheData.headers; + const resultData = cacheData.data; + const tlStr = resHeaders['tl-str']; + // 解密数据 + if(resultData.success && resHeaders['tl-encypt'] === 'true' && tlStr){ + resultData.data = window.tl_rtc_app_comm.decryptResData(resultData.data, tlStr); + } + console.info(url + ':cached') callback && callback(cacheData) return cacheData @@ -127,19 +135,30 @@ const tl_rtc_app_api = new Vue({ key : cacheKey, value : { data: response.data, + headers: response.headers, expireTime: Date.now() + cacheTime, timestamp : Date.now() } }); } + const resHeaders = response.headers; + const resultData = response.data; + const tlStr = resHeaders['tl-str']; + + // 解密数据 + if(resultData.success && resHeaders['tl-encypt'] === 'true' && tlStr){ + resultData.data = window.tl_rtc_app_comm.decryptResData(resultData.data, tlStr); + } callback && callback(response) - return response; + return resultData } }, mounted: async function() { - + // 是否启用请求缓存 + let useApiCache = window.localStorage.getItem("tl-rtc-app-api-cache") === 'true'; + this.defaultOpenCache = useApiCache; }, created(){ // 请求封装 diff --git a/web-v2-res/js/component/bfp.js b/web-res/js/component/bfp.js similarity index 100% rename from web-v2-res/js/component/bfp.js rename to web-res/js/component/bfp.js diff --git a/web-v2-res/js/component/cache.js b/web-res/js/component/cache.js similarity index 98% rename from web-v2-res/js/component/cache.js rename to web-res/js/component/cache.js index 6ace2a2..4757309 100644 --- a/web-v2-res/js/component/cache.js +++ b/web-res/js/component/cache.js @@ -3,7 +3,6 @@ const tl_rtc_app_cache = new Vue({ data : function(){ return { defaultOpenCache : true, - detaultCacheTime : 2 * 1000 } }, methods: { diff --git a/web-res/js/component/draw.js b/web-res/js/component/draw.js new file mode 100644 index 0000000..8847e26 --- /dev/null +++ b/web-res/js/component/draw.js @@ -0,0 +1,1428 @@ +const tl_rtc_app_draw = new Vue({ + el: '#tl-rtc-app-draw', + data: function () { + return { + devicePixelRatio: window.devicePixelRatio, //设备像素比 + drawing: false, // 是否正在绘制 + isOpenDraw: false, //是否打开画笔 + operDocument: document, //操作的document对象 + operWindow: window, //操作的window对象 + isIframeDraw: false, //是否是iframe画笔 + remoteDrawIndex: -1, //画笔弹窗index + remoteDrawToolBarIndex: -1, //工具栏弹窗index + prePoint: { x: 0, y: 0 }, //上一个点 + drawList: [], // 绘制操作列表, 暂时不存操作数据, 只传输 + drawHistoryList: [], // 绘制历史操作列表, 用于回退 + drawRollbackPoint: 0, // 绘制回退点 + lineWidth: 1, // 画笔线宽 + lineCap : "round", // 线条末端样式 + lineJoin : "round", // 线条连接样式 + strokeStyle: "#000000", // 画笔颜色 + drawMode: "line", // 画笔模式 //line: 线条, circle: 圆形, rectangle: 矩形, text: 文字, delete: 擦除 + circleFill : false, //填充圆模式 + rectangleFill : false, //填充矩形模式 + triangleFill : false, //填充三角形 + starFill : false, //填充星星 + rhomboidFill : false, //填充平行四边形 + hexagonFill : false, //填充六边形 + circleStartPoint: { x: 0, y: 0 }, //圆形开始点 + triangleStartPoint : { x: 0, y: 0 }, //三角形开始点 + starStartPoint : { x: 0, y: 0 }, //星星开始点 + rhomboidStartPoint : { x: 0, y: 0 }, //平行四边形开始点 + hexagonStartPoint : { x: 0, y: 0 }, //六边形边形开始点 + drawSize : 100, //画布比例 + } + }, + watch: { + drawMode: { + handler: function (val) { + if (val !== 'text') { + const parentDom = this.operDocument.getElementById("tl-rtc-app-mouse-draw-canvas-body"); + const textareaDom = this.operDocument.getElementById("tl-rtc-app-mouse-draw-canvas-textarea"); + if (parentDom && textareaDom) { + parentDom.removeChild(textareaDom); + } + } + + if(val !== 'move'){ + const canvas = this.operDocument.getElementById('tl-rtc-app-mouse-draw-canvas'); + if(canvas){ + canvas.style.cursor = ''; + } + } + }, + deep: true, + immediate: true + }, + drawRollbackPoint: { + handler: function (val) { + this.toolDisabledHandler(); + }, + deep: true, + immediate: true + }, + drawHistoryList: { + handler: function (val) { + this.toolDisabledHandler(); + }, + deep: true, + immediate: true + } + }, + methods: { + toolDisabledHandler: function () { + const drawRollbackDom = this.operDocument.getElementById("drawRollback"); + if (drawRollbackDom) { + //如果回退点为0, 将回退节点禁用 + if (this.drawRollbackPoint === 0) { + drawRollbackDom.style.cursor = "no-drop"; + drawRollbackDom.style.color = "#4c53d926"; + } else { + drawRollbackDom.style.cursor = ""; + drawRollbackDom.style.color = ""; + } + } + + const drawRollupDom = this.operDocument.getElementById("drawUndoRollback"); + if (drawRollupDom) { + //如果回退点为最后一个, 将前进节点禁用 + if (this.drawRollbackPoint === this.drawHistoryList.length - 1 + || this.drawHistoryList.length === 0) { + drawRollupDom.style.cursor = "no-drop"; + drawRollupDom.style.color = "#4c53d926" + } else { + drawRollupDom.style.cursor = ""; + drawRollupDom.style.color = ""; + } + } + + const drawResetDom = this.operDocument.getElementById("drawReset"); + if (drawResetDom) { + if (this.drawHistoryList.length === 0) { + drawResetDom.style.cursor = "no-drop"; + drawResetDom.style.color = "#4c53d926" + } else { + drawResetDom.style.cursor = ""; + drawResetDom.style.color = ""; + } + } + }, + openRemoteDraw: function (options) { + //绘制远程画笔时,如果没有打开本地画笔面板,则不允许绘制 + if (!this.isOpenDraw) { + return + } + const { drawMode, event } = options; + const canvas = this.operDocument.getElementById('tl-rtc-app-mouse-draw-canvas'); + const context = canvas.getContext('2d'); + options.remote.canvas = canvas; + options.remote.context = context; + + //收到结束标识,保存当前画板到缓存数据中 + if(event === 'end'){ + this.endDrawHandler({canvas, context}) + return + } + + let { + width : remoteWidth, height : remoteHeight, lineWidth, + curPoint, prePoint, starStartPoint, circleStartPoint, triangleStartPoint, rectangleStartPoint + } = options.remote; + + //计算双方画布比例,按比例进行坐标放大/缩小 + const ratioWidth = canvas.width / remoteWidth; + const ratioHeight = canvas.height / remoteHeight; + + //调整画笔 + options.remote.lineWidth = lineWidth * (ratioWidth + ratioHeight) / 2 + curPoint.x = curPoint.x * ratioWidth; + curPoint.y = curPoint.y * ratioHeight; + options.remote.curPoint = curPoint; + + if (drawMode === 'line') { + prePoint.x = prePoint.x * ratioWidth; + prePoint.y = prePoint.y * ratioHeight; + options.remote.prePoint = prePoint; + this.drawLine(options); + } else if (drawMode === 'circle') { + circleStartPoint.x = circleStartPoint.x * ratioWidth; + circleStartPoint.y = circleStartPoint.y * ratioHeight; + options.remote.circleStartPoint = circleStartPoint; + this.drawCircle(options); + } else if (drawMode === 'rectangle') { + rectangleStartPoint.x = rectangleStartPoint.x * ratioWidth; + rectangleStartPoint.y = rectangleStartPoint.y * ratioHeight; + options.remote.rectangleStartPoint = rectangleStartPoint; + this.drawRectangle(options); + } else if (drawMode === 'text') { + this.drawText(options); + } else if(drawMode === 'triangle'){ + triangleStartPoint.x = triangleStartPoint.x * ratioWidth; + triangleStartPoint.y = triangleStartPoint.y * ratioHeight; + options.remote.triangleStartPoint = triangleStartPoint; + this.drawTriangle(options); + } else if(drawMode === 'star'){ + starStartPoint.x = starStartPoint.x * ratioWidth; + starStartPoint.y = starStartPoint.y * ratioHeight; + options.remote.starStartPoint = starStartPoint; + this.drawStar(options); + } else if(drawMode === 'delete'){ + prePoint.x = prePoint.x * ratioWidth; + prePoint.y = prePoint.y * ratioHeight; + options.remote.prePoint = prePoint; + this.drawDelete(options); + } else if(drawMode === 'image'){ + this.drawImage(options); + } else { + console.log("收到远程未知的绘制模式, ",options) + } + }, + // 打开/关闭本地画笔 + openDraw: function ({ + openCallback, closeCallback, localDrawCallback, + callback + }) { + let that = this; + this.operDocument = document; + + if (this.isOpenDraw) { + layer.close(this.remoteDrawIndex); + this.remoteDrawIndex = -1; + this.isOpenDraw = !this.isOpenDraw; + closeCallback && closeCallback(this.drawHistoryList.length); + return + } + + this.remoteDrawIndex = layer.open({ + type: 1, + area: ["100%", "100%"], + scrollbar: false, + title: "画一画", + move: '.layui-layer-title', + skin: 'tl-rtc-app-mouse-draw-layer', + content: ` +
              +
              +
              + +
              +
              + `, + success: function (layero, index) { + that.isOpenDraw = true; + + // 创建 canvas 元素 + const canvas = that.operDocument.createElement('canvas'); + let dom = that.operDocument.getElementById("tl-rtc-app-mouse-draw-canvas-body"); + canvas.setAttribute("id", "tl-rtc-app-mouse-draw-canvas"); + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-line"); + + const width = that.operDocument.querySelector(".layui-layer-content").clientWidth; + const height = that.operDocument.querySelector('.layui-layer-content').clientHeight; + + //设置画布大小 + canvas.style.width = width + "px" + canvas.style.height = height + "px" + + //设置画布宽高 ,为了保证高清屏下绘制不模糊,需要将画布宽高放大 + canvas.width = width * that.devicePixelRatio; + canvas.height = height * that.devicePixelRatio; + + dom.appendChild(canvas); + + let context = canvas.getContext('2d'); + + //初始化一张默认画布 + that.drawHistoryList.push(canvas.toDataURL()) + + // 绘制画笔 + if (canvas.ontouchstart === undefined) { + that.pcLocalDraw({ canvas, context, localDrawCallback }); + } else { + that.mobileLocalDraw({ canvas, context, localDrawCallback }); + } + + // 打开工具栏 + that.openDrawToolBar({ canvas, context, localDrawCallback }); + + // 发送到频道 + that.operDocument.getElementById("tl-rtc-app-mouse-draw-send-to-channel").onclick = function () { + // 生成图片文件 + let image = canvas.toDataURL("image/png") + let file = that.dataURLtoFile(image, "image.png"); + // 发送到频道 + callback && callback(file); + } + + openCallback && openCallback(); + }, + cancel: function () { + that.isOpenDraw = false; + }, + end: function () { + that.isOpenDraw = false; + + // 关闭工具栏 + layer.close(that.remoteDrawToolBarIndex); + that.remoteDrawToolBarIndex = -1; + } + }); + }, + // 在iframe上打开画笔 + openDrawIframe: async function ({ + openCallback, closeCallback, localDrawCallback, + callback, iframeDocument, iframeWindow + }){ + await new Promise((resolve) => {setTimeout(resolve, 500);}); + + this.isOpenDraw = true; + this.isIframeDraw = true; + this.operWindow = iframeWindow; + this.operDocument = iframeDocument; + + // 创建 canvas 元素 + const canvas = this.operDocument.createElement('canvas'); + let dom = this.operDocument.getElementById("tl-rtc-app-mouse-draw-canvas-body"); + canvas.setAttribute("id", "tl-rtc-app-mouse-draw-canvas"); + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-line"); + + const width = this.operDocument.body.clientWidth; + const height = this.operDocument.body.clientHeight; + + //设置画布大小 + canvas.style.width = width + "px" + canvas.style.height = height + "px" + + //设置画布宽高 ,为了保证高清屏下绘制不模糊,需要将画布宽高放大 + canvas.width = width * this.devicePixelRatio; + canvas.height = height * this.devicePixelRatio; + + console.log("operDocument : ", this.operDocument) + + dom.appendChild(canvas); + + let context = canvas.getContext('2d'); + + //初始化一张默认画布 + this.drawHistoryList.push(canvas.toDataURL()) + + // 绘制画笔 + if (canvas.ontouchstart === undefined) { + this.pcLocalDraw({ canvas, context, localDrawCallback }); + } else { + this.mobileLocalDraw({ canvas, context, localDrawCallback }); + } + + // 打开工具栏 + this.openDrawToolBar({ canvas, context, localDrawCallback }); + + openCallback && openCallback(); + }, + // 关闭画笔 + closeDrawIframe: function () { + // 关闭工具栏 + this.operWindow.layer.close(this.remoteDrawToolBarIndex); + + // 移除面板 + const canvas = this.operDocument.getElementById("tl-rtc-app-mouse-draw-canvas"); + if (canvas) { + canvas.remove() + } + + this.isOpenDraw = false; + this.isIframeDraw = false; + this.operWindow = window; + this.operDocument = document; + }, + // base64转文件 + dataURLtoFile: function (dataurl, filename) { + let arr = dataurl.split(','), + mime = arr[0].match(/:(.*?);/)[1], + bstr = atob(arr[1]), + n = bstr.length, + u8arr = new Uint8Array(n); + while (n--) { + u8arr[n] = bstr.charCodeAt(n); + } + return new File([u8arr], filename, { type: mime }); + }, + // 打开工具栏 + openDrawToolBar: function ({ canvas, context, localDrawCallback }) { + let that = this; + + const options = { + type: 1, + area: ["250px", "370px"], + scrollbar: false, + shade: false, + closeBtn: 0, + offset: ['100px', '20px'], + title: "工具栏", + maxmin: true, + move: '.layui-layer-title', + skin: 'tl-rtc-app-mouse-draw-layer', + content: ` +
              +
              +
              +
              重置:
              + +
              +
              +
              擦除:
              + +
              +
              +
              撤销:
              + + +
              +
              +
              线条:
              + +
              +
              +
              圆形:
              + +
              +
              +
              圆形(实心):
              + +
              +
              +
              矩形:
              + +
              +
              +
              矩形(实心):
              + +
              +
              +
              三角:
              + +
              +
              +
              三角(实心):
              + +
              +
              +
              五角:
              + +
              +
              +
              五角(实心):
              + +
              +
              +
              文本:
              + +
              +
              +
              图片:
              + +
              +
              +
              下载:
              + +
              +
              +
              移动画布:
              + +
              +
              +
              颜色:
              +
              +
              +
              +
              粗细:
              +
              +
              +
              +
              + 画布比例: + + + +
              +
              +
              +
              +
              + `, + success: function (layero, index) { + that.isOpenDraw = true; + + layero.css({ + "border-radius": "6px", + "box-shadow": "0px 0px 6px rgba(0, 0, 0, .3)" + }) + + that.toolDisabledHandler(); + + //工具初始化 + that.operWindow.colorpicker.render({ + elem: '#tl-rtc-app-mouse-draw-stroke-color', + color: '#00000', + alpha: true, + done: function (color) { + that.strokeStyle = color; + } + }); + + //画笔大小 + let sliderTextObj = that.operWindow.slider.render({ + elem: '#tl-rtc-app-mouse-draw-line-size', + min: 1, + max: 23, + step: 1, + showstep: true, + change: function (value) { + that.lineWidth = value * that.devicePixelRatio; + if (value < 10) { + that.operDocument.getElementById("tl-rtc-app-mouse-draw-line-size-txt").innerText = "0" + value; + } else { + that.operDocument.getElementById("tl-rtc-app-mouse-draw-line-size-txt").innerText = value; + } + } + }); + sliderTextObj.setValue(1) + + //画布比例 + let sliderDivObj = that.operWindow.slider.render({ + elem: '#tl-rtc-app-mouse-draw-div-size', + max: 1000, + step: 1, + change: function (value) { + if(value <= 10){ + value = 10 + } + that.drawSize = value + that.operDocument.getElementById("tl-rtc-app-mouse-draw-div-size-txt").innerText = value + "%"; + that.drawResize({ canvas, context, localDrawCallback }); + } + }); + sliderDivObj.setValue(100) + + // 绑定事件 + that.bindEvent({ canvas, context, sliderDivObj, localDrawCallback }); + }, + cancel: function () { + + }, + end: function () { + + } + } + + this.remoteDrawToolBarIndex = this.isIframeDraw ? this.operWindow.layer.open(options) : layer.open(options); + }, + // 绑定事件 + bindEvent: function ({ canvas, context, sliderDivObj, localDrawCallback }) { + let that = this; + + this.operDocument.getElementById("drawLine").onclick = function () { + that.drawMode = "line"; + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-line"); + } + + this.operDocument.getElementById("drawRectangleFill").onclick = function () { + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-rectangle-fill"); + that.drawMode = "rectangle"; + that.rectangleFill = true; + } + + this.operDocument.getElementById("drawCircle").onclick = function () { + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-circle"); + that.drawMode = "circle"; + that.circleFill = false; + } + + this.operDocument.getElementById("drawCircleFill").onclick = function () { + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-circle-fill"); + that.drawMode = "circle"; + that.circleFill = true; + } + + this.operDocument.getElementById("drawTriangle").onclick = function () { + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-triangle"); + that.drawMode = "triangle"; + that.triangleFill = false; + } + + this.operDocument.getElementById("drawTriangleFill").onclick = function () { + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-triangle-fill"); + that.drawMode = "triangle"; + that.triangleFill = true; + } + + this.operDocument.getElementById("drawStar").onclick = function () { + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-star"); + that.drawMode = "star"; + that.starFill = false; + } + + this.operDocument.getElementById("drawStarFill").onclick = function () { + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-star-fill"); + that.drawMode = "star"; + that.starFill = true; + } + + this.operDocument.getElementById("drawRectangle").onclick = function () { + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-rectangle"); + that.drawMode = "rectangle"; + that.rectangleFill = false; + } + + this.operDocument.getElementById("drawText").onclick = function () { + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-text"); + that.drawMode = "text"; + } + + this.operDocument.getElementById("drawReset").onclick = function () { + that.drawReset({ canvas, context, localDrawCallback }) + } + + this.operDocument.getElementById("drawDelete").onclick = function () { + that.drawMode = "delete"; + canvas.setAttribute("class", "tl-rtc-app-mouse-draw-canvas-delete"); + } + + this.operDocument.getElementById("drawRollback").onclick = function () { + that.drawRollback({ canvas, context, localDrawCallback }); + } + + this.operDocument.getElementById("drawUndoRollback").onclick = function () { + that.drawUndoRollback({ canvas, context, localDrawCallback }); + } + + this.operDocument.getElementById("drawImage").onclick = function () { + that.drawMode = "image"; + that.drawImage({ drawMode: that.drawMode, local : { canvas, context, localDrawCallback } }) + } + + this.operDocument.getElementById("drawDonwload").onclick = function () { + that.drawDownload({ canvas, context, localDrawCallback }) + } + + this.operDocument.getElementById("drawSizeDecrease").onclick = function() { + that.drawSize = that.drawSize - 1; + sliderDivObj.setValue(that.drawSize); + } + + this.operDocument.getElementById("drawSizeIncrease").onclick = function() { + that.drawSize = that.drawSize + 1; + sliderDivObj.setValue(that.drawSize); + } + + this.operDocument.getElementById("drawMove").onclick = function() { + that.drawMode = 'move'; + } + }, + // pc端画笔渲染处理 + pcLocalDraw: function ({ canvas, context, localDrawCallback }) { + let that = this; + canvas.onmousedown = function (e) { + that.drawing = true; + that.prePoint = { x: e.offsetX * that.devicePixelRatio, y: e.offsetY * that.devicePixelRatio }; + that.startDrawHandler({ canvas, context, localDrawCallback, event : e }); + }; + canvas.onmousemove = function (e) { + let curPoint = { x: e.offsetX * that.devicePixelRatio, y: e.offsetY * that.devicePixelRatio }; + that.drawingHandler({ canvas, curPoint, context, localDrawCallback, event : e }); + that.prePoint = curPoint; + }; + canvas.onmouseup = function (e) { + that.endDrawHandler({ canvas, curPoint: that.prePoint, context, localDrawCallback, event : e }) + that.drawing = false; + }; + }, + // 移动端画笔渲染处理 + mobileLocalDraw: function ({ canvas, context, localDrawCallback }) { + let that = this; + canvas.ontouchstart = function (e) { + that.drawing = true; + that.prePoint = { + x: e.touches[0].clientX * that.devicePixelRatio, + y: ( + e.touches[0].clientY - (25 * that.devicePixelRatio) + ) * that.devicePixelRatio + }; + + that.startDrawHandler({ canvas, context, localDrawCallback, event : e }); + }; + canvas.ontouchmove = function (e) { + let curPoint = { + x: e.touches[0].clientX * that.devicePixelRatio, + y: ( + e.touches[0].clientY - (25 * that.devicePixelRatio) + ) * that.devicePixelRatio + }; + + that.drawingHandler({ canvas, curPoint, context, localDrawCallback, event : e }); + that.prePoint = curPoint; + }; + canvas.ontouchend = function (e) { + that.endDrawHandler({ canvas, curPoint: that.prePoint, context, localDrawCallback, event : e }) + that.drawing = false; + }; + }, + // 开始绘制 + startDrawHandler: function ({ canvas, context, localDrawCallback, event }) { + //公共参数 + let localCommOptions = { + canvas, + context, + localDrawCallback, + devicePixelRatio : this.devicePixelRatio, + width : canvas.width, + height: canvas.height, + lineCap: this.lineCap, + lineJoin: this.lineJoin, + lineWidth: this.lineWidth, + strokeStyle: this.strokeStyle, + fillStyle: this.strokeStyle, + } + + if (this.drawMode === 'delete') { + this.drawDelete({ + event : "start", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + prePoint: this.prePoint, + curPoint : this.prePoint + }), + }) + } else if (this.drawMode === 'rectangle') { + //开始的时候固定好矩形的起点 + this.rectangleStartPoint = this.prePoint; + this.drawRectangle({ + event : "start", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + rectangleStartPoint: this.rectangleStartPoint, + curPoint: this.prePoint, + rectangleFill : this.rectangleFill + }), + }) + } else if (this.drawMode === 'circle') { + //开始的时候固定好圆的起点 + this.circleStartPoint = this.prePoint; + this.drawCircle({ + event : "start", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + circleStartPoint: this.circleStartPoint, + curPoint: this.prePoint, + circleFill : this.circleFill, + }), + }) + } else if(this.drawMode === 'triangle'){ + //开始的时候固定好三角形的起点 + this.triangleStartPoint = this.prePoint; + this.drawTriangle({ + event : "start", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + triangleStartPoint: this.triangleStartPoint, + curPoint: this.prePoint, + triangleFill : this.triangleFill + }), + }) + } else if(this.drawMode === 'star'){ + //开始的时候固定好星星的起点 + this.starStartPoint = this.prePoint; + this.drawStar({ + event : "start", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + starStartPoint: this.starStartPoint, + curPoint: this.prePoint, + starFill : this.starFill + }), + }) + } else if (this.drawMode === 'text') { + this.drawText({ + event : "start", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + curPoint: this.prePoint, + }), + }) + this.endDrawHandler(Object.assign(localCommOptions, { + curPoint: this.prePoint, + })) + } else if(this.drawMode === 'line'){ + this.drawLine({ + event : "start", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + prePoint: this.prePoint, + curPoint: this.prePoint, + }), + }) + }else if(this.drawMode === 'move'){ + this.drawMoveMousseDownHandler({ canvas, context, localDrawCallback, event }) + } + }, + // 绘制中 + drawingHandler: function ({ canvas, curPoint, context, localDrawCallback, event }) { + if (!this.drawing) { + return + } + + //公共参数 + let localCommOptions = { + canvas, + context, + localDrawCallback, + devicePixelRatio : this.devicePixelRatio, + width : canvas.width, + height: canvas.height, + lineCap: this.lineCap, + lineJoin: this.lineJoin, + lineWidth: this.lineWidth, + strokeStyle: this.strokeStyle, + fillStyle: this.strokeStyle, + } + + if (this.drawMode === 'delete') { + this.drawDelete({ + event : "move", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + prePoint: this.prePoint, + curPoint + }), + }) + } else if (this.drawMode === 'rectangle') { + this.drawRectangle({ + event : "move", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + rectangleStartPoint: this.rectangleStartPoint, + curPoint, + rectangleFill : this.rectangleFill + }), + }) + } else if (this.drawMode === 'circle') { + this.drawCircle({ + event : "move", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + circleStartPoint: this.circleStartPoint, + curPoint, + circleFill : this.circleFill, + }), + }) + } else if(this.drawMode === 'triangle'){ + this.drawTriangle({ + event : "move", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + triangleStartPoint: this.triangleStartPoint, + curPoint, + triangleFill : this.triangleFill + }), + + }) + } else if(this.drawMode === 'star'){ + this.drawStar({ + event : "move", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + starStartPoint: this.starStartPoint, + curPoint, + starFill : this.starFill + }), + }) + } else if(this.drawMode === 'line'){ + this.drawLine({ + event : "move", + drawMode: this.drawMode, + local : Object.assign(localCommOptions, { + prePoint: this.prePoint, + curPoint, + }), + }) + }else if(this.drawMode === 'move'){ + this.drawMoveMousseMoveHandler({ canvas, context, localDrawCallback, event }) + } + }, + // 结束绘制 + endDrawHandler: function ({ canvas, curPoint, context, localDrawCallback, event }) { + //图像记录,用于回滚撤销操作 + if ( + this.drawMode === 'line' || this.drawMode === 'circle' || + this.drawMode === 'rectangle' || this.drawMode === 'text' || + this.drawMode === 'triangle' || this.drawMode === 'star' + ) { + this.drawHistoryList.push(canvas.toDataURL()); + this.drawRollbackPoint = this.drawHistoryList.length - 1; + } + + if(this.drawMode === 'move'){ + this.drawMoveMousseUpHandler({ canvas, context, localDrawCallback, event }) + } + + //结束的时候通知下远程,可以保存画布到缓存列表中 + localDrawCallback && localDrawCallback({ + event : "end", + drawMode : this.drawMode, + remote : {} + }) + }, + // 移动画布handler - 鼠标按下 + drawMoveMousseDownHandler: function ({ canvas, context, localDrawCallback, event}) { + + }, + // 移动画布handler - 鼠标移动 + drawMoveMousseMoveHandler: function ({ canvas, context, localDrawCallback, event}) { + + }, + // 移动画布handler - 鼠标抬起 + drawMoveMousseUpHandler: function ({ canvas, context, localDrawCallback, event}) { + + }, + // 根据画布比例的值放大画布 + drawResize: function ({ canvas, context, localDrawCallback }) { + + }, + // 下载画布图片 + drawDownload: function ({ canvas, context, localDrawCallback }) { + let image = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream"); + let link = this.operDocument.createElement('a'); + link.href = image; + link.download = "image.png"; + link.click(); + }, + // 画布重置 + drawReset: function ({ canvas, context, localDrawCallback }) { + context.clearRect(0, 0, canvas.width, canvas.height); + this.drawHistoryList = []; + this.drawRollbackPoint = 0; + }, + // 回退回滚的绘制 + drawUndoRollback: function ({ canvas, context, localDrawCallback }) { + //最多前进到最后一条记录 + if (this.drawRollbackPoint < this.drawHistoryList.length - 1) { + this.drawRollbackPoint = this.drawRollbackPoint + 1; + } + + const img = new Image(); + img.src = this.drawHistoryList[this.drawRollbackPoint]; + img.onload = function () { + context.clearRect(0, 0, canvas.width, canvas.height); + context.drawImage(img, 0, 0, canvas.width, canvas.height); + } + }, + // 画布回退 + drawRollback: async function ({ canvas, context, localDrawCallback }) { + //最多回退到原点 + if (this.drawRollbackPoint > 0) { + this.drawRollbackPoint = this.drawRollbackPoint - 1; + const img = new Image(); + img.src = this.drawHistoryList[this.drawRollbackPoint]; + img.onload = function () { + context.clearRect(0, 0, canvas.width, canvas.height); + context.drawImage(img, 0, 0, canvas.width, canvas.height); + } + } + }, + // 画笔擦除 + drawDelete: function ({ event, drawMode, fromRemote, local, remote}) { + if(fromRemote){ + local = remote; + } + let { + canvas, context, lineWidth, curPoint, prePoint, lineCap, + width, height, devicePixelRatio, + lineJoin, strokeStyle, fillStyle, localDrawCallback + } = local; + + context.lineWidth = lineWidth; + context.lineCap = lineCap; + context.lineJoin = lineJoin; + context.strokeStyle = strokeStyle; + context.fillStyle = fillStyle; + + //防止移动过快,canvas渲染存在间隔,导致线条断层,在这里补充绘制间隔的点 + let x = prePoint.x; + let y = prePoint.y; + let dx = curPoint.x - prePoint.x; + let dy = curPoint.y - prePoint.y; + let distance = Math.sqrt(dx * dx + dy * dy); + let xUnit = dx / distance; + let yUnit = dy / distance; + let i = 0; + while (i < distance) { + x += xUnit; + y += yUnit; + context.clearRect(x - 20, y - 20, lineWidth, lineWidth); + i++; + } + + //如果是本地擦除,完成擦除后数据回调给远端 + if (!fromRemote) { + localDrawCallback && localDrawCallback({ event, drawMode, fromRemote : true, remote : { + lineWidth, curPoint, prePoint, lineCap, width, height, devicePixelRatio, + lineJoin, strokeStyle, fillStyle, + }}); + } + }, + // 图片渲染处理 + drawImage: function ({ event, drawMode, fromRemote, local, remote}) { + if(fromRemote){ + local = remote; + } + let { + canvas, context, lineWidth, curPoint = {x:0,y:0}, prePoint, lineCap, + width, height, devicePixelRatio, imgResult, imgWidth, imgHeight, + lineJoin, strokeStyle, fillStyle, localDrawCallback + } = local; + + if(fromRemote){ + context.drawImage(imgResult, 0, 0, imgWidth, imgHeight, 0, 0, canvas.width, canvas.height); + return; + } + + let that = this; + let input = this.operDocument.createElement("input"); + input.setAttribute("type", "file"); + input.setAttribute("accept", ".png, .jpg, .jpeg .png .gif .bmp .webp"); + input.click(); + input.onchange = function () { + let file = input.files[0]; + let reader = new FileReader(); + reader.readAsDataURL(file); + reader.onload = function () { + let img = new Image(); + img.src = this.result; + img.onload = function () { + context.drawImage(img, 0, 0, img.width, img.height, 0, 0, canvas.width, canvas.height); + //画完图片,保存操作记录 + that.drawHistoryList.push(canvas.toDataURL()); + that.drawRollbackPoint = that.drawHistoryList.length - 1; + + //如果是本地绘制,完成绘制后数据回调给远端 + //图片暂时存在问题,因为图片大小可能超过通道限制,需要分批发送 + //所以暂时不支持图片的远端同步 + // if (!fromRemote) { + // localDrawCallback && localDrawCallback({ event, drawMode, fromRemote : true, remote : { + // lineWidth, curPoint, prePoint, lineCap, width, height, devicePixelRatio, + // lineJoin, strokeStyle, fillStyle, imgResult : img.src, imgWidth: img.width, imgHeight: img.height + // }}); + // } + } + } + } + }, + // 画笔渲染处理, 两点式绘制 + drawLine: function ({ event, drawMode, fromRemote, local, remote}) { + if(fromRemote){ + local = remote; + } + let { + canvas, context, lineWidth, curPoint, prePoint, lineCap, + width, height, devicePixelRatio, lineJoin, strokeStyle, fillStyle, localDrawCallback + } = local; + + // Calculate speed + const dx = curPoint.x - prePoint.x; + const dy = curPoint.y - prePoint.y; + const distance = Math.sqrt(dx * dx + dy * dy); + const speed = distance; // Assuming time between frames is constant + + // Adjust lineWidth based on speed + const minLineWidth = Math.max(2, lineWidth * 0.7); + const maxLineWidth = Math.max(2, lineWidth * 1.3); + const speedFactor = 0.1; // Adjust this factor to control sensitivity + lineWidth = Math.max(minLineWidth, maxLineWidth - speed * speedFactor); + + // Set drawing styles + context.lineWidth = lineWidth; + context.strokeStyle = strokeStyle; + context.fillStyle = fillStyle; + context.lineCap = lineCap; + context.lineJoin = lineJoin; + + context.beginPath(); + + // Enable anti-aliasing + context.imageSmoothingEnabled = true; + context.imageSmoothingQuality = 'high'; + + // Draw points along the line + let x = prePoint.x; + let y = prePoint.y; + const xUnit = dx / distance; + const yUnit = dy / distance; + let i = 0; + while (i < distance) { + x += xUnit; + y += yUnit; + context.ellipse(x, y, lineWidth / 2, lineWidth / 2, 0, 0, 2 * Math.PI); + context.fill(); + i++; + } + + // Callback for remote drawing + if (!fromRemote) { + localDrawCallback && localDrawCallback({ event, drawMode, fromRemote: true, remote: { + lineWidth, curPoint, prePoint, lineCap, width, height, devicePixelRatio, + lineJoin, strokeStyle, fillStyle, + }}); + } + }, + // 星星渲染处理 + drawStar: function ({ event, drawMode, fromRemote, local, remote}) { + if(fromRemote){ + local = remote; + } + let { + canvas, context, lineWidth, curPoint, starStartPoint, lineCap, starFill, + width, height, devicePixelRatio, lineJoin, strokeStyle, fillStyle, localDrawCallback + } = local; + + // 设置画笔样式 + context.lineWidth = lineWidth; + context.strokeStyle = strokeStyle; + context.fillStyle = fillStyle; + context.lineCap = lineCap; + context.lineJoin = lineJoin; + + const { x, y } = curPoint; + const size = Math.sqrt( + Math.pow(curPoint.x - starStartPoint.x, 2) + Math.pow(curPoint.y - starStartPoint.y, 2 + ) / 2); + + if (this.drawRollbackPoint >= 0) { + const img = new Image(); + img.src = this.drawHistoryList[this.drawRollbackPoint]; + img.onload = function () { + //清理实时移动绘制的五角星 + context.clearRect(0, 0, canvas.width, canvas.height); + //绘制之前的数据 + context.drawImage(img, 0, 0, canvas.width, canvas.height); + + context.beginPath(); + for (let i = 0; i <= 5; i++) { + context.lineTo( + Math.cos((18 + i * 72) / 180 * Math.PI) * size + x, + -Math.sin((18 + i * 72) / 180 * Math.PI) * size + y + ); + context.lineTo( + Math.cos((54 + i * 72) / 180 * Math.PI) * (size / 2) + x, + -Math.sin((54 + i * 72) / 180 * Math.PI) * (size / 2) + y + ); + } + if(starFill){ + context.fill() + } + context.stroke(); + } + } + + //如果是本地绘制,完成绘制后数据回调给远端 + if (!fromRemote) { + localDrawCallback && localDrawCallback({ event, drawMode, fromRemote : true, remote : { + lineWidth, curPoint, starStartPoint, lineCap, width, height, devicePixelRatio, + lineJoin, strokeStyle, fillStyle, starFill + }}); + } + }, + // 三角形渲染处理 + drawTriangle: function ({ event, drawMode, fromRemote, local, remote }) { + if(fromRemote){ + local = remote; + } + let { + canvas, context, lineWidth, curPoint, triangleStartPoint, lineCap, triangleFill, + width, height, devicePixelRatio, lineJoin, strokeStyle, fillStyle, localDrawCallback + } = local; + + // 设置画笔样式 + context.lineWidth = lineWidth; + context.strokeStyle = strokeStyle; + context.fillStyle = fillStyle; + context.lineCap = lineCap; + context.lineJoin = lineJoin; + + //根据起点和当前移动的位置,计算三角形三个点进行绘制 + const x1 = triangleStartPoint.x; + const y1 = triangleStartPoint.y; + const x2 = curPoint.x; + const y2 = curPoint.y; + const x3 = triangleStartPoint.x - (curPoint.x - triangleStartPoint.x); + const y3 = curPoint.y; + + if (this.drawRollbackPoint >= 0) { + const img = new Image(); + img.src = this.drawHistoryList[this.drawRollbackPoint]; + img.onload = function () { + //清理实时移动绘制的三角形 + context.clearRect(0, 0, canvas.width, canvas.height); + //绘制之前的数据 + context.drawImage(img, 0, 0, canvas.width, canvas.height); + //绘制新三角形 + context.beginPath(); + + context.moveTo(x1, y1); + context.lineTo(x2, y2); + context.lineTo(x3, y3); + context.lineTo(x1, y1); + + if(triangleFill){ + context.fill() + } + context.stroke(); + } + } + + //如果是本地绘制,完成绘制后数据回调给远端 + if (!fromRemote) { + localDrawCallback && localDrawCallback({ event, drawMode, fromRemote : true, remote : { + lineWidth, curPoint, triangleStartPoint, lineCap, width, height, devicePixelRatio, + lineJoin, strokeStyle, fillStyle, triangleFill + }}); + } + }, + // 圆形渲染处理 + drawCircle: function ({ event, drawMode, fromRemote, local, remote }) { + if(fromRemote){ + local = remote; + } + let { + canvas, context, lineWidth, curPoint, circleStartPoint, lineCap, circleFill, + width, height, devicePixelRatio, lineJoin, strokeStyle, fillStyle, localDrawCallback + } = local; + + // 设置画笔样式 + context.lineWidth = lineWidth; + context.strokeStyle = strokeStyle; + context.fillStyle = fillStyle; + context.lineCap = lineCap; + context.lineJoin = lineJoin; + + const centerX = (circleStartPoint.x + curPoint.x) / 2; + const centerY = (circleStartPoint.y + curPoint.y) / 2; + const radius = Math.sqrt( + Math.pow(curPoint.x - circleStartPoint.x, 2) + Math.pow(curPoint.y - circleStartPoint.y, 2 + ) / 2); + + if (this.drawRollbackPoint >= 0) { + const img = new Image(); + img.src = this.drawHistoryList[this.drawRollbackPoint]; + img.onload = function () { + //清理实时移动绘制的圆 + context.clearRect(0, 0, canvas.width, canvas.height); + //绘制之前的数据 + context.drawImage(img, 0, 0, canvas.width, canvas.height); + //绘制新圆 + context.beginPath(); + context.ellipse(centerX, centerY, radius, radius, 0, 0, 2 * Math.PI); + if(circleFill){ + context.fill() + } + context.stroke(); + } + } + + //如果是本地绘制,完成绘制后数据回调给远端 + if (!fromRemote) { + localDrawCallback && localDrawCallback({ event, drawMode, fromRemote : true, remote : { + lineWidth, curPoint, circleStartPoint, lineCap, width, height, devicePixelRatio, + lineJoin, strokeStyle, fillStyle, circleFill + }}); + } + }, + // 矩形渲染处理 + drawRectangle: function ({ event, drawMode, fromRemote, local, remote }) { + if(fromRemote){ + local = remote; + } + let { + canvas, context, lineWidth, curPoint, rectangleStartPoint, lineCap, rectangleFill, + width, height, devicePixelRatio, lineJoin, strokeStyle, fillStyle, localDrawCallback + } = local; + + // 设置画笔样式 + context.lineWidth = lineWidth; + context.strokeStyle = strokeStyle; + context.fillStyle = fillStyle; + context.lineCap = lineCap; + context.lineJoin = lineJoin; + + // 计算矩形的位置和尺寸 + const x = Math.min(rectangleStartPoint.x, curPoint.x); + const y = Math.min(rectangleStartPoint.y, curPoint.y); + const rwidth = Math.abs(curPoint.x - rectangleStartPoint.x); + const rheight = Math.abs(curPoint.y - rectangleStartPoint.y); + + if (this.drawRollbackPoint >= 0) { + const img = new Image(); + img.src = this.drawHistoryList[this.drawRollbackPoint]; + img.onload = function () { + //清理实时移动绘制的矩形 + context.clearRect(0, 0, canvas.width, canvas.height); + //绘制之前的数据 + context.drawImage(img, 0, 0, canvas.width, canvas.height); + //绘制新矩形 + context.beginPath(); + context.rect(x, y, rwidth, rheight); + if(rectangleFill){ + context.fill(); + } + context.stroke(); + } + } + + //如果是本地绘制,完成绘制后数据回调给远端 + if (!fromRemote) { + localDrawCallback && localDrawCallback({ event, drawMode, fromRemote : true, remote : { + lineWidth, curPoint, rectangleStartPoint, lineCap, width, height, devicePixelRatio, + lineJoin, strokeStyle, fillStyle, rectangleFill + }}); + } + }, + // 文字渲染处理 + drawText: function ({ event, drawMode, fromRemote, local, remote }) { + if(fromRemote){ + local = remote; + } + let { + canvas, context, lineWidth, curPoint, text, lineCap, + width, height, devicePixelRatio, lineJoin, strokeStyle, fillStyle, localDrawCallback + } = local; + + curPoint = { + x : curPoint.x / devicePixelRatio, + y : curPoint.y / devicePixelRatio + } + + // 设置字体样式 + context.strokeStyle = strokeStyle; + context.font = Math.min(lineWidth * 7, 28) + "px orbitron"; + context.textBaseline = "middle"; + context.lineCap = lineCap; + context.lineJoin = lineJoin; + context.lineWidth = 1; + + const canvasWidth = parseInt(canvas.style.width); + const canvasHeight = parseInt(canvas.style.height); + + //文字渲染处理 + function drawTextHandler(content){ + let words = content.split(""); + let subWords = ""; + let wordHeight = 40; + for(let i = 0; i < words.length; i++){ + let curSubWords = subWords + words[i]; + const curSubWordsWidth = context.measureText(curSubWords).width; + + if(curPoint.x + curSubWordsWidth > canvasWidth && i > 0){ + context.fillText(subWords, curPoint.x * devicePixelRatio, curPoint.y * devicePixelRatio); + subWords = words[i]; + curPoint.y += wordHeight; + }else{ + subWords = curSubWords; + } + } + context.fillText(subWords, curPoint.x * devicePixelRatio, curPoint.y * devicePixelRatio); + } + + if(fromRemote){ + drawTextHandler(text); + return + } + + //本地的绘制数据回调给远端 + const parentDom = this.operDocument.getElementById("tl-rtc-app-mouse-draw-canvas-body"); + const textareaDom = this.operDocument.getElementById("tl-rtc-app-mouse-draw-canvas-textarea"); + if (textareaDom) { + parentDom.removeChild(textareaDom); + } + + // 创建临时的输入框 + const textarea = this.operDocument.createElement('textarea'); + textarea.setAttribute("id", "tl-rtc-app-mouse-draw-canvas-textarea"); + textarea.className = "layui-textarea"; + textarea.style.width = '100px'; + textarea.style.height = '30px'; + textarea.style.wordBreak = 'break-all'; + textarea.style.border = "1px dashed"; + textarea.style.position = 'absolute'; + + if(curPoint.x + 90 < canvasWidth){ + textarea.style.left = (curPoint.x + 10) + 'px'; + }else{ + textarea.style.left = (canvasWidth - 90) + 'px'; + } + + if (curPoint.y + 100 > canvasHeight) { + textarea.style.bottom = '10px'; + } else if (curPoint.y < 100) { + textarea.style.bottom = (canvasHeight - 100) + 'px'; + } else { + textarea.style.top = (curPoint.y)+ 'px'; + } + parentDom.appendChild(textarea); + textarea.focus(); + + textarea.addEventListener('blur', function () { + if (textarea.value !== '') { + drawTextHandler(textarea.value); + that.operDocument.getElementById("drawLine").click() + + localDrawCallback && localDrawCallback({ event, drawMode, fromRemote : true, remote : { + lineWidth, curPoint, lineCap, width, height, devicePixelRatio, text : textarea.value, + lineJoin, strokeStyle, fillStyle, + }}); + } + }) + }, + }, + mounted: function () { + + }, + created(){ + //本地画笔 + window.subModule.$on("component-draw-start-local", this.openDraw); + + //本地iframe画笔 + window.subModule.$on("component-draw-start-local-iframe", this.openDrawIframe); + + //本地iframe画笔关闭 + window.subModule.$on("component-draw-close-local-iframe", this.closeDrawIframe); + + //远程画笔 + window.subModule.$on("component-draw-start-remote", this.openRemoteDraw); + } +}) + +window.tl_rtc_app_draw = tl_rtc_app_draw; \ No newline at end of file diff --git a/web-res/js/component/file.js b/web-res/js/component/file.js new file mode 100644 index 0000000..71db371 --- /dev/null +++ b/web-res/js/component/file.js @@ -0,0 +1,301 @@ +const tl_rtc_app_file = new Vue({ + el: '#tl-rtc-app-file', + data : function(){ + return { + isLoaded : false, + chooseFileList: [], + uploadIconIndex: null, + shadeIdList: [], + excludeModule: [ + { + leftModule: 'p2p_channel', + rightModule: ['content', 'blank'] + }, + { + leftModule: 'setting', + rightModule: ['content', 'blank'] + }, + { + leftModule: 'contact', + rightModule: ['content', 'blank'] + } + ], + } + }, + computed: { + + }, + methods: { + /** + * 选择文件 + * @param {*} event + * @param {*} chooseFileCallback + * @returns + */ + dragDrop: function(event, chooseFileCallback){ + event.preventDefault(); + + this.emitSubModuleEvent({ + event: 'component-shade-destroy', + data: { + id: 'fileUploadShade' + } + }) + + if (event.dataTransfer.items) { + for (let i = 0; i < event.dataTransfer.items.length; i++) { + if (event.dataTransfer.items[i].kind === "file") { + let file = event.dataTransfer.items[i].getAsFile(); + file['fileId'] = tl_rtc_app_comm.randomId() + this.chooseFileList.push(file) + chooseFileCallback && chooseFileCallback({ + fileList: this.chooseFileList, + file + }) + } + } + } else { + for (let i = 0; i < event.dataTransfer.files.length; i++) { + let file = event.dataTransfer.files[i] + this.chooseFileList.push(file) + chooseFileCallback && chooseFileCallback({ + fileList: this.chooseFileList, + file + }) + } + } + }, + /** + * 拖拽文件 + * @param {*} event + * @returns + */ + dragOver: function(event){ + event.preventDefault(); + }, + /** + * 拖拽文件 + * @param {*} event + * @returns + */ + dragLeave: function(event){ + this.emitSubModuleEvent({ + event: 'component-shade-destroy', + data: { + id: 'fileUploadShade' + } + }) + event.preventDefault(); + }, + /** + * 拖拽文件 + * @param {*} event + * @param {*} chooseFileCallback + * @returns + */ + dragEnter: async function(event, chooseFileCallback){ + let that = this + + let { leftModule, rightModule } = await this.emitSubModuleEvent({ + event: 'sub-module-core-get-module', + }) + + let canDrag = this.excludeModule.filter(item => { + if (item.leftModule === leftModule && item.rightModule.includes(rightModule)) { + return false + } + }) + + if (!canDrag) { + console.log('can not drag') + return + } + + event.preventDefault(); + + await this.emitSubModuleEvent({ + event: 'component-shade-show', + data: { + id: 'fileUploadShade', + className: 'tl-rtc-app-right-channel-file-shade-content-body', + text: '选择文件中,松开后发送', + style: { + lineHeight: document.documentElement.clientHeight + 'px' + }, + shadeListener: { + dragleave: function(event){ + that.dragLeave(event) + }, + drop: function(event){ + that.dragDrop(event, chooseFileCallback) + }, + dragover: function(event){ + that.dragOver(event) + } + } + } + }) + }, + /** + * 初始化拖拽文件 + * @param {*} className + * @param {*} callback + */ + initDragSelectFile: function ({ + className, chooseFileCallback, callback + }) { + let that = this + + document.querySelector("." + className).addEventListener("dragenter", async (event) => { + await that.dragEnter(event, chooseFileCallback) + }) + + callback && callback() + }, + /** + * 销毁拖拽文件 + * @param {*} callback + */ + destroyDragSelectFile: function ({ + callback + }) { + this.isLoaded = false + this.chooseFileList = [] + + callback && callback() + }, + /** + * 有文件正在上传时,展示文件上传icon,点击展示文件列表上传进度 + */ + showFileUploadIcon: function({ + callback + }){ + let that = this + if (this.uploadIconIndex) { + this.updateUploadIcon({}) + + callback && callback(false) + return + } + this.uploadIconIndex = layer.open({ + type: 1, + title: ` + + `, + closeBtn: 0, + shade: 0, + resize: false, + area: ['80px', '80px'], + content: ` +
              +
              +
              + +
              总共${this.chooseFileList.length}
              +
              +
              + +
              完成${ + this.chooseFileList.filter(item => item.uploadStatus === 'done').length + }
              +
              +
              +
              + `, + success: function(layero, index){ + layero.css({ + "border-radius": "6px", + }) + layero.find('.layui-layer-title').css("padding", "0px") + layero.find('.layui-layer-title').css("text-align", "center") + layero.find('.layui-layer-title').css("height", "30px") + layero.find('.layui-layer-title').css("line-height", "40px") + + document.getElementById('tl-rtc-app-upload-file-icon').addEventListener('click', async function(){ + let acceptOrReject = await new Promise(resolve => { + layer.confirm('是否关闭进度弹窗', { + shadeClose: 1 + }, function (index) { + layer.close(index) + resolve(true) + }, function (index) { + resolve(false) + }); + }) + + if(!acceptOrReject){ + return + } + + that.emitSubModuleEvent({ + event: 'component-file-close-upload-icon' + }) + }) + } + }) + + callback && callback(true) + }, + /** + * 更新上传进度 + * @param {*} callback + */ + updateUploadIcon: function({ + callback + }){ + const doneCount = this.chooseFileList.filter(item => item.uploadStatus === 'done').length + + if(document.getElementById('tl-rtc-app-upload-icon-total-value')){ + document.getElementById('tl-rtc-app-upload-icon-total-value').innerText = `总共${this.chooseFileList.length}` + } + + if(document.getElementById('tl-rtc-app-upload-icon-done-value')){ + document.getElementById('tl-rtc-app-upload-icon-done-value').innerText = `完成${doneCount}` + } + + callback && callback() + }, + + /** + * 关闭文件上传icon + * @param {*} callback + */ + closeFileUploadIcon: function({ + callback + }){ + if (this.uploadIconIndex) { + layer.close(this.uploadIconIndex) + this.uploadIconIndex = 0 + } + + callback && callback() + }, + }, + mounted() { + let that = this + }, + created(){ + // 初始化拖拽文件模块 + window.subModule.$on('component-file-init-drag', this.initDragSelectFile) + + // 销毁拖拽文件模块 + window.subModule.$on('component-file-destroy-drag', this.destroyDragSelectFile) + + // 展示文件上传icon + window.subModule.$on('component-file-show-upload-icon', this.showFileUploadIcon) + + // 关闭文件上传icon + window.subModule.$on('component-file-close-upload-icon', this.closeFileUploadIcon) + + // 更新文件上传上传进度 + window.subModule.$on('component-file-update-upload-icon', this.updateUploadIcon) + } +}) + +window.tl_rtc_app_file = tl_rtc_app_file; \ No newline at end of file diff --git a/web-v2-res/js/component/menu.js b/web-res/js/component/menu.js similarity index 83% rename from web-v2-res/js/component/menu.js rename to web-res/js/component/menu.js index a5ffb71..3277fcc 100644 --- a/web-v2-res/js/component/menu.js +++ b/web-res/js/component/menu.js @@ -51,18 +51,7 @@ const tl_rtc_app_menu = new Vue({ */ addPersonalMenu: function () { let that = this - // this.menuList.push({ - // id: 'personal', - // title: ` - // - // 个人中心 - // `, - // handler: function(data){ - // that.popWarningMsg('暂未开放') - // } - // }) + }, /** * 添加主题菜单 @@ -89,18 +78,7 @@ const tl_rtc_app_menu = new Vue({ */ addSettingMenu: function () { let that = this - // this.menuList.push({ - // id: 'setting', - // title: ` - // - // 更多设置 - // `, - // handler: function(data){ - // that.popWarningMsg('暂未开放') - // } - // }) + }, /** * 添加退出频道菜单 @@ -117,7 +95,7 @@ const tl_rtc_app_menu = new Vue({ `, handler: function(data){ let channelId = data.extra.channelId - console.log('退出 : ', channelId) + // console.log('退出 : ', channelId) that.emitSubModuleEvent({ event: 'sub-module-channel-content-exit-group-channel-quick', data: { @@ -142,7 +120,7 @@ const tl_rtc_app_menu = new Vue({ `, handler: function(data){ let channelId = data.extra.channelId - console.log('删除好友 : ', channelId) + // console.log('删除好友 : ', channelId) that.emitSubModuleEvent({ event: 'sub-module-channel-content-delete-friend-quick', data: { @@ -167,7 +145,7 @@ const tl_rtc_app_menu = new Vue({ `, handler: function(data){ let channelId = data.extra.channelId - console.log('置顶 : ', channelId) + // console.log('置顶 : ', channelId) that.emitSubModuleEvent({ event: 'sub-module-channel-content-update-channel-top-quick', data: { @@ -193,7 +171,7 @@ const tl_rtc_app_menu = new Vue({ `, handler: function(data){ let channelId = data.extra.channelId - console.log('取消置顶 : ', channelId) + // console.log('取消置顶 : ', channelId) that.emitSubModuleEvent({ event: 'sub-module-channel-content-update-channel-top-quick', data: { @@ -209,20 +187,7 @@ const tl_rtc_app_menu = new Vue({ */ addHiddenNotifyMenu: function () { let that = this - // this.menuList.push({ - // id: 'hiddenNotify', - // title: ` - // - // 消息免打扰 - // `, - // handler: function(data){ - // let channelId = data.extra.channelId - // console.log('消息免打扰 : ', channelId) - // that.popWarningMsg('暂未开放') - // } - // }) + }, /** * 添加邀请好友菜单 @@ -279,38 +244,14 @@ const tl_rtc_app_menu = new Vue({ */ addMarkUnreadMenu: function () { let that = this - // this.menuList.push({ - // id: 'markUnread', - // title: ` - // - // 标记未读 - // `, - // handler: function(data){ - // let channelId = data.extra.channelId - // console.log('标记未读 : ', channelId) - // that.popWarningMsg('暂未开放') - // } - // }) + }, /** * 添加不显示频道菜单 */ addHiddenChannel: function () { let that = this - // this.menuList.push({ - // id: 'hiddenChannel', - // title: ` - // - // 不显示聊天 - // `, - // handler: function(data){ - // that.popWarningMsg('暂未开放') - // } - // }) + }, /** * 添加清除历史记录菜单 @@ -377,38 +318,12 @@ const tl_rtc_app_menu = new Vue({ `, handler: function(data){ let messageId = data.extra.id - console.log('删除 : ', messageId) + // console.log('删除 : ', messageId) that.popWarningMsg('暂未开放') } }) }, /** - * 添加撤回消息菜单 - */ - addRollbackMessageMenu: function () { - let that = this - this.menuList.push({ - id: 'rollbackMessage', - title: ` - - 撤回消息 - `, - handler: function(data){ - let messageId = data.extra.id - let messageType = data.extra.type - that.emitSubModuleEvent({ - event: 'sub-module-channel-content-quick-rollback-message', - data: { - messageId: messageId, - messageType: messageType, - } - }) - } - }) - }, - /** * 添加复制消息菜单 */ addCopyMessageMenu: function () { @@ -441,30 +356,7 @@ const tl_rtc_app_menu = new Vue({ */ addSwitchAccountMenu: function () { let that = this - // this.menuList.push({ - // id: 'switchAccount', - // title: ` - // - // 切换帐号 - // `, - // handler: function(data){ - // that.popWarningMsg('暂未开放') - // }, - // child: [{ - // id: '帐号1', - // title: ` - // - // 帐号1 - // `, - // handler: function(){ - // that.popWarningMsg('暂未开放') - // } - // }] - // }) + }, /** * 添加退出帐号菜单 @@ -731,7 +623,7 @@ const tl_rtc_app_menu = new Vue({ hammer.add( press ); // 长按 hammer.on('press', function(event) { - console.log('长按', event); + // console.log('长按', event); event.preventDefault(); that.initMenu({ @@ -769,7 +661,7 @@ const tl_rtc_app_menu = new Vue({ }); // 长按松开 hammer.on('pressup', function() { - console.log('长按松开'); + // console.log('长按松开'); pressUpCallback && pressUpCallback() }); }, @@ -790,7 +682,7 @@ const tl_rtc_app_menu = new Vue({ hammer.add( singletap ); hammer.on('singletap', function(event) { - console.log('单击', event); + // console.log('单击', event); tapCallback && tapCallback() }); }, @@ -811,7 +703,7 @@ const tl_rtc_app_menu = new Vue({ // 双击 hammer.on('doubletap', function(event) { - console.log('双击', event); + // console.log('双击', event); doubleTapCallback && doubleTapCallback() }); }, @@ -871,12 +763,16 @@ const tl_rtc_app_menu = new Vue({ this.addClearHistoryMenu(); this.addReplyMessageMenu(); this.addDeleteMessageMenu(); - this.addRollbackMessageMenu(); this.addCopyMessageMenu(); this.addSwitchAccountMenu(); this.addLogoutMenu(); this.addUnTopChannelMenu(); this.addDeleteFriendMenu(); + + let that = this + window.addEventListener('resize', function(){ + that.isMobile = tl_rtc_app_comm.isMobile() + }, true) }, created(){ // 注册自定义菜单 diff --git a/web-v2-res/js/component/popup.js b/web-res/js/component/popup.js similarity index 74% rename from web-v2-res/js/component/popup.js rename to web-res/js/component/popup.js index c328f55..006c213 100644 --- a/web-v2-res/js/component/popup.js +++ b/web-res/js/component/popup.js @@ -9,7 +9,8 @@ const tl_rtc_app_popup = new Vue({ quickOperList: [{ id: 'quickCreateChannel', icon: 'tl-rtc-app-icon-chuangjianqunliao', - text: '快速创建群聊', + iconStyle: 'scale: 0.95;', + text: '快速群聊', handler: function(){ that.emitSubModuleEvent({ event: 'sub-module-channel-top-quick-create-channel', @@ -21,6 +22,7 @@ const tl_rtc_app_popup = new Vue({ },{ id: 'createCustomChannel', icon: 'tl-rtc-app-icon-xiaoxi', + iconStyle: 'scale: 0.8;', text: '创建群聊', handler: function(){ that.emitSubModuleEvent({ @@ -30,16 +32,62 @@ const tl_rtc_app_popup = new Vue({ },{ id: 'searchAddUser', icon: 'tl-rtc-app-icon-_detail_chest', - text: '搜索添加好友', + iconStyle: '', + text: '搜索用户', handler: function(){ that.emitSubModuleEvent({ event: 'sub-module-contact-top-search-user', }) } },{ + id: 'searchAddGroup', + icon: 'tl-rtc-app-icon-qunliao1', + iconStyle: '', + text: '搜索群聊', + handler: function(){ + that.emitSubModuleEvent({ + event: 'sub-module-contact-top-search-group', + }) + } + }, + { + id: 'captureScreenshot', + icon: 'tl-rtc-app-icon-jieping', + iconStyle: 'scale: 0.8;', + text: '屏幕截图', + handler: async function(){ + let res = await window.tl_rtc_app_comm.captureScreenshot() + if(res){ + that.popSuccessMsg("截图成功"); + }else{ + that.popErrorMsg("截图失败"); + } + } + }, { + id: 'recordScreen', + icon: 'tl-rtc-app-icon-luzhi', + iconStyle: 'scale: 0.8;', + text: '屏幕录制', + handler: function(){ + that.emitSubModuleEvent({ + event: 'component-record-start', + }) + } + }, { + id: 'switchTheme', + icon: 'tl-rtc-app-icon-gensuixitong-followsystem-line', + iconStyle: 'scale: 0.9;', + text: '切换主题', + handler: function(){ + that.emitSubModuleEvent({ + event: 'sub-module-setting-skin-change-global', + }) + } + }, { id: 'openStandaloneWindow', icon: 'tl-rtc-app-icon-daochu', - text: '独立窗口打开', + iconStyle: 'scale: 0.8;', + text: '独立窗口', handler: async function(){ const top = (screen.availHeight - 500) / 2; const left = (screen.availWidth - 700) / 2; @@ -209,6 +257,93 @@ const tl_rtc_app_popup = new Vue({ callback && callback(); }, + /** + * 邀请弹窗 + */ + addInviteLayer: async function({ + imgSrc, text, acceptCallback, rejectCallback, callback + }){ + let that = this + await new Promise(resolve => { + if(that.inviteLayerIndex !== -1){ + layer.close(that.inviteLayerIndex) + } + + // 计算页面宽度,得到最右边的距离 + let right = document.body.clientWidth - 310 - 10 + + that.inviteLayerIndex = layer.open({ + type: 1, + closeBtn: 0, + fixed: true, + maxmin: false, + shadeClose: false, + shade: 0, + title: false, + offset: ['10px', right + 'px'], + area: ["310px", "65px"], + move: '.tl-rtc-app-popup-invite-img', + success: function (layero, index) { + layero.find(".layui-layer-content").css({ + "overflow": "hidden", + "border-bottom-left-radius": "8px", + "border-bottom-right-radius": "8px", + 'text-align': "center", + }) + layero[0].style.borderRadius = "8px" + + document.querySelector("#acceptInvite").addEventListener('click', async function(){ + window.layer.close(that.inviteLayerIndex) + + const result = acceptCallback && await acceptCallback() + + callback && callback(result) + }) + + document.querySelector("#rejectInvite").addEventListener('click', async function(){ + window.layer.close(that.inviteLayerIndex) + + const result = rejectCallback && await rejectCallback() + + callback && callback(result) + }) + + resolve() + }, + content: + '
              ' + + '
              ' + + '' + + '
              ' + + + '
              ' + + text + + '
              ' + + + '
              ' + + '' + + '' + + '
              ' + + '
              ' + }) + }) + }, + /** + * 关闭邀请弹窗 + */ + closeInviteLayer: function({ + callback + }){ + if(this.inviteLayerIndex !== -1){ + layer.close(this.inviteLayerIndex) + } + + callback && callback() + }, /** * 添加快捷操作面板 */ @@ -222,7 +357,7 @@ const tl_rtc_app_popup = new Vue({ this.quickOperList.forEach((item) => { operListDom += `
              -
              ${item.text}
              @@ -244,7 +379,7 @@ const tl_rtc_app_popup = new Vue({
              `, - area: this.isMobile ? [Math.min(document.clientWidth, 350)+'px', '320px'] : ['400px', '320px'], + area: this.isMobile ? [Math.min(document.body.clientWidth, 350)+'px', '320px'] : ['400px', '320px'], offset: this.isMobile ? 'auto' : '200px', shadeClose: true, resize: false, @@ -454,7 +589,6 @@ const tl_rtc_app_popup = new Vue({ resize: false, yes: function (index) { layer.close(index) - console.log('yes') }, success: function (layero, index) { layero.find(".layui-layer-content").css({ @@ -634,7 +768,6 @@ const tl_rtc_app_popup = new Vue({ resize: false, yes: function (index) { layer.close(index) - console.log('yes') }, success: function (layero, index) { layero.css({ @@ -741,7 +874,6 @@ const tl_rtc_app_popup = new Vue({ resize: false, yes: function (index) { layer.close(index) - console.log('yes') }, success: function (layero, index) { layero.find(".layui-layer-content").css({ @@ -829,10 +961,135 @@ const tl_rtc_app_popup = new Vue({ clientX, clientY, channelInfo, callback }) } - } + }, + /** + * 分享文件设置弹窗 + * @param {*} readbable + * @param {*} shareFileInfo + * @param {*} callback + */ + shareFileInfoPopup: async function({ + readbable, shareFileInfo, callback + }){ + let that = this; + layer.open({ + type: 1, + title: '文件分享设置', + closeBtn: 1, + move: '.layui-layer-title', + skin: 'tl-rtc-app-layer-share-file-info-popup', + content: ` +
              +
              + +
              +
              ${shareFileInfo.fileName}
              +
              ${shareFileInfo.fileSizeFormat}
              +
              +
              +
              + +
              +
              +
              + 分享时间: ${shareFileInfo.createTimeFormat} +
              +
              + 失效时间: ${shareFileInfo.shareExpireTimeFormat} + +
              +
              + 访问次数: ${shareFileInfo.visitCount} +
              +
              + 下载次数: ${shareFileInfo.downloadCount} +
              +
              +
              + + + +
              +
              +
              + `, + shade: 0.3, + area: this.isMobile ? ["100%", "100%"] : ['460px', '530px'], + shadeClose: true, + resize: false, + btn: readbable ? [] : ['保存', '取消'], + yes: function (index) { + const password = document.getElementById('tl-rtc-app-cloud-file-share-password').value; + const expireTime = "" + callback && callback({ sharePassword: password, shareExpireTime: expireTime }); + layer.close(index); + }, + success: function (layero, index) { + if(!that.isMobile){ + layero.css({ + "border-radius": "6px", + }); + } + + const { skinBodyBackground, skinBodyColor } = window.tl_rtc_app_comm.getPropertyValues([ + { key: "skinBodyBackground", value: "skin-body-background" }, + { key: "skinBodyColor", value: "skin-body-color" }, + ]); + + window.tl_rtc_app_comm.getQrCode( + "tl-rtc-app-cloud-file-share-image", shareFileInfo.shareKey, skinBodyColor, skinBodyBackground + ); + + document.querySelector('#tl-rtc-app-cloud-file-change-expire-time').addEventListener('click', function(){ + // 修改分享时间 + that.addToastMsg({ + type: 'warning', + message: '暂未开放' + }); + }); + + window.tl_rtc_app_comm.copyTxt('tl-rtc-app-cloud-file-copy-share-link', shareFileInfo.shareKey, function(){ + that.addToastMsg({ + type: 'success', + message: '复制成功' + }); + }); + + document.querySelector('#tl-rtc-app-cloud-file-refresh-password').addEventListener('click', function(){ + // 刷新密码 + document.getElementById('tl-rtc-app-cloud-file-share-password').value = window.tl_rtc_app_comm.randomIdLen(10); + }) + + window.addEventListener('resize', function(){ + if(that.isMobile){ + layer.close(index) + } + }, true) + } + }); + }, }, mounted() { + let that = this + this.startPopUpMsg() + + window.addEventListener('resize', function(){ + that.isMobile = tl_rtc_app_comm.isMobile() + }, true) }, created(){ // 添加系统消息弹窗 @@ -841,6 +1098,12 @@ const tl_rtc_app_popup = new Vue({ // 提示消息toast window.subModule.$on('component-popup-add-toast-msg', this.addToastMsg); + // 邀请消息弹窗 + window.subModule.$on('component-popup-add-invite-msg', this.addInviteLayer); + + // 关闭邀请消息弹窗 + window.subModule.$on('component-popup-close-invite-msg', this.closeInviteLayer) + // 快捷操作面板 window.subModule.$on('component-popup-add-quick-oper-panel', this.addQuickOperPanel) @@ -849,6 +1112,9 @@ const tl_rtc_app_popup = new Vue({ // 群聊信息弹窗 window.subModule.$on('component-popup-channel-info-popup', this.channelInfoPopup) + + // 分享文件设置弹窗 + window.subModule.$on('component-popup-share-file-info-popup', this.shareFileInfoPopup) } }) diff --git a/web-res/js/component/record.js b/web-res/js/component/record.js new file mode 100644 index 0000000..572ffeb --- /dev/null +++ b/web-res/js/component/record.js @@ -0,0 +1,189 @@ +const tl_rtc_app_record = new Vue({ + el: '#tl-rtc-app-record', + data: function () { + return { + stream: null, //录制流 + chunks: [], //录制数据 + mediaRecorder: null, //录制对象 + recording: null, //录制文件 + times: 0, //录制时间 + intervalId: 0, //计时器id + size: 0, //录制文件大小 + isRecording : false, //是否正在录制 + } + }, + watch: { + isRecording: function (val, oldVal) { + + } + }, + methods: { + /** + * 获取录制流 + * @returns + */ + getMediaPlay: function () { + if (navigator.getDisplayMedia) { + return navigator.getDisplayMedia({ video: true, audio: true }); + } else if (navigator.mediaDevices.getDisplayMedia) { + return navigator.mediaDevices.getDisplayMedia({ video: true, audio: true }); + } else if (navigator.mediaDevices.getUserMedia) { + return navigator.mediaDevices.getUserMedia({ video: { mediaSource: 'screen' }, audio: true }); + } else { + return navigator.getUserMedia({ + video: { 'mandatory': { 'chromeMediaSource': 'desktop' } }, + audio: true + }) + } + }, + /** + * 开始录制 + * @param {*} callback + * @returns + */ + startRecord: async function ({ + callback + }) { + if (this.isRecording) { + this.popWarningMsg("正在录制中") + callback && callback(false) + return; + } + + let that = this; + if (this.recording) { + window.URL.revokeObjectURL(this.recording); + } + + this.chunks = []; + this.recording = null; + + try { + this.stream = await this.getMediaPlay(); + } catch (error) { + console.log(error) + this.isRecording = false + } + + if (this.stream == null) { + this.isRecording = false + this.popErrorMsg("获取设备录制权限失败") + callback && callback(false) + return; + } + + this.stream.getVideoTracks()[0].onended = () => { + that.stopRecord({ + callback + }) + } + + this.mediaRecorder = new MediaRecorder(this.stream, { mimeType: 'video/webm' }); + this.mediaRecorder.addEventListener('dataavailable', event => { + if (event.data && event.data.size > 0) { + that.size += event.data.size + that.chunks.push(event.data); + } + }); + this.mediaRecorder.start(10); + + //计算时间 + this.intervalId = setInterval(() => { + that.times += 1; + const timeDom = document.getElementById('tl-rtc-app-record-time') + if(timeDom){ + timeDom.innerText = "停止录制 ( " + that.times + "秒 )" + } + }, 1000); + + // 创建上方停止录制按钮 + const stopRecordDiv = document.createElement('div') + stopRecordDiv.id = 'tl-rtc-app-record-stop-div' + stopRecordDiv.className = 'tl-rtc-app-record-stop-div' + stopRecordDiv.innerHTML = ` +
              + + 停止录制 ( 0秒 ) +
              + ` + stopRecordDiv.addEventListener('click', () => { + this.stopRecord({}) + }) + document.body.appendChild(stopRecordDiv) + + this.popSuccessMsg("屏幕录制中...") + this.isRecording = true + + callback && callback(true) + return; + }, + /** + * 停止录制 + * @param {*} callback + * @returns + */ + stopRecord: function ({ + callback = null + }) { + if (!this.isRecording) { + this.popWarningMsg("未开始录制") + callback && callback(false) + return; + } + + let hasErr = false; + + try { + this.mediaRecorder.stop(); + } catch (e) { + this.popWarningMsg("屏幕录制完毕! 检测到录制不完整") + hasErr = true + } + + this.stream.getTracks().forEach(track => track.stop()); + this.recording = window.URL.createObjectURL(new Blob(this.chunks, { type: 'video/webm' })); + + clearInterval(this.intervalId); + + const downloadLink = document.createElement('a'); + downloadLink.download = "screen_record_" + new Date().getTime() + ".webm"; + downloadLink.href = this.recording; + downloadLink.style.display = 'none'; + document.body.appendChild(downloadLink); + downloadLink.click(); + document.body.removeChild(downloadLink); + + if (!hasErr) { + let msg = "录制完成,共" + this.times + "秒" + ",大小约" + window.tl_rtc_app_comm.getFileSize(this.size) + this.popSuccessMsg(msg) + } + + this.mediaRecorder = null; + this.chunks = []; + this.stream = null; + this.times = 0; + this.size = 0; + this.isRecording = false; + + const stopRecordDiv = document.getElementById('tl-rtc-app-record-stop-div') + if(stopRecordDiv){ + stopRecordDiv.remove() + } + + callback && callback(true) + return; + }, + }, + mounted: function () { + + }, + created(){ + // 开始录制 + window.subModule.$on("component-record-start", this.startRecord); + + // 停止录制 + window.subModule.$on("component-record-stop", this.stopRecord); + } +}) \ No newline at end of file diff --git a/web-res/js/component/rtc.js b/web-res/js/component/rtc.js new file mode 100644 index 0000000..866e0cf --- /dev/null +++ b/web-res/js/component/rtc.js @@ -0,0 +1,488 @@ +const tl_rtc_app_rtc = new Vue({ + el: '#tl-rtc-app-rtc', + data : function(){ + return { + socket: null, + rtcConfig: [], // rtc配置 + rtcConnsMap: {}, // rtc连接 + offerOptions: { + offerToReceiveAudio: 1, + offerToReceiveVideo: 1 + }, + } + }, + methods: { + /** + * 初始化socket对象 + * @param {*} socket + * @param {*} rtcConfig + */ + initSocket: function({ + socket, rtcConfig, callback + }){ + this.socket = socket; + this.rtcConfig = rtcConfig; + + callback && callback(true) + }, + /** + * 创立链接 + * @param {*} rtcId + * @returns + */ + createRtcConnect: function (rtcId) { + if (rtcId === undefined) { + return; + } + + let that = this; + let rtcConnect = new RTCPeerConnection(this.rtcConfig); + + //ice收集 + rtcConnect.addEventListener('icecandidate', (event) => { + that.iceCandidate({ + rtcConnect, rtcId, event + }) + }); + + // ice状态变更 + rtcConnect.addEventListener('iceconnectionstatechange', (event) => { + that.iceStateChange({ + rtcConnect, rtcId, event + }) + }) + + //文件发送数据通道 + let sendFileDataChannel = rtcConnect.createDataChannel('sendFileDataChannel'); + sendFileDataChannel.binaryType = 'arraybuffer'; + + sendFileDataChannel.addEventListener('open', (event) => { + that.sendFileDataChannelOpenCallback({ + sendFileDataChannel, rtcConnect, rtcId, event + }) + }); + sendFileDataChannel.addEventListener('close', (event) => { + that.sendFileDataChannelCloseCallback({ + sendFileDataChannel, rtcConnect, rtcId, event + }) + }); + sendFileDataChannel.addEventListener('error', (error) => { + console.error(error.error) + that.removeStream({ + rtcConnect, rtcId, + event: null + }) + }); + + //自定义数据发送通道 + let sendCustomDataChannel = rtcConnect.createDataChannel('sendCustomDataChannel'); + sendCustomDataChannel.binaryType = 'arraybuffer'; + sendCustomDataChannel.addEventListener('open', (event) => { + that.customDataChannelOpenCallback({ + sendCustomDataChannel, rtcConnect, rtcId, event + }) + }); + sendCustomDataChannel.addEventListener('close', (event) => { + that.customDataChannelCloseCallback({ + sendCustomDataChannel, rtcConnect, rtcId, event + }) + }); + sendCustomDataChannel.addEventListener('error', (error) => { + console.error(error.error) + that.removeStream({ + rtcConnect, rtcId, + event: null + }) + }); + + // 数据传输通道处理逻辑 + rtcConnect.addEventListener('datachannel', (event) => { + that.receiveDataChannelCallback({ + rtcConnect, rtcId, event + }); + }); + + // rtc连接关闭 + rtcConnect.addEventListener('removestream', (event) => { + that.removeStream({ + rtcConnect, rtcId, event + }) + }); + + rtcConnect.sendCustomDataChannel = sendCustomDataChannel; + rtcConnect.sendFileDataChannel = sendFileDataChannel; + + //保存peer连接 + this.rtcConnsMap[rtcId] = rtcConnect; + + return rtcConnect; + }, + /** + * 接收数据通道 + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} event + */ + receiveDataChannelCallback: function ({ + rtcConnect, rtcId, event + }) { + // 执行外部注册的回调 + let rtcConnectCallbacks = rtcConnect.callbacks || {}; + let receiveDataChannelCallbacks = rtcConnectCallbacks['receiveDataChannel'] || []; + if(receiveDataChannelCallbacks instanceof Array){ + receiveDataChannelCallbacks.forEach(callback => { + callback && callback({ + rtcConnect, rtcId, event + }) + }) + } + }, + /** + * 自定义数据通道建立连接 + * @param {*} sendCustomDataChannel + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} event + */ + customDataChannelOpenCallback: function ({ + sendCustomDataChannel, rtcConnect, rtcId, event + }) { + // 执行外部注册的回调 + let rtcConnectCallbacks = rtcConnect.callbacks || {}; + let customDataChannelOpenCallbacks = rtcConnectCallbacks['customDataChannelOpen'] || []; + if(customDataChannelOpenCallbacks instanceof Array){ + customDataChannelOpenCallbacks.forEach(callback => { + callback && callback({ + sendCustomDataChannel, rtcConnect, rtcId, event + }) + }) + } + }, + /** + * 自定义数据通道关闭连接 + * @param {*} sendCustomDataChannel + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} event + */ + customDataChannelCloseCallback: function ({ + sendCustomDataChannel, rtcConnect, rtcId, event + }) { + // 执行外部注册的回调 + let rtcConnectCallbacks = rtcConnect.callbacks || {}; + let customDataChannelCloseCallbacks = rtcConnectCallbacks['customDataChannelClose'] || []; + if(customDataChannelCloseCallbacks instanceof Array){ + customDataChannelCloseCallbacks.forEach(callback => { + callback && callback({ + sendCustomDataChannel, rtcConnect, rtcId, event + }) + }) + } + }, + /** + * 文件发送数据通道建立连接 + * @param {*} sendFileDataChannel + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} event + */ + sendFileDataChannelOpenCallback: function ({ + sendFileDataChannel, rtcConnect, rtcId, event + }) { + // 执行外部注册的回调 + let rtcConnectCallbacks = rtcConnect.callbacks || {}; + let sendFileDataChannelOpenCallbacks = rtcConnectCallbacks['sendFileDataChannelOpen'] || []; + if(sendFileDataChannelOpenCallbacks instanceof Array){ + sendFileDataChannelOpenCallbacks.forEach(callback => { + callback && callback({ + sendFileDataChannel, rtcConnect, rtcId, event + }) + }) + } + }, + /** + * 文件发送数据通道关闭连接 + * @param {*} sendFileDataChannel + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} event + */ + sendFileDataChannelCloseCallback: function ({ + sendFileDataChannel, rtcConnect, rtcId, event + }) { + // 执行外部注册的回调 + let rtcConnectCallbacks = rtcConnect.callbacks || {}; + let sendFileDataChannelCloseCallbacks = rtcConnectCallbacks['sendFileDataChannelClose'] || []; + if(sendFileDataChannelCloseCallbacks instanceof Array){ + sendFileDataChannelCloseCallbacks.forEach(callback => { + callback && callback({ + sendFileDataChannel, rtcConnect, rtcId, event + }) + }) + } + }, + /** + * ice状态变更 + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} event + */ + iceStateChange: function ({ + rtcConnect, rtcId, event + }) { + // console.log("iceConnectionState: " + rtcConnect.iceConnectionState) + + // 执行外部注册的回调 + let rtcConnectCallbacks = rtcConnect.callbacks || {}; + let iceStateChangeCallbacks = rtcConnectCallbacks['iceStateChange'] || []; + if(iceStateChangeCallbacks instanceof Array){ + iceStateChangeCallbacks.forEach(callback => { + callback && callback({ + rtcConnect, rtcId, event + }) + }) + } + }, + /** + * 获取本地与远程连接 + * @param {*} rtcId + * @returns + */ + getOrCreateRtcConnect: function (rtcId) { + let rtcConnect = this.rtcConnsMap[rtcId]; + if (typeof (rtcConnect) == 'undefined') { + rtcConnect = this.createRtcConnect(rtcId); + } + return rtcConnect; + }, + /** + * 移除rtc连接 + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} event + */ + removeStream: function ({ + rtcConnect, rtcId, event, callback + }) { + rtcConnect.close; + delete this.rtcConnsMap[rtcId]; + + // 执行外部注册的回调 + let rtcConnectCallbacks = rtcConnect.callbacks || {}; + let removeStreamCallbacks = rtcConnectCallbacks['removestream'] || []; + if(removeStreamCallbacks instanceof Array){ + removeStreamCallbacks.forEach(eachCallback => { + eachCallback && eachCallback({ + rtcConnect, rtcId, event + }) + }) + } + + callback && callback() + }, + /** + * 创建offer + * @param {*} rtcConnect + * @param {*} rtcId + */ + createOffer: async function({ rtcConnect, rtcId }){ + let that = this + // 收集offer信息 + await new Promise((resolve, reject) => { + rtcConnect.createOffer(this.offerOptions).then(offer => { + // 设置描述信息到本地 + rtcConnect.setLocalDescription(offer).then(event => { }) + // 发送offer信息给对方 + that.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'offer', + data: { + from: that.socket.id, + to: rtcId, + sdp: offer.sdp + } + } + }) + resolve() + }, error => { + console.error("offerFailed : ", error) + reject() + }); + }) + }, + /** + * 处理webrtc offer流程 + * @param {*} data + */ + handlerOffer: async function(data){ + // 创建/获取rtc连接 + const rtcConnect = this.getOrCreateRtcConnect(data.from) + + // 收集到远端描述信息,设置到本地 + await new Promise((resolve, reject) => { + rtcConnect.setRemoteDescription(new RTCSessionDescription({ + type: 'offer', sdp: data.sdp + })).then(event => { }); + resolve() + }) + + // 创建answer + await this.createAnswer({ rtcConnect, rtcId: data.from }) + }, + /** + * 创建answer + * @param {*} rtcConnect + * @param {*} rtcId + */ + createAnswer: async function({ rtcConnect, rtcId }){ + let that = this; + + // 收集offer,响应给对方 + await new Promise((resolve, reject) => { + rtcConnect.createAnswer(this.offerOptions).then((offer) => { + // 设置本地描述信息 + rtcConnect.setLocalDescription(offer).then(event => { }); + // 发送answer给对方 + that.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'answer', + data: { + from: that.socket.id, + to: rtcId, + sdp: offer.sdp + } + } + }) + resolve() + }).catch((error) => { + console.error("answerFailed : ", error) + reject() + }); + }) + }, + /** + * 处理webrtc answer流程 + * @param {*} data + */ + handlerAnswer: async function(data){ + // 创建/获取rtc连接 + const rtcConnect = this.getOrCreateRtcConnect(data.from) + + // 收集到远端描述信息,设置到本地 + rtcConnect.setRemoteDescription(new RTCSessionDescription({ + type: 'answer', sdp: data.sdp + })).then(event => { }) + }, + /** + * iceCandidate 收集 + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} event + * @param {*} channelId + * @returns + */ + iceCandidate: function ({ rtcConnect, rtcId, event }) { + if (event.candidate != null) { + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'candidate', + data: { + from: this.socket.id, + to: rtcId, + sdpMid: event.candidate.sdpMid, + sdpMLineIndex: event.candidate.sdpMLineIndex, + sdp: event.candidate.candidate + } + } + }) + } + }, + /** + * 处理iceCandidate + * @param {*} data + */ + handelIceCandidate: function(data){ + let that = this; + + // 创建/获取rtc连接 + const rtcConnect = this.getOrCreateRtcConnect(data.from) + + // 收集到协商iceCandidate + rtcConnect.addIceCandidate(new RTCIceCandidate({ + candidate: data.sdp, + sdpMid: data.sdpMid, + sdpMLineIndex: data.sdpMLineIndex + })).then(event => { + // console.log("ice success : ", event) + }).catch(error => { + // console.log("ice failed : ", error) + }); + }, + /** + * 获取所有连接 + * @param {*} callback + * @returns + */ + getAllConnect: function({ + callback + }){ + callback && callback(this.rtcConnsMap) + }, + /** + * 监听获取或创建连接 + * @param {*} rtcId + * @param {*} callback + */ + getOrCreateConnect: function({ + rtcId, callback + }){ + callback && callback(this.getOrCreateRtcConnect(rtcId)) + }, + /** + * 创建offer并回调 + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} callback + */ + createOfferAndCallback: async function({ + rtcConnect, rtcId, callback + }){ + await this.createOffer({ rtcConnect, rtcId }) + callback && callback() + } + }, + mounted() { + let that = this; + + }, + created(){ + // 监听初始化socket + window.subModule.$on("component-rtc-init-socket", this.initSocket) + + // 监听获取或创建连接 + window.subModule.$on("component-rtc-get-or-create-connect", this.getOrCreateConnect) + + // 创建offer + window.subModule.$on("component-rtc-offer-create", this.createOfferAndCallback) + + // 关闭连接 + window.subModule.$on("component-rtc-remove-stream", this.removeStream) + + // 获取所有连接 + window.subModule.$on("component-rtc-get-all-connect", this.getAllConnect) + + // 监听socket-offer + window.subModule.$on("component-rtc-offer-socket", this.handlerOffer) + + // 监听socket-answer + window.subModule.$on("component-rtc-answer-socket", this.handlerAnswer) + + // 监听socket-candidate + window.subModule.$on("component-rtc-candidate-socket", this.handelIceCandidate) + } +}) + +window.tl_rtc_app_rtc = tl_rtc_app_rtc; \ No newline at end of file diff --git a/web-v2-res/js/component/shade.js b/web-res/js/component/shade.js similarity index 100% rename from web-v2-res/js/component/shade.js rename to web-res/js/component/shade.js diff --git a/web-res/js/component/socket.js b/web-res/js/component/socket.js new file mode 100644 index 0000000..1394d81 --- /dev/null +++ b/web-res/js/component/socket.js @@ -0,0 +1,270 @@ +const tl_rtc_app_socket = new Vue({ + el: '#tl-rtc-app-socket', + data : function(){ + return { + socket: null, + ON_EVENT: { + OFFER: 'offer', // rtc-offer + ANSWER: 'answer', // rtc-answer + CANDIDATE: 'candidate', // rtc-candidate + CHANNEL_CHAT: 'channelChat', // 频道聊天 + CHANNEL_VIDEO_CALL: 'channelVideoCall', // 频道视频通话 + CHANNEL_FILE: 'channelFile', // 文件发送 + CONTACT_APPLY: 'contactApply', // 好友申请 + CONTACT_APPLY_PASS: 'contactApplyPass', // 通过好友申请 + CONTACT_APPLY_REJECT: 'contactApplyReject', // 拒绝好友申请 + GROUP_APPLY: 'groupApply', // 群组申请 + GROUP_APPLY_PASS: 'groupApplyPass', // 通过群组申请 + GROUP_APPLY_REJECT: 'groupApplyReject', // 拒绝群组申请 + COUNT: 'count', // 在线人数 + COMM_DATA: 'comm_data', // 配置信息 + EXIT: 'exit', // 退出 + }, + EMIT_EVENT: { + OFFER: 'offer', // rtc-offer + ANSWER: 'answer', // rtc-answer + CANDIDATE: 'candidate', // rtc-candidate + CHANNEL_VIDEO_CALL: 'channelVideoCall', // 频道视频通话 + CHANNEL_CHAT: 'channelChat', // 频道聊天 + CONTACT_APPLY: 'contactApply', // 好友申请 + CONTACT_APPLY_PASS: 'contactApplyPass', // 通过好友申请 + CONTACT_APPLY_REJECT: 'contactApplyReject', // 拒绝好友申请 + GROUP_APPLY: 'groupApply', // 群组申请 + GROUP_APPLY_PASS: 'groupApplyPass', // 通过群组申请 + GROUP_APPLY_REJECT: 'groupApplyReject', // 拒绝群组申请 + } + } + }, + methods: { + /** + * 初始化socket对象 + * @param {*} socket + * @returns + */ + initSocket: function({ + socket, callback + }){ + this.socket = socket + + this.listenSocket() + + callback && callback(true) + }, + /** + * 监听socket事件 + * @returns + * */ + listenSocket: function(){ + // 监听事件 + this.socket.on(this.ON_EVENT.OFFER, this.offerSocketHandler) + this.socket.on(this.ON_EVENT.ANSWER, this.answerSocketHandler) + this.socket.on(this.ON_EVENT.CANDIDATE, this.candidateSocketHandler) + this.socket.on(this.ON_EVENT.CHANNEL_CHAT, this.channelChatSocketHandler) + this.socket.on(this.ON_EVENT.CHANNEL_FILE, this.channelFileSocketHandler) + this.socket.on(this.ON_EVENT.COUNT, this.countSocketHandler) + this.socket.on(this.ON_EVENT.CONTACT_APPLY, this.contactApplySocketHandler) + this.socket.on(this.ON_EVENT.CONTACT_APPLY_PASS, this.contactApplyPassSocketHandler) + this.socket.on(this.ON_EVENT.CONTACT_APPLY_REJECT, this.contactApplyRejectSocketHandler) + this.socket.on(this.ON_EVENT.GROUP_APPLY, this.groupApplySocketHandler) + this.socket.on(this.ON_EVENT.GROUP_APPLY_PASS, this.groupApplyPassSocketHandler) + this.socket.on(this.ON_EVENT.GROUP_APPLY_REJECT, this.groupApplyRejectSocketHandler) + this.socket.on(this.ON_EVENT.CHANNEL_VIDEO_CALL, this.channelVideoCallSocketHandler) + this.socket.on(this.ON_EVENT.EXIT, this.exitSocketHandler) + }, + /** + * 发送socket消息 + * @param {*} event + * @param {*} data + * @returns + */ + sendSocket: function({ + event, data, callback + }){ + if(!this.socket){ + console.error("socket is null") + return + } + + if (!event){ + console.error("event is null") + return + } + + if(!Object.values(this.EMIT_EVENT).includes(event)){ + console.error("event is not in EMIT_EVENT") + return + } + + this.socket.emit(event, data, callback) + }, + /** + * rtc-offer socket消息处理 + * @param {*} data + * @returns + */ + offerSocketHandler: function(data){ + // 处理rtc-offer消息 + this.emitSubModuleEvent({ + event: 'component-rtc-offer-socket', + data: data + }) + }, + /** + * rtc-answer socket消息处理 + * @param {*} data + * @returns + */ + answerSocketHandler: function(data){ + // 处理rtc-answer消息 + this.emitSubModuleEvent({ + event: 'component-rtc-answer-socket', + data: data + }) + }, + /** + * rtc-candidate socket消息处理 + * @param {*} data + * @returns + */ + candidateSocketHandler: function(data){ + // 处理rtc-candidate消息 + this.emitSubModuleEvent({ + event: 'component-rtc-candidate-socket', + data: data + }) + }, + /** + * 聊天socket消息处理 + * @param {*} data + * @returns + */ + channelChatSocketHandler: function(data){ + // 通知channel模块 + this.emitSubModuleEvent({ + event: 'sub-module-channel-list-chat-socket', + data: data + }) + }, + /** + * 视频通话socket消息处理 + * @param {*} data + * @returns + */ + channelVideoCallSocketHandler: function(data){ + // 通知video模块 + this.emitSubModuleEvent({ + event: 'component-video-call-socket', + data: data + }) + }, + /** + * 文件socket消息处理 + * @param {*} data + * @returns + */ + channelFileSocketHandler: function(data){ + // 通知file模块 + this.emitSubModuleEvent({ + event: 'component-file-send-socket', + data: data + }) + }, + /** + * 在线人数socket消息处理 + * @param {*} data + */ + countSocketHandler: function(data){ + console.log("count: ", data) + }, + /** + * 退出socket消息处理 + * @param {*} data + */ + exitSocketHandler: function(data){ + console.log("exit: ", data) + + this.emitSubModuleEvent({ + event: 'component-video-call-socket-exit', + data: data + }) + }, + /** + * 好友申请消息处理 + * @param {*} data + */ + contactApplySocketHandler: function(data){ + // 通知好友模块 + this.emitSubModuleEvent({ + event: 'sub-module-contact-apply-socket', + data: data + }) + }, + /** + * 通过好友申请消息处理 + * @param {*} data + */ + contactApplyPassSocketHandler: function(data){ + // 通知好友模块 + this.emitSubModuleEvent({ + event: 'sub-module-contact-apply-pass-socket', + data: data + }) + }, + /** + * 拒绝好友申请消息处理 + * @param {*} data + */ + contactApplyRejectSocketHandler: function(data){ + // 通知好友模块 + this.emitSubModuleEvent({ + event: 'sub-module-contact-apply-reject-socket', + data: data + }) + }, + /** + * 群组申请消息处理 + * @param {*} data + */ + groupApplySocketHandler: function(data){ + // 通知群组模块 + this.emitSubModuleEvent({ + event: 'sub-module-group-apply-socket', + data: data + }) + }, + /** + * 通过群组申请消息处理 + * @param {*} data + */ + groupApplyPassSocketHandler: function(data){ + // 通知群组模块 + this.emitSubModuleEvent({ + event: 'sub-module-group-apply-pass-socket', + data: data + }) + }, + /** + * 拒绝群组申请消息处理 + * @param {*} data + */ + groupApplyRejectSocketHandler: function(data){ + // 通知群组模块 + this.emitSubModuleEvent({ + event: 'sub-module-group-apply-reject-socket', + data: data + }) + } + }, + mounted() { + + }, + created(){ + // 监听初始化socket + window.subModule.$on("component-socket-init-socket", this.initSocket) + + // 发送socket消息 + window.subModule.$on("component-socket-send-socket", this.sendSocket) + }, +}) + +window.tl_rtc_app_socket = tl_rtc_app_socket; \ No newline at end of file diff --git a/web-res/js/component/video.js b/web-res/js/component/video.js new file mode 100644 index 0000000..d6849d4 --- /dev/null +++ b/web-res/js/component/video.js @@ -0,0 +1,1148 @@ +const tl_rtc_app_video = new Vue({ + el: '#tl-rtc-app-video', + data: function () { + const screenIsLandscape = window.tl_rtc_app_comm.isLandscape() + + return { + socket: null, // socket + stream: null, // 本地音视频流 + times: 0, // 通话时长 + intervalId: 0, // 计时器 + isInviter: false, // 是否是邀请方 + channelId: '', // 频道id + layerIndex: 0, // layer弹窗索引 + audioPlayer: null, // 音频播放器 + isMobile: tl_rtc_app_comm.isMobile(), // 是否是移动端 + + videoCallStatus: "", // try-invite, invite, accept, reject, busy, hangup + mkfOpen: true, // 麦克风状态 + ysqOpen: true, // 扬声器状态 + needAudio: true, // 是否需要音频 + needVideo: true, // 是否需要视频 + needvideoConstraints: { // 视频约束 + width: { + ideal: screenIsLandscape ? 4096 : 2160, + }, + height: { + ideal: screenIsLandscape ? 2160 : 4096 + }, + frameRate: { + ideal: 40, max: 50 + }, + facingMode: 'user' + }, + hanupCallback: null, // 挂断回调 + inviterSocketId: '', // 邀请方socketId + + // 邀请方数据 + inviterInviteList : [], // 邀请列表 + inviterRejectList: [], // 拒绝列表 + inviteBusyingList: [], // 忙线列表 + inviterAcceptList: [], // 邀请方收到的接听人的socketId + + // 被邀请方数据 + unInviterAcceptList: [], // 被邀请方收到的接受人的socketId + } + }, + computed: { + videoCallStatusText: function () { + let text = ""; + switch (this.videoCallStatus) { + case 'try-invite': + text = "准备邀请中..."; + break; + case "invite": + text = "等待接通中..."; + break; + case "accept": + text = "正在通话中..."; + break; + case "reject": + text = "对方已拒绝..."; + break; + case "busy": + text = "对方忙线中..."; + break; + default: + text = "未知状态"; + break; + } + return text; + } + }, + watch: { + mkfOpen: { + handler: function (cur, pre) { } + }, + ysqOpen: { + handler: function (cur, pre) { } + }, + videoCallStatus: { + handler: function (cur, pre) { + const videoCallStatusDom = document.querySelector("#tl-rtc-app-video-call-status") + if (videoCallStatusDom) { + videoCallStatusDom.innerText = this.videoCallStatusText; + } + } + } + }, + methods: { + /** + * 初始化socket + * @param {*} socket + */ + initSocket: function ({ + socket, callback + }) { + this.socket = socket; + + callback && callback(true) + }, + /** + * 获取rtc连接 + * @param {*} rtcId + * @returns + */ + getRtcConnect: async function (rtcId) { + let that = this + const rtcConnect = await this.emitSubModuleEvent({ + event: 'component-rtc-get-or-create-connect', + data: { + rtcId: rtcId + } + }) + + // 媒体流通道 + rtcConnect.addEventListener('track', async (event) => { + await that.handlerMediaTrack({ + event, rtcId + }) + }) + + // 添加自定义回调处理函数 + let rtcConnectCallbacks = rtcConnect.callbacks || {}; + let removeStreamCallbacks = rtcConnectCallbacks['removestream'] || []; + removeStreamCallbacks.push(function(){ + // 移除对应的video + const video = document.querySelector(`#tl-rtc-app-video-other-media-item${rtcId}`); + if(video){ + video.remove() + } + + // 如果是收到邀请方断开 + if(rtcId === that.inviterSocketId){ + // 移除邀请弹窗 + that.emitSubModuleEvent({ + event: 'component-popup-close-invite-msg' + }) + + that.videoCallStatus = 'hangup' + } + }) + rtcConnectCallbacks['removestream'] = removeStreamCallbacks + rtcConnect.callbacks = rtcConnectCallbacks + + return rtcConnect + }, + /** + * 远程rtc视频流关闭 + * @param {*} rtcConnect + * @param {*} rtcId + * @param {*} event + */ + closeVideoConnect: async function({rtcConnect, rtcId, event}){ + this.emitSubModuleEvent({ + event: 'component-rtc-remove-stream', + data: { + rtcConnect, rtcId, event + } + }) + }, + /** + * 获取音视频流 + * @returns + */ + getMediaPlay: function () { + let media = null; + let defaultConstraints = { + audio: this.needAudio, + video: this.needVideo ? this.needvideoConstraints : false, + }; + if (window.navigator.mediaDevices && window.navigator.mediaDevices.getUserMedia) { + media = window.navigator.mediaDevices.getUserMedia(defaultConstraints); + } else if (window.navigator.mozGetUserMedia) { + media = navigator.mozGetUserMedia(defaultConstraints); + } else if (window.navigator.getUserMedia) { + media = window.navigator.getUserMedia(defaultConstraints) + } else if (window.navigator.webkitGetUserMedia) { + media = new Promise((resolve, reject) => { + window.navigator.webkitGetUserMedia(defaultConstraints, (res) => { + resolve(res) + }, (err) => { + reject(err) + }); + }) + } + return media + }, + /** + * 打开弹窗 + */ + openVideo: async function () { + let that = this + + await new Promise(resolve => { + that.layerIndex = layer.open({ + type: 1, + closeBtn: 0, + fixed: false, + maxmin: false, + shadeClose: false, + shade: 0, + title: this.needVideo ? ` +
              + + 视频通话中... +
              + ` : ` +
              + + 语音通话中... +
              + `, + // title: false, + area: ['300px', '500px'], + move: '#tl-rtc-app-video-self-media-item', + success: function(layero, index){ + layero.find(".layui-layer-content").css({ + "overflow": "hidden", + "border-bottom-left-radius": "8px", + "border-bottom-right-radius": "8px" + }) + layero[0].style.borderRadius = "8px" + + // 挂断 + document.querySelector("#mediaVideoCloseTool").onclick = function(){ + that.emitSubModuleEvent({ + event: 'component-video-hanup-video-call' + }) + } + // 点击 打开麦克风 图标 + document.querySelector("#mediaVideoMkfOpenTool").onclick = that.mkfOpenChange + // 点击 关闭麦克风 图标 + document.querySelector("#tl-rtc-app-video-mkf-close-tool").onclick = that.mkfOpenChange + // 点击 打开扬声器 图标 + document.querySelector("#mediaVideoYsqOpenTool").onclick = that.ysqOpenChange + // 点击 关闭扬声器 图标 + document.querySelector("#tl-rtc-app-video-ysq-close-tool").onclick = that.ysqOpenChange + + resolve() + }, + content: ` +

              ${that.videoCallStatusText}

              +
              + +
              + +
              + + + + + +
              +
              + ` + }) + }) + }, + /** + * 获取音视频流 + * @returns + */ + tryAcquireVideoStream: async function () { + let that = this; + + // 打开弹窗 + if (!this.layerIndex) { + await this.openVideo() + } + + if (this.stream == null) { + try { + this.stream = await this.getMediaPlay(); + } catch (error) { + console.log(error) + } + } + + if (this.stream == null) { + this.popErrorMsg("获取设备"+(this.needVideo ? '摄像头': '麦克风')+"权限失败") + this.stopChannelVideoCall(true) + return; + } + + if(!this.intervalId){ + //计算时间 + this.intervalId = setInterval(() => { + that.times += 1; + }, 1000); + } + + const video = document.querySelector("#tl-rtc-app-video-self-media-item"); + video.addEventListener('loadedmetadata', function () { + // ios 微信浏览器兼容问题 + setTimeout(() => { + video.play(); + console.log("video play in loadedmetadata") + }, 150); + document.addEventListener('WeixinJSBridgeReady', function () { + setTimeout(() => { + video.play(); + console.log("video play in WeixinJSBridgeReady") + }, 150); + }, false); + }); + document.addEventListener('WeixinJSBridgeReady', function () { + setTimeout(() => { + video.play(); + console.log("video play in WeixinJSBridgeReady1") + }, 150); + }, false); + + try{ + video.srcObject = this.stream; + setTimeout(() => { + video.play(); + console.log("video play in srcObject") + }, 150); + }catch(e){ + setTimeout(() => { + video.play(); + console.log("video play in srcObject catch") + }, 1000); + } + + this.popSuccessMsg("开始通话") + }, + /** + * 开关麦克风 + */ + mkfOpenChange: function () { + if (this.mkfOpen) { + document.querySelector("#mediaVideoMkfOpenTool").style.display = "none" + document.querySelector("#tl-rtc-app-video-mkf-close-tool").style.display = "block" + } else { + document.querySelector("#mediaVideoMkfOpenTool").style.display = "block" + document.querySelector("#tl-rtc-app-video-mkf-close-tool").style.display = "none" + } + + this.mkfOpen = !this.mkfOpen + + if (this.mkfOpen) { + this.stream.getAudioTracks().forEach(track => track.enabled = true); + this.popSuccessMsg("打开麦克风") + } else { + this.stream.getAudioTracks().forEach(track => track.enabled = false); + this.popWarningMsg("关闭麦克风") + } + }, + /*** + * 开关扬声器 + * @param {*} rtcConns + */ + ysqOpenChange: async function () { + if (this.ysqOpen) { + document.querySelector("#mediaVideoYsqOpenTool").style.display = "none" + document.querySelector("#tl-rtc-app-video-ysq-close-tool").style.display = "block" + } else { + document.querySelector("#mediaVideoYsqOpenTool").style.display = "block" + document.querySelector("#tl-rtc-app-video-ysq-close-tool").style.display = "none" + } + + this.ysqOpen = !this.ysqOpen + + if (this.ysqOpen) { + this.popSuccessMsg("打开扬声器") + } else { + this.popWarningMsg("关闭扬声器") + } + + // 关闭远程音频, 关闭所有通话人的扬声器 + const rtcIds = Array.from(new Set(this.inviterAcceptList.concat(this.unInviterAcceptList))) + for(let i = 0; i < rtcIds.length; i++){ + const rtcConnect = await this.getRtcConnect(rtcIds[i]) + if(rtcConnect){ + const receivers = rtcConnect.getReceivers(); + const senders = rtcConnect.getSenders(); + + // console.log("receivers : ", receivers, senders) + + const receiver = receivers.find((receiver) => (receiver.track ? receiver.track.kind === 'audio' : false)); + const sender = senders.find((sender) => (sender.track ? sender.track.kind === 'audio' : false)); + + // console.log("receiver : ", receiver, sender) + if (!sender) { + console.error("changeDevice find sender error! "); + return + } + sender.track.enabled = this.ysqOpen + } + } + }, + /** + * 远程媒体流处理 + * @param {*} event + * @param {*} rtcId + * @returns + */ + handlerMediaTrack: async function ({ event, rtcId }) { + let video = null; + + if (event.track.kind === 'audio') { + return + } + + video = document.querySelector(`#tl-rtc-app-video-other-media-item${rtcId}`); + + if(!video){ + $("#tl-rtc-app-video-media-list").append(` + + `); + } + + video = document.querySelector(`#tl-rtc-app-video-other-media-item${rtcId}`); + + if (video) { + video.addEventListener('loadedmetadata', function () { + setTimeout(() => { + video.play(); + console.log("video play in loadedmetadata") + }, 150); + // ios 微信浏览器兼容问题 + document.addEventListener('WeixinJSBridgeReady', function () { + setTimeout(() => { + video.play(); + console.log("video play in WeixinJSBridgeReady") + }, 150); + }, false); + }); + document.addEventListener('WeixinJSBridgeReady', function () { + setTimeout(() => { + video.play(); + console.log("video play in WeixinJSBridgeReady1") + }, 150); + }, false); + + try{ + video.srcObject = event.streams[0] + setTimeout(() => { + video.play(); + console.log("video play in srcObject") + }, 150); + }catch(e){ + setTimeout(() => { + video.play(); + console.log("video play in srcObject catch") + }, 1000); + } + } + }, + /** + * 处理频道视频通话 + * @param {*} data + */ + handleChannelVideoCall: async function (data) { + const { channel, videoCallInfo } = data + + if (!channel || !videoCallInfo) { + data.callback && data.callback(false) + return + } + + this.channelId = channel + + // step1 发出尝试邀请后,收到一次服务端的汇总信息 + if(videoCallInfo.type === 'try-invite'){ + await this.receiveTryInviteChannelVideoCall(data) + data.callback && data.callback() + return + } + // step2.1 收到邀请消息 + if (videoCallInfo.type === 'invite') { + await this.receiveInviteChannelVideoCall(data) + data.callback && data.callback() + return + } + // step2.2 收到静默邀请 + if(videoCallInfo.type === 'silence-invite'){ + await this.receiveSilenceInviteChannelVideoCall(data) + data.callback && data.callback() + return + } + // step3.1 对方接受邀请 + if (videoCallInfo.type === 'accept') { + await this.receiveAcceptChannelVideoCall(data) + data.callback && data.callback() + return + } + // step3.2 对方静默接受邀请 + if(videoCallInfo.type === 'silence-accept'){ + await this.receiveSilenceAcceptChannelVideoCall(data) + data.callback && data.callback() + return + } + // step4 对方拒绝邀请 + if (videoCallInfo.type === 'reject') { + await this.receiveRejectChannelVideoCall(data) + data.callback && data.callback() + return + } + // step5 对方正忙线 + if(videoCallInfo.type === 'busy'){ + await this.receiveBusyChannelVideoCall(data) + data.callback && data.callback() + return + } + // step6 双方确定接受邀请 + if(videoCallInfo.type === 'accepte-ack'){ + await this.receiveAccepteAckChannelVideoCall(data) + data.callback && data.callback() + return + } + // step7 对方挂断 + if(videoCallInfo.type === 'hangup'){ + await this.receiveHangupChannelScreenCall(data) + data.callback && data.callback() + return + } + + data.callback && data.callback() + }, + /** + * 收到尝试邀请通知 + * @param {*} data + */ + receiveTryInviteChannelVideoCall: async function(data){ + const channelId = data.channel + const videoCallInfo = data.videoCallInfo + + this.inviterInviteList = videoCallInfo.inviterInviteList || [] + + // 播放音频 + this.playAudio() + + // 请求视频通话给对方 + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelVideoCall', + data: { + channel: channelId, + videoCallInfo: { + from: this.socket.id, + fromName: videoCallInfo.fromName || "", + type: 'invite', + audio: this.needAudio, + video: this.needVideo, + videoConstraints: this.needvideoConstraints + } + } + } + }); + + this.videoCallStatus = "try-invite" + }, + /** + * 收到邀请通知 + * @param {*} data + */ + receiveInviteChannelVideoCall: async function (data) { + const channelId = data.channel + const videoCallInfo = data.videoCallInfo + + // 播放音频 + this.playAudio() + + // 当前正忙线中 + if(this.isInVideoing({})){ + this.closeAudio() + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelVideoCall', + data: { + channel: channelId, + videoCallInfo: { + from: this.socket.id, + to: videoCallInfo.from, + type: 'busy', + } + } + } + }); + return + } + + this.videoCallStatus = 'invite' + this.inviterSocketId = videoCallInfo.from + + this.needAudio = videoCallInfo.audio + this.needVideo = videoCallInfo.video + if(this.needVideo){ + this.needvideoConstraints = videoCallInfo.videoConstraints + } + + let acceptOrReject = await this.emitSubModuleEvent({ + event: 'component-popup-add-invite-msg', + data: { + imgSrc: "/image/default-avatar.png", + text: '收到' + videoCallInfo.fromName + '通话邀请', + acceptCallback: async function () { + return 'accept' + }, + rejectCallback: async function () { + return 'reject' + } + } + }) + + // 接受或者拒绝后关闭播音 + this.closeAudio() + + this.videoCallStatus = acceptOrReject + + if (acceptOrReject === 'accept') { + // 获取视频流 + await this.tryAcquireVideoStream() + + // 创建/获取远程rtc连接 + const remoteRtcConnect = await this.getRtcConnect(videoCallInfo.from) + + // 视频流添加到远程连接 + if(this.stream){ + this.stream.getTracks().forEach(track => { + remoteRtcConnect.addTrack(track, this.stream) + }) + } + + // 被邀请方接受邀请后,将邀请人添加到接受列表 + this.unInviterAcceptList.push(videoCallInfo.from) + } + + // 回复视频通话给邀请方 + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelVideoCall', + data: { + channel: channelId, + videoCallInfo: { + from: this.socket.id, + to: videoCallInfo.from, + type: acceptOrReject + } + } + } + }); + }, + /** + * 收到接受邀请通知 + * @param {*} data + */ + receiveAcceptChannelVideoCall: async function (data) { + const videoCallInfo = data.videoCallInfo + + // 关闭播音 + this.closeAudio() + + this.videoCallStatus = videoCallInfo.type + + // 获取视频流 + await this.tryAcquireVideoStream() + + // 创建/获取远程rtc连接 + const remoteRtcConnect = await this.getRtcConnect(videoCallInfo.from) + + // 视频流添加到连接 + if(this.stream){ + this.stream.getTracks().forEach(track => { + remoteRtcConnect.addTrack(track, this.stream) + }) + } + + // 创建offer + await this.emitSubModuleEvent({ + event: 'component-rtc-offer-create', + data: { + rtcConnect: remoteRtcConnect, + rtcId: videoCallInfo.from + } + }) + + if(this.isInviter){ + // 加入接收者列表 + this.inviterAcceptList.push(videoCallInfo.from) + + // 广播给当前接受者已接受者列表 + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelVideoCall', + data: { + channel: data.channel, + videoCallInfo: { + from: this.socket.id, + to: videoCallInfo.from, + type: 'accepte-ack', + accepter: this.inviterAcceptList + } + } + } + }); + } + + this.popSuccessMsg(videoCallInfo.from + "已接通") + }, + /** + * 收到acceptAck通知 + * @param {*} data + */ + receiveAccepteAckChannelVideoCall: async function(data){ + let that = this; + const videoCallInfo = data.videoCallInfo + const otherAccepter = videoCallInfo.accepter || [] + + otherAccepter.forEach(item => { + if(item === that.socket.id){ + return + } + if(that.unInviterAcceptList.includes(item)){ + return + } + + // 存在新增接听者,由后者向前者发起 silence-invite, 前者收到后反馈 silence-accept + that.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelVideoCall', + data: { + channel: data.channel, + videoCallInfo: { + from: that.socket.id, + to: item, + type: 'silence-invite', + } + } + } + }); + + that.unInviterAcceptList.push(item) + }) + }, + /** + * 收到静默邀请通知 + * @param {*} data + */ + receiveSilenceInviteChannelVideoCall: async function (data) { + const channelId = data.channel + const videoCallInfo = data.videoCallInfo + + this.videoCallStatus = 'invite' + + // 创建/获取远程rtc连接 + const remoteRtcConnect = await this.getRtcConnect(videoCallInfo.from) + + // 视频流添加到连接 + if(this.stream){ + this.stream.getTracks().forEach(track => { + remoteRtcConnect.addTrack(track, this.stream) + }) + } + + // 回复视频通话给邀请方 + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelVideoCall', + data: { + channel: channelId, + videoCallInfo: { + from: this.socket.id, + to: videoCallInfo.from, + type: 'silence-accept' + } + } + } + }); + }, + /** + * 收到接受静默邀请通知 + * @param {*} data + */ + receiveSilenceAcceptChannelVideoCall: async function (data) { + const videoCallInfo = data.videoCallInfo + + // 创建/获取远程rtc连接 + const remoteRtcConnect = await this.getRtcConnect(videoCallInfo.from) + + // 视频流添加到连接 + if(this.stream){ + this.stream.getTracks().forEach(track => { + remoteRtcConnect.addTrack(track, this.stream) + }) + } + + // 创建offer + await this.emitSubModuleEvent({ + event: 'component-rtc-offer-create', + data: { + rtcConnect: remoteRtcConnect, + rtcId: videoCallInfo.from + } + }) + }, + /** + * 收到拒绝邀请通知 + * @param {*} data + */ + receiveRejectChannelVideoCall: async function (data) { + const channelId = data.channel + const videoCallInfo = data.videoCallInfo + + this.popWarningMsg(videoCallInfo.from + "已拒绝") + + this.inviterRejectList.push(videoCallInfo.from) + + // 关闭播音 + this.closeAudio() + + // 全部拒绝或者正忙,关闭邀请者通话弹窗 + if(this.inviterInviteList.length === this.inviterRejectList.length + this.inviteBusyingList.length){ + setTimeout(this.stopChannelVideoCall, 2100); + this.videoCallStatus = '' + } + }, + /** + * 收到忙线通知 + * @param {*} data + */ + receiveBusyChannelVideoCall: async function(data){ + const channelId = data.channel + const videoCallInfo = data.videoCallInfo + + this.popWarningMsg(videoCallInfo.from + "忙线中") + + this.inviteBusyingList.push(videoCallInfo.from) + + // 关闭播音 + this.closeAudio() + + // 全部拒绝或者正忙,关闭通话 + if(this.inviterInviteList.length === this.inviterRejectList.length + this.inviteBusyingList.length){ + setTimeout(this.stopChannelVideoCall, 1000); + this.videoCallStatus = '' + } + }, + /** + * 收到挂断通知 + * @param {*} data + */ + receiveHangupChannelScreenCall: async function(data){ + const videoCallInfo = data.videoCallInfo + + // 创建/获取远程rtc连接 + const remoteRtcConnect = await this.getRtcConnect(videoCallInfo.from) + + this.closeVideoConnect({ + rtcConnect: remoteRtcConnect, rtcId: videoCallInfo.from, event: null + }) + + if(this.isInviter){ + // 移除已接听的用户 + const index = this.inviterAcceptList.indexOf(videoCallInfo.from) + if(index > -1){ + this.inviterAcceptList.splice(index, 1) + } + }else{ + // 移除已接听的用户 + const index = this.unInviterAcceptList.indexOf(videoCallInfo.from) + if(index > -1){ + this.unInviterAcceptList.splice(index, 1) + } + } + }, + /** + * 发起视频通话 - 对外API + */ + startChannelVideoCall: async function ({ + channelId, + video, + audio, + videoConstraints = {}, + fromName, + callback, + hanupCallback + }) { + let that = this + + // 设置音视频通话参数 + this.needVideo = video + this.needAudio = audio + if (video) { + this.needvideoConstraints = videoConstraints + } + + if(this.isInVideoing({})){ + this.popWarningMsg("当前正在通话中") + callback && callback(false) + return + } + + // 获取视频流 + await this.tryAcquireVideoStream() + + if(!this.stream){ + callback && callback(false) + return + } + + // 收集待通话用户列表 + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelVideoCall', + data: { + channel: channelId, + videoCallInfo: { + from: this.socket.id, + fromName: fromName || "", + to: this.socket.id, + type: 'try-invite', + } + } + } + }); + + this.isInviter = true + this.channelId = channelId + this.videoCallStatus = "try-invite" + this.hanupCallback = hanupCallback + + callback && callback(true) + }, + /** + * 停止音视频流 + * @returns + */ + stopChannelVideoCall: function (isCancel) { + if (this.stream) { + this.stream.getTracks().forEach(track => track.stop()); + } + + clearInterval(this.intervalId); + + if (!isCancel) { + this.popSuccessMsg("通话结束,本次通话时长 " + this.times + "秒") + } + + if (this.layerIndex) { + layer.close(this.layerIndex); + + } + + this.closeAudio() + + this.stream = null + this.times = 0 + this.isInviter = false + this.intervalId = 0 + this.channelId = '' + this.videoCallStatus = "" + this.mkfOpen = true + this.ysqOpen = true + this.needAudio = true + this.needVideo = true + this.layerIndex = 0 + this.audioPlayer = null + this.inviterInviteList = [] + this.inviterRejectList = [] + this.inviteBusyingList = [] + this.inviterAcceptList = [] + this.unInviterAcceptList = [] + this.hanupCallback = null + this.inviterSocketId = '' + }, + /** + * 播放音频 + */ + playAudio: function () { + if(!this.audioPlayer){ + try{ + // this.audioPlayer = new Audio('/image/default-call-audio.mp3'); + // this.audioPlayer.play(); + }catch(e){ + console.log("audio play error! ", e) + } + } + }, + /** + * 关闭音频 + */ + closeAudio: function () { + if(this.audioPlayer){ + this.audioPlayer.pause(); + this.audioPlayer = null + } + }, + /** + * 是否在通话中 + * @returns + */ + isInVideoing: function({ + callback + }){ + const result = !!this.stream || [ + 'try-invite', 'invite', 'accept', 'busy' + ].includes(this.videoCallStatus) + + callback && callback(result); + return result + }, + /** + * 挂断通话 + */ + hanupChannelVideoCall: async function({ + callback + }){ + // 挂断通知 + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelVideoCall', + data: { + channel: this.channelId, + videoCallInfo: { + from: this.socket.id, + type: 'hangup' + } + } + } + }); + + if (this.hanupCallback) { + this.hanupCallback({ + time: this.times + }) + } + + if(this.isInviter){ + // 清理已接听的用户连接 + // console.log("this.inviterAcceptList", this.inviterAcceptList) + for (let i = 0; i < this.inviterAcceptList.length; i++) { + // 创建/获取远程rtc连接 + const remoteRtcConnect = await this.getRtcConnect(this.inviterAcceptList[i]) + // 调用关闭 + this.closeVideoConnect({ + rtcConnect: remoteRtcConnect, rtcId: this.inviterAcceptList[i], event: null + }) + } + }else{ + // 清理已接听的用户连接 + for (let i = 0; i < this.unInviterAcceptList.length; i++) { + // 创建/获取远程rtc连接 + const remoteRtcConnect = await this.getRtcConnect(this.unInviterAcceptList[i]) + // 调用关闭 + this.closeVideoConnect({ + rtcConnect: remoteRtcConnect, rtcId: this.unInviterAcceptList[i], event: null + }) + } + } + + this.stopChannelVideoCall() + + callback && callback() + }, + /** + * 收到退出通知事件 + */ + handleExit: async function(data){ + // 不在媒体流通话中, 不处理 + if(!this.isInVideoing({})){ + data.callback && data.callback() + return + } + + // 创建/获取远程rtc连接 + const remoteRtcConnect = await this.getRtcConnect(data.from) + // 调用关闭 + this.closeVideoConnect({ + rtcConnect: remoteRtcConnect, rtcId: data.from, event: null + }) + + data.callback && data.callback() + } + }, + mounted: async function () { + let that = this + window.addEventListener('resize', function(){ + that.isMobile = tl_rtc_app_comm.isMobile() + }, true) + }, + created(){ + // 监听初始化socket + window.subModule.$on("component-video-init-socket", this.initSocket) + + // 唤起视频通话 + window.subModule.$on("component-video-start-video", this.startChannelVideoCall); + + // 是否正在通话中 + window.subModule.$on("component-video-is-in-videoing", this.isInVideoing); + + // socket事件 + window.subModule.$on("component-video-call-socket", this.handleChannelVideoCall); + + // socket退出事件 + window.subModule.$on("component-video-call-socket-exit", this.handleExit); + + // 挂断通话 + window.subModule.$on("component-video-hanup-video-call", this.hanupChannelVideoCall); + } +}) + +window.tl_rtc_app_video = tl_rtc_app_video; \ No newline at end of file diff --git a/web-v2-res/js/module/blank/content.js b/web-res/js/module/blank/content.js similarity index 100% rename from web-v2-res/js/module/blank/content.js rename to web-res/js/module/blank/content.js diff --git a/web-v2-res/js/module/channel/channel.js b/web-res/js/module/channel/channel.js similarity index 100% rename from web-v2-res/js/module/channel/channel.js rename to web-res/js/module/channel/channel.js diff --git a/web-v2-res/js/module/channel/content.js b/web-res/js/module/channel/content.js similarity index 71% rename from web-v2-res/js/module/channel/content.js rename to web-res/js/module/channel/content.js index ebf16c7..612965c 100644 --- a/web-v2-res/js/module/channel/content.js +++ b/web-res/js/module/channel/content.js @@ -62,6 +62,7 @@ const tl_rtc_app_module_channel_content = { socketId: this.socket.id, // socketId channelId: '', // 当前会话id channelName: '', //当前会话名称 - 单聊【对方名称】- 群聊【群聊名称】 + channelRole: '', // 当前会话角色 channelReName: '', // 当前会话备注名称 channelUserCount: 0, // 当前会话用户数量 channelMessages: [], // 当前会话消息数据 - 单聊/群聊 @@ -69,9 +70,28 @@ const tl_rtc_app_module_channel_content = { channelType: '', // 当前会话类型 - 单聊/群聊 channelTop: false, // 当前会话是否置顶 channelBlack: false, // 当前会话是否拉黑 + channelGroupCanBeSearch: false, // 当前群聊是否可以被搜索 channelNoticeList: [], // 当前会话公告列表 channelMessageAllLoad: false, // 当前会话消息是否全部加载 tools: [ + { + svg: '#tl-rtc-app-icon-a-tongzhigonggao3x', + title: '群公告', + active: false, + callback: this.showGroupNotice + }, + { + svg: '#tl-rtc-app-icon-31dianhua', + title: '语音通话', + active: false, + callback: this.makeChannelAudioCall + }, + { + svg: '#tl-rtc-app-icon-shexiangtou', + title: '视频通话', + active: false, + callback: this.makeChannelVideoCall + }, { svg: '#tl-rtc-app-icon-faqiliaotian', title: '邀请进群', @@ -115,6 +135,198 @@ const tl_rtc_app_module_channel_content = { rightModuleChange: function(event){ this.$emit('right-module-change', event) }, + /** + * 显示群公告 + */ + showGroupNotice: function () { + let that = this + let noticeDom = "" + this.channelNoticeList.forEach(item => { + noticeDom += ` +
              +
              ${item.username}发布公告:
              +
              ${item.content}
              +
              ${item.createTimeFormat}
              +
              + ` + }) + layer.open({ + type: 1, + title: '群公告', + skin: 'tl-rtc-app-layer-channel-notice', + content: ` +
              + ${this.channelNoticeList.length === 0 ? '
              暂无公告
              ' : ''} +
              ${noticeDom}
              +
              + `, + area: this.isMobile ? ['100%', '100%'] : ['350px', '400px'], + shadeClose: true, + success: function(layero){ + if(!that.isMobile){ + layero.css({ + 'border-radius': '6px', + }) + } + }, + yes: function (index) { + layer.close(index) + } + }); + }, + /** + * 发起语音通话 + */ + makeChannelAudioCall: async function () { + let called = await this.emitSubModuleEvent({ + event: 'component-video-start-video', + data: { + channelId: this.channelId, + fromName: this.propsUser.username, + audio: true, video: false, + hanupCallback: function({ + time + }){ + console.log("时长", time) + } + } + }) + + if(!called){ + return + } + + // 添加媒体记录 + await this.addMediaRecord({ + type: 'audio', + channelId: this.channelId, + channelType: this.channelType + }) + }, + /** + * 发起视频通话 + */ + makeChannelVideoCall: async function () { + let that = this + // 屏幕是否是横向 + const screenIsLandscape = window.tl_rtc_app_comm.isLandscape() + + let called = await this.emitSubModuleEvent({ + event: 'component-video-start-video', + data: { + channelId: this.channelId, + fromName: this.propsUser.username, + audio: true, video: true, + videoConstraints: { + width: { + ideal: screenIsLandscape ? 300 : 450, + }, + height: { + ideal: screenIsLandscape ? 450 : 300, + }, + frameRate: { + ideal: 40, max: 50 + }, + facingMode: 'user' + }, + hanupCallback: function({ + time + }){ + console.log("时长", time) + } + } + }) + + if(!called){ + return + } + + // 添加媒体记录 + await this.addMediaRecord({ + type: 'video', + channelId: this.channelId, + channelType: this.channelType + }) + }, + /** + * 添加媒体记录 + * @param {*} type + * @param {*} channelId + * @param {*} channelType + * @param {*} meetingCode : 直播会议号 + * @returns + */ + addMediaRecord: async function({ + type, channelId, channelType, meetingCode = '', callback + }){ + let url = '' + if (channelType === 'group') { + url = '/api/web/channel-media/add-group-channel-' + type + }else if (channelType === 'friend') { + url = '/api/web/channel-media/add-friend-channel-' + type + } + + let params = { + channelId: channelId, + } + if(!window.tl_rtc_app_comm.checkRequestParams(params)){ + this.popErrorMsg("请求参数非法") + callback && callback(false) + return + } + // 记录消息 + const { data: addMediaRes } = await this.tlRequest({ + url: url, + method: 'post', + useCache: false, + data: params, + }) + if (!addMediaRes.success) { + this.popErrorMsg(addMediaRes.msg) + callback && callback(false) + return + } + + let addMessage = addMediaRes.data + if (addMessage) { + if(addMessage.messageTimeStamp){ + addMessage.messageTimeStampFormat = window.util.timeAgo(addMessage.messageTimeStamp) + } + + if(addMessage.type === 'audio'){ + // 设置icon + addMessage.mediaIcon = '#tl-rtc-app-icon-31dianhua' + }else if(addMessage.type === 'video'){ + // 设置icon + addMessage.mediaIcon = '#tl-rtc-app-icon-shexiangtou' + } + } + + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelChat', + data: { + channel: channelId, + messageInfo: addMessage + } + } + }); + + this.channelMessages.push(addMessage) + + await this.emitSubModuleEvent({ + event: 'sub-module-channel-list-update-latest-message', + data: { + channelId: channelId, + extra: addMessage + } + }) + + this.moduleScrollToBottom({}) + + callback && callback(true) + }, /** * 邀请用户进群 */ @@ -165,7 +377,7 @@ const tl_rtc_app_module_channel_content = { * @param {*} data */ openChannelContent: async function (data) { - console.log("频道内容数据变更", data) + // console.log("频道内容数据变更", data) if('channelId' in data){ this.channelId = data.channelId @@ -197,6 +409,12 @@ const tl_rtc_app_module_channel_content = { if('channelMessageAllLoad' in data){ this.channelMessageAllLoad = data.channelMessageAllLoad } + if('channelRole' in data){ + this.channelRole = data.channelRole + } + if('channelGroupCanBeSearch' in data){ + this.channelGroupCanBeSearch = data.channelGroupCanBeSearch + } data.callback && data.callback(true) }, @@ -232,12 +450,12 @@ const tl_rtc_app_module_channel_content = { let toUserId = '', toUserName = '' if (this.channelType === 'friend') { - firend = this.channelUsers.find(item => item.userId !== this.propsUser.userId) + let firend = this.channelUsers.find(item => item.userId !== this.propsUser.userId) if (firend) { toUserId = firend.userId toUserName = firend.username }else{ - this.popErrorMsg('发送消息失败,好友不存在') + this.popErrorMsg('发送消息失败,对方已经不是您的好友') return } } @@ -281,10 +499,20 @@ const tl_rtc_app_module_channel_content = { } } - this.propsSocket.emit('channelChat', { - channel: this.channelId, - messageInfo: addMessage - }) + if([ + 'group', 'friend' + ].includes(this.channelType)){ + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelChat', + data: { + channel: this.channelId, + messageInfo: addMessage + } + } + }); + } this.channelMessages.push(addMessage) @@ -297,9 +525,9 @@ const tl_rtc_app_module_channel_content = { } }) - // 清除回复消息 + // 清除回复消息/清除快捷回复消息/清除at用户 this.emitSubModuleEvent({ - event: 'sub-module-channel-content-clear-body-reply-message', + event: 'sub-module-channel-content-clear-body-panel', }) this.moduleScrollToBottom({}) @@ -312,10 +540,16 @@ const tl_rtc_app_module_channel_content = { pushChannelInviteMessage: async function({ addMessage, callback }) { - this.propsSocket.emit('channelChat', { - channel: this.channelId, - messageInfo: addMessage - }) + this.emitSubModuleEvent({ + event: 'component-socket-send-socket', + data: { + event: 'channelChat', + data: { + channel: this.channelId, + messageInfo: addMessage + } + } + }); this.channelMessages.push(addMessage) @@ -332,72 +566,78 @@ const tl_rtc_app_module_channel_content = { callback && callback(true) }, /** - * 撤回消息 - * @param {*} messageId - * @param {*} channelId - * @param {*} callback + * 发送频道文件消息 + * @param {*} data */ - rollbackChannelMessage: async function({ - messageId, channelId, messageType, callback - }){ - let acceptOrReject = await new Promise(resolve => { - layer.confirm('确定撤回该消息吗?', { - shadeClose: 1 - }, function (index) { - resolve(true) - layer.close(index) - }, function (index) { - resolve(false) - }); - }) + pushChannelFileMessage: async function (data) { + let url = '' + if(this.channelType === 'friend'){ + url = '/api/web/channel-file/add-friend-channel-offline-file' + }else if (this.channelType === 'group'){ + url = '/api/web/channel-file/add-group-channel-offline-file' + } - if(!acceptOrReject){ - callback && callback(false) + if (!url) { + this.popErrorMsg('发送消息失败,频道类型错误') return } const params = { - channelId: channelId, - messageId: messageId, - messageType: messageType + channelId: this.channelId, + cloudFileId: data.cloudFileId } if(!window.tl_rtc_app_comm.checkRequestParams(params)){ this.popErrorMsg("请求参数非法") - callback && callback(false) return } - const { data: channelChatRes } = await this.tlRequest({ - url: '/api/web/channel-chat/rollback-channel-chat', + const { data: addFileRes } = await this.tlRequest({ + url: url, method: 'post', useCache: false, data: params, + }) - if(!channelChatRes.success){ - this.popErrorMsg(channelChatRes.msg) - callback && callback(false) + if(!addFileRes.success){ + this.popErrorMsg(addFileRes.msg) return } - this.popSuccessMsg(channelChatRes.msg) + let addMessage = addFileRes.data + if (addMessage) { + if(addMessage.messageTimeStamp){ + addMessage.messageTimeStampFormat = window.util.timeAgo(addMessage.messageTimeStamp) + } + + // 设置icon + let fileExt = addMessage.fileName.split('.').pop().toLowerCase() + addMessage.fileIcon = window.tl_rtc_app_comm.getFileIcon(fileExt) + //文件大小format, kb/mb/gb + let fileSize = addMessage.fileSize + addMessage.fileSizeFormat = window.tl_rtc_app_comm.getFileSize(fileSize) + } - // 更新当前频道消息 this.emitSubModuleEvent({ - event: 'sub-module-channel-list-rollback-channel-message', + event: 'component-socket-send-socket', data: { - messageId: messageId, - channelId: channelId, - rollbackMessage: channelChatRes.data, + event: 'channelChat', + data: { + channel: this.channelId, + messageInfo: addMessage + } + } + }); + + this.channelMessages.push(addMessage) + + await this.emitSubModuleEvent({ + event: 'sub-module-channel-list-update-latest-message', + data: { + channelId: this.channelId, + extra: addMessage } }) - // 广播一条撤回事件 - this.propsSocket.emit('channelChatRollback', { - channel: channelId, - messageId: messageId, - rollbackMessage: channelChatRes.data, - }) - - callback && callback(true) + this.moduleScrollToBottom({}) }, /** * 删除消息 @@ -444,7 +684,7 @@ const tl_rtc_app_module_channel_content = { btn : ['确定', '取消'], value: "", shadeClose : true, - skin: 'layui-layer-prompt tl-rtc-app-layer-channel-change-name', + skin: 'layui-layer-prompt ', maxlength : 15, }, async function (value, index, elem) { value = value.trim() @@ -1018,7 +1258,7 @@ const tl_rtc_app_module_channel_content = { ]) const content = window.tl_rtc_app_comm.addUrlHashParams({ - [that.channelShareHashKey]: that.channelId + [that.channelShareHashKey]: Base64.encode(that.channelId + '-' + that.propsUser.userId) }) window.tl_rtc_app_comm.getQrCode( @@ -1048,60 +1288,111 @@ const tl_rtc_app_module_channel_content = { return } - let shareChannelId = window.tl_rtc_app_comm.getRequestHashArgs(this.channelShareHashKey); - - if(!shareChannelId){ + let shadeContent = window.tl_rtc_app_comm.getRequestHashArgs(this.channelShareHashKey) + if(!shadeContent){ + console.log("分享参数为空") return } + + let decodeContent = Base64.decode(shadeContent) + if(!decodeContent){ + console.log("分享参数解析失败") + return + } + + const args = decodeContent.split('-') + if(!args || args.length < 2){ + console.log("分享参数不完整") + return + } + + let shareChannelId = args[0] + if(!shareChannelId){ + console.log("分享参数不完整") + return + } + + let shareUserId = args[1] + if(!shareUserId){ + console.log("分享参数不完整") + return + } + + shareChannelId = parseInt(shareChannelId) + shareUserId = parseInt(shareUserId) - window.location.hash = window.location.hash.replace(this.channelShareHashKey + "=" + shareChannelId, "") + window.location.hash = window.location.hash.replace(this.channelShareHashKey + "=" + shadeContent, "") const params = { - channelId: shareChannelId + channelId: shareChannelId, + shareUserId + } + if(!window.tl_rtc_app_comm.checkRequestParams(params)){ + this.popErrorMsg("请求参数非法") + return + } + const { data: groupRes } = await this.tlRequest({ + url: '/api/web/channel/search-channel-by-id', + method: 'post', + useCache: false, + data: params, + }) + if(!groupRes.success){ + this.popErrorMsg(groupRes.msg) + return false; + } + + this.popSuccessMsg(groupRes.msg) + + this.emitSubModuleEvent({ + event: 'sub-module-contact-content-group-search-data-change', + data: groupRes.data + }) + + // 打开右侧模块 - 处理移动端情况 + this.emitSubModuleEvent({ + event: 'sub-module-core-change-module-show', + data: { + showRightModule: true, + } + }) + + this.$emit('left-module-change', 'contact') + this.$emit('right-module-change', 'content') + }, + /** + * 更新频道是否可搜索 + * @param {*} callback + * @returns + */ + updateChannelCanSearch: async function(){ + const params = { + channelId: this.channelId, + canSearch: !this.channelGroupCanBeSearch } if(!window.tl_rtc_app_comm.checkRequestParams(params)){ this.popErrorMsg("请求参数非法") return } const { data: channelRes } = await this.tlRequest({ - url: '/api/web/channel/get-channel-name', - method: 'get', + url: '/api/web/channel/update-channel-can-search', + method: 'post', useCache: false, - params: params, - + data: params, }) if(!channelRes.success){ this.popErrorMsg(channelRes.msg) return } + + this.popSuccessMsg(channelRes.msg) - const shareChannelName = channelRes.data.channelName - - layer.confirm("是否加入群聊 - " + shareChannelName, async (index) => { - const params = { - channelId: shareChannelId + await this.emitSubModuleEvent({ + event: 'sub-module-channel-list-update-channel', + data: { + channelId: this.channelId, + update_types: ['channelInfo'], } - if(!window.tl_rtc_app_comm.checkRequestParams(params)){ - that.popErrorMsg("请求参数非法") - return - } - const { data: joinChannelRes } = await that.tlRequest({ - url: '/api/web/channel-user/share-join-channel', - method: 'post', - useCache: false, - data: params, - }) - - layer.close(index) - - if(!joinChannelRes.success){ - that.popErrorMsg(joinChannelRes.msg) - return - } - - await that.emitSubModuleEvent({ - event: 'sub-module-channel-list-init' - }) }) }, }, @@ -1115,7 +1406,10 @@ const tl_rtc_app_module_channel_content = { // 监听频道消息滚动到底部 window.subModule.$on('sub-module-channel-content-scroll-to-bottom', this.moduleScrollToBottom) - + + // 获取群公告列表 + window.subModule.$on('sub-module-channel-content-get-notice-list', this.getChannelNoticeList) + // 快捷设置频道置顶 window.subModule.$on('sub-module-channel-content-update-channel-top-quick', this.updateChannelToTopQuick) @@ -1131,6 +1425,9 @@ const tl_rtc_app_module_channel_content = { // 添加邀请消息 window.subModule.$on('sub-module-channel-content-add-invite-message', this.pushChannelInviteMessage) + // 添加媒体消息 + window.subModule.$on('sub-module-channel-content-add-media-message', this.addMediaRecord) + // 修改好友备注 window.subModule.$on('sub-module-channel-content-update-friend-name', this.updateFriendName) @@ -1139,9 +1436,6 @@ const tl_rtc_app_module_channel_content = { // 删除消息 window.subModule.$on('sub-module-channel-content-delete-channel-message', this.deleteChannelMessage) - - // 撤回消息 - window.subModule.$on('sub-module-channel-content-rollback-channel-message', this.rollbackChannelMessage) }, components: { 'tl_rtc_app_module_channel_content_tool': window.tl_rtc_app_module_channel_content_tool, @@ -1149,6 +1443,7 @@ const tl_rtc_app_module_channel_content = { 'tl_rtc_app_module_channel_content_textarea': window.tl_rtc_app_module_channel_content_textarea, 'tl_rtc_app_module_channel_content_more': window.tl_rtc_app_module_channel_content_more, 'tl_rtc_app_module_channel_content_invite': window.tl_rtc_app_module_channel_content_invite, + 'tl_rtc_app_module_channel_content_search_message': window.tl_rtc_app_module_channel_content_search_message }, template: `
              @@ -1159,6 +1454,7 @@ const tl_rtc_app_module_channel_content = { :channel-user-count='channelUserCount' :channel-type='channelType' :channel-users='channelUsers' + :channel-role='channelRole' :user='propsUser' :is-mobile='propsIsMobile' :left-module='propsLeftModule' @@ -1181,15 +1477,19 @@ const tl_rtc_app_module_channel_content = { :right-module='propsRightModule' @left-module-change='leftModuleChange' @right-module-change='rightModuleChange' + @make-channel-audio-call='makeChannelAudioCall' + @make-channel-video-call='makeChannelVideoCall' :channel-message-all-load='channelMessageAllLoad' > + + + +
              ` } diff --git a/web-res/js/module/channel/content/body.js b/web-res/js/module/channel/content/body.js new file mode 100644 index 0000000..b3785a6 --- /dev/null +++ b/web-res/js/module/channel/content/body.js @@ -0,0 +1,837 @@ +const tl_rtc_app_module_channel_content_body = { + props : { + channelId : { + type : String, + default : '' + }, + channelMessages : { + type : Array, + default : [] + }, + socketId : { + type : String, + default : '' + }, + user: { + type: Object, + default: function(){ + return { + userId: '', // 用户id + username: '', // 用户名称 + userAvatar: '', // 用户头像 + } + } + }, + isMobile: { + type: Boolean, + default: false + }, + company: { + type: Object, + default: function(){ + return { + name: '' + } + } + }, + channelMessageAllLoad: { + type: Boolean, + default: false + }, + leftModule: { + type: String, + default: '' + }, + rightModule: { + type: String, + default: '' + } + }, + watch: { + channelMessages: { + deep: true, + immediate: true, + handler: function(val){ + let that = this + this.$nextTick(function(){ + that.registerMessageMenu() + }) + }, + }, + leftModule: function (val) { + + }, + rightModule: function (val) { + + }, + replyToMessageId: function (val) { + // 42px是layedit工具栏的高度 + const bottomBlock = document.querySelector('.tl-rtc-app-right-channel-content-bottom') + const replyContentBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-reply-content-block') + const quickMessageContentBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-quick-message-content-block') + const atUserContentBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-at-user-content-block') + + if(!bottomBlock || !replyContentBlock){ + return + } + + if(val){ + // 回复情况下,处理回复框定位 + replyContentBlock.style.bottom = bottomBlock.offsetHeight + this.layeditToolHeight + 'px' + + // 如果有快捷消息,处理快捷消息定位到回复框上面 + if(quickMessageContentBlock && this.hitQuickMessageList.length > 0){ + this.$nextTick(()=>{ + quickMessageContentBlock.style.bottom = bottomBlock.offsetHeight + this.layeditToolHeight + replyContentBlock.clientHeight + 'px' + }) + } + + // 如果有@用户,处理选择at用户定位到回复框上面 + if(atUserContentBlock && this.hitAtUserList.length > 0){ + this.$nextTick(()=>{ + atUserContentBlock.style.bottom = bottomBlock.offsetHeight + this.layeditToolHeight + replyContentBlock.clientHeight + 'px' + }) + } + }else{ + // 取消回复情况下,处理快捷消息定位 + if(quickMessageContentBlock && this.hitQuickMessageList.length > 0){ + quickMessageContentBlock.style.bottom = bottomBlock.offsetHeight + this.layeditToolHeight + 'px' + } + + // 取消回复情况下,处理选择at用户定位 + if(atUserContentBlock && this.hitAtUserList.length > 0){ + atUserContentBlock.style.bottom = bottomBlock.offsetHeight + this.layeditToolHeight + 'px' + } + } + }, + hitQuickMessageList: { + deep: true, + immediate: true, + handler: function(val){ + // 42px是layedit工具栏的高度 + const bottomBlock = document.querySelector('.tl-rtc-app-right-channel-content-bottom') + const quickMessageContentBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-quick-message-content-block') + const replyContentBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-reply-content-block') + + if(!bottomBlock || !quickMessageContentBlock){ + return + } + + // 快捷消息情况下,处理快捷消息定位 + if(val.length > 0){ + quickMessageContentBlock.style.bottom = bottomBlock.offsetHeight + this.layeditToolHeight + 'px' + + // 如果有回复,处理快捷消息定位需要在回复框上面 + if(replyContentBlock && this.replyToMessageId){ + this.$nextTick(()=>{ + quickMessageContentBlock.style.bottom = bottomBlock.offsetHeight + this.layeditToolHeight + replyContentBlock.clientHeight + 'px' + }) + } + } + }, + }, + hitAtUserList: { + deep: true, + immediate: true, + handler: function(val){ + // 42px是layedit工具栏的高度 + const bottomBlock = document.querySelector('.tl-rtc-app-right-channel-content-bottom') + const atUserContentBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-at-user-content-block') + const replyContentBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-reply-content-block') + + if(!bottomBlock || !atUserContentBlock){ + return + } + + // 选择at用户情况下,处理选择at用户定位 + if(val.length > 0){ + atUserContentBlock.style.bottom = bottomBlock.offsetHeight + this.layeditToolHeight + 'px' + + // 如果有回复,处理选择at用户需要在回复框上面 + if(replyContentBlock && this.replyToMessageId){ + this.$nextTick(()=>{ + atUserContentBlock.style.bottom = bottomBlock.offsetHeight + this.layeditToolHeight + replyContentBlock.clientHeight + 'px' + }) + } + } + }, + } + }, + computed: { + propsChannelId(){ + return this.channelId; + }, + propsChannelMessages(){ + return this.channelMessages; + }, + propsSocketId(){ + return this.socketId; + }, + propsUserId(){ + return this.user.userId; + }, + propsUser(){ + return this.user; + }, + propsIsMobile(){ + return this.isMobile; + }, + propsCompanyName(){ + return this.company.name; + }, + propsChannelMessageAllLoad(){ + return this.channelMessageAllLoad; + }, + }, + data : function(){ + return { + layeditToolHeight: 41, // layedit工具栏高度 + isLoadingMore : false, // 加载更多 + isPressEvent: false, // 单击事件 + isDoubleTapEvent: false, // 双击事件 + + hitQuickMessageList: [], // 命中快捷消息列表 + hitAtUserList: [], // 命中@用户列表 + + replyToMessageId: '', // 回复消息id + replyToMessageType: '', // 回复消息类型 + replyToMessageContent: '', // 回复消息内容 + } + }, + methods: { + /** + * 事件触发,向上传递 + * @param {*} event + */ + leftModuleChange: function(event){ + this.$emit('left-module-change', event) + }, + /** + * 事件触发,向上传递 + * @param {*} event + */ + rightModuleChange: function(event){ + this.$emit('right-module-change', event) + }, + /** + * 注册消息菜单 + */ + registerMessageMenu: function(){ + let that = this; + for(let i = 0; i < this.channelMessages.length; i++){ + const message = this.channelMessages[i] + const type = message.type + if(type === 'system'){ + continue + } + // 注册自定义菜单 + this.emitSubModuleEvent({ + event: 'component-menu-register-custom', + data: { + elemId: '#' + type + '-message-content-' + message.id, + eventList: ['press', 'doubleTap'], + menuIdList: [ + 'copyMessage', + 'replyMessage', + ], + extra: message, + pressCallback: function(){ + that.isPressEvent = true + }, + pressUpCallback: function(){ + setTimeout(() => { + that.isPressEvent = false + }, 300); + }, + doubleTapCallback: function(){ + that.isDoubleTapEvent = true + + setTimeout(() => { + that.isDoubleTapEvent = false + }, 300) + } + } + }) + } + }, + /** + * 发送快捷消息 + * @param {*} item + */ + sendQuickMessage: function(item){ + this.emitSubModuleEvent({ + event: 'sub-module-channel-content-generate-quick-message-text', + data: { + text: item.message, + } + }) + }, + /** + * 文件名格式化 + * @param {*} fileName + * @returns + */ + fileNameFormat: function(fileName){ + if(!fileName){ + return '' + } + if(fileName.length > 35){ + return fileName.substring(0, 35) + '...' + } + return fileName + }, + /** + * 下载文件 + * @param {*} item + * @returns + */ + downloadFile: async function(item){ + // console.log("downloadFile", item) + if(item.fileNotFound){ + this.popWarningMsg("文件已失效") + return + } + + const result = await new Promise((resolve) => { + layer.confirm('即将下载 ' + item.fileName, { + title: '下载确认', + shadeClose: true, + closeBtn: false, + area: ['300px', 'auto'], + }, function (index) { + resolve(true) + layer.close(index) + }, function (index) { + resolve(false) + }); + }); + + if (!result) { + return + } + + const a = document.createElement('a'); + a.href = item.fileUrl; + a.download = item.fileName; + a.click(); + + this.popSuccessMsg("下载成功") + }, + /** + * 用户信息弹窗 + * @param {*} event + */ + userInfoPopup: async function(event, user){ + if (!user || !user.fromUserId) { + return + } + // 根据userId获取用户基础信息 + let { type, userInfo } = await this.emitSubModuleEvent({ + event: 'component-popup-user-info-popup', + data: { + clientX: event.clientX, + clientY: event.clientY, + userInfo: { + id: user.fromUserId + }, + } + }) + + if(type === 'chat'){ + await this.emitSubModuleEvent({ + event: 'sub-module-contact-content-send-message', + data: { + channelId: userInfo.channelId, + } + }) + }else if(type === 'video'){ + await this.emitSubModuleEvent({ + event: 'sub-module-contact-content-send-video', + data: { + channelId: userInfo.channelId, + } + }) + }else if(type === 'audio'){ + await this.emitSubModuleEvent({ + event: 'sub-module-contact-content-send-audio', + data: { + channelId: userInfo.channelId, + } + }) + } + }, + /** + * 加载更多消息 + */ + loadMoreMessage: async function(){ + let that = this + + this.isLoadingMore = true + + await this.emitSubModuleEvent({ + event: 'sub-module-channel-list-load-channel-message', + data: { + channelId: this.propsChannelId, + } + }) + + this.isLoadingMore = false + }, + mouseEnter: function(event, item){ + if(this.propsIsMobile){ + return + } + tl_rtc_app_comm.mouseEnterTips({ + id: event.target.id, + text: item.fromUserName, + position: 'top' + }); + }, + mouseLeave: function(){ + if(this.propsIsMobile){ + return + } + tl_rtc_app_comm.mouseLeaveTips(); + }, + /** + * 开始媒体通话 + * @param {*} item + */ + startMediaCall: async function(item){ + let that = this; + + let text = '' + if(item.type === 'audio'){ + text = '发起新的语音通话' + }else if(item.type === 'video'){ + text = '发起新的视频通话' + } + + const result = await new Promise((resolve) => { + layer.confirm(text, { + shadeClose: 1, + title: '确认操作' + }, function (index) { + resolve(true) + layer.close(index) + }, function (index) { + resolve(false) + }); + }); + + if (!result) { + return + } + + if(item.type === 'audio'){ + this.$emit('make-channel-audio-call') + }else if(item.type === 'video'){ + this.$emit('make-channel-video-call') + } + }, + /** + * 生成@用户文本 + * @param {*} item + */ + generateAtUserText: function(item){ + this.emitSubModuleEvent({ + event: 'sub-module-channel-content-generate-at-user-text', + data: { + atUserId: item.userId, + atUserName: item.username, + } + }) + }, + /** + * 回复消息 + * @param {*} item + */ + replyMessage: function(item){ + this.replyToMessageId = item.id + this.replyToMessageType = item.type + this.replyToMessageContent = item.message + + this.emitSubModuleEvent({ + event: 'sub-module-channel-content-set-textarea-reply-message', + data: { + replyToMessageId: item.id, + replyToMessageType: item.type, + replyToMessageContent: item.message, + } + }) + }, + /** + * 清除回复消息 + * @param {*} callback + */ + clearReplyMessage: async function({ + callback + }){ + this.replyToMessageId = '' + this.replyToMessageType = '' + this.replyToMessageContent = '' + + await this.emitSubModuleEvent({ + event: 'sub-module-channel-content-clear-textarea-reply-message', + }) + + callback && callback() + }, + /** + * 清除快捷消息 + * @param {*} callback + */ + clearQuickMessage: async function({ + callback + }){ + this.hitQuickMessageList = [] + + await this.emitSubModuleEvent({ + event: 'sub-module-channel-content-clear-textarea-quick-message', + }) + + callback && callback() + }, + /** + * 清除@用户 + * @param {*} callback + * @returns + **/ + clearAtUser: async function({ + callback + }){ + this.hitAtUserList = [] + + await this.emitSubModuleEvent({ + event: 'sub-module-channel-content-clear-textarea-at-user', + }) + + callback && callback() + }, + + /** + * 快捷消息过滤处理 + * @param {*} hitQuickMessageList + * @param {*} callback + */ + quickMessageHandler: function({ + hitQuickMessageList, callback + }){ + this.hitQuickMessageList = hitQuickMessageList + + callback && callback() + }, + /** + * at用户过滤处理 + * @param {*} hitAtUserList + * @param {*} callback + */ + atUserMessageHandler: function({ + hitAtUserList, callback + }){ + this.hitAtUserList = hitAtUserList + + callback && callback() + }, + /** + * 清除所有面板 + * @returns + * */ + clearAllBodyPanel: async function({ + callback + }){ + await this.clearReplyMessage({}) + await this.clearQuickMessage({}) + await this.clearAtUser({}) + + callback && callback() + }, + /** + * 删除消息 + * @param {*} item + */ + deleteMessage: function(item){ + // console.log('删除 : ', item) + this.popWarningMsg('暂未开放') + }, + /** + * 打开回复表情弹窗 + * @param {*} item + */ + openEmojiPopup: function(event, item){ + // 回复消息 + this.replyMessage(item) + + this.emitSubModuleEvent({ + event: 'sub-module-channel-content-open-face', + data: { + elem: event.target, + } + }) + }, + /** + * 快速回复消息 + * @param {*} messageId + * @param {*} messageType + * @param {*} messageContent + * @param {*} callback + */ + quickReplyMessage: function({ + messageId, messageType, messageContent, callback + }){ + this.replyMessage({ + id: messageId, + type: messageType, + message: messageContent, + }) + + callback && callback() + }, + }, + mounted() { + + }, + created(){ + // 清除面板 + window.subModule.$on('sub-module-channel-content-clear-body-panel', this.clearAllBodyPanel) + + // 快速回复消息 + window.subModule.$on('sub-module-channel-content-quick-reply-message', this.quickReplyMessage) + + // 消息输入事件 + window.subModule.$on('sub-module-channel-content-show-quick-message', this.quickMessageHandler) + + // @用户输入事件 + window.subModule.$on('sub-module-channel-content-show-at-user', this.atUserMessageHandler) + }, + template: ` +
              +
              +
              + 查看历史更多消息... + +
              +
              +
              +
              +
              {{item.messageTimeStampFormat}}
              +
              +
              +
              +
              {{item.messageTimeStampFormat}}
              +
              +
              + +
              + +
              +
              + {{item.fromUserName}} @ +
              +
              +
              +
              + +
              +
              + {{fileNameFormat(item.fileName)}} + + [离线] + [在线] + {{item.fileSizeFormat}} + +
              +
              +
              +
              + + +
              +
              +
              +
              + {{item.fromUserName}} @ +
              +
              + + {{item.message}} +
              +
              + + +
              +
              + +
              +
              + {{item.fromUserName}} @ +
              +
              +
              +
              +
              +
              +
              +
              + + +
              +
              +
              +
              +
              +
              {{item.messageTimeStampFormat}}
              +
              +
              + +
              +
              +
              +
              +
              + +
              +
              + {{fileNameFormat(item.fileName)}} + + [离线] + [在线] + {{item.fileSizeFormat}} + +
              +
              +
              +
              + + +
              +
              +
              +
              + + {{item.message}} +
              +
              + + +
              +
              +
              +
              +
              +
              +
              +
              +
              +
              + + +
              +
              +
              +
              +
              + +
              + +
              +
              回复:
              +
              +
              + +
              +
              + +
              + +
              + +
              +
              + +
              + +
              +
              + @ + +
              +
              {{item.friendName}}({{item.username}})
              +
              {{item.username}}
              +
              +
              +
              + `, +} + +window.tl_rtc_app_module_channel_content_body = tl_rtc_app_module_channel_content_body \ No newline at end of file diff --git a/web-v2-res/js/module/channel/content/invite.js b/web-res/js/module/channel/content/invite.js similarity index 100% rename from web-v2-res/js/module/channel/content/invite.js rename to web-res/js/module/channel/content/invite.js diff --git a/web-v2-res/js/module/channel/content/more.js b/web-res/js/module/channel/content/more.js similarity index 75% rename from web-v2-res/js/module/channel/content/more.js rename to web-res/js/module/channel/content/more.js index 7084d39..196a619 100644 --- a/web-v2-res/js/module/channel/content/more.js +++ b/web-res/js/module/channel/content/more.js @@ -69,6 +69,14 @@ const tl_rtc_app_module_channel_content_more = { channelReName: { type: String, default: '' + }, + channelRole: { + type: String, + default: 0 + }, + channelGroupCanBeSearch: { + type: Boolean, + default: false } }, computed: { @@ -125,6 +133,21 @@ const tl_rtc_app_module_channel_content_more = { }, propsChannelReName(){ return this.channelReName; + }, + propsChannelRole(){ + return this.channelRole; + }, + isChannelCreateor(){ + return this.channelRole === 10000 + }, + isChannelAdmin(){ + return this.channelRole === 10001 + }, + isChannelMember(){ + return this.channelRole === 10002 + }, + propsChannelGroupCanBeSearch(){ + return this.channelGroupCanBeSearch } }, watch:{ @@ -175,7 +198,8 @@ const tl_rtc_app_module_channel_content_more = { this.openPanel = !this.openPanel if(this.openPanel){ - document.querySelector('.tl-rtc-app-right-channel-content-more').style.right = "0" + document.querySelector('.tl-rtc-app-right-channel-content-more').style.transform = "translateX(0)" + if(this.propsIsMobile){ document.querySelector('.tl-rtc-app-right').style.zIndex = 'unset'; } @@ -198,14 +222,16 @@ const tl_rtc_app_module_channel_content_more = { if(this.propsIsMobile){ document.querySelector('.tl-rtc-app-right').style.zIndex = 3; } - document.querySelector('.tl-rtc-app-right-channel-content-more').style.right = "-300px" + document.querySelector('.tl-rtc-app-right-channel-content-more').style.transform = "translateX(300px)" - this.emitSubModuleEvent({ - event: 'component-shade-destroy', - data: { - id: 'channelMoreShade' - } - }) + setTimeout(() => { + this.emitSubModuleEvent({ + event: 'component-shade-destroy', + data: { + id: 'channelMoreShade' + } + }) + }, 100); } callback && callback() @@ -310,6 +336,36 @@ const tl_rtc_app_module_channel_content_more = { groupChannelShare: async function(){ this.$emit('group-channel-share') }, + /** + * 搜索聊天记录 + */ + searchChannelMessage: async function(){ + await this.emitSubModuleEvent({ + event: 'sub-module-channel-search-message', + }) + }, + /** + * 清空聊天记录 + */ + clearFriendMessage: async function(){ + await this.emitSubModuleEvent({ + event: 'sub-module-channel-list-clear-channel-message', + data: { + channelId: this.propsChannelId, + } + }) + }, + /** + * 清空群聊聊天记录 + */ + clearGroupChannelMessage: async function(){ + await this.emitSubModuleEvent({ + event: 'sub-module-channel-list-clear-channel-message', + data: { + channelId: this.propsChannelId, + } + }) + }, /** * 添加群成员 */ @@ -322,6 +378,30 @@ const tl_rtc_app_module_channel_content_more = { removeGroupMember: async function(){ this.popWarningMsg('暂未开放') }, + /** + * 更新群聊是否可以被搜索 + */ + updateChannelCanSearch: async function(){ + this.$emit('update-channel-can-search', ) + }, + /** + * 鼠标移入 + * @param {*} event + * @param {*} title + */ + mouseEnter: function (event, title) { + tl_rtc_app_comm.mouseEnterTips({ + id: event.target.id, + text: title, + position: 'top' + }); + }, + /** + * 鼠标移出 + */ + mouseLeave: function () { + tl_rtc_app_comm.mouseLeaveTips(); + }, /** * 初始化swiper */ @@ -373,6 +453,7 @@ const tl_rtc_app_module_channel_content_more = { setTopFriend: this.propsChannelTop, setTopGroup: this.propsChannelTop, setBlackFriend: this.propsChannelBlack, + groupCanBeSearch: this.propsChannelGroupCanBeSearch }); this.initSwiper() @@ -430,6 +511,15 @@ const tl_rtc_app_module_channel_content_more = {
              +
              +
              搜索聊天记录
              +
              +
              {{propsChannelMessages.length}}条记录
              + +
              +
              置顶好友
              @@ -442,6 +532,16 @@ const tl_rtc_app_module_channel_content_more = {
              + +
              +
              清空聊天记录
              +
              + +
              +
              +
              删除好友
              @@ -503,8 +603,8 @@ const tl_rtc_app_module_channel_content_more = {
              -
              -
              群聊名称
              +
              +
              频道名称
              {{propsChannelName}}
              +
              +
              发布群公告
              + +
              +
              +
              搜索聊天记录
              +
              +
              {{propsChannelMessages.length}}条记录
              + +
              +
              +
              +
              + 公开频道 + +
              +
              + +
              +
              +
              -
              置顶群聊
              +
              置顶频道
              +
              +
              清空聊天记录
              +
              + +
              +
              -
              退出群聊
              +
              退出频道
              diff --git a/web-res/js/module/channel/content/search.js b/web-res/js/module/channel/content/search.js new file mode 100644 index 0000000..a47b5ef --- /dev/null +++ b/web-res/js/module/channel/content/search.js @@ -0,0 +1,711 @@ +const tl_rtc_app_module_channel_content_search_message = { + props : { + channelId : { + type : String, + default : '' + }, + channelName : { + type : String, + default : '' + }, + channelType : { + type : String, + default : '' + }, + channelUsers : { + type : Array, + default : function(){ + return [] + } + }, + channelMessages : { + type : Array, + default : function(){ + return [] + } + }, + socketId : { + type : String, + default : '' + }, + socket: { + type: Object, + default: function(){ + return {} + } + }, + user: { + type: Object, + default: function(){ + return { + userId: '', // 用户id + username: '', // 用户名称 + userAvatar: '', // 用户头像 + } + } + }, + isMobile: { + type: Boolean, + default: false + }, + leftModule: { + type: String, + default: '' + }, + rightModule: { + type: String, + default: '' + } + }, + computed: { + propsChannelId(){ + return this.channelId; + }, + propsChannelName(){ + return this.channelName; + }, + propsSocketId(){ + return this.socketId; + }, + propsSocket(){ + return this.socket; + }, + propsUserId(){ + return this.user.userId; + }, + propsChannelUsers(){ + return this.channelUsers; + }, + propsChannelType(){ + return this.channelType; + }, + propsUser(){ + return this.user; + }, + propsIsMobile(){ + return this.isMobile; + }, + propsChannelMessages(){ + return this.channelMessages; + }, + propsLeftModule() { + return this.leftModule; + }, + propsRightModule() { + return this.rightModule; + }, + }, + data : function(){ + return { + searchMessageList: [], + keyword: '', + messageTypes: [ + 'chat', 'file', 'media' + ], + timeRangeType: 'recent-mouth', + startTime: '', + endTime: '', + isLoadMore: false + } + }, + watch: { + isLoadMore: { + deep: true, + immediate: true, + handler: function(val){ + const dom = document.getElementById('search-channel-message-load-more') + if(!dom){ + return + } + if(val){ + document.getElementById('search-channel-message-load-more').style.display = 'block' + }else{ + document.getElementById('search-channel-message-load-more').style.display = 'none' + } + } + }, + leftModule: function (val) { + + }, + rightModule: function (val) { + + } + }, + methods: { + /** + * 事件触发,向上传递 + * @param {*} event + */ + leftModuleChange: function(event){ + this.$emit('left-module-change', event) + }, + /** + * 事件触发,向上传递 + * @param {*} event + */ + rightModuleChange: function(event){ + this.$emit('right-module-change', event) + }, + /** + * laytpl渲染 + * @param {*} tpl_html + * @param {*} data + * @param {*} tpl_view_html + * @param {*} callback + */ + tplRender: function ({tpl_html, data, tpl_view_html, callback}) { + if (window.laytpl) { + laytpl(tpl_html.innerHTML).render(data, (html) => { + tpl_view_html.innerHTML = html; + if (callback) { + callback() + } + }); + } + }, + /** + * 搜索频道消息 + */ + searchChannelMessage: async function(){ + let chatMinId = -1 + let fileMinId = -1 + let mediaMinId = -1 + + this.searchMessageList.forEach(item => { + const messageType = item.type + const messageId = item.id + if(['system', 'friend', 'group'].includes(messageType)){ + if(chatMinId === -1){ + chatMinId = messageId + } + if (messageId < chatMinId){ + chatMinId = messageId + } + }else if(['audio', 'video'].includes(messageType)){ + if(mediaMinId === -1){ + mediaMinId = messageId + } + if (messageId < mediaMinId){ + mediaMinId = messageId + } + }else if(['p2p', 'offline'].includes(messageType)){ + if(fileMinId === -1){ + fileMinId = messageId + } + if (messageId < fileMinId){ + fileMinId = messageId + } + } + }); + + if(this.timeRangeType === 'today'){ + let { today } = window.tl_rtc_app_comm.getTimeRanges() + this.startTime = today.startTime + this.endTime = today.endTime + }else if(this.timeRangeType === 'yesterday'){ + let { yesterday } = window.tl_rtc_app_comm.getTimeRanges() + this.startTime = yesterday.startTime + this.endTime = yesterday.endTime + }else if(this.timeRangeType === 'last-week'){ + let { lastWeek } = window.tl_rtc_app_comm.getTimeRanges() + this.startTime = lastWeek.startTime + this.endTime = lastWeek.endTime + }else if(this.timeRangeType === 'recent-mouth'){ + let { lastMonth } = window.tl_rtc_app_comm.getTimeRanges() + this.startTime = lastMonth.startTime + this.endTime = lastMonth.endTime + }else if(this.timeRangeType === 'cus-day-range'){ + if(!this.startTime || !this.endTime){ + return + } + } + + if(!this.startTime || !this.endTime){ + this.popWarningMsg('请选择时间范围') + return + } + + const params = { + channelId: this.propsChannelId, + keyword: this.keyword, + startTime: this.startTime, + endTime: this.endTime, + types: this.messageTypes, + chatMinId: this.messageTypes.includes('chat') && this.isLoadMore ? chatMinId : -1, + fileMinId: this.messageTypes.includes('file') && this.isLoadMore ? fileMinId : -1, + mediaMinId: this.messageTypes.includes('media') && this.isLoadMore ? mediaMinId : -1, + } + if(!window.tl_rtc_app_comm.checkRequestParams(params)){ + this.popErrorMsg("请求参数非法") + return + } + const { data: channelMessageRes } = await this.tlRequest({ + url: '/api/web/channel/search-channel-message', + method: 'post', + useCache: false, + data: params, + + }) + if(!channelMessageRes.success){ + this.popErrorMsg(channelMessageRes.msg) + return + } + + this.searchMessageList = [...channelMessageRes.data] + + this.searchMessageList.forEach(item => { + if(item.messageTimeStamp){ + item.messageTimeStampFormat = window.util.timeAgo(item.messageTimeStamp) + } + if(item.type === 'audio'){ + // 设置icon + item.mediaIcon = '#tl-rtc-app-icon-31dianhua' + }else if(item.type === 'video'){ + // 设置icon + item.mediaIcon = '#tl-rtc-app-icon-shexiangtou' + }else if (['p2p', 'offline'].includes(item.type)){ + if(!item.fileName){ + return + } + // 设置icon + let fileExt = item.fileName.split('.').pop().toLowerCase() + item.fileIcon = window.tl_rtc_app_comm.getFileIcon(fileExt) + //文件大小format, kb/mb/gb + let fileSize = item.fileSize + item.fileSizeFormat = window.tl_rtc_app_comm.getFileSize(fileSize) + } + }) + + // 按照时间排序 + this.searchMessageList.sort((a, b) => { + return new Date(b.messageTimeStamp).getTime() - new Date(a.messageTimeStamp).getTime() + }) + + // 渲染搜索消息列表 + this.searchMessageListTplRender() + }, + fileNameFormat: function(fileName){ + if(!fileName){ + return '' + } + if(fileName.length > 35){ + return fileName.substring(0, 35) + '...' + } + return fileName + }, + /** + * 打开搜索频道消息窗口 + */ + openSearchChannelMessage: async function({ + callback + }){ + let that = this + let clientWidth = document.documentElement.clientWidth + let full = clientWidth < 580 + + layer.open({ + type: 1, + title: '历史聊天记录 - ' + this.propsChannelName, + closeBtn: full ? 1 : 0, + area: full ? ['100%', '100%'] : ['580px', '650px'], + shadeClose: true, + resize: false, + skin: 'tl-rtc-app-layer-search-channel-message', + content: ` +
              +
              + +
              + + +
              +
              + 时间范围: +
              +
              +
              + 今天 +
              +
              + 前一天 +
              +
              + 近一周 +
              +
              + 近一月 +
              + +
              +
              +
              +
              +
              +
              + + +
              + `, + close: function(){ + that.searchMessageList = [] + that.timeRangeType = 'recent-mouth' + that.startTime = '' + that.endTime = '' + that.messageTypes = [ + 'chat', 'file', 'media' + ] + + that.messageTypes.forEach(item => { + document.getElementById("search-channel-message-type-" + item).classList.add("layui-badge-active") + }) + + document.getElementById("search-channel-message-type-" + that.timeRangeType).classList.add("layui-badge-active") + }, + yes: function (index) { + layer.close(index) + }, + success: function(layero, index){ + that.openSearchChannelMessageSuccess(layero, index, full) + } + }) + + callback && callback() + }, + /** + * 打开搜索频道消息成功 + * @param {*} layero + * @param {*} index + */ + openSearchChannelMessageSuccess: function(layero, index, full){ + let that = this + + if(!full){ + layero.css({ + 'border-radius': '6px', + }) + } + + let headerHeight = document.querySelector('.tl-rtc-app-right-channel-content-search-message-panel-header') + const messageListHeight = full ? ( + document.documentElement.clientHeight - headerHeight.clientHeight - 100 + ): ( + 550 - headerHeight.clientHeight + ) + + document.getElementById("search_channel_message_tlp_view").style.height = messageListHeight + 'px' + + this.messageTypes.forEach(item => { + document.getElementById("search-channel-message-type-" + item).classList.add("layui-badge-active") + }) + + document.getElementById("search-channel-message-type-" + this.timeRangeType).classList.add("layui-badge-active") + + // 输入框输入事件 + // document.getElementById("search-channel-message-input").oninput = function(){ + // window.tl_rtc_app_comm.debounce(that.searchChannelMessage, 500, false) + // } + + // 图片 + document.getElementById("search-channel-message-type-chat").onclick = function(){ + // 如果存在则删除,不存在则添加 + if(!that.messageTypes.includes("chat")){ + that.messageTypes.push("chat") + document.getElementById("search-channel-message-type-chat").classList.add("layui-badge-active") + }else{ + that.messageTypes.splice(that.messageTypes.indexOf("chat"), 1) + document.getElementById("search-channel-message-type-chat").classList.remove("layui-badge-active") + } + + that.isLoadMore = false + that.searchChannelMessage() + } + + // 文件 + document.getElementById("search-channel-message-type-file").onclick = function(){ + if(!that.messageTypes.includes("file")){ + that.messageTypes.push("file") + document.getElementById("search-channel-message-type-file").classList.add("layui-badge-active") + }else{ + that.messageTypes.splice(that.messageTypes.indexOf("file"), 1) + document.getElementById("search-channel-message-type-file").classList.remove("layui-badge-active") + } + + that.isLoadMore = false + that.searchChannelMessage() + } + + // 通话 + document.getElementById("search-channel-message-type-media").onclick = function(){ + if(!that.messageTypes.includes("media")){ + that.messageTypes.push("media") + document.getElementById("search-channel-message-type-media").classList.add("layui-badge-active") + }else{ + that.messageTypes.splice(that.messageTypes.indexOf("media"), 1) + document.getElementById("search-channel-message-type-media").classList.remove("layui-badge-active") + } + + that.isLoadMore = false + that.searchChannelMessage() + } + + // 今天 + document.getElementById("search-channel-message-type-today").onclick = function(){ + that.timeRangeType = 'today' + let { today } = window.tl_rtc_app_comm.getTimeRanges() + that.startTime = today.startTime + that.endTime = today.endTime + + document.getElementById("search-channel-message-type-today").classList.add("layui-badge-active") + document.getElementById("search-channel-message-type-yesterday").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-last-week").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-recent-mouth").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-cus-day-range").classList.remove("layui-badge-active") + + that.isLoadMore = false + that.searchChannelMessage() + } + + // 前一天 + document.getElementById("search-channel-message-type-yesterday").onclick = function(){ + that.timeRangeType = 'yesterday' + let { yesterday } = window.tl_rtc_app_comm.getTimeRanges() + that.startTime = yesterday.startTime + that.endTime = yesterday.endTime + + document.getElementById("search-channel-message-type-today").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-yesterday").classList.add("layui-badge-active") + document.getElementById("search-channel-message-type-last-week").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-recent-mouth").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-cus-day-range").classList.remove("layui-badge-active") + + that.isLoadMore = false + that.searchChannelMessage() + } + + // 前一周 + document.getElementById("search-channel-message-type-last-week").onclick = function(){ + that.timeRangeType = 'last-week' + let { lastWeek } = window.tl_rtc_app_comm.getTimeRanges() + that.startTime = lastWeek.startTime + that.endTime = lastWeek.endTime + + document.getElementById("search-channel-message-type-today").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-yesterday").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-last-week").classList.add("layui-badge-active") + document.getElementById("search-channel-message-type-recent-mouth").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-cus-day-range").classList.remove("layui-badge-active") + + that.isLoadMore = false + that.searchChannelMessage() + } + + // 近一月 + document.getElementById("search-channel-message-type-recent-mouth").onclick = function(){ + that.timeRangeType = 'recent-mouth' + let { lastMonth } = window.tl_rtc_app_comm.getTimeRanges() + that.startTime = lastMonth.startTime + that.endTime = lastMonth.endTime + + document.getElementById("search-channel-message-type-today").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-yesterday").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-last-week").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-recent-mouth").classList.add("layui-badge-active") + document.getElementById("search-channel-message-type-cus-day-range").classList.remove("layui-badge-active") + + that.isLoadMore = false + that.searchChannelMessage() + } + + // 自定义 + document.getElementById("search-channel-message-type-cus-day-range").onclick = function(){ + that.timeRangeType = 'cus-day-range' + let { cusDayRange } = window.tl_rtc_app_comm.getTimeRanges() + that.startTime = cusDayRange.startTime + that.endTime = cusDayRange.endTime + + document.getElementById("search-channel-message-type-today").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-yesterday").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-last-week").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-recent-mouth").classList.remove("layui-badge-active") + document.getElementById("search-channel-message-type-cus-day-range").classList.add("layui-badge-active") + + that.isLoadMore = false + that.searchChannelMessage() + } + + document.getElementById("search-channel-message-load-more").onclick = function(){ + that.isLoadMore = true + that.searchChannelMessage() + } + + that.searchChannelMessage() + }, + /** + * 搜索消息列表模板渲染 + */ + searchMessageListTplRender: function(){ + let that = this + + const searchChannelMessageTlp = document.getElementById("search_channel_message_tlp") + const searchChannelMessageTlpView = document.getElementById("search_channel_message_tlp_view") + + this.tplRender({ + tpl_html: searchChannelMessageTlp, + tpl_view_html: searchChannelMessageTlpView, + data: this.searchMessageList, + callback: function(){ + that.searchMessageList.forEach(item => { + let messageItem = document.getElementById("search-channel-message-" + item.type + "-" + item.id) + if(!messageItem){ + return + } + messageItem.onclick = function(event){ + that.userInfoPopup(event, item) + } + }) + + document.getElementById("search-channel-message-count").innerHTML = "共" + that.searchMessageList.length + '条记录' + } + }) + }, + /** + * 用户信息弹窗 + * @param {*} event + */ + userInfoPopup: async function(event, user){ + if (!user || !user.fromUserId) { + return + } + + // 根据userId获取用户基础信息 + let { type, userInfo } = await this.emitSubModuleEvent({ + event: 'component-popup-user-info-popup', + data: { + clientX: event.clientX, + clientY: event.clientY, + userInfo: { + id: user.fromUserId + }, + } + }) + + if(type === 'chat'){ + await this.emitSubModuleEvent({ + event: 'sub-module-contact-content-send-message', + data: { + channelId: userInfo.channelId, + } + }) + }else if(type === 'video'){ + await this.emitSubModuleEvent({ + event: 'sub-module-contact-content-send-video', + data: { + channelId: userInfo.channelId, + } + }) + }else if(type === 'audio'){ + await this.emitSubModuleEvent({ + event: 'sub-module-contact-content-send-audio', + data: { + channelId: userInfo.channelId, + } + }) + } + }, + }, + mounted() { + + }, + created(){ + // 搜索频道消息 + window.subModule.$on('sub-module-channel-search-message', this.openSearchChannelMessage) + } +} + +window.tl_rtc_app_module_channel_content_search_message = tl_rtc_app_module_channel_content_search_message \ No newline at end of file diff --git a/web-v2-res/js/module/channel/content/textarea.js b/web-res/js/module/channel/content/textarea.js similarity index 53% rename from web-v2-res/js/module/channel/content/textarea.js rename to web-res/js/module/channel/content/textarea.js index a6e14db..e2797ef 100644 --- a/web-v2-res/js/module/channel/content/textarea.js +++ b/web-res/js/module/channel/content/textarea.js @@ -33,7 +33,13 @@ const tl_rtc_app_module_channel_content_textarea = { rightModule: { type: String, default: '' - } + }, + channelUsers: { + type: Array, + default: function () { + return [] + } + }, }, computed: { propsChannelId() { @@ -57,17 +63,20 @@ const tl_rtc_app_module_channel_content_textarea = { propsRightModule() { return this.rightModule; }, + propsChannelUsers() { + return this.channelUsers; + }, }, watch: { leftModule: function (val) { - if(this.propsLeftModule === 'channel' && this.propsRightModule === 'content'){ + if (this.propsLeftModule === 'channel' && this.propsRightModule === 'content') { this.$nextTick(() => { this.loadLayedit(this.getLayeditHeight()) }) } }, rightModule: function (val) { - if(this.propsLeftModule === 'channel' && this.propsRightModule === 'content'){ + if (this.propsLeftModule === 'channel' && this.propsRightModule === 'content') { this.$nextTick(() => { this.loadLayedit(this.getLayeditHeight()) }) @@ -89,6 +98,15 @@ const tl_rtc_app_module_channel_content_textarea = { replyToMessageId: '', // 回复消息id replyToMessageType: '', // 回复消息类型 replyToMessageContent: '', // 回复消息内容 + + layeditToolHeight: 41, // 编辑器工具栏高度 + hitQuickMessageList: [], // 命中快捷消息列表 + hitAtUserList: [], // 命中@用户列表 + quickMessageList: window.tl_rtc_app_comm.getQuickMessageList().map(item => { + return { + message: item, + } + }), } }, methods: { @@ -96,14 +114,14 @@ const tl_rtc_app_module_channel_content_textarea = { * 事件触发,向上传递 * @param {*} event */ - leftModuleChange: function(event){ + leftModuleChange: function (event) { this.$emit('left-module-change', event) }, /** * 事件触发,向上传递 * @param {*} event */ - rightModuleChange: function(event){ + rightModuleChange: function (event) { this.$emit('right-module-change', event) }, /** @@ -112,7 +130,7 @@ const tl_rtc_app_module_channel_content_textarea = { */ getLayeditHeight: function () { const textareaBody = document.getElementById('channel_chat_textarea'); - if(textareaBody.style.height){ + if (textareaBody.style.height) { let height = textareaBody.style.height.replace("px", "") return height - 40 + "px"; } @@ -124,13 +142,13 @@ const tl_rtc_app_module_channel_content_textarea = { // 计算编辑器的高度 let editorHeight = "" const isBodyHeightPersent = bodyHeight.indexOf("%") !== -1 - if(isBodyHeightPersent){ + if (isBodyHeightPersent) { editorHeight = ( Number(channelEditHeight.replace("%", "")) * ( window.innerHeight * Number(bodyHeight.replace("%", "")) / 100 ) / 100 - 85 ) + "px" - }else{ + } else { editorHeight = ( Number(channelEditHeight.replace("px", "")) * ( window.innerHeight @@ -144,14 +162,14 @@ const tl_rtc_app_module_channel_content_textarea = { * 保存最近使用表情 * @param {*} face */ - saveRecentFace: function(face){ + saveRecentFace: function (face) { let recentFaceList = localStorage.getItem('recentFaceList') - if(recentFaceList){ + if (recentFaceList) { recentFaceList = JSON.parse(recentFaceList) - }else{ + } else { recentFaceList = [] } - if(recentFaceList.length >= 30){ + if (recentFaceList.length >= 30) { recentFaceList.pop() } // 去重 @@ -163,9 +181,9 @@ const tl_rtc_app_module_channel_content_textarea = { * 获取最近使用表情 * @returns */ - getRecentFaceList: function(){ + getRecentFaceList: function () { let recentFaceList = localStorage.getItem('recentFaceList') - if(recentFaceList){ + if (recentFaceList) { return JSON.parse(recentFaceList) } return [] @@ -177,9 +195,11 @@ const tl_rtc_app_module_channel_content_textarea = { loadLayedit: function (layeditHeight) { let that = this; + let tool = ['face', 'file', 'history', 'record', 'draw', 'printCut'] + const options = { elem: null, - tool: ['face'], + tool: tool, height: layeditHeight, face: { recentFaceList: that.getRecentFaceList(), @@ -192,11 +212,11 @@ const tl_rtc_app_module_channel_content_textarea = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", ], customFaceList: [], - clickFaceCallback: function(face){ + clickFaceCallback: function (face) { // 保存为最近使用 that.saveRecentFace(face) - try{ + try { // 移除选中 let textareaIframeDom = null let textareaIframe = document.getElementsByTagName("iframe"); @@ -209,19 +229,69 @@ const tl_rtc_app_module_channel_content_textarea = { } // 移除选中 - if(textareaIframeDom){ + if (textareaIframeDom) { textareaIframeDom.ownerDocument.getSelection().removeAllRanges() } - }catch(e){ + } catch (e) { console.log(e) } } }, - cusFace: { - cusFaceCallback: function () { - + file: { + url: '/api/web/cloud-file/upload-file', + type: 'post', + chooseFileCallback: async function (res) { //获取文件数据的回调方法 + const files = Object.values(res.pushFile()) + for (let i = 0; i < files.length; i++) { + await that.sendFileCallback(files[i]) + } } - } + }, + history: { + historyCallback: function () { + that.emitSubModuleEvent({ + event: 'sub-module-channel-search-message', + }) + } + }, + printCut: { + printCutCallback: async function () { + let res = await window.tl_rtc_app_comm.captureScreenshot() + if(res){ + that.popSuccessMsg("截图成功"); + }else{ + that.popErrorMsg("截图失败"); + } + } + }, + record: { + recordCallback: function () { + that.emitSubModuleEvent({ + event: 'component-record-start', + }) + } + }, + draw: { + drawCallback: async function () { + const imageFile = await that.emitSubModuleEvent({ + event: 'component-draw-start-local', + data: { + openCallback: function () { + + }, + closeCallback: function () { + + }, + localDrawCallback: function () { + + } + } + }) + if (imageFile) { + await that.sendFileCallback(imageFile) + } + } + }, } this.layeditId = layedit.build('tl-rtc-app-chat-textarea', options); @@ -235,9 +305,24 @@ const tl_rtc_app_module_channel_content_textarea = { } } } - - if(textareaIframeDom){ + + if (textareaIframeDom) { + // 监听键盘事件 window.tl_rtc_app_comm.keydownCallback(textareaIframeDom, this.sendTextareaMessage) + + let that = this + // 监听输入事件 + textareaIframeDom.addEventListener('input', (e) => { + let text = layedit.getText(that.layeditId) + that.quickMessageHandler(text) + + if (text.includes('@')) { + const atUserText = text.substring(text.lastIndexOf('@')) + that.atUserMessageHandler(atUserText) + }else{ + that.atUserMessageHandler('') + } + }) } // 设置编辑器字体颜色 @@ -245,10 +330,104 @@ const tl_rtc_app_module_channel_content_textarea = { const { skinBodyColor } = window.tl_rtc_app_comm.getPropertyValues([ { key: "skinBodyColor", value: "skin-body-color" } ]) - if(textareaIframeDom){ + if (textareaIframeDom) { textareaIframeDom.style.color = skinBodyColor } }, 500) + }, + /** + * 快捷消息过滤处理 + * @param {*} text + * @param {*} callback + */ + quickMessageHandler: async function(text){ + if(text === ''){ + this.hitQuickMessageList = [] + }else{ + let hitQuickMessageList = this.quickMessageList.filter(item => { + // 处理命中文本高亮 + let hitText = item.message + let hitTextIndex = hitText.indexOf(text) + if (hitTextIndex !== -1) { + item.hitMessage = hitText.substring(0, hitTextIndex) + "" + hitText.substring(hitTextIndex, hitTextIndex + text.length) + "" + hitText.substring(hitTextIndex + text.length) + return true + } + return false + }) + this.hitQuickMessageList = hitQuickMessageList + } + + // 通知body模块显示快捷消息 + await this.emitSubModuleEvent({ + event: 'sub-module-channel-content-show-quick-message', + data: { + hitQuickMessageList: this.hitQuickMessageList + } + }) + }, + /** + * at用户过滤处理 + * @param {*} text + * @param {*} callback + */ + atUserMessageHandler: async function(text){ + if(text === ''){ + this.hitAtUserList = [] + }else if(text === '@'){ + this.hitAtUserList = this.propsChannelUsers + }else{ + text = text.substring(1) + let hitAtUserList = this.propsChannelUsers.filter(item => { + // 处理命中文本高亮 + let hitText = item.username + let hitTextIndex = hitText.indexOf(text) + if (hitTextIndex !== -1) { + item.hitMessage = ` + ${hitText.substring(0, hitTextIndex)} + + ${hitText.substring(hitTextIndex, hitTextIndex + text.length)} + + ${hitText.substring(hitTextIndex + text.length)} + ` + return true + } + return false + }) + this.hitAtUserList = hitAtUserList + } + + // 通知body模块显示快捷消息 + await this.emitSubModuleEvent({ + event: 'sub-module-channel-content-show-at-user', + data: { + hitAtUserList: this.hitAtUserList + } + }) + }, + /** + * 渲染选择文件组件 + * @returns + */ + loadChooseFile: async function () { + let that = this; + + await that.emitSubModuleEvent({ + event: 'component-file-init-drag', + data: { + className: 'tl-rtc-app-right', + chooseFileCallback: function ({ + fileList, file + }) { + that.sendFileCallback(file, true) + } + } + }) + }, + /** + * 卸载选择文件组件 + */ + unloadChooseFile: function () { + }, /** * 发送消息 @@ -256,6 +435,7 @@ const tl_rtc_app_module_channel_content_textarea = { */ sendTextareaMessage: function () { let realContent = layedit.getContent(this.layeditId) + realContent = window.tl_rtc_app_comm.sanitizeHTML(realContent) let text = layedit.getText(this.layeditId) if (realContent.length > 20000 || text.length > 10000) { @@ -263,14 +443,7 @@ const tl_rtc_app_module_channel_content_textarea = { return; } - if(realContent.length === 0 || realContent.trim().length === 0){ - this.popWarningMsg("请输入消息内容") - return; - } - - if(( - realContent.length > 0 && !window.tl_rtc_app_comm.containChinese(realContent) - ) && text.length === 0){ + if (realContent.length === 0 || realContent.trim().length === 0) { this.popWarningMsg("请输入消息内容") return; } @@ -295,9 +468,9 @@ const tl_rtc_app_module_channel_content_textarea = { /** * 发送频道消息 */ - sendChannelMessage: function({ + sendChannelMessage: function ({ messageData, callback - }){ + }) { // 添加到历史记录 if (this.historyMessages.length > 10) { this.historyMessages.unshift() @@ -309,6 +482,66 @@ const tl_rtc_app_module_channel_content_textarea = { callback && callback() }, + /** + * 选择文件回调 + * @param {*} cur_file + */ + sendFileCallback: async function (cur_file, isDrag = false) { + if (cur_file.size > 1024 * 1024 * 5) { + this.popWarningMsg("文件大小不能超过5M") + return + } + + if (isDrag) { + await this.emitSubModuleEvent({ + event: 'component-file-show-upload-icon' + }) + } + + // 上传文件 + let formData = new FormData(); + formData.append('file', cur_file); + formData.append('channelId', this.propsChannelId) + + const { data: uploadRes } = await this.tlRequest({ + url: '/api/web/cloud-file/upload-file', + method: 'post', + useCache: false, + data: formData, + headers: { 'Content-Type': 'multipart/form-data' }, + + }) + + if (!uploadRes.success) { + this.popErrorMsg(uploadRes.msg) + if (isDrag) { + await this.emitSubModuleEvent({ + event: 'component-file-close-upload-icon' + }) + } + return + } + + this.popSuccessMsg(uploadRes.msg) + + // 上传成功 + if (isDrag) { + cur_file.uploadStatus = 'done' + await this.emitSubModuleEvent({ + event: 'component-file-update-upload-icon' + }) + } + + // 如果是频道发送文件, 生成消息 + const cloudFileId = uploadRes.data.cloudFileId + const inChannelPage = this.propsLeftModule === 'channel' && this.propsRightModule === 'content' + if (this.propsChannelId && cloudFileId && inChannelPage) { + const messageData = { + cloudFileId: cloudFileId + } + this.$emit('push-channel-file-message', messageData) + } + }, /** * 调整textarea的大小 */ @@ -317,7 +550,13 @@ const tl_rtc_app_module_channel_content_textarea = { const resizeHandle = document.querySelector('.tl-rtc-app-right-channel-content-bottom-resize-handle'); const textareaBody = document.getElementById('channel_chat_textarea'); const contentBody = document.querySelector('.tl-rtc-app-right-channel-content-body'); + + // 需要调整回复块的位置 let replyMessageBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-reply-content-block'); + // 需要调整快捷消息块的位置 + let quickMessageBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-quick-message-content-block'); + // 需要调整at用户块的位置 + let atUserBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-at-user-content-block'); const downHandler = (e) => { that.isResizing = true; @@ -325,8 +564,13 @@ const tl_rtc_app_module_channel_content_textarea = { document.body.style.cursor = 'row-resize'; that.preContent = layedit.getContent(that.layeditId) - + + // 需要调整回复块的位置 replyMessageBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-reply-content-block'); + // 需要调整快捷消息块的位置 + quickMessageBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-quick-message-content-block'); + // 需要调整at用户块的位置 + atUserBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-at-user-content-block'); document.addEventListener('mouseup', upHandler); document.addEventListener('mousemove', moveHandler); @@ -341,10 +585,10 @@ const tl_rtc_app_module_channel_content_textarea = { const textareaRect = textareaBody.getBoundingClientRect(); let newHeight = textareaRect.height + moveHeight - if (newHeight < 100){ + if (newHeight < 100) { newHeight = 100 moveHeight = newHeight - textareaRect.height - }else if(newHeight > 300){ + } else if (newHeight > 300) { newHeight = 300 moveHeight = newHeight - textareaRect.height } @@ -354,8 +598,53 @@ const tl_rtc_app_module_channel_content_textarea = { const newBodyHeight = bodyRect.height - moveHeight contentBody.style.height = newBodyHeight + 'px'; - if(replyMessageBlock && that.replyToMessageId){ - replyMessageBlock.style.bottom = newHeight + 42 + 'px' + if (replyMessageBlock) { + // 回复情况下,处理回复框定位 + if(that.replyToMessageId){ + replyMessageBlock.style.bottom = newHeight + that.layeditToolHeight + 'px' //42px是layedit工具栏的高度 + + // 回复情况下,处理快捷消息定位 + if(quickMessageBlock && that.hitQuickMessageList.length > 0){ + that.$nextTick(() => { + quickMessageBlock.style.bottom = newHeight + that.layeditToolHeight + replyMessageBlock.clientHeight + 'px' + }) + } + + // 回复情况下,处理@用户定位 + if(atUserBlock && that.hitAtUserList.length > 0){ + that.$nextTick(() => { + atUserBlock.style.bottom = newHeight + that.layeditToolHeight + replyMessageBlock.clientHeight + 'px' + }) + } + }else{ + // 取消回复情况下,处理快捷消息定位 + if(quickMessageBlock){ + quickMessageBlock.style.bottom = newHeight + that.layeditToolHeight + 'px' + } + + // 取消回复情况下,处理@用户定位 + if(atUserBlock){ + atUserBlock.style.bottom = newHeight + that.layeditToolHeight + 'px' + } + } + } + + // 需要调整快捷消息块的位置, 42px是layedit工具栏的高度 + if (quickMessageBlock) { + if(replyMessageBlock && that.replyToMessageId){ + that.$nextTick(() => { + quickMessageBlock.style.bottom = newHeight + that.layeditToolHeight + replyMessageBlock.clientHeight + 'px' + }) + } + } + + // 需要调整at用户块的位置 + if (atUserBlock) { + if(replyMessageBlock && that.replyToMessageId){ + that.$nextTick(() => { + atUserBlock.style.bottom = newHeight + that.layeditToolHeight + replyMessageBlock.clientHeight + 'px' + }) + } } that.startY = e.clientY; @@ -388,7 +677,7 @@ const tl_rtc_app_module_channel_content_textarea = { resizeHandle.removeEventListener('touchend', upHandler); resizeHandle.removeEventListener('touchmove', moveHandler); } - + // pc端 resizeHandle.addEventListener('mousedown', downHandler); // 移动端 @@ -399,16 +688,16 @@ const tl_rtc_app_module_channel_content_textarea = { * @param {*} atUserName * @returns */ - atUserText: function(atUserName){ - return '@'+atUserName+' ' + atUserText: function (atUserName) { + return ''+ atUserName +' ' }, /** * 生成@用户文本 * @param {*} item */ - generateAtUserText: function({ + generateAtUserText: function ({ atUserId, atUserName, isAtAll, callback - }){ + }) { let textareaIframeDom = null let textareaIframe = document.getElementsByTagName("iframe"); if (textareaIframe && textareaIframe.length >= 1) { @@ -420,12 +709,12 @@ const tl_rtc_app_module_channel_content_textarea = { } // 生成@用户文本 - if(atUserId && atUserName){ + if (atUserId && atUserName) { textareaIframeDom.innerHTML += this.atUserText(atUserName) } // 生成@所有人文本 - if(isAtAll){ + if (isAtAll) { textareaIframeDom.innerHTML += this.atUserText('所有人') } @@ -433,6 +722,32 @@ const tl_rtc_app_module_channel_content_textarea = { this.atUserName = atUserName this.isAtAll = isAtAll + // 清空命中at用户列表 + this.atUserMessageHandler("") + + callback && callback() + }, + /** + * 生成快捷消息文本 + * @param {*} item + */ + generateQuickMessageText: function ({ + text, callback + }) { + let textareaIframeDom = null + let textareaIframe = document.getElementsByTagName("iframe"); + if (textareaIframe && textareaIframe.length >= 1) { + for (let i = 0; i < textareaIframe.length; i++) { + if (textareaIframe[i].id.includes("LAY_layedit")) { + textareaIframeDom = textareaIframe[i].contentDocument.body + } + } + } + + textareaIframeDom.innerHTML = text + + this.quickMessageHandler('') + callback && callback() }, /** @@ -441,9 +756,9 @@ const tl_rtc_app_module_channel_content_textarea = { * @param {*} replyToMessageContent * @param {*} callback */ - setReplyMessage: function({ + setReplyMessage: function ({ replyToMessageId, replyToMessageType, replyToMessageContent, callback - }){ + }) { this.replyToMessageId = replyToMessageId this.replyToMessageType = replyToMessageType this.replyToMessageContent = replyToMessageContent @@ -453,22 +768,45 @@ const tl_rtc_app_module_channel_content_textarea = { /** * 清除回复消息 */ - clearReplyMessage: function({ + clearReplyMessage: function ({ callback - }){ + }) { this.replyToMessageId = '' this.replyToMessageType = '' this.replyToMessageContent = '' callback && callback() }, + /** + * 清除快捷消息 + */ + clearQuickMessage: function ({ + callback + }) { + this.hitQuickMessageList = [] + + callback && callback() + }, + /** + * 清除@用户 + */ + clearAtUserMessage: function ({ + callback + }) { + this.atUserId = '' + this.atUserName = '' + this.isAtAll = false + this.hitAtUserList = [] + + callback && callback() + }, /** * 打开表情选择 */ - openFace: function({ + openFace: function ({ elem, callback - }){ + }) { let that = this layedit.face({ @@ -483,7 +821,7 @@ const tl_rtc_app_module_channel_content_textarea = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", ], customFaceList: [], - clickFaceCallback: function(face){ + clickFaceCallback: function (face) { // 保存为最近使用 that.saveRecentFace(face) @@ -497,17 +835,17 @@ const tl_rtc_app_module_channel_content_textarea = { } } - if(!textareaIframeDom){ + if (!textareaIframeDom) { return } - if(face.type === 'img'){ + if (face.type === 'img') { let elem = document.createElement('img') - for(var key in face){ + for (var key in face) { elem.setAttribute(key, face[key]); } textareaIframeDom.appendChild(elem) - }else if(face.type === 'text'){ + } else if (face.type === 'text') { textareaIframeDom.innerHTML += face.alt } } @@ -516,24 +854,35 @@ const tl_rtc_app_module_channel_content_textarea = { callback && callback() } }, - mounted: async function() { + mounted: async function () { let that = this + await this.loadChooseFile() + this.resizeTextarea() }, - created(){ + created() { // 发送频道消息 window.subModule.$on('sub-module-channel-texarea-send-message', this.sendChannelMessage) // 生成@用户文本 window.subModule.$on('sub-module-channel-content-generate-at-user-text', this.generateAtUserText) + // 生成快捷消息文本 + window.subModule.$on('sub-module-channel-content-generate-quick-message-text', this.generateQuickMessageText) + // 设置回复消息 window.subModule.$on('sub-module-channel-content-set-textarea-reply-message', this.setReplyMessage) - // 清除回复消息 + // 清除回复消息面板 window.subModule.$on('sub-module-channel-content-clear-textarea-reply-message', this.clearReplyMessage) + // 清除快捷消息面板 + window.subModule.$on('sub-module-channel-content-clear-textarea-quick-message', this.clearQuickMessage) + + // 清除@用户面板 + window.subModule.$on('sub-module-channel-content-clear-textarea-at-user', this.clearAtUserMessage) + // 打开表情选择 window.subModule.$on('sub-module-channel-content-open-face', this.openFace) }, diff --git a/web-v2-res/js/module/channel/content/tool.js b/web-res/js/module/channel/content/tool.js similarity index 92% rename from web-v2-res/js/module/channel/content/tool.js rename to web-res/js/module/channel/content/tool.js index 74dce6f..ca845fc 100644 --- a/web-v2-res/js/module/channel/content/tool.js +++ b/web-res/js/module/channel/content/tool.js @@ -53,6 +53,10 @@ const tl_rtc_app_module_channel_content_tool = { channelReName: { type: String, default: '' + }, + channelRole: { + type: String, + default: '' } }, computed: { @@ -74,9 +78,10 @@ const tl_rtc_app_module_channel_content_tool = { propsTools(){ if(this.propsChannelType === 'friend'){ this.tools = this.tools.filter(tool => { - return tool.title !== '邀请进群'; + return tool.title !== '邀请进群' && tool.title !== '群公告'; }) } + if(this.isMobile){ this.tools = this.tools.filter(tool => { return tool.title !== '邀请进群'; @@ -101,6 +106,18 @@ const tl_rtc_app_module_channel_content_tool = { }, propsChannelReName(){ return this.channelReName; + }, + propsChannelRole(){ + return this.channelRole; + }, + isChannelCreateor(){ + return this.channelRole === 10000 + }, + isChannelAdmin(){ + return this.channelRole === 10001 + }, + isChannelMember(){ + return this.channelRole === 10002 } }, data : function(){ @@ -229,7 +246,7 @@ const tl_rtc_app_module_channel_content_tool = { {{propsChannelName}} ({{propsChannelUserCount}}) -
              -
              +
              未找到相关聊天
              @@ -1272,7 +1342,7 @@ const tl_rtc_app_module_channel_list = {
              ` } diff --git a/web-res/js/module/contact/content/apply_group.js b/web-res/js/module/contact/content/apply_group.js new file mode 100644 index 0000000..35851ba --- /dev/null +++ b/web-res/js/module/contact/content/apply_group.js @@ -0,0 +1,222 @@ +const tl_rtc_app_module_contact_content_apply_group = { + props: { + groupApplyData: { + type: Object, + default: { + id: '', // 申请id + channelId: '', // 频道id + channelName: '', // 频道名称 + channelAvatar: '', // 频道头像 + channelCompanyName: '', // 频道公司名称 + channelApplyRemark: '', // 频道申请备注 + userId: '', // 用户id + username: '', // 用户账号 + userAvatar: '', // 用户头像 + createTime: '', // 申请时间 + createTimeFormat: '', // 申请时间格式化 + status: '', // 申请状态 + origin: '', // 申请来源 + hasRead: '', // 是否已读 + } + }, + isMobile: { + type: Boolean, + default: false + }, + leftModule: { + type: String, + default: '' + }, + rightModule: { + type: String, + default: '' + } + }, + computed: { + propsGroupApplyData(){ + return this.groupApplyData; + }, + propsIsMobile(){ + return this.isMobile; + }, + propsLeftModule() { + return this.leftModule; + }, + propsRightModule() { + return this.rightModule; + }, + }, + data : function(){ + return { + STATUS : { + WAITING_ME_PASS: '等待我验证', + }, + } + }, + watch: { + leftModule: function (val) { + + }, + rightModule: function (val) { + + } + }, + methods: { + /** + * 事件触发,向上传递 + * @param {*} event + */ + leftModuleChange: function(event){ + this.$emit('left-module-change', event) + }, + /** + * 事件触发,向上传递 + * @param {*} event + */ + rightModuleChange: function(event){ + this.$emit('right-module-change', event) + }, + /** + * 回退 + */ + goBack: function(){ + this.emitSubModuleEvent({ + event: 'sub-module-core-change-module-show', + data: { + showRightModule: false, + } + }) + }, + /** + * 用户信息弹窗 + * @param {*} event + */ + userInfoPopup: async function(event, user){ + if (!user || !user.userId) { + return + } + // 根据userId获取用户基础信息 + let { type, userInfo } = await this.emitSubModuleEvent({ + event: 'component-popup-user-info-popup', + data: { + clientX: event.clientX, + clientY: event.clientY, + userInfo: { + id: user.userId + }, + } + }) + + if(type === 'chat'){ + await this.emitSubModuleEvent({ + event: 'sub-module-contact-content-send-message', + data: { + channelId: userInfo.channelId, + } + }) + }else if(type === 'video'){ + await this.emitSubModuleEvent({ + event: 'sub-module-contact-content-send-video', + data: { + channelId: userInfo.channelId, + } + }) + }else if(type === 'audio'){ + await this.emitSubModuleEvent({ + event: 'sub-module-contact-content-send-audio', + data: { + channelId: userInfo.channelId, + } + }) + } + }, + /** + * 同意群聊申请 + */ + passGroupApply: function(){ + this.$emit('pass-group-apply') + }, + /** + * 拒绝群聊申请 + */ + rejectGroupApply: function(){ + this.$emit('reject-group-apply') + } + }, + mounted() { + + }, + template: ` +
              +
              +
              + 群聊申请信息 +
              +
              + +
              +
              + 群号: + + {{ propsGroupApplyData.channelId }} + +
              +
              + 申请用户: + + {{ propsGroupApplyData.username }} + + +
              +
              + 验证消息: + + {{ propsGroupApplyData.channelApplyRemark }} + +
              +
              + 当前状态: + + {{ propsGroupApplyData.status }} + +
              +
              + 申请来源: + + {{ propsGroupApplyData.origin }} + +
              +
              + 申请时间: + + {{ propsGroupApplyData.createTimeFormat }} + +
              +
              +
              +
              + + +
              +
              +
              + ` +} + +window.tl_rtc_app_module_contact_content_apply_group = tl_rtc_app_module_contact_content_apply_group \ No newline at end of file diff --git a/web-v2-res/js/module/contact/content/apply.js b/web-res/js/module/contact/content/apply_user.js similarity index 97% rename from web-v2-res/js/module/contact/content/apply.js rename to web-res/js/module/contact/content/apply_user.js index d1b08ea..d693e2c 100644 --- a/web-v2-res/js/module/contact/content/apply.js +++ b/web-res/js/module/contact/content/apply_user.js @@ -1,4 +1,4 @@ -const tl_rtc_app_module_contact_content_apply = { +const tl_rtc_app_module_contact_content_apply_user = { props: { applyUserData: { type: Object, @@ -161,4 +161,4 @@ const tl_rtc_app_module_contact_content_apply = { ` } -window.tl_rtc_app_module_contact_content_apply = tl_rtc_app_module_contact_content_apply \ No newline at end of file +window.tl_rtc_app_module_contact_content_apply_user = tl_rtc_app_module_contact_content_apply_user \ No newline at end of file diff --git a/web-v2-res/js/module/contact/content/friend.js b/web-res/js/module/contact/content/friend.js similarity index 86% rename from web-v2-res/js/module/contact/content/friend.js rename to web-res/js/module/contact/content/friend.js index 08df035..4966f5b 100644 --- a/web-v2-res/js/module/contact/content/friend.js +++ b/web-res/js/module/contact/content/friend.js @@ -79,6 +79,18 @@ const tl_rtc_app_module_contact_content_friend = { sendMessage: function(){ this.$emit('send-message', this.propsFriendUserData) }, + /** + * 发起视频 + */ + sendVideo: function(){ + this.$emit('send-video', this.propsFriendUserData) + }, + /** + * 发起语音 + */ + sendAudio: function(){ + this.$emit('send-audio', this.propsFriendUserData) + }, /** * 回退 */ @@ -174,6 +186,18 @@ const tl_rtc_app_module_contact_content_friend = {
              发送信息
              +
              + +
              发起视频
              +
              +
              + +
              发起语音
              +
              ` diff --git a/web-v2-res/js/module/contact/content/group.js b/web-res/js/module/contact/content/group.js similarity index 85% rename from web-v2-res/js/module/contact/content/group.js rename to web-res/js/module/contact/content/group.js index a5c5516..b25c376 100644 --- a/web-v2-res/js/module/contact/content/group.js +++ b/web-res/js/module/contact/content/group.js @@ -87,6 +87,18 @@ const tl_rtc_app_module_contact_content_group = { sendMessage: function(){ this.$emit('send-message', this.propsGroupData) }, + /** + * 发起视频 + */ + sendVideo: function(){ + this.$emit('send-video', this.propsGroupData) + }, + /** + * 发起语音 + */ + sendAudio: function(){ + this.$emit('send-audio', this.propsGroupData) + }, }, mounted() { @@ -150,6 +162,18 @@ const tl_rtc_app_module_contact_content_group = {
              发送信息
              +
              + +
              发起视频
              +
              +
              + +
              发起语音
              +
              ` diff --git a/web-res/js/module/contact/content/search_group.js b/web-res/js/module/contact/content/search_group.js new file mode 100644 index 0000000..9b004ad --- /dev/null +++ b/web-res/js/module/contact/content/search_group.js @@ -0,0 +1,171 @@ +const tl_rtc_app_module_contact_content_search_group = { + props: { + groupSearchData: { + type: Object, + default: { + channelId: '', // 频道id + channelName: '', // 频道名称 + channelAvatar: '', // 频道头像 + companyName: '', // 频道公司名称 + isChannelUser: false, // 是否是频道用户 + channelUserCount: 0, // 频道用户数 + shareUserId: '', // 分享用户id + } + }, + isMobile: { + type: Boolean, + default: false + }, + leftModule: { + type: String, + default: '' + }, + rightModule: { + type: String, + default: '' + } + }, + computed: { + propsGroupSearchData(){ + return this.groupSearchData; + }, + propsIsMobile(){ + return this.isMobile; + }, + propsLeftModule() { + return this.leftModule; + }, + propsRightModule() { + return this.rightModule; + }, + }, + data : function(){ + return { + + } + }, + watch: { + leftModule: function (val) { + + }, + rightModule: function (val) { + + } + }, + methods: { + /** + * 事件触发,向上传递 + * @param {*} event + */ + leftModuleChange: function(event){ + this.$emit('left-module-change', event) + }, + /** + * 事件触发,向上传递 + * @param {*} event + */ + rightModuleChange: function(event){ + this.$emit('right-module-change', event) + }, + /** + * 回退 + */ + goBack: function(){ + this.emitSubModuleEvent({ + event: 'sub-module-core-change-module-show', + data: { + showRightModule: false, + } + }) + }, + /** + * 发送信息 + */ + sendMessage: function(){ + this.$emit('send-message', this.propsGroupSearchData) + }, + /** + * 发起视频 + */ + sendVideo: function(){ + this.$emit('send-video', this.propsGroupSearchData) + }, + /** + * 发起语音 + */ + sendAudio: function(){ + this.$emit('send-audio', this.propsGroupSearchData) + }, + /** + * 申请加入群聊 + */ + addUserGroup: function(){ + this.$emit('add-user-group', this.propsGroupSearchData) + } + }, + mounted() { + + }, + template: ` +
              +
              +
              + 搜索群聊信息 +
              +
              + +
              +
              + 群号: + + {{ propsGroupSearchData.channelId }} + +
              +
              + 群成员: + + {{ propsGroupSearchData.channelUserCount }}(人) + +
              +
              +
              + +
              发送信息
              +
              +
              + +
              发起视频
              +
              +
              + +
              发起语音
              +
              +
              +
              + +
              +
              + ` +} + +window.tl_rtc_app_module_contact_content_search_group = tl_rtc_app_module_contact_content_search_group \ No newline at end of file diff --git a/web-v2-res/js/module/contact/content/search.js b/web-res/js/module/contact/content/search_user.js similarity index 81% rename from web-v2-res/js/module/contact/content/search.js rename to web-res/js/module/contact/content/search_user.js index d1fe375..f688101 100644 --- a/web-v2-res/js/module/contact/content/search.js +++ b/web-res/js/module/contact/content/search_user.js @@ -1,4 +1,4 @@ -const tl_rtc_app_module_contact_content_search = { +const tl_rtc_app_module_contact_content_search_user = { props: { searchUserData: { type: Object, @@ -85,6 +85,18 @@ const tl_rtc_app_module_contact_content_search = { sendMessage: function(){ this.$emit('send-message', this.propsSearchUserData) }, + /** + * 发起视频 + */ + sendVideo: function(){ + this.$emit('send-video', this.propsSearchUserData) + }, + /** + * 发起语音 + */ + sendAudio: function(){ + this.$emit('send-audio', this.propsSearchUserData) + }, /** * 鼠标移入 * @param {*} event @@ -120,6 +132,7 @@ const tl_rtc_app_module_contact_content_search = { - diff --git a/web-v2-res/js/module/setting/content.js b/web-res/js/module/setting/content.js similarity index 58% rename from web-v2-res/js/module/setting/content.js rename to web-res/js/module/setting/content.js index 149517a..d8775bb 100644 --- a/web-v2-res/js/module/setting/content.js +++ b/web-res/js/module/setting/content.js @@ -95,6 +95,38 @@ const tl_rtc_app_module_setting_content = { } }) }, + /** + * 更新用户通用设置 + */ + updateUserConfigNormal: async function(updateNormalSetting){ + let params = { + normal: updateNormalSetting + } + if(!window.tl_rtc_app_comm.checkRequestParams(params)){ + this.popErrorMsg("请求参数非法") + return + } + const { data: userConfigRes } = await this.tlRequest({ + url: '/api/web/user-config/update-user-config-normal', + method: 'post', + useCache: false, + data: params, + + }) + if(!userConfigRes.success){ + this.popErrorMsg(userConfigRes.msg) + return + } + + this.emitSubModuleEvent({ + event: 'sub-module-core-user-setting-change', + data: { + normalSetting: updateNormalSetting + } + }) + + this.popSuccessMsg(userConfigRes.msg) + }, /** * 更新用户帐号设置 */ @@ -127,6 +159,87 @@ const tl_rtc_app_module_setting_content = { this.popSuccessMsg(userConfigRes.msg) }, + /** + * 更新用户消息设置 + */ + updateUserConfigMessage: async function(updateMessageSetting){ + let params = { + message: updateMessageSetting + } + + if(updateMessageSetting.webNotify){ + if (window.Notification) { + if(Notification.permission !== "granted"){ + Notification.requestPermission(function (status) { + if (Notification.permission !== status) { + Notification.permission = status; + } + }); + } + }else{ + that.popWarningMsg('浏览器不支持消息通知') + updateMessageSetting.webNotify = false + } + } + + if(!window.tl_rtc_app_comm.checkRequestParams(params)){ + this.popErrorMsg("请求参数非法") + return + } + + const { data: userConfigRes } = await this.tlRequest({ + url: '/api/web/user-config/update-user-config-message', + method: 'post', + useCache: false, + data: params, + }) + + if(!userConfigRes.success){ + this.popErrorMsg(userConfigRes.msg) + return + } + + this.emitSubModuleEvent({ + event: 'sub-module-core-user-setting-change', + data: { + messageSetting: updateMessageSetting + } + }) + + this.popSuccessMsg(userConfigRes.msg) + }, + /** + * 更新用户皮肤设置 + */ + updateUserConfigSkin: async function(udpateSkinSetting){ + let params = { + skin: udpateSkinSetting + } + if(!window.tl_rtc_app_comm.checkRequestParams(params)){ + this.popErrorMsg("请求参数非法") + return + } + const { data: userConfigRes } = await this.tlRequest({ + url: '/api/web/user-config/update-user-config-skin', + method: 'post', + useCache: false, + data: params, + + }) + if(!userConfigRes.success){ + this.popErrorMsg(userConfigRes.msg) + return + } + + this.emitSubModuleEvent({ + event: 'sub-module-core-user-setting-change', + data: { + skinSetting: udpateSkinSetting + } + }) + + this.popSuccessMsg(userConfigRes.msg) + }, /** * 更新用户其他设置 */ @@ -177,8 +290,10 @@ const tl_rtc_app_module_setting_content = { window.subModule.$on('sub-module-setting-content-data-change', this.moduleDataChange) }, components : { + 'tl_rtc_app_module_setting_content_normal': window.tl_rtc_app_module_setting_content_normal, 'tl_rtc_app_module_setting_content_account': window.tl_rtc_app_module_setting_content_account, 'tl_rtc_app_module_setting_content_message': window.tl_rtc_app_module_setting_content_message, + 'tl_rtc_app_module_setting_content_skin': window.tl_rtc_app_module_setting_content_skin, 'tl_rtc_app_module_setting_content_other': window.tl_rtc_app_module_setting_content_other, }, template: ` @@ -187,6 +302,21 @@ const tl_rtc_app_module_setting_content = { + + + + + + 1024 * 1024 * 5) { + this.popWarningMsg("文件大小不能超过5M") + return + } + + // 上传文件 + let formData = new FormData(); + formData.append('file', cur_file); + + const { data: uploadRes } = await this.tlRequest({ + url: '/api/web/cloud-file/upload-file', + method: 'post', + useCache: false, + data: formData, + headers: {'Content-Type': 'multipart/form-data'}, + }) + + if(!uploadRes.success){ + this.popErrorMsg(uploadRes.msg) + return + } + + const cloudFileId = uploadRes.data.cloudFileId + if(!cloudFileId){ + this.popErrorMsg("更新失败") + return + } + + let params = { + cloudFileId: cloudFileId + } + if(!window.tl_rtc_app_comm.checkRequestParams(params)){ + this.popErrorMsg("请求参数非法") + return + } + // 更新用户头像 + const { data: updateRes } = await this.tlRequest({ + url: '/api/web/user/update-user-avatar', + method: 'post', + useCache: false, + data: params, + }) + + if(!updateRes.success){ + this.popErrorMsg(updateRes.msg) + return + } + + this.popSuccessMsg(updateRes.msg) + + setTimeout(() => { + window.location.reload() + }, 100); + }, /** * 绑定手机号 */ @@ -275,7 +338,18 @@ const tl_rtc_app_module_setting_content_account = { */ bindWx: function(){ this.popWarningMsg("暂未开放") - } + }, + mouseEnter: function (event, title) { + tl_rtc_app_comm.mouseEnterTips({ + id: event.target.id, + text: title, + position: 'top', + time: 30000 + }); + }, + mouseLeave: function () { + tl_rtc_app_comm.mouseLeaveTips(); + }, }, mounted() { let that = this @@ -290,6 +364,18 @@ const tl_rtc_app_module_setting_content_account = { } }); + upload.render({ + elem: '.tl-rtc-app-right-setting-content-account-block-item-avatar', //绑定元素 + url: '/api/web/cloud-file/upload-file', + accept: 'images', + method: 'post', + auto: false, + choose: async function(obj){ + const files = Object.values(obj.pushFile()) + await that.uploadAvatarCallback(files[0]) + obj.clearAllFile() + } + }); }, updated() { window.form.render(); @@ -325,11 +411,27 @@ const tl_rtc_app_module_setting_content_account = {
              + + +
              + + + diff --git a/web-v2-res/js/module/setting/content/other.js b/web-res/js/module/setting/content/message.js similarity index 53% rename from web-v2-res/js/module/setting/content/other.js rename to web-res/js/module/setting/content/message.js index ea7468d..083f9a2 100644 --- a/web-v2-res/js/module/setting/content/other.js +++ b/web-res/js/module/setting/content/message.js @@ -1,4 +1,4 @@ -const tl_rtc_app_module_setting_content_other = { +const tl_rtc_app_module_setting_content_message = { props: { socket: { type: Object, @@ -8,11 +8,11 @@ const tl_rtc_app_module_setting_content_other = { type: Boolean, default: false }, - otherSetting: { + messageSetting: { type: Object, default: { - turnServer: false, - customWss: '', + webNotify: false, + messageDot: false, } }, leftModule: { @@ -31,11 +31,8 @@ const tl_rtc_app_module_setting_content_other = { propsIsMobile(){ return this.isMobile; }, - propsOtherSetting(){ - return this.otherSetting; - }, - disableCustomWss(){ - return this.propsOtherSetting.customWss === this.customWss + propsMessageSetting(){ + return this.messageSetting; }, propsLeftModule() { return this.leftModule; @@ -44,14 +41,6 @@ const tl_rtc_app_module_setting_content_other = { return this.rightModule; }, }, - data : function(){ - return { - settingFields: [ - 'turnServer', - 'customWss', - ] - } - }, watch: { leftModule: function (val) { @@ -60,6 +49,14 @@ const tl_rtc_app_module_setting_content_other = { } }, + data : function(){ + return { + settingFields : [ + 'webNotify', + 'messageDot', + ] + } + }, methods: { /** * 事件触发,向上传递 @@ -83,70 +80,58 @@ const tl_rtc_app_module_setting_content_other = { let that = this let returnData = {} this.settingFields.forEach((item) => { - returnData[item] = that.propsOtherSetting[item] + returnData[item] = that.propsMessageSetting[item] }) - - if(returnData.turnServer){ - window.localStorage.setItem("tl-rtc-app-use-turn", "true") - }else{ - window.localStorage.setItem("tl-rtc-app-use-turn", "false") - } - + return returnData }, - /** - * 更新设置 + /** + * 更新消息设置 */ - updateOtherSetting(){ - this.$emit('update-user-config-other', this.getSettingFieldsData()); - }, + updateMessageSetting(){ + this.$emit('update-user-config-message', this.getSettingFieldsData()); + } }, mounted() { let that = this window.form.render(); - window.form.val('otherSettingContent', this.getSettingFieldsData()) + window.form.val('messageSettingContent', this.getSettingFieldsData()) window.form.on('switch', function(data){ if(that.settingFields.includes(data.elem.name)){ - that.propsOtherSetting[data.elem.name] = data.elem.checked - that.updateOtherSetting() + that.propsMessageSetting[data.elem.name] = data.elem.checked + that.updateMessageSetting() } - }) + }); }, updated() { window.form.render(); - window.form.val('otherSettingContent', this.getSettingFieldsData()) + window.form.val('messageSettingContent', this.getSettingFieldsData()) }, template: ` -
              +
              - 其他设置 + 消息相关设置
              -
              -
              -
              开发设置
              -
              - -
              -
              中继服务器转发
              -
              - +
              +
              +
              消息设置
              +
              +
              +
              消息浏览器通知
              +
              +
              -
              -
              自定义socket服务器地址
              -
              - - +
              +
              消息红点数量提示
              +
              +
              -
              @@ -154,4 +139,4 @@ const tl_rtc_app_module_setting_content_other = { ` } -window.tl_rtc_app_module_setting_content_other = tl_rtc_app_module_setting_content_other \ No newline at end of file +window.tl_rtc_app_module_setting_content_message = tl_rtc_app_module_setting_content_message \ No newline at end of file diff --git a/web-res/js/module/setting/content/normal.js b/web-res/js/module/setting/content/normal.js new file mode 100644 index 0000000..50ac36f --- /dev/null +++ b/web-res/js/module/setting/content/normal.js @@ -0,0 +1,248 @@ +const tl_rtc_app_module_setting_content_normal = { + props: { + socket: { + type: Object, + default: null + }, + isMobile: { + type: Boolean, + default: false + }, + normalSetting: { + type: Object, + default: { + homePage: 'channel', + sidebarChannelOpen: true, + sidebarContactOpen: true, + sidebarSettingOpen: true, + } + }, + leftModule: { + type: String, + default: '' + }, + rightModule: { + type: String, + default: '' + } + }, + computed: { + propsSocket(){ + return this.socket; + }, + propsIsMobile(){ + return this.isMobile; + }, + propsNormalSetting(){ + return this.normalSetting; + }, + propsLeftModule() { + return this.leftModule; + }, + propsRightModule() { + return this.rightModule; + }, + }, + watch: { + leftModule: function (val) { + + }, + rightModule: function (val) { + + } + }, + data : function(){ + return { + settingFields: [ + 'sidebarChannelOpen', + 'sidebarContactOpen', + 'sidebarSettingOpen', + 'homePage' + ] + } + }, + methods: { + /** + * 事件触发,向上传递 + * @param {*} event + */ + leftModuleChange: function(event){ + this.$emit('left-module-change', event) + }, + /** + * 事件触发,向上传递 + * @param {*} event + */ + rightModuleChange: function(event){ + this.$emit('right-module-change', event) + }, + /** + * 获取设置字段数据 + * @returns + */ + getSettingFieldsData: function(){ + let that = this + let returnData = {} + this.settingFields.forEach((item) => { + returnData[item] = that.propsNormalSetting[item] + }) + + // 侧边栏-设置强制开启 + returnData.sidebarSettingOpen = true + + return returnData + }, + mouseEnter: function (event, title) { + tl_rtc_app_comm.mouseEnterTips({ + id: event.target.id, + text: title, + position: 'top' + }); + }, + mouseLeave: function () { + tl_rtc_app_comm.mouseLeaveTips(); + }, + /** + * 更新设置 + */ + updateNormalSetting(){ + this.$emit('update-user-config-normal', this.getSettingFieldsData()); + }, + /** + * 修改字体大小 + * @param {*} fontSize + */ + changeFontSize: function(fontSize){ + this.propsNormalSetting.fontSize = fontSize; + this.updateNormalSetting() + }, + }, + mounted() { + let that = this; + window.form.render(); + + window.form.val('normalSettingContent', this.getSettingFieldsData()) + + window.form.on('switch', function(data){ + if(that.settingFields.includes(data.elem.name)){ + that.propsNormalSetting[data.elem.name] = data.elem.checked + that.updateNormalSetting() + } + }); + + window.form.on('radio', function(data){ + if(data.elem.name === 'homePage'){ + that.propsNormalSetting.homePage = data.value + that.updateNormalSetting() + } + }); + }, + updated() { + window.form.val('normalSettingContent', this.getSettingFieldsData()) + }, + template: ` +
              +
              +
              + 通用设置 +
              +
              +
              +
              +
              首页设置
              +
              +
              +
              + + 消息 +
              +
              + +
              +
              + +
              +
              + + 通讯录 +
              +
              + +
              +
              + +
              +
              + + 设置 +
              +
              + +
              +
              +
              +
              + +
              +
              + 底部/侧边导航栏设置 + +
              +
              +
              +
              + + 消息 +
              +
              + +
              +
              + +
              +
              + + 通讯录 +
              +
              + +
              +
              + +
              +
              + + 设置 +
              +
              + +
              +
              +
              +
              +
              +
              + ` +} + +window.tl_rtc_app_module_setting_content_normal = tl_rtc_app_module_setting_content_normal \ No newline at end of file diff --git a/web-res/js/module/setting/content/other.js b/web-res/js/module/setting/content/other.js new file mode 100644 index 0000000..92eecf7 --- /dev/null +++ b/web-res/js/module/setting/content/other.js @@ -0,0 +1,237 @@ +const tl_rtc_app_module_setting_content_other = { + props: { + socket: { + type: Object, + default: null + }, + isMobile: { + type: Boolean, + default: false + }, + otherSetting: { + type: Object, + default: { + customWss: '', + } + }, + leftModule: { + type: String, + default: '' + }, + rightModule: { + type: String, + default: '' + } + }, + computed: { + propsSocket(){ + return this.socket; + }, + propsIsMobile(){ + return this.isMobile; + }, + propsOtherSetting(){ + return this.otherSetting; + }, + disableCustomWss(){ + return this.propsOtherSetting.customWss === this.customWss + }, + propsLeftModule() { + return this.leftModule; + }, + propsRightModule() { + return this.rightModule; + }, + }, + data : function(){ + return { + settingFields: [ + 'customWss', + ] + } + }, + watch: { + leftModule: function (val) { + + }, + rightModule: function (val) { + + } + }, + methods: { + /** + * 事件触发,向上传递 + * @param {*} event + */ + leftModuleChange: function(event){ + this.$emit('left-module-change', event) + }, + /** + * 事件触发,向上传递 + * @param {*} event + */ + rightModuleChange: function(event){ + this.$emit('right-module-change', event) + }, + /** + * 获取设置字段数据 + * @returns + */ + getUpdateSettingFieldsData: function(){ + let that = this + let returnData = {} + this.settingFields.forEach((item) => { + returnData[item] = that.propsOtherSetting[item] + }) + + return returnData + }, + /** + * 获取设置字段数据 + * @returns + */ + getSettingFieldsData: function(){ + let that = this + let returnData = {} + this.settingFields.forEach((item) => { + returnData[item] = that.propsOtherSetting[item] + }) + + // 是否使用中继服务器 + returnData.turnServer = window.localStorage.getItem("tl-rtc-app-use-turn") === 'true' + // 是否使用请求缓存 + returnData.apiCache = window.localStorage.getItem("tl-rtc-app-api-cache") === 'true' + + return returnData + }, + /** + * 更新设置 + */ + updateOtherSetting(){ + this.$emit('update-user-config-other', this.getUpdateSettingFieldsData()); + }, + mouseEnter: function (event, title) { + tl_rtc_app_comm.mouseEnterTips({ + id: event.target.id, + text: title, + position: 'top', + time: 3000 + }); + }, + mouseLeave: function () { + tl_rtc_app_comm.mouseLeaveTips(); + }, + /** + * 打开设备调试弹窗 + */ + openDeviceDebugger: function() { + this.emitSubModuleEvent({ + event: 'component-media-device-select', + data: { + mode: 'debug' + } + }) + }, + }, + mounted() { + let that = this + window.form.render(); + window.form.val('otherSettingContent', this.getSettingFieldsData()) + + window.form.on('switch', function(data){ + if(that.settingFields.includes(data.elem.name)){ + that.propsOtherSetting[data.elem.name] = data.elem.checked + that.updateOtherSetting() + } + + if(data.elem.name === 'turnServer'){ + window.localStorage.setItem("tl-rtc-app-use-turn", data.elem.checked) + that.popSuccessMsg(data.elem.checked ? '已开启中继转发' : '已关闭中继转发') + } + + if(data.elem.name === 'apiCache'){ + window.localStorage.setItem("tl-rtc-app-api-cache", data.elem.checked) + that.popSuccessMsg(data.elem.checked ? '已开启请求缓存' : '已关闭请求缓存') + } + }) + }, + updated() { + window.form.render(); + window.form.val('otherSettingContent', this.getSettingFieldsData()) + }, + template: ` +
              +
              +
              + 其他设置 +
              +
              +
              +
              +
              客户端设置
              +
              + +
              +
              + 中继服务器转发 + +
              +
              + +
              +
              + +
              +
              + 浏览器请求缓存 + +
              +
              + +
              +
              +
              +
              + +
              +
              服务端设置
              +
              +
              +
              + 自定义socket服务器地址 + +
              +
              + + +
              +
              +
              +
              +
              +
              + ` +} + +window.tl_rtc_app_module_setting_content_other = tl_rtc_app_module_setting_content_other \ No newline at end of file diff --git a/web-res/js/module/setting/content/skin.js b/web-res/js/module/setting/content/skin.js new file mode 100644 index 0000000..dc99ea0 --- /dev/null +++ b/web-res/js/module/setting/content/skin.js @@ -0,0 +1,2364 @@ +const tl_rtc_app_module_setting_content_skin = { + props: { + socket: { + type: Object, + default: null + }, + isMobile: { + type: Boolean, + default: false + }, + skinSetting: { + type: Object, + default: { + + } + }, + leftModule: { + type: String, + default: '' + }, + rightModule: { + type: String, + default: '' + } + }, + computed: { + propsSocket(){ + return this.socket; + }, + propsIsMobile(){ + return this.isMobile; + }, + propsSkinSetting(){ + return this.skinSetting; + }, + propsLeftModule() { + return this.leftModule; + }, + propsRightModule() { + return this.rightModule; + }, + }, + watch: { + leftModule: function (val) { + + }, + rightModule: function (val) { + + } + }, + data : function(){ + return { + settingFields: [], + hasListenedSkinChange: false, + previewType: 'global', + + commSkinList: [], // 公共皮肤设置 + sidebarSkinList: [], // 侧边栏皮肤设置 + channelSkinList: [], // 频道皮肤设置 + contactSkinList: [], // 联系人皮肤设置 + loginSkinList: [], // 登录皮肤设置 + settingSkinList: [], // 设置皮肤设置 + + channelHistoryMessageSkinList: [], // 频道历史消息皮肤设置 + channelMoreSkinList: [], // 频道更多面板皮肤设置 + channelInviteSkinList: [], // 频道邀请面板皮肤设置 + channelNoticeSkinList: [], // 频道公告面板皮肤设置 + layerMsgSkinList: [], // 弹层消息皮肤设置 + layerTipSkinList: [], // 弹层提示皮肤设置 + quickOperSkinList: [], // 快捷操作面板皮肤设置 + mediaSkinList: [], // 音视频界面皮肤设置 + faceSkinList: [], // 表情皮肤设置 + } + }, + methods: { + /** + * 事件触发,向上传递 + * @param {*} event + */ + leftModuleChange: function(event){ + this.$emit('left-module-change', event) + }, + /** + * 事件触发,向上传递 + * @param {*} event + */ + rightModuleChange: function(event){ + this.$emit('right-module-change', event) + }, + /** + * 修改预览类型 + * @param {*} type + */ + changePreviewType: function(type){ + this.previewType = type + }, + /** + * 初始化公共皮肤设置 + */ + initCommSkinList: function(){ + let settingFieldsMap = { + skinTopHeaderToolBackground : { + id: 'skin-top-header-tool-background', + name: '顶部工具栏背景色', + type: 'background', + color: '', + }, + skinTopHeaderTitleColor : { + id: 'skin-top-header-title-color', + name: '顶部标题栏字体颜色', + type: 'color', + color: '', + }, + skinTopHeaderToolFillColor : { + id: 'skin-top-header-tool-fill-color', + name: '顶部工具栏SVG字体颜色', + type: 'fill-color', + color: '', + }, + skinTopHeaderToolHoverFillColor : { + id: 'skin-top-header-tool-hover-fill-color', + name: '顶部工具栏HoverSVG字体颜色', + type: 'fill-color', + color: '', + }, + skinTopHeaderToolHoverShadow : { + id: 'skin-top-header-tool-hover-shadow', + name: '顶部工具栏Hover阴影', + type: 'shadow', + color: '', + }, + skinBodyColor : { + id: 'skin-body-color', + name: '页面字体颜色', + type: 'color', + color: '', + }, + skinBodyBackground : { + id: 'skin-body-background', + name: '页面背景颜色', + type: 'color', + color: '', + }, + skinBodyShadow : { + id: 'skin-body-shadow', + name: '页面阴影', + type: 'shadow', + color: '', + }, + skinBodyBorderColor : { + id: 'skin-body-border-color', + name: '页面边框颜色', + type: 'color', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.commSkinList = skinList + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.commSkinList) + }, + /** + * 初始化消息提示皮肤设置 + */ + initLayerMsgSkinList: function(){ + let settingFieldsMap = { + skinLayerMsgBackground : { + id: 'skin-layer-msg-background', + name: '弹层消息背景色', + type: 'background', + color: '', + }, + skinLayerMsgColor : { + id: 'skin-layer-msg-color', + name: '弹层消息字体颜色', + type: 'color', + color: '', + }, + skinLayerMsgSuccessColor : { + id: 'skin-layer-msg-success-color', + name: '弹层成功消息字体颜色', + type: 'color', + color: '', + }, + skinLayerMsgWarningColor : { + id: 'skin-layer-msg-warning-color', + name: '弹层警告消息字体颜色', + type: 'color', + color: '', + }, + skinLayerMsgErrorColor : { + id: 'skin-layer-msg-error-color', + name: '弹层错误消息字体颜色', + type: 'color', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.layerMsgSkinList = skinList + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.layerMsgSkinList) + }, + /** + * 初始化侧边栏皮肤设置 + */ + initSidebarSkinList: function(){ + let settingFieldsMap = { + skinSidebarToolBackground : { + id: 'skin-sidebar-tool-background', + name: '侧边栏工具背景色', + type: 'background', + color: '', + }, + skinSidebarToolHoverBackground : { + id: 'skin-sidebar-tool-hover-background', + name: '侧边栏工具Hover背景色', + type: 'background', + color: '', + }, + skinSidebarToolColor : { + id: 'skin-sidebar-tool-color', + name: '侧边栏工具字体颜色', + type: 'color', + color: '', + }, + skinSidebarToolHoverColor : { + id: 'skin-sidebar-tool-hover-color', + name: '侧边栏工具Hover字体颜色', + type: 'color', + color: '', + }, + skinSidebarToolFillColor : { + id: 'skin-sidebar-tool-fill-color', + name: '侧边栏工具SVG字体颜色', + type: 'fill-color', + color: '', + }, + skinSidebarToolHoverFillColor : { + id: 'skin-sidebar-tool-hover-fill-color', + name: '侧边栏工具HoverSVG字体颜色', + type: 'fill-color', + color: '', + }, + skinSidebarToolMoreBorderColor : { + id: 'skin-sidebar-tool-more-border-color', + name: '侧边栏工具更多模块边框颜色', + type: 'color', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.sidebarSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.sidebarSkinList) + }, + /** + * 初始化快捷面板皮肤设置 + */ + initQuickOperSkinList: function(){ + let settingFieldsMap = { + skinQuickOperPanelBackground : { + id: 'skin-quick-oper-panel-background', + name: '快捷操作面板背景色', + type: 'background', + color: '', + }, + skinQuickOperPanelItemHoverBackground : { + id: 'skin-quick-oper-panel-item-hover-background', + name: '快捷操作面板Hover背景色', + type: 'background', + color: '', + }, + skinQuickOperPanelItemColor : { + id: 'skin-quick-oper-panel-item-color', + name: '快捷操作面板字体颜色', + type: 'color', + color: '', + }, + skinQuickOperPanelItemHoverColor : { + id: 'skin-quick-oper-panel-item-hover-color', + name: '快捷操作面板Hover字体颜色', + type: 'color', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.quickOperSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.quickOperSkinList) + }, + /** + * 初始化频道皮肤设置 + */ + initChannelSkinList: function(){ + let settingFieldsMap = { + skinChannelListNoChannelColor : { + id: 'skin-channel-list-no-channel-color', + name: '频道列表无频道时字体颜色', + type: 'color', + color: '', + }, + skinChannelListItemTopBackground : { + id: 'skin-channel-list-item-top-background', + name: '频道列表置顶项目背景色', + type: 'background', + color: '', + }, + skinChannelTopSearchIColor : { + id: 'skin-channel-top-search-i-color', + name: '频道顶部搜索图标字体颜色', + type: 'color', + color: '', + }, + skinChannelTopSearchInputBackground : { + id: 'skin-channel-top-search-input-background', + name: '频道顶部搜索框背景色', + type: 'background', + color: '', + }, + skinChannelTopSearchInputColor : { + id: 'skin-channel-top-search-input-color', + name: '频道顶部搜索框文字字体颜色', + type: 'color', + color: '', + }, + skinChannelContentTopMoreFillColor : { + id: 'skin-channel-content-top-more-fill-color', + name: '频道内容顶部更多SVG颜色', + type: 'fill-color', + color: '', + }, + + skinChannelListItemHoverBackground : { + id: 'skin-channel-list-item-hover-background', + name: '频道列表项目Hover背景色', + type: 'background', + color: '', + }, + skinChannelListItemMessageColor : { + id: 'skin-channel-list-item-message-color', + name: '频道列表消息字体颜色', + type: 'color', + color: '', + }, + skinChannelListItemMessageAtUserTextColor : { + id: 'skin-channel-list-item-message-at-user-text-color', + name: '频道列表消息@用户字体颜色', + type: 'color', + color: '', + }, + skinChannelListItemMessageAtMeTextColor : { + id: 'skin-channel-list-item-message-at-me-text-color', + name: '频道列表消息@你字体颜色', + type: 'color', + color: '', + }, + skinChannelListItemTimeColor : { + id: 'skin-channel-list-item-time-color', + name: '频道列表时间字体颜色', + type: 'color', + color: '', + }, + skinChannelListItemQuickMarkUnreadBackground : { + id: 'skin-channel-list-item-quick-mark-unread-background', + name: '频道列表未读标记背景色', + type: 'background', + color: '', + }, + skinChannelListItemQuickMarkUnreadColor : { + id: 'skin-channel-list-item-quick-mark-unread-color', + name: '频道列表未读标记字体颜色', + type: 'color', + color: '', + }, + skinChannelListItemQuickTopBackground : { + id: 'skin-channel-list-item-quick-top-background', + name: '频道列表置顶标记背景色', + type: 'background', + color: '', + }, + skinChannelListItemQuickTopColor : { + id: 'skin-channel-list-item-quick-top-color', + name: '频道列表置顶标记字体颜色', + type: 'color', + color: '', + }, + skinChannelListItemQuickDeleteBackground : { + id: 'skin-channel-list-item-quick-delete-background', + name: '频道列表删除标记背景色', + type: 'background', + color: '', + }, + skinChannelListItemQuickDeleteColor : { + id: 'skin-channel-list-item-quick-delete-color', + name: '频道列表删除标记字体颜色', + type: 'color', + color: '', + }, + skinChannelListItemQuickHiddenBackground : { + id: 'skin-channel-list-item-quick-hidden-background', + name: '频道列表不显示标记背景色', + type: 'background', + color: '', + }, + skinChannelListItemQuickHiddenColor : { + id: 'skin-channel-list-item-quick-hidden-color', + name: '频道列表不显示标记字体颜色', + type: 'color', + color: '', + }, + skinChannelListItemQuickUnNotifyBackground : { + id: 'skin-channel-list-item-quick-un-notify-background', + name: '频道列表免打扰标记背景色', + type: 'background', + color: '', + }, + skinChannelListItemQuickUnNotifyColor : { + id: 'skin-channel-list-item-quick-un-notify-color', + name: '频道列表免打扰标记字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyMessageBackground : { + id: 'skin-channel-content-body-message-background', + name: '频道内容消息背景色', + type: 'background', + color: '', + }, + skinChannelContentBodyMessageColor : { + id: 'skin-channel-content-body-message-color', + name: '频道内容消息文字字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyMessageSystemColor : { + id: 'skin-channel-content-body-message-system-color', + name: '频道内容系统消息字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyMessageTimeColor : { + id: 'skin-channel-content-body-message-time-color', + name: '频道内容消息时间字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyMessageLoadMoreColor : { + id: 'skin-channel-content-body-message-load-more-color', + name: '频道内容加载更多按钮字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyMessageLoadMoreHoverColor : { + id: 'skin-channel-content-body-message-load-more-hover-color', + name: '频道内容加载更多按钮Hover字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyMessageNameColor : { + id: 'skin-channel-content-body-message-name-color', + name: '频道内容消息用户名字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyMessageNameHoverColor : { + id: 'skin-channel-content-body-message-name-hover-color', + name: '频道内容消息用户名字体Hover颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyItemMessageAtUserTextColor : { + id: 'skin-channel-content-body-item-message-at-user-text-color', + name: '频道内容消息@用户字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyMessageMenuIconBackground : { + id: 'skin-channel-content-body-message-menu-icon-background', + name: '频道内容消息菜单图标背景色', + type: 'background', + color: '', + }, + skinChannelContentBodyMessageMenuIconColor : { + id: 'skin-channel-content-body-message-menu-icon-color', + name: '频道内容消息菜单图标字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyMessageMenuIconHoverBackground : { + id: 'skin-channel-content-body-message-menu-icon-hover-background', + name: '频道内容消息菜单图标Hover背景色', + type: 'background', + color: '', + }, + skinChannelContentBodyMessageMenuIconHoverColor : { + id: 'skin-channel-content-body-message-menu-icon-hover-color', + name: '频道内容消息菜单图标Hover字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyReplyContentBlockColor : { + id: 'skin-channel-content-body-reply-content-block-color', + name: '频道内容回复内容块字体颜色', + type: 'color', + color: '', + }, + skinChannelContentBodyReplyContentBlockBackground : { + id: 'skin-channel-content-body-reply-content-block-background', + name: '频道内容回复内容块背景色', + type: 'background', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.channelSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.channelSkinList) + }, + /** + * 初始化频道更多面板皮肤设置 + */ + initChannelMoreSkinList: function(){ + let settingFieldsMap = { + skinChannelContentMoreBackground : { + id: 'skin-channel-content-more-background', + name: '频道内容更多按钮背景色', + type: 'background', + color: '', + }, + skinChannelContentMoreShadow : { + id: 'skin-channel-content-more-shadow', + name: '频道内容更多按钮阴影', + type: 'shadow', + color: '', + }, + skinChannelContentMoreListItemHoverColor : { + id: 'skin-channel-content-more-list-item-hover-color', + name: '频道内容更多列表项Hover字体颜色', + type: 'color', + color: '', + }, + skinChannelContentMoreListItemOperChannelNameColor : { + id: 'skin-channel-content-more-list-item-oper-channel-name-color', + name: '频道内容更多列表项操作频道名称字体颜色', + type: 'color', + color: '', + }, + skinChannelContentMoreShareToolItemHoverBackground : { + id: 'skin-channel-content-more-share-tool-item-hover-background', + name: '频道内容分享工具Hover背景色', + type: 'background', + color: '', + }, + skinChannelContentMoreListItemBorderColor: { + id: 'skin-channel-content-more-list-item-border-color', + name: '频道内容更多列表项边框颜色', + type: 'color', + color: '', + }, + skinChannelContentMoreListUserItemOperHoverBackground : { + id: 'skin-channel-content-more-list-user-item-oper-hover-background', + name: '频道内容更多列表用户操作Hover背景色', + type: 'background', + color: '', + }, + skinChannelContentMoreListUserItemOperHoverFillColor : { + id: 'skin-channel-content-more-list-user-item-oper-hover-fill-color', + name: '频道内容更多列表用户操作Hover字体颜色', + type: 'color', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.channelMoreSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.channelMoreSkinList) + }, + /** + * 初始化频道邀请界面皮肤设置 + */ + initChannelInviteSkinList: function(){ + let settingFieldsMap = { + skinChannelContentInviteSearchIColor : { + id: 'skin-channel-content-invite-search-i-color', + name: '频道内容邀请搜索图标字体颜色', + type: 'color', + color: '', + }, + skinChannelContentInviteSearchInputBackground : { + id: 'skin-channel-content-invite-search-input-background', + name: '频道内容邀请搜索框背景色', + type: 'background', + color: '', + }, + skinChannelContentInviteSearchInputColor : { + id: 'skin-channel-content-invite-search-input-color', + name: '频道内容邀请搜索框文字字体颜色', + type: 'color', + color: '', + }, + skinChannelContentInviteChooseListItemHoverBackground : { + id: 'skin-channel-content-invite-choose-list-item-hover-background', + name: '频道内容邀请选择列表项Hover背景色', + type: 'background', + color: '', + }, + skinChannelContentInviteChooseListEmptyColor : { + id: 'skin-channel-content-invite-choose-list-empty-color', + name: '频道内容邀请选择列表为空时的字体颜色', + type: 'color', + color: '', + } + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.channelInviteSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.channelInviteSkinList) + }, + /** + * 初始化频道公告皮肤设置 + */ + initChannelNoticeSkinList: function(){ + let settingFieldsMap = { + skinChannelContentNoticeEmptyColor : { + id: 'skin-channel-content-notice-empty-color', + name: '频道内容公告为空时的字体颜色', + type: 'color', + color: '', + }, + skinChannelContentNoticeItemHoverBackground : { + id: 'skin-channel-content-notice-item-hover-background', + name: '频道内容公告项目Hover背景色', + type: 'background', + color: '', + }, + skinChannelContentNoticeItemTimeColor : { + id: 'skin-channel-content-notice-item-time-color', + name: '频道内容公告项目时间字体颜色', + type: 'color', + color: '', + }, + skinChannelContentNoticeItemTitleColor : { + id: 'skin-channel-content-notice-item-title-color', + name: '频道内容公告项目标题字体颜色', + type: 'color', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.channelNoticeSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.channelNoticeSkinList) + }, + /** + * 初始化媒体音视频皮肤设置 + */ + initMediaSkinList: function(){ + let settingFieldsMap = { + skinMediaVideoOtherItemShadow : { + id: 'skin-media-video-other-item-shadow', + name: '媒体视频其他项目阴影', + type: 'shadow', + color: '', + }, + skinMediaVideoToolListSvgFillColor : { + id: 'skin-media-video-tool-list-svg-fill-color', + name: '媒体视频工具列表图标SVG颜色', + type: 'fill-color', + color: '', + }, + skinMediaVideoToolListSvgBackground : { + id: 'skin-media-video-tool-list-svg-background', + name: '媒体视频工具列表图标背景色', + type: 'background', + color: '', + }, + skinMediaVideoToolListSvgHoverBackground : { + id: 'skin-media-video-tool-list-svg-hover-background', + name: '媒体视频工具列表图标Hover背景色', + type: 'background', + color: '', + }, + skinMediaVideoToolListSvgHoverFillColor : { + id: 'skin-media-video-tool-list-svg-hover-fill-color', + name: '媒体视频工具列表图标HoverSVG字体颜色', + type: 'fill-color', + color: '', + }, + skinMediaVideoToolListYsqCloseBackground : { + id: 'skin-media-video-tool-list-ysq-close-background', + name: '媒体视频工具列表关闭按钮背景色', + type: 'background', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.mediaSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.mediaSkinList) + }, + /** + * 初始化联系人皮肤设置 + */ + initContactSkinList: function(){ + let settingFieldsMap = { + skinContactHeaderToolHoverShadow : { + id: 'skin-contact-header-tool-hover-shadow', + name: '联系人头部工具Hover阴影', + type: 'shadow', + color: '', + }, + skinContactHeaderToolSvgFillColor : { + id: 'skin-contact-header-tool-svg-fill-color', + name: '联系人头部工具图标SVG字体颜色', + type: 'fill-color', + color: '', + }, + skinContactHeaderToolSvgHoverFillColor : { + id: 'skin-contact-header-tool-svg-hover-fill-color', + name: '联系人头部工具图标HoverSVG字体颜色', + type: 'fill-color', + color: '', + }, + skinContactTopSearchIColor : { + id: 'skin-contact-top-search-i-color', + name: '联系人顶部搜索图标字体颜色', + type: 'color', + color: '', + }, + skinContactTopSearchInputBackground : { + id: 'skin-contact-top-search-input-background', + name: '联系人顶部搜索框背景色', + type: 'background', + color: '', + }, + skinContactTopSearchInputColor : { + id: 'skin-contact-top-search-input-color', + name: '联系人顶部搜索框文字字体颜色', + type: 'color', + color: '', + }, + skinContactListItemHoverBackground : { + id: 'skin-contact-list-item-hover-background', + name: '联系人列表项目Hover背景色', + type: 'background', + color: '', + }, + skinContactContentToolItemHoverBackground : { + id: 'skin-contact-content-tool-item-hover-background', + name: '联系人内容工具项目Hover背景色', + type: 'background', + color: '', + }, + skinContactContentOtherItemBadgeBackground : { + id: 'skin-contact-content-other-item-badge-background', + name: '联系人内容其他项目徽章背景色', + type: 'background', + color: '', + }, + skinContactContentItemMessageColor : { + id: 'skin-contact-content-item-message-color', + name: '联系人内容消息字体颜色', + type: 'color', + color: '', + }, + skinContactContentItemOtherStatusColor : { + id: 'skin-contact-content-item-other-status-color', + name: '联系人内容其他状态字体颜色', + type: 'color', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.contactSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.contactSkinList) + }, + /* + * 初始化登录皮肤设置 + */ + initLoginSkinList: function(){ + let settingFieldsMap = { + skinLoginButtonBackground : { + id: 'skin-login-button-background', + name: '登录按钮背景色', + type: 'background', + color: '', + }, + skinLoginListItemHoverBackground : { + id: 'skin-login-list-item-hover-background', + name: '登录列表项目Hover背景色', + type: 'background', + color: '', + }, + skinLoginListItemHoverColor : { + id: 'skin-login-list-item-hover-color', + name: '登录列表项目Hover字体颜色', + type: 'color', + color: '', + }, + skinLoginContentFormInputColor : { + id: 'skin-login-content-form-input-color', + name: '登录内容表单输入框字体颜色', + type: 'color', + color: '', + }, + skinLoginContentBodyBottomColor : { + id: 'skin-login-content-body-bottom-color', + name: '登录内容底部字体颜色', + type: 'color', + color: '', + }, + skinLoginContentBodyBottomHoverColor : { + id: 'skin-login-content-body-bottom-hover-color', + name: '登录内容底部Hover字体颜色', + type: 'color', + color: '', + }, + skinLoginContentBodyScanTitleColor : { + id: 'skin-login-content-body-scan-title-color', + name: '登录内容扫码标题字体颜色', + type: 'color', + color: '', + }, + skinLoginContentBodyScanTitleBackground : { + id: 'skin-login-content-body-scan-title-background', + name: '登录内容扫码标题背景色', + type: 'background', + color: '', + }, + skinLoginContentBodyScanCodeItemDisabledBackground : { + id: 'skin-login-content-body-scan-code-item-disabled-background', + name: '登录内容扫码项目禁用背景色', + type: 'background', + color: '', + }, + skinLoginContentBodyScanCodeItemFocusBorderColor: { + id: 'skin-login-content-body-scan-code-item-focus-border-color', + name: '登录内容扫码项目聚焦边框字体颜色', + type: 'color', + color: '', + }, + skinLoginEmailCodeBtnColor: { + id: 'skin-login-email-code-btn-color', + name: '登录邮箱验证码按钮字体颜色', + type: 'color', + color: '', + }, + skinLoginEmailCodeBtnDisabledBackground: { + id: 'skin-login-email-code-btn-disabled-background', + name: '登录邮箱验证码按钮禁用背景', + type: 'background', + color: '', + }, + skinLoginHelpMobileColor: { + id: 'skin-login-help-mobile-color', + name: '登录帮助手机字体颜色', + type: 'color', + color: '', + }, + skinLoginHelpMobileHoverColor: { + id: 'skin-login-help-mobile-hover-color', + name: '登录帮助手机Hover字体颜色', + type: 'color', + color: '', + }, + skinLoginBodyCleanColor: { + id: 'skin-login-body-clean-color', + name: '登录清理按钮字体颜色', + type: 'color', + color: '', + }, + skinLoginBodyCleanHoverColor: { + id: 'skin-login-body-clean-hover-color', + name: '登录清理按钮Hover字体颜色', + type: 'color', + color: '', + }, + skinLoginItemMobileIconBackground: { + id: 'skin-login-item-mobile-icon-background', + name: '登录手机图标背景色', + type: 'background', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.loginSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.loginSkinList) + }, + /** + * 初始化设置皮肤设置 + */ + initSettingSkinList: function(){ + let settingFieldsMap = { + skinSettingListItemHoverBackground: { + id: 'skin-setting-list-item-hover-background', + name: '设置列表项Hover背景色', + type: 'background', + color: '', + }, + skinSettingListItemActiveBackground: { + id: 'skin-setting-list-item-active-background', + name: '设置列表项激活背景色', + type: 'background', + color: '', + }, + skinSettingTopSearchIColor: { + id: 'skin-setting-top-search-i-color', + name: '设置顶部搜索图标字体颜色', + type: 'color', + color: '', + }, + skinSettingTopSearchInputBackground: { + id: 'skin-setting-top-search-input-background', + name: '设置顶部搜索输入背景色', + type: 'background', + color: '', + }, + skinSettingTopSearchInputColor: { + id: 'skin-setting-top-search-input-color', + name: '设置顶部搜索输入字体颜色', + type: 'color', + color: '', + }, + skinSettingContentTopExportBackground: { + id: 'skin-setting-content-top-export-background', + name: '设置内容顶部导出背景色', + type: 'background', + color: '', + }, + skinSettingContentTopExportFillColor: { + id: 'skin-setting-content-top-export-fill-color', + name: '设置内容顶部导出SVG字体颜色', + type: 'background', + color: '', + }, + skinSettingContentBlockBackground: { + id: 'skin-setting-content-block-background', + name: '设置内容块背景色', + type: 'background', + color: '', + }, + skinSettingContentBlockBadgeBackground: { + id: 'skin-setting-content-block-badge-background', + name: '设置内容块徽章背景色', + type: 'background', + color: '', + }, + skinSettingContentBlockBadgeColor: { + id: 'skin-setting-content-block-badge-color', + name: '设置内容块徽章字体颜色', + type: 'color', + color: '', + }, + skinSettingContentBlockBadgeHoverBackground: { + id: 'skin-setting-content-block-badge-hover-background', + name: '设置内容块徽章Hover背景色', + type: 'background', + color: '', + }, + skinSettingContentBlockBadgeHoverColor: { + id: 'skin-setting-content-block-badge-hover-color', + name: '设置内容块徽章Hover字体颜色', + type: 'color', + color: '', + }, + skinSettingContentBlockItemHoverBackground: { + id: 'skin-setting-content-block-item-hover-background', + name: '设置内容块项目Hover背景色', + type: 'background', + color: '', + }, + skinSettingContentBindIconHoverColor: { + id: 'skin-setting-content-bind-icon-hover-color', + name: '设置内容绑定图标Hover字体颜色', + type: 'color', + color: '', + }, + skinSettingContentBindIconTipFillColor: { + id: 'skin-setting-content-bind-icon-tip-fill-color', + name: '设置内容绑定图标提示SVG字体颜色', + type: 'fill-color', + color: '', + }, + skinSettingContentPreviewItemSvgBackground: { + id: 'skin-setting-content-preview-item-svg-background', + name: '设置配色预览SVG背景色', + type: 'background', + color: '', + }, + skinSettingContentPreviewItemSvgHoverBackground: { + id: 'skin-setting-content-preview-item-svg-hover-background', + name: '设置配色预览SVGHover背景色', + type: 'background', + color: '', + }, + skinSettingContentAccountBindEmailBtnBackground: { + id: 'skin-setting-content-account-bind-email-btn-background', + name: '设置内容账号绑定邮箱按钮背景色', + type: 'background', + color: '', + }, + skinSettingContentAccountBindEmailBtnColor: { + id: 'skin-setting-content-account-bind-email-btn-color', + name: '设置内容账号绑定邮箱按钮字体颜色', + type: 'color', + color: '', + }, + skinSettingContentAccountBindEmailInputBackground: { + id: 'skin-setting-content-account-bind-email-input-background', + name: '设置内容账号绑定邮箱输入框背景色', + type: 'background', + color: '', + }, + skinSettingContentAccountBindEmailInputColor: { + id: 'skin-setting-content-account-bind-email-input-color', + name: '设置内容账号绑定邮箱输入框字体颜色', + type: 'color', + color: '', + }, + skinSettingContentAccountBindEmailBtnDisabledBackground: { + id: 'skin-setting-content-account-bind-email-btn-disabled-background', + name: '设置内容账号绑定邮箱按钮禁用背景色', + type: 'background', + color: '', + }, + skinSettingContentAccountBindEmailBtnDisabledColor: { + id: 'skin-setting-content-account-bind-email-btn-disabled-color', + name: '设置内容账号绑定邮箱按钮禁用字体颜色', + type: 'color', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.settingSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.settingSkinList) + }, + /** + * 初始化频道历史消息皮肤设置 + */ + initChannelHistoryMessageSkinList: function(){ + let settingFieldsMap = { + skinChannelHistoryMessageTopSearchIColor: { + id: 'skin-channel-history-message-top-search-i-color', + name: '频道历史消息顶部搜索图标字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageTopSearchInputBackground: { + id: 'skin-channel-history-message-top-search-input-background', + name: '频道历史消息顶部搜索输入背景', + type: 'background', + color: '', + }, + skinChannelHistoryMessageTopSearchInputColor: { + id: 'skin-channel-history-message-top-search-input-color', + name: '频道历史消息顶部搜索输入字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageHeaderToolItemTitleColor: { + id: 'skin-channel-history-message-header-tool-item-title-color', + name: '频道历史消息头部工具项标题字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageSearchParamBadgeColor: { + id: 'skin-channel-history-message-search-param-badge-color', + name: '频道历史消息搜索参数徽章字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageSearchParamBadgeHoverBackground: { + id: 'skin-channel-history-message-search-param-badge-hover-background', + name: '频道历史消息搜索参数徽章Hover背景', + type: 'background', + color: '', + }, + skinChannelHistoryMessageSearchParamBadgeHoverColor: { + id: 'skin-channel-history-message-search-param-badge-hover-color', + name: '频道历史消息搜索参数徽章Hover字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageSearchParamBadgeActiveBackground: { + id: 'skin-channel-history-message-search-param-badge-active-background', + name: '频道历史消息搜索参数徽章激活背景', + type: 'background', + color: '', + }, + skinChannelHistoryMessageSearchParamBadgeActiveColor: { + id: 'skin-channel-history-message-search-param-badge-active-color', + name: '频道历史消息搜索参数徽章激活字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageListItemTimeColor: { + id: 'skin-channel-history-message-list-item-time-color', + name: '频道历史消息列表项时间字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageContentBodyMessageBackground: { + id: 'skin-channel-history-message-content-body-message-background', + name: '频道历史消息内容主体消息背景', + type: 'background', + color: '', + }, + skinChannelHistoryMessageContentBodyMessageColor: { + id: 'skin-channel-history-message-content-body-message-color', + name: '频道历史消息内容主体消息字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageFooterTotalColor: { + id: 'skin-channel-history-message-footer-total-color', + name: '频道历史消息页脚总计字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageFooterLoadMoreColor: { + id: 'skin-channel-history-message-footer-load-more-color', + name: '频道历史消息页脚加载更多字体颜色', + type: 'color', + color: '', + }, + skinChannelHistoryMessageFooterLoadMoreHoverColor: { + id: 'skin-channel-history-message-footer-load-more-hover-color', + name: '频道历史消息页脚加载更多Hover字体颜色', + type: 'color', + color: '', + } + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.channelHistoryMessageSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.channelHistoryMessageSkinList) + }, + /** + * 初始化表情弹窗皮肤设置 + */ + initFaceSkinList: function(){ + let settingFieldsMap = { + skinFaceItemHoverBackground: { + id: 'skin-face-item-hover-background', + name: '表情项Hover背景色', + type: 'background', + color: '', + }, + skinFaceItemHoverColor: { + id: 'skin-face-item-hover-color', + name: '表情项Hover字体颜色', + type: 'color', + color: '', + }, + skinFaceTabBackground: { + id: 'skin-face-tab-background', + name: '表情Tab背景色', + type: 'background', + color: '', + }, + skinFaceTabColor: { + id: 'skin-face-tab-color', + name: '表情Tab字体颜色', + type: 'color', + color: '', + }, + skinFaceTabHoverBackground: { + id: 'skin-face-tab-hover-background', + name: '表情TabHover背景色', + type: 'background', + color: '', + }, + skinFaceTabHoverColor: { + id: 'skin-face-tab-hover-color', + name: '表情TabHover字体颜色', + type: 'color', + color: '', + }, + skinFaceSearchInputBackground: { + id: 'skin-face-search-input-background', + name: '表情搜索输入背景色', + type: 'background', + color: '', + }, + skinFaceSearchInputColor: { + id: 'skin-face-search-input-color', + name: '表情搜索输入字体颜色', + type: 'color', + color: '', + }, + skinFaceContentTitleColor: { + id: 'skin-face-content-title-color', + name: '表情内容标题字体颜色', + type: 'color', + color: '', + }, + } + + // 过滤type=shadow类型,暂不支持 + let settingFields = Object.keys(settingFieldsMap).filter((key) => { + return settingFieldsMap[key].type !== 'shadow' + }) + + const propertyKeys = [] + settingFields.forEach((key) => { + propertyKeys.push({ + key: key, value: settingFieldsMap[key].id + }) + }) + // 初始值 + let propertyValues = window.tl_rtc_app_comm.getPropertyValues(propertyKeys) + + let skinList = [] + settingFields.forEach((key) => { + skinList.push({ + id: settingFieldsMap[key].id, + key: key, + name: settingFieldsMap[key].name, + color: propertyValues[key] + }) + }) + + this.faceSkinList = [...skinList] + this.settingFields.push(...settingFields) + + this.renderSkinColorPicker(this.faceSkinList) + }, + /** + * 获取设置字段数据 + * @returns + */ + getSettingFieldsData: function(skinListBatch, global){ + let that = this + let returnData = {} + + if(global){ + returnData['global'] = global + } + + if(!skinListBatch || skinListBatch.length === 0){ + return returnData + } + + skinListBatch.forEach((skinList) => { + that.settingFields.forEach((key) => { + let itemSkin = skinList.find((skin) => skin.key === key) + if(!itemSkin){ + return + } + returnData[key] = itemSkin.color + }) + }) + + return returnData + }, + /** + * 更新设置 + */ + updateSkinSetting(skinListBatch){ + this.$emit('update-user-config-skin', this.getSettingFieldsData(skinListBatch)); + }, + /** + * 更新设置 + */ + updateSkinSettingWithGlobal(skinListBatch){ + this.$emit('update-user-config-skin', this.getSettingFieldsData(skinListBatch, this.propsSkinSetting.global)); + }, + /** + * 切换全局皮肤 + */ + changeGlobalSkin: async function(type){ + this.propsSkinSetting.global = type; + if(type === 'light'){ + this.importSkinHandler(await this.getLightSkin()) + }else if(type === 'dark'){ + this.importSkinHandler(await this.getDarkSkin()) + }else if(type === 'system'){ + // this.listenAutoChangeSkin() + } + }, + /** + * 快速切换全局皮肤 + * @param {*} callback + */ + changeGlobalSkinQuick: async function({ + callback + }){ + if(this.propsSkinSetting.global === 'light'){ + await this.changeGlobalSkin('dark') + }else if(this.propsSkinSetting.global === 'dark'){ + await this.changeGlobalSkin('light') + } + + callback && callback() + }, + /** + * 监听系统自动切换皮肤处理函数 + * @param {*} event + */ + autoChangeSkinHandler: function(event){ + let prefersDarkMode = null + if(!event){ + let media = window.matchMedia('(prefers-color-scheme: dark)'); + prefersDarkMode = media.matches; + }else{ + prefersDarkMode = event.matches; + } + + if (prefersDarkMode) { + console.log('dark mode'); + }else{ + console.log('light mode'); + } + + if(this.propsSkinSetting.global === 'system'){ + this.listenAutoChangeSkin() + } + }, + /** + * 监听系统自动切换皮肤 + */ + listenAutoChangeSkin: function(){ + let that = this; + if(this.hasListenedSkinChange){ + return + } + + let media = window.matchMedia('(prefers-color-scheme: dark)'); + + if (typeof media.addEventListener === 'function') { + media.addEventListener('change', function(event){ + that.autoChangeSkinHandler(event) + }); + + that.hasListenedSkinChange = true + } else if (typeof media.addListener === 'function') { + media.addListener(function(event){ + that.autoChangeSkinHandler(event) + }); + that.hasListenedSkinChange = true + } + }, + /** + * 渲染皮肤颜色选择器 + * @param {Array} skinList 皮肤列表 + * @param {Boolean} useDefault 是否使用默认颜色 + */ + renderSkinColorPicker: function(skinList, useDefault = true){ + let that = this; + skinList.forEach(item => { + if(useDefault){ + // 优先使用用户设置的字体颜色 + let color = this.propsSkinSetting[item.key] + if(color !== '' && color !== undefined && color !== null) { + item.color = color; + document.documentElement.style.setProperty(`--${item.id}`, color); + } + }else{ + // 否则使用默认的 + if(item.color !== '' && item.color !== undefined && item.color !== null) { + document.documentElement.style.setProperty(`--${item.id}`, item.color); + } + } + }) + + this.$nextTick(() => { + skinList.forEach(item => { + colorpicker.render({ + elem: '#' + item.id, + size: 'xs', + predefine: true, + color: item.color, + alpha: true, + colors: [ + '#959595', '#FFFFFF', '#000000', '#FF6900', + '#FCB900', '#7BDCB5', '#00D084', + '#8ED1FC', '#0693E3', '#ABB8C3', '#F78DA7' + ], + change: function(color){ + const isLightColor = window.tl_rtc_app_comm.isLightColor(color); + + item.color = color; + document.documentElement.style.setProperty(`--${item.id}`, color); + const domId = document.getElementById(item.id); + // 找到domId下的i标签设置color + if(domId){ + const iDom = domId.querySelector('i'); + if(iDom){ + iDom.style.color = isLightColor ? '#000000' : '#ffffff'; + } + } + }, + done: function(color){ + that.propsSkinSetting[item.key] = color + that.updateSkinSetting([skinList]); + }, + }); + }) + }) + + this.$forceUpdate(); + }, + /** + * 获取浅色主题皮肤 + */ + getLightSkin: async function(){ + let params = { + skin: 'light' + } + if(!window.tl_rtc_app_comm.checkRequestParams(params)){ + this.popErrorMsg("请求参数非法") + return + } + + const { data: skinRes } = await this.tlRequest({ + url: '/api/web/config-skin/get-detail', + method: 'get', + useCache: true, + params: params, + cacheTime: 10 * 1000 + }) + if(!skinRes.success){ + this.popErrorMsg(skinRes.msg) + return + } + + let skinData = skinRes.data + return skinData.replace(/\s/g, '') + }, + /** + * 获取深色主题皮肤 + */ + getDarkSkin: async function(){ + let params = { + skin: 'dark' + } + if(!window.tl_rtc_app_comm.checkRequestParams(params)){ + this.popErrorMsg("请求参数非法") + return + } + + const { data: skinRes } = await this.tlRequest({ + url: '/api/web/config-skin/get-detail', + method: 'get', + useCache: true, + params: params, + cacheTime: 10 * 1000 + }) + if(!skinRes.success){ + this.popErrorMsg(skinRes.msg) + return + } + + let skinData = skinRes.data + return skinData.replace(/\s/g, '') + }, + /** + * 导出当前皮肤设置 + */ + exportSkinSetting: function(){ + let that = this; + let contentJson = JSON.stringify({ + commSkinMap: this.getSettingFieldsData([this.commSkinList]), + sidebarSkinMap: this.getSettingFieldsData([this.sidebarSkinList]), + channelSkinMap: this.getSettingFieldsData([this.channelSkinList]), + contactSkinMap: this.getSettingFieldsData([this.contactSkinList]), + loginSkinMap: this.getSettingFieldsData([this.loginSkinList]), + settingSkinMap: this.getSettingFieldsData([this.settingSkinList]), + + channelMoreSkinMap: this.getSettingFieldsData([this.channelMoreSkinList]), + channelInviteSkinMap: this.getSettingFieldsData([this.channelInviteSkinList]), + channelNoticeSkinMap: this.getSettingFieldsData([this.channelNoticeSkinList]), + quickOperSkinMap: this.getSettingFieldsData([this.quickOperSkinList]), + mediaSkinMap: this.getSettingFieldsData([this.mediaSkinList]), + faceSkinMap: this.getSettingFieldsData([this.faceSkinList]), + layerMsgSkinMap: this.getSettingFieldsData([this.layerMsgSkinList]), + channelHistoryMessageSkinMap: this.getSettingFieldsData([this.channelHistoryMessageSkinList]), + }) + + let content = Base64.encode(contentJson) + window.tl_rtc_app_comm.copyTxt('setting-skin-export', content, function(){ + that.popSuccessMsg('皮肤设置已复制到剪贴板'); + }) + }, + /** + * 导入皮肤设置 + */ + importSkinSetting: function(){ + let that = this; + layer.prompt({ + formType: 2, + title: "导入皮肤设置", + btn : ['确定', '取消'], + value: "", + maxlength: 100000, + shadeClose : true, + }, async function (value, index, elem) { + let ok = that.importSkinHandler(value) + if(!ok){ + return false + } + + layer.close(index) + return false + }); + }, + /** + * 导入皮肤设置处理 + * @param {*} skin + * @returns + */ + importSkinHandler: function(skin){ + let content = '' + try{ + content = JSON.parse(Base64.decode(skin)) + }catch(e){ + this.popErrorMsg('皮肤设置格式错误: 解析错误'); + return false + } + + if(!content){ + this.popErrorMsg('皮肤设置格式错误: 内容错误'); + return false + } + + const { + commSkinMap, + + sidebarSkinMap, + channelSkinMap, + contactSkinMap, + loginSkinMap, + settingSkinMap, + layerMsgSkinMap, + quickOperSkinMap, + mediaSkinMap, + faceSkinMap, + channelHistoryMessageSkinMap, + channelMoreSkinMap, + channelInviteSkinMap, + channelNoticeSkinMap, + } = content + + let updateSkinBatch = [] + + if(commSkinMap && Object.keys(commSkinMap).length > 0){ + this.commSkinList.forEach((item) => { + item.color = commSkinMap[item.key] + }) + this.renderSkinColorPicker(this.commSkinList, false) + updateSkinBatch.push(this.commSkinList) + } + + if(sidebarSkinMap && Object.keys(sidebarSkinMap).length > 0){ + this.sidebarSkinList.forEach((item) => { + item.color = sidebarSkinMap[item.key] + }) + this.renderSkinColorPicker(this.sidebarSkinList, false) + updateSkinBatch.push(this.sidebarSkinList) + } + + if(channelSkinMap && Object.keys(channelSkinMap).length > 0){ + this.channelSkinList.forEach((item) => { + item.color = channelSkinMap[item.key] + }) + this.renderSkinColorPicker(this.channelSkinList, false) + updateSkinBatch.push(this.channelSkinList) + } + + if(contactSkinMap && Object.keys(contactSkinMap).length > 0){ + this.contactSkinList.forEach((item) => { + item.color = contactSkinMap[item.key] + }) + this.renderSkinColorPicker(this.contactSkinList, false) + updateSkinBatch.push(this.contactSkinList) + } + + if(loginSkinMap && Object.keys(loginSkinMap).length > 0){ + this.loginSkinList.forEach((item) => { + item.color = loginSkinMap[item.key] + }) + this.renderSkinColorPicker(this.loginSkinList, false) + updateSkinBatch.push(this.loginSkinList) + } + + if(settingSkinMap && Object.keys(settingSkinMap).length > 0){ + this.settingSkinList.forEach((item) => { + item.color = settingSkinMap[item.key] + }) + this.renderSkinColorPicker(this.settingSkinList, false) + updateSkinBatch.push(this.settingSkinList) + } + + if(layerMsgSkinMap && Object.keys(layerMsgSkinMap).length > 0){ + this.layerMsgSkinList.forEach((item) => { + item.color = layerMsgSkinMap[item.key] + }) + this.renderSkinColorPicker(this.layerMsgSkinList, false) + updateSkinBatch.push(this.layerMsgSkinList) + } + + if(quickOperSkinMap && Object.keys(quickOperSkinMap).length > 0){ + this.quickOperSkinList.forEach((item) => { + item.color = quickOperSkinMap[item.key] + }) + this.renderSkinColorPicker(this.quickOperSkinList, false) + updateSkinBatch.push(this.quickOperSkinList) + } + + if(mediaSkinMap && Object.keys(mediaSkinMap).length > 0){ + this.mediaSkinList.forEach((item) => { + item.color = mediaSkinMap[item.key] + }) + this.renderSkinColorPicker(this.mediaSkinList, false) + updateSkinBatch.push(this.mediaSkinList) + } + + if(faceSkinMap && Object.keys(faceSkinMap).length > 0){ + this.faceSkinList.forEach((item) => { + item.color = faceSkinMap[item.key] + }) + this.renderSkinColorPicker(this.faceSkinList, false) + updateSkinBatch.push(this.faceSkinList) + } + + if(channelHistoryMessageSkinMap && Object.keys(channelHistoryMessageSkinMap).length > 0){ + this.channelHistoryMessageSkinList.forEach((item) => { + item.color = channelHistoryMessageSkinMap[item.key] + }) + this.renderSkinColorPicker(this.channelHistoryMessageSkinList, false) + updateSkinBatch.push(this.channelHistoryMessageSkinList) + } + + if(channelMoreSkinMap && Object.keys(channelMoreSkinMap).length > 0){ + this.channelMoreSkinList.forEach((item) => { + item.color = channelMoreSkinMap[item.key] + }) + this.renderSkinColorPicker(this.channelMoreSkinList, false) + updateSkinBatch.push(this.channelMoreSkinList) + } + + if(channelInviteSkinMap && Object.keys(channelInviteSkinMap).length > 0){ + this.channelInviteSkinList.forEach((item) => { + item.color = channelInviteSkinMap[item.key] + }) + this.renderSkinColorPicker(this.channelInviteSkinList, false) + updateSkinBatch.push(this.channelInviteSkinList) + } + + if(channelNoticeSkinMap && Object.keys(channelNoticeSkinMap).length > 0){ + this.channelNoticeSkinList.forEach((item) => { + item.color = channelNoticeSkinMap[item.key] + }) + this.renderSkinColorPicker(this.channelNoticeSkinList, false) + updateSkinBatch.push(this.channelNoticeSkinList) + } + + if(updateSkinBatch.length > 0){ + this.updateSkinSettingWithGlobal(updateSkinBatch); + } + + return true + }, + mouseEnter: function(event, msg){ + if(this.propsIsMobile){ + return + } + tl_rtc_app_comm.mouseEnterTips({ + id: event.target.id, + text: msg, + position: 'top' + }); + }, + mouseLeave: function(){ + if(this.propsIsMobile){ + return + } + tl_rtc_app_comm.mouseLeaveTips(); + }, + }, + mounted() { + window.form.render(); + + this.initCommSkinList() + this.initSidebarSkinList() + this.initChannelSkinList() + this.initContactSkinList() + this.initLoginSkinList() + this.initSettingSkinList() + + this.initLayerMsgSkinList() + this.initQuickOperSkinList() + this.initMediaSkinList() + this.initChannelHistoryMessageSkinList() + this.initChannelMoreSkinList() + this.initChannelInviteSkinList() + this.initChannelNoticeSkinList() + this.initFaceSkinList() + + // 处理主题色 + this.autoChangeSkinHandler() + + this.$forceUpdate(); + }, + created(){ + // 监听全局皮肤变化 + window.subModule.$on('sub-module-setting-skin-change-global', this.changeGlobalSkinQuick); + }, + watch: { + + }, + component: { + ContentLoader: contentLoaders.ContentLoader, + FacebookLoader: contentLoaders.FacebookLoader, + CodeLoader: contentLoaders.CodeLoader, + BulletListLoader: contentLoaders.BulletListLoader, + InstagramLoader: contentLoaders.InstagramLoader, + ListLoader: contentLoaders.ListLoader, + }, + template: ` +
              +
              +
              + 皮肤相关设置 +
              +
              + + +
              +
              + +
              +
              +
              主题设置
              +
              +
              +
              浅色主题
              + +
              + +
              +
              深色主题
              + +
              + + +
              +
              + +
              +
              + 自定义配色-全局 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-侧边栏 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-聊天界面 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-通讯录 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-设置中心 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-登录界面 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-表情选择弹窗 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-快捷面板 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-频道历史消息面板 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-频道更多面板 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-频道邀请面板 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + 自定义配色-频道公告面板 + +
              +
              +
              +
              + {{item.name}} +
              +
              +
              + {{item.color}} +
              +
              +
              +
              +
              + +
              +
              + ` +} + +window.tl_rtc_app_module_setting_content_skin = tl_rtc_app_module_setting_content_skin \ No newline at end of file diff --git a/web-v2-res/js/module/setting/list.js b/web-res/js/module/setting/list.js similarity index 100% rename from web-v2-res/js/module/setting/list.js rename to web-res/js/module/setting/list.js diff --git a/web-v2-res/js/module/setting/setting.js b/web-res/js/module/setting/setting.js similarity index 79% rename from web-v2-res/js/module/setting/setting.js rename to web-res/js/module/setting/setting.js index fb81b1c..590bdbd 100644 --- a/web-v2-res/js/module/setting/setting.js +++ b/web-res/js/module/setting/setting.js @@ -63,6 +63,15 @@ const tl_rtc_app_module_setting = { data : function(){ return { settingList: [ + { + name : '通用设置', + svg: '#tl-rtc-app-icon-caidan', + type : 'normal', + show : true, + handler: function(){ + this.$emit('right-module-change', 'content') + } + }, { name : '帐号设置', svg: '#tl-rtc-app-icon-zhanghao', @@ -72,6 +81,24 @@ const tl_rtc_app_module_setting = { this.$emit('right-module-change', 'content') } }, + { + name : '消息设置', + svg: '#tl-rtc-app-icon-xiaoxi1', + type : 'message', + show : true, + handler: function(){ + this.$emit('right-module-change', 'content') + } + }, + { + name : '皮肤设置', + svg: '#tl-rtc-app-icon-pifu', + type : 'skin', + show : true, + handler: function(){ + this.$emit('right-module-change', 'content') + } + }, { name : '其他设置', svg: '#tl-rtc-app-icon-qita', diff --git a/web-v2-res/js/module/sidebar/bottom.js b/web-res/js/module/sidebar/bottom.js similarity index 76% rename from web-v2-res/js/module/sidebar/bottom.js rename to web-res/js/module/sidebar/bottom.js index 1affdeb..dba699b 100644 --- a/web-v2-res/js/module/sidebar/bottom.js +++ b/web-res/js/module/sidebar/bottom.js @@ -73,6 +73,27 @@ const tl_rtc_app_module_sidebar_bottom = { } }, + mounted() { + let that = this + + if(!that.propsIsMobile){ + layer.tips("官网优惠进行中~", '#sub-tool-about', { + skin: 'tl-rtc-app-layer-tips', + tips: [ 2, '#50393d' ], + time: 1000 * 3 + }); + } + + setInterval(() => { + if(!that.propsIsMobile){ + layer.tips("官网优惠进行中~", '#sub-tool-about', { + skin: 'tl-rtc-app-layer-tips', + tips: [ 2, '#50393d' ], + time: 1000 * 3 + }); + } + }, 15 * 1000); + }, template: `
              +
              +
              +
              +
              +
              +
              + + + {{tool.unread > 99 ? '99+' : tool.unread}} + +
              +
              {{tool.title}}
              +
              +
              +
              +
              + ` +} + +window.tl_rtc_app_module_sidebar_hovertips = tl_rtc_app_module_sidebar_hovertips; diff --git a/web-v2-res/js/module/sidebar/logo.js b/web-res/js/module/sidebar/logo.js similarity index 100% rename from web-v2-res/js/module/sidebar/logo.js rename to web-res/js/module/sidebar/logo.js diff --git a/web-v2-res/js/module/sidebar/sidebar.js b/web-res/js/module/sidebar/sidebar.js similarity index 57% rename from web-v2-res/js/module/sidebar/sidebar.js rename to web-res/js/module/sidebar/sidebar.js index add7c01..8638e41 100644 --- a/web-v2-res/js/module/sidebar/sidebar.js +++ b/web-res/js/module/sidebar/sidebar.js @@ -77,10 +77,26 @@ const tl_rtc_app_module_sidebar = { this.$forceUpdate() }, immediate: true + }, + mainTools: { + handler: function(val){ + + }, + deep: true, + }, + hiddenTools: { + handler: function(val){ + + }, + deep: true, } }, data : function(){ return { + maxVisibleTools: 20, // 最大可见工具数量 + hiddenTools: [], // 被隐藏的工具 + toolsOriginalState: {}, // 保存工具项的原始显示状态 + showHovertips: false, // 控制hovertips的显示 mainTools: [ { svg : '#tl-rtc-app-icon-xiaoxi', @@ -88,7 +104,7 @@ const tl_rtc_app_module_sidebar = { active: this.leftModule === 'channel', name: 'channel', unread: 0, - show: true, + show: false, handler: this.handlerChannel }, { @@ -97,7 +113,7 @@ const tl_rtc_app_module_sidebar = { active: this.leftModule === 'contact', name: 'contact', unread: 0, - show: true, + show: false, handler: this.handlerContact }, { @@ -108,10 +124,21 @@ const tl_rtc_app_module_sidebar = { unread: 0, show: true, handler: this.handlerSetting + }, + { + svg : '#tl-rtc-app-icon-gengduo', + title : '更多', + active: false, + name: 'more', + unread: 0, + show: false, + handler: this.handlerMoreTools, + hover: this.handlerMoreTools, } ], subTools : [ { + id: 'sub-tool-about', svg : '#tl-rtc-app-icon-wode-guanyuwomen', title : '关于我们', name: 'about', @@ -119,6 +146,7 @@ const tl_rtc_app_module_sidebar = { handler: this.aboutHandler }, { + id: 'sub-tool-logout', svg : '#tl-rtc-app-icon-tuichu', title : '退出登录', name: 'logout', @@ -161,6 +189,110 @@ const tl_rtc_app_module_sidebar = { handlerSetting: function(){ this.$emit('left-module-change', 'setting') }, + /** + * 点击更多按钮,显示隐藏的工具 + */ + handlerMoreTools: function(){ + this.showHovertips = true; + }, + /** + * 隐藏hovertips + */ + hideHovertips: function() { + this.showHovertips = false; + }, + /** + * 调整工具可见性 + */ + adjustToolsVisibility: function(){ + const sidebarElement = document.querySelector('.tl-rtc-app-left-sidebar'); + if (!sidebarElement) return; + + // 获取可用高度 + const sidebarHeight = sidebarElement.clientHeight; + const logoHeight = document.querySelector('.tl-rtc-app-left-sidebar-logo').clientHeight || 60; + const bottomToolsHeight = document.querySelector('.tl-rtc-app-left-sidebar-bottom').clientHeight || 100; + const toolItemHeight = 60; // 预估每个工具项的高度 + const padding = 40; // 预留一些间距 + + // 计算可显示的工具数量 + const availableHeight = sidebarHeight - logoHeight - bottomToolsHeight - padding; + const visibleCount = Math.floor(availableHeight / toolItemHeight); + const maxVisible = Math.min(visibleCount, this.maxVisibleTools); + + // 筛选出应该显示的工具(根据用户设置) + const toolsShouldBeVisible = this.mainTools.filter(tool => { + // 保存每个工具的原始显示状态(基于用户设置) + if (tool.name !== 'more') { + this.toolsOriginalState[tool.name] = this.getUserToolSetting(tool.name); + } + return this.getUserToolSetting(tool.name) && tool.name !== 'more'; + }); + + // 如果可见工具多于可显示数量,则需要显示"更多"按钮 + if (toolsShouldBeVisible.length > maxVisible) { + // 更新显示状态 + this.hiddenTools = []; + + // 先重置所有工具的显示状态为其原始设置值 + this.mainTools.forEach(tool => { + if (tool.name !== 'more') { + tool.show = this.toolsOriginalState[tool.name] || false; + } else { + tool.show = false; // 默认不显示更多按钮 + } + }); + + // 然后隐藏超出显示范围的工具 + toolsShouldBeVisible.forEach((tool, index) => { + const original = this.mainTools.find(t => t.name === tool.name); + if (original) { + if (index >= maxVisible) { + // 超出部分加入隐藏工具列表并设为不可见 + original.show = false; + this.hiddenTools.push(original); + } + } + }); + + // 确保"更多"按钮可见 + const moreButton = this.mainTools.find(t => t.name === 'more'); + if (moreButton) { + moreButton.show = true; + } + } else { + // 空间足够,全部恢复为原始设置的显示状态 + this.mainTools.forEach(tool => { + if (tool.name !== 'more') { + tool.show = this.toolsOriginalState[tool.name] || false; + } else { + tool.show = false; // 不需要显示更多按钮 + } + }); + this.hiddenTools = []; + } + + this.$forceUpdate(); + }, + + /** + * 获取用户为工具设置的显示状态 + */ + getUserToolSetting: function(toolName) { + if (!this.propsUser || !this.propsUser.normalSetting) return false; + + switch(toolName) { + case 'channel': + return this.propsUser.normalSetting.sidebarChannelOpen; + case 'contact': + return this.propsUser.normalSetting.sidebarContactOpen; + case 'setting': + return true; // 设置按钮默认显示 + default: + return false; + } + }, + /** * 更新未读数量 * @param {*} name @@ -190,7 +322,7 @@ const tl_rtc_app_module_sidebar = { * @returns */ aboutHandler: function(){ - window.open('https://app.iamtsm.cn/website.html', '_blank') + window.open('/website/index.html', '_blank') }, /** * 退出登录 @@ -240,9 +372,24 @@ const tl_rtc_app_module_sidebar = { } }) } + + // 判断自定义导航栏开关 + this.mainTools.forEach(item => { + if(item.name === 'channel'){ + item.show = this.propsUser.normalSetting.sidebarChannelOpen + } + if(item.name === 'contact'){ + item.show = this.propsUser.normalSetting.sidebarContactOpen + } + + // 保存每个工具的原始显示状态(基于用户设置) + if (item.name !== 'more') { + this.toolsOriginalState[item.name] = item.show; + } + }) this.mainTools = [...this.mainTools] - + callback && callback() } }, @@ -258,14 +405,26 @@ const tl_rtc_app_module_sidebar = { elemId: '.tl-rtc-app-left-sidebar', eventList: ['contextmenu', 'press'], menuIdList: this.propsIsLogin? [ - 'refresh', 'switchAccount', 'theme', 'personal', - 'quickPanel', 'switchAccount', 'setting', 'logout', + 'refresh', 'theme', 'quickPanel', 'logout', ] : [ 'refresh', ], extra: {} } }) + + // 监听页面高度变化 + const resizeObserver = new ResizeObserver(entries => { + if(that.isMobile){ + return + } + this.adjustToolsVisibility(); + }); + + const sidebarElement = document.querySelector('.tl-rtc-app-left-sidebar'); + if (sidebarElement) { + resizeObserver.observe(sidebarElement); + } }, created(){ // 监听未读消息 @@ -281,6 +440,7 @@ const tl_rtc_app_module_sidebar = { 'tl_rtc_app_module_sidebar_logo' : window.tl_rtc_app_module_sidebar_logo, 'tl_rtc_app_module_sidebar_tool' : window.tl_rtc_app_module_sidebar_tool, 'tl_rtc_app_module_sidebar_bottom': window.tl_rtc_app_module_sidebar_bottom, + 'tl_rtc_app_module_sidebar_hovertips': window.tl_rtc_app_module_sidebar_hovertips, }, template: `
              @@ -323,6 +483,14 @@ const tl_rtc_app_module_sidebar = { @right-module-change="rightModuleChange" > + + +
              ` } diff --git a/web-v2-res/js/module/sidebar/tool.js b/web-res/js/module/sidebar/tool.js similarity index 95% rename from web-v2-res/js/module/sidebar/tool.js rename to web-res/js/module/sidebar/tool.js index 3ba4077..ce906cd 100644 --- a/web-v2-res/js/module/sidebar/tool.js +++ b/web-res/js/module/sidebar/tool.js @@ -98,18 +98,30 @@ const tl_rtc_app_module_sidebar_tool = { * @param {*} tool */ activeTool : function(tool){ + // 如果是更多按钮,不改变active状态,直接调用handler + if(tool.name === 'more') { + tool.handler && tool.handler.call(this); + return; + } + this.tools.map(item => { item.active = false; }) tool.active = true; - tool.handler && tool.handler.call(this) + tool.handler && tool.handler.call(this); }, mouseEnter: function(event, item){ if(this.propsIsMobile){ return } + + if(item.hover){ + item.hover() + return + } + tl_rtc_app_comm.mouseEnterTips({ id: event.target.id, text: item.title, diff --git a/web-v2-res/js/tl_rtc_app.js b/web-res/js/tl_rtc_app.js similarity index 88% rename from web-v2-res/js/tl_rtc_app.js rename to web-res/js/tl_rtc_app.js index 52086fc..bbc1cde 100644 --- a/web-v2-res/js/tl_rtc_app.js +++ b/web-res/js/tl_rtc_app.js @@ -21,73 +21,6 @@ let load_tl_rtc_app_js = async function(){ tl_rtc_app_lang } = window - let { data : loginStateRes } = await axios.get("/api/web/user-login/login-state"); - let isLogin = loginStateRes.success - let username = loginStateRes.data.loginUsername - let userId = loginStateRes.data.loginUserId - let userAvatar = loginStateRes.data.loginUserAvatar - let userCompanyId = loginStateRes.data.loginUserCompanyId - let userEmail = loginStateRes.data.loginUserEmail - let userMobile = loginStateRes.data.loginUserMobile - let userRoleId = loginStateRes.data.loginUserRoleId - let loginTime = loginStateRes.data.loginTime - let companyName = loginStateRes.data.loginUserCompanyName - let token = loginStateRes.data.token - let normalSetting = '' - let accountSetting = '' - let messageSetting = '' - let authoritySetting = '' - let skinSetting = '' - let otherSetting = '' - let components = {} - - if(isLogin){ - window.localStorage.setItem('token', token) - - let { data : userConfigRes } = await axios.get('/api/web/user-config/get-user-config') - accountSetting = userConfigRes.data.account - messageSetting = userConfigRes.data.message - otherSetting = userConfigRes.data.other - // 是否使用自定义wss地址 - customWss = otherSetting.customWss || "" - if(customWss && window.tl_rtc_app_comm.isWssHost(customWss)){ - wsHost = customWss; - } - // 浏览器通知 - webNotify = messageSetting.webNotify - // 消息红点数量提示 - messageDot = messageSetting.messageDot - - components = { - // 侧边/底部 - 'tl_rtc_app_module_sidebar': window.tl_rtc_app_module_sidebar, - // 登录 - 'tl_rtc_app_module_login': window.tl_rtc_app_module_login, - 'tl_rtc_app_module_login_content': window.tl_rtc_app_module_login_content, - // 空白 - 'tl_rtc_app_module_blank_content': window.tl_rtc_app_module_blank_content, - // 联系人 - 'tl_rtc_app_module_contact': window.tl_rtc_app_module_contact, - 'tl_rtc_app_module_contact_content': window.tl_rtc_app_module_contact_content, - // 频道 - 'tl_rtc_app_module_channel': window.tl_rtc_app_module_channel, - 'tl_rtc_app_module_channel_content': window.tl_rtc_app_module_channel_content, - // 设置 - 'tl_rtc_app_module_setting': window.tl_rtc_app_module_setting, - 'tl_rtc_app_module_setting_content': window.tl_rtc_app_module_setting_content, - } - }else{ - components = { - // 侧边/底部 - 'tl_rtc_app_module_sidebar': window.tl_rtc_app_module_sidebar, - // 登录 - 'tl_rtc_app_module_login': window.tl_rtc_app_module_login, - 'tl_rtc_app_module_login_content': window.tl_rtc_app_module_login_content, - // 空白 - 'tl_rtc_app_module_blank_content': window.tl_rtc_app_module_blank_content, - } - } - // 注册全局方法 Vue.prototype.emitSubModuleEvent = async function ({ @@ -152,6 +85,80 @@ let load_tl_rtc_app_js = async function(){ }) } + let { data : loginStateRes } = await axios.get("/api/web/user-login/login-state"); + let isLogin = loginStateRes.success + let username = loginStateRes.data.loginUsername + let userId = loginStateRes.data.loginUserId + let userAvatar = loginStateRes.data.loginUserAvatar + let userCompanyId = loginStateRes.data.loginUserCompanyId + let userEmail = loginStateRes.data.loginUserEmail + let userMobile = loginStateRes.data.loginUserMobile + let userRoleId = loginStateRes.data.loginUserRoleId + let loginTime = loginStateRes.data.loginTime + let companyName = loginStateRes.data.loginUserCompanyName + let token = loginStateRes.data.token + let normalSetting = '' + let accountSetting = '' + let messageSetting = '' + let skinSetting = '' + let otherSetting = '' + let components = {} + + if(isLogin){ + window.localStorage.setItem('token', token) + + let { data : userConfigRes } = await Vue.prototype.tlRequest({ + url: '/api/web/user-config/get-user-config', + method: 'get', + useCache: false, + }) + normalSetting = userConfigRes.data.normal + accountSetting = userConfigRes.data.account + messageSetting = userConfigRes.data.message + skinSetting = userConfigRes.data.skin + otherSetting = userConfigRes.data.other + // 默认首页 + homePage = normalSetting.homePage || 'channel' + // 是否使用自定义wss地址 + customWss = otherSetting.customWss || "" + if(customWss && window.tl_rtc_app_comm.isWssHost(customWss)){ + wsHost = customWss; + } + // 浏览器通知 + webNotify = messageSetting.webNotify + // 消息红点数量提示 + messageDot = messageSetting.messageDot + + components = { + // 侧边/底部 + 'tl_rtc_app_module_sidebar': window.tl_rtc_app_module_sidebar, + // 登录 + 'tl_rtc_app_module_login': window.tl_rtc_app_module_login, + 'tl_rtc_app_module_login_content': window.tl_rtc_app_module_login_content, + // 空白 + 'tl_rtc_app_module_blank_content': window.tl_rtc_app_module_blank_content, + // 联系人 + 'tl_rtc_app_module_contact': window.tl_rtc_app_module_contact, + 'tl_rtc_app_module_contact_content': window.tl_rtc_app_module_contact_content, + // 频道 + 'tl_rtc_app_module_channel': window.tl_rtc_app_module_channel, + 'tl_rtc_app_module_channel_content': window.tl_rtc_app_module_channel_content, + // 设置 + 'tl_rtc_app_module_setting': window.tl_rtc_app_module_setting, + 'tl_rtc_app_module_setting_content': window.tl_rtc_app_module_setting_content, + } + }else{ + components = { + // 侧边/底部 + 'tl_rtc_app_module_sidebar': window.tl_rtc_app_module_sidebar, + // 登录 + 'tl_rtc_app_module_login': window.tl_rtc_app_module_login, + 'tl_rtc_app_module_login_content': window.tl_rtc_app_module_login_content, + // 空白 + 'tl_rtc_app_module_blank_content': window.tl_rtc_app_module_blank_content, + } + } + window.tl_rtc_app = new Vue({ el: '#tl-rtc-app', data: function(){ @@ -171,6 +178,18 @@ let load_tl_rtc_app_js = async function(){ socket } }) + this.emitSubModuleEvent({ + event: "component-rtc-init-socket", + data: { + socket, rtcConfig + } + }) + this.emitSubModuleEvent({ + event: "component-video-init-socket", + data: { + socket + } + }) } let langMode = 'zh' @@ -185,6 +204,8 @@ let load_tl_rtc_app_js = async function(){ logo : logo, // 打印logo version : version,// 项目当前版本 socket: socket, // socket + config: rtcConfig, // rtc配置 + options: options, // rtc配置 wsHost : wsHost, // ws地址 isLogin : isLogin, // 是否登录 user: { @@ -197,15 +218,17 @@ let load_tl_rtc_app_js = async function(){ userRoleId: userRoleId, // 用户角色id loginTime: loginTime, // 登录时间 + normalSetting: normalSetting, // 用户通用设置 accountSetting: accountSetting, // 用户账号设置 messageSetting: messageSetting, // 用户消息设置 + skinSetting: skinSetting, // 用户皮肤设置 otherSetting: otherSetting, // 用户其他设置 token: token, // 用户token }, company: { name : companyName || 'TL-RTC-APP' // 组织名称 }, - leftModule : isLogin ? 'channel' : 'login', // 左侧默认模块 + leftModule : isLogin ? homePage : 'login', // 左侧默认模块 rightModule : isLogin ? 'blank' : 'blank', // 右侧默认模块, showRightModule: false, // 是否显示右侧模块 isMobile: tl_rtc_app_comm.isMobile(), // 是否移动端 @@ -230,7 +253,7 @@ let load_tl_rtc_app_js = async function(){ this.leftModule = module; this.rightModule = 'blank'; - console.log("leftModuleChange", module) + // console.log("leftModuleChange", module) }, /** * 右侧模块切换 @@ -239,7 +262,7 @@ let load_tl_rtc_app_js = async function(){ rightModuleChange: function(module){ this.rightModule = module; - console.log("rightModuleChange", module) + // console.log("rightModuleChange", module) }, /** * 控制展示左右模块是否可见 - 移动端 @@ -258,7 +281,7 @@ let load_tl_rtc_app_js = async function(){ this.showRightModule = showRightModule } - console.log("moduleShowChange", showRightModule) + // console.log("moduleShowChange", showRightModule) callback && callback(true) }, @@ -297,20 +320,29 @@ let load_tl_rtc_app_js = async function(){ }, /** * 用户设置变更 + * @param {*} normalSetting * @param {*} accountSetting * @param {*} messageSetting + * @param {*} skinSetting * @param {*} otherSetting * @returns */ userSettingChange: function({ - accountSetting, messageSetting, otherSetting + normalSetting, accountSetting, messageSetting, + skinSetting, otherSetting }){ + if(normalSetting){ + this.user.normalSetting = normalSetting + } if(accountSetting){ this.user.accountSetting = accountSetting } if(messageSetting){ this.user.messageSetting = messageSetting } + if(skinSetting){ + this.user.skinSetting = skinSetting + } if(otherSetting){ this.user.otherSetting = otherSetting } diff --git a/web-v2-res/js/tl_rtc_entry.js b/web-res/js/tl_rtc_entry.js similarity index 100% rename from web-v2-res/js/tl_rtc_entry.js rename to web-res/js/tl_rtc_entry.js diff --git a/web-res/static/css/default.min.css b/web-res/static/css/default.min.css new file mode 100644 index 0000000..96e1842 --- /dev/null +++ b/web-res/static/css/default.min.css @@ -0,0 +1,9 @@ +/*! + Theme: Default + Description: Original highlight.js style + Author: (c) Ivan Sagalaev + Maintainer: @highlightjs/core-team + Website: https://highlightjs.org/ + License: see project LICENSE + Touched: 2021 +*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f0f0f0;color:#444}.hljs-comment{color:#888}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#bc6060}.hljs-literal{color:#78a960}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#4d99bf}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700} \ No newline at end of file diff --git a/web-res/static/css/editor.main.min.css b/web-res/static/css/editor.main.min.css new file mode 100644 index 0000000..b1b473d --- /dev/null +++ b/web-res/static/css/editor.main.min.css @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.30.1(829382514cb1065f5ebb90f436e1c6103e153953) + * Released under the MIT license + * https://github.com/microsoft/vscode/blob/main/LICENSE.txt + *-----------------------------------------------------------*/.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.4}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-label{margin-right:1px}.monaco-aria-container{position:absolute;left:-999em}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;text-align:center;cursor:pointer;justify-content:center;align-items:center}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{opacity:.4!important;cursor:default}.monaco-text-button>.codicon{margin:0 .2em;color:inherit!important}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown>.monaco-dropdown-button{margin-left:1px}.monaco-description-button{flex-direction:column}.monaco-description-button .monaco-button-label{font-weight:500}.monaco-description-button .monaco-button-description{font-style:italic}.monaco-custom-checkbox{margin-left:2px;float:left;cursor:pointer;overflow:hidden;opacity:.7;width:20px;height:20px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-custom-checkbox.checked,.monaco-custom-checkbox:hover{opacity:1}.hc-black .monaco-custom-checkbox,.hc-black .monaco-custom-checkbox:hover{background:0 0}.monaco-custom-checkbox.monaco-simple-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-checkbox.monaco-simple-checkbox:not(.checked):before{visibility:hidden}@font-face{font-family:codicon;font-display:block;src:url(../base/browser/ui/codicons/codicon/codicon.ttf) format("truetype")}.codicon[class*=codicon-]{font:normal normal normal 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view{position:absolute;z-index:2500}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;z-index:2500;color:inherit}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:50%;background-repeat:no-repeat}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:0 0}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:0 0}}@keyframes monaco-findInput-highlight-dark-0{0%{background:hsla(0,0%,100%,.44)}to{background:0 0}}@keyframes monaco-findInput-highlight-dark-1{0%{background:hsla(0,0%,100%,.44)}99%{background:0 0}}.monaco-hover{cursor:default;position:absolute;overflow:hidden;z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-hover.hidden{display:none}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:500px;word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0;border-right:0;margin:4px -8px -4px;height:1px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:0;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;font-size:inherit}.monaco-inputbox.idle{border:1px solid transparent}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;-ms-overflow-style:none;scrollbar-width:none;outline:0}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter{display:flex;align-items:center;position:absolute;border-radius:2px;padding:0 3px;max-width:calc(100% - 10px);text-overflow:ellipsis;overflow:hidden;text-align:right;box-sizing:border-box;cursor:all-scroll;font-size:13px;line-height:18px;height:20px;z-index:1;top:4px}.monaco-list-type-filter.dragging{transition:top .2s,left .2s}.monaco-list-type-filter.ne{right:4px}.monaco-list-type-filter.nw{left:4px}.monaco-list-type-filter>.controls{display:flex;align-items:center;box-sizing:border-box;transition:width .2s;width:0}.monaco-list-type-filter.dragging>.controls,.monaco-list-type-filter:hover>.controls{width:36px}.monaco-list-type-filter>.controls>*{border:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;background:0 0;width:16px;height:16px;flex-shrink:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.monaco-list-type-filter>.controls>.filter{margin-left:4px}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-list-type-filter{cursor:grab}.monaco-list-type-filter.dragging{cursor:grabbing}.monaco-mouse-cursor-text{cursor:text}.hc-black .mac .monaco-mouse-cursor-text,.hc-black.mac .monaco-mouse-cursor-text,.vs-dark .mac .monaco-mouse-cursor-text,.vs-dark.mac .monaco-mouse-cursor-text{cursor:-webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x,url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8,text}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear;transform:translateZ(0)}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}:root{--sash-size:4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--sash-size)*2);width:calc(var(--sash-size)*2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--sash-size)*-.5);top:calc(var(--sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--sash-size)*-.5);bottom:calc(var(--sash-size)*-1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--sash-size)*-.5);left:calc(var(--sash-size)*-1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--sash-size)*-.5);right:calc(var(--sash-size)*-1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color .1s ease-out;background:0 0}.monaco-sash.vertical:before{width:var(--sash-hover-size);left:calc(50% - var(--sash-hover-size)/ 2)}.monaco-sash.horizontal:before{height:var(--sash-hover-size);top:calc(50% - var(--sash-hover-size)/ 2)}.monaco-sash.debug{background:#0ff}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:0 0;transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:normal;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--sash-size)/2);width:0;border-left:1px solid transparent}.monaco-table>.monaco-split-view2,.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent;transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translateX(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.quick-input-widget{position:absolute;width:600px;z-index:2000;padding:0 1px 1px;left:50%;margin-left:-300px}.quick-input-titlebar{display:flex;align-items:center}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:6px 6px 0;margin-bottom:-2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:27.5px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px 5px 2px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px;margin-top:6px}.quick-input-widget.hidden-input .quick-input-list{margin-top:0}.quick-input-list .monaco-list{overflow:hidden;max-height:440px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:8px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:0 0}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:0!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent}.monaco-editor .inputarea.ime-input{z-index:10}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.mtkcontrol{color:#fff!important;background:#960000!important}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{position:absolute;top:0;background:#fff}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{box-sizing:border-box;background:0 0!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:0 0!important;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:0 0!important;box-sizing:border-box}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:hsla(0,0%,100%,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:0 0}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar{background:0 0}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:hsla(0,0%,67.1%,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active{background:0 0}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block}.monaco-diff-editor .diff-review{position:absolute;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box}.monaco-editor .contentWidgets .codicon-light-bulb,.monaco-editor .contentWidgets .codicon-lightbulb-autofix{display:flex;align-items:center;justify-content:center}.monaco-editor .contentWidgets .codicon-light-bulb:hover,.monaco-editor .contentWidgets .codicon-lightbulb-autofix:hover{cursor:pointer}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{user-select:none;-webkit-user-select:none;-ms-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .colorpicker-hover:focus{outline:0}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:216px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px;position:absolute;left:8px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px rgba(0,0,0,.8);position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid hsla(0,0%,100%,.71);box-shadow:0 0 1px rgba(0,0,0,.85)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.monaco-editor.vs .dnd-target{border-right:2px dotted #000;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #aeafad;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px))}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:4px 0 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:50%;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{opacity:.3;cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:grey;margin:.1em .2em 0;content:"⋯";display:inline;line-height:1em;cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text{font-style:italic}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;z-index:1000;border:8px solid transparent;position:absolute}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .parameter-hints-widget{z-index:10;display:flex;flex-direction:column;line-height:1.5em}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.visible{transition:left .05s ease-in-out}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs .markdown-docs code{font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs code{border-radius:3px;padding:0 .4em}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;opacity:.5;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:center;font-size:13px;margin-left:20px;min-width:0}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .rename-box{z-index:100;color:inherit}.monaco-editor .rename-box.preview{padding:3px 3px 0}.monaco-editor .rename-box .rename-input{padding:3px;width:calc(100% - 6px)}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .snippet-placeholder{min-width:2px}.monaco-editor .finish-snippet-placeholder,.monaco-editor .snippet-placeholder{outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{flex:0 1 auto;width:100%;border-style:solid;border-width:1px}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid transparent;overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{opacity:.5;color:inherit}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:normal;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:50%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:normal;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-editor .accessibilityHelpWidget{padding:10px;vertical-align:middle;overflow:scroll}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjhWNC4wMXpNNC4wMDguMDA4QTQuMDAzIDQuMDAzIDAgMDAuMDA1IDQuMDFWMzIuMDNhNC4wMDMgNC4wMDMgMCAwMDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAwNC4wMDMtNC4wMDJWNC4wMUE0LjAwMyA0LjAwMyAwIDAwNDguMDM2LjAwOEg0LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxVjguMDEzem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJWOC4wMTN6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyVjguMDEzem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDNWOC4wMTN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDNWOC4wMTN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnYtNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNoLTQuMDAzdi00LjAwM3ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzdi00LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM2g4LjAwNXptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzdi00LjAwM3ptNC4wMDMgMGgyMC4wMTN2NC4wMDNIMTYuMDE2di00LjAwM3ptMjguMDE4IDBINDAuMDN2NC4wMDNoNC4wMDN2LTQuMDAzeiIgZmlsbD0iIzQyNDI0MiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjhWNC4wMXpNNC4wMDguMDA4QTQuMDAzIDQuMDAzIDAgMDAuMDA1IDQuMDFWMzIuMDNhNC4wMDMgNC4wMDMgMCAwMDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAwNC4wMDMtNC4wMDJWNC4wMUE0LjAwMyA0LjAwMyAwIDAwNDguMDM2LjAwOEg0LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxVjguMDEzem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJWOC4wMTN6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyVjguMDEzem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDNWOC4wMTN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDNWOC4wMTN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnYtNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNoLTQuMDAzdi00LjAwM3ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzdi00LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM2g4LjAwNXptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzdi00LjAwM3ptNC4wMDMgMGgyMC4wMTN2NC4wMDNIMTYuMDE2di00LjAwM3ptMjguMDE4IDBINDAuMDN2NC4wMDNoNC4wMDN2LTQuMDAzeiIgZmlsbD0iI0M1QzVDNSIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:10px}.tokens-inspect-separator{height:1px;border:0}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.monaco-keybinding>.monaco-keybinding-key{background-color:hsla(0,0%,86.7%,.4);border:1px solid hsla(0,0%,80%,.4);border-bottom-color:hsla(0,0%,73.3%,.4);box-shadow:inset 0 -1px 0 hsla(0,0%,73.3%,.4);color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:1px solid #6fc3df;box-shadow:none;color:#fff}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:hsla(0,0%,50.2%,.17);border:1px solid rgba(51,51,51,.6);border-bottom-color:rgba(68,68,68,.6);box-shadow:inset 0 -1px 0 rgba(68,68,68,.6);color:#ccc}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor.hc-black{-ms-high-contrast-adjust:none}@media screen and (-ms-high-contrast:active){.monaco-editor.vs .view-overlays .current-line,.monaco-editor.vs-dark .view-overlays .current-line{border-color:windowtext!important;border-left:0;border-right:0}.monaco-editor.vs .cursor,.monaco-editor.vs-dark .cursor{background-color:windowtext!important}.monaco-editor.vs .dnd-target,.monaco-editor.vs-dark .dnd-target{border-color:windowtext!important}.monaco-editor.vs .selected-text,.monaco-editor.vs-dark .selected-text{background-color:highlight!important}.monaco-editor.vs .view-line,.monaco-editor.vs-dark .view-line{-ms-high-contrast-adjust:none}.monaco-editor.vs .view-line span,.monaco-editor.vs-dark .view-line span{color:windowtext!important}.monaco-editor.vs .view-line span.inline-selected-text,.monaco-editor.vs-dark .view-line span.inline-selected-text{color:highlighttext!important}.monaco-editor.vs .view-overlays,.monaco-editor.vs-dark .view-overlays{-ms-high-contrast-adjust:none}.monaco-editor.vs .reference-decoration,.monaco-editor.vs .selectionHighlight,.monaco-editor.vs .wordHighlight,.monaco-editor.vs .wordHighlightStrong,.monaco-editor.vs-dark .reference-decoration,.monaco-editor.vs-dark .selectionHighlight,.monaco-editor.vs-dark .wordHighlight,.monaco-editor.vs-dark .wordHighlightStrong{border:2px dotted highlight!important;background:0 0!important;box-sizing:border-box}.monaco-editor.vs .rangeHighlight,.monaco-editor.vs-dark .rangeHighlight{background:0 0!important;border:1px dotted activeborder!important;box-sizing:border-box}.monaco-editor.vs .bracket-match,.monaco-editor.vs-dark .bracket-match{border-color:windowtext!important;background:0 0!important}.monaco-editor.vs .currentFindMatch,.monaco-editor.vs .findMatch,.monaco-editor.vs-dark .currentFindMatch,.monaco-editor.vs-dark .findMatch{border:2px dotted activeborder!important;background:0 0!important;box-sizing:border-box}.monaco-editor.vs .find-widget,.monaco-editor.vs-dark .find-widget{border:1px solid windowtext}.monaco-editor.vs .monaco-list .monaco-list-row,.monaco-editor.vs-dark .monaco-list .monaco-list-row{-ms-high-contrast-adjust:none;color:windowtext!important}.monaco-editor.vs .monaco-list .monaco-list-row.focused,.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused{color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-list .monaco-list-row:hover,.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover{background:0 0!important;border:1px solid highlight;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar{-ms-high-contrast-adjust:none;background:background!important;border:1px solid windowtext;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:windowtext!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider:hover,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider:hover{background:highlight!important}.monaco-editor.vs .decorationsOverviewRuler,.monaco-editor.vs-dark .decorationsOverviewRuler{opacity:0}.monaco-editor.vs .minimap,.monaco-editor.vs-dark .minimap{display:none}.monaco-editor.vs .squiggly-d-error,.monaco-editor.vs-dark .squiggly-d-error{background:0 0!important;border-bottom:4px double #e47777}.monaco-editor.vs .squiggly-b-info,.monaco-editor.vs .squiggly-c-warning,.monaco-editor.vs-dark .squiggly-b-info,.monaco-editor.vs-dark .squiggly-c-warning{border-bottom:4px double #71b771}.monaco-editor.vs .squiggly-a-hint,.monaco-editor.vs-dark .squiggly-a-hint{border-bottom:4px double #6c6c6c}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{-ms-high-contrast-adjust:none;color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label{-ms-high-contrast-adjust:none;background:0 0!important;border:1px solid highlight;box-sizing:border-box}.monaco-diff-editor.vs .diffOverviewRuler,.monaco-diff-editor.vs-dark .diffOverviewRuler{display:none}.monaco-editor.vs .line-delete,.monaco-editor.vs .line-insert,.monaco-editor.vs-dark .line-delete,.monaco-editor.vs-dark .line-insert{background:0 0!important;border:1px solid highlight!important;box-sizing:border-box}.monaco-editor.vs .char-delete,.monaco-editor.vs .char-insert,.monaco-editor.vs-dark .char-delete,.monaco-editor.vs-dark .char-insert{background:0 0!important}}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-light)}.hc-black .monaco-action-bar .action-item.menu-entry .action-label,.vs-dark .monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-light)}.hc-black .monaco-dropdown-with-default>.action-container.menu-entry>.action-label,.vs-dark .monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:50%;background-repeat:no-repeat}.context-view .monaco-menu{min-width:130px} \ No newline at end of file diff --git a/web-res/static/css/layui.css b/web-res/static/css/layui.css new file mode 100644 index 0000000..c784a25 --- /dev/null +++ b/web-res/static/css/layui.css @@ -0,0 +1 @@ +.layui-inline,img{display:inline-block;vertical-align:middle}h1,h2,h3,h4,h5,h6{font-weight:400}a,body{color:#333}.layui-edge,.layui-header,.layui-inline,.layui-main{position:relative}.layui-edge,hr{height:0;overflow:hidden}.layui-layout-body,.layui-side,.layui-side-scroll{overflow-x:hidden}.layui-edge,.layui-elip,hr{overflow:hidden}.layui-btn,.layui-edge,.layui-inline,img{vertical-align:middle}.layui-btn,.layui-disabled,.layui-icon,.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}a:active,a:hover{outline:0}img{border:none}li{list-style:none}table{border-collapse:collapse;border-spacing:0}h4,h5,h6{font-size:100%}button,input,optgroup,option,select,textarea{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;outline:0}pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}body{line-height:1.6;color:rgba(0,0,0,.85);font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif}hr{line-height:0;margin:10px 0;padding:0;border:none!important;border-bottom:1px solid #eee!important;clear:both;background:0 0}a{text-decoration:none}a:hover{color:#777}a cite{font-style:normal;*cursor:pointer}.layui-border-box,.layui-border-box *{box-sizing:border-box}.layui-box,.layui-box *{box-sizing:content-box}.layui-clear{clear:both;*zoom:1}.layui-clear:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-inline{*display:inline;*zoom:1}.layui-btn,.layui-btn-group,.layui-edge{display:inline-block}.layui-edge{width:0;border-width:6px;border-style:dashed;border-color:transparent}.layui-edge-top{top:-4px;border-bottom-color:#999;border-bottom-style:solid}.layui-edge-right{border-left-color:#999;border-left-style:solid}.layui-edge-bottom{top:2px;border-top-color:#999;border-top-style:solid}.layui-edge-left{border-right-color:#999;border-right-style:solid}.layui-elip{text-overflow:ellipsis;white-space:nowrap}.layui-disabled,.layui-disabled:hover{color:#d2d2d2!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-show-v{visibility:visible!important}.layui-hide-v{visibility:hidden!important}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=256);src:url(../font/iconfont.eot?v=256#iefix) format('embedded-opentype'),url(../font/iconfont.woff2?v=256) format('woff2'),url(../font/iconfont.woff?v=256) format('woff'),url(../font/iconfont.ttf?v=256) format('truetype'),url(../font/iconfont.svg?v=256#layui-icon) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-icon-reply-fill:before{content:"\e611"}.layui-icon-set-fill:before{content:"\e614"}.layui-icon-menu-fill:before{content:"\e60f"}.layui-icon-search:before{content:"\e615"}.layui-icon-share:before{content:"\e641"}.layui-icon-set-sm:before{content:"\e620"}.layui-icon-engine:before{content:"\e628"}.layui-icon-close:before{content:"\1006"}.layui-icon-close-fill:before{content:"\1007"}.layui-icon-chart-screen:before{content:"\e629"}.layui-icon-star:before{content:"\e600"}.layui-icon-circle-dot:before{content:"\e617"}.layui-icon-chat:before{content:"\e606"}.layui-icon-release:before{content:"\e609"}.layui-icon-list:before{content:"\e60a"}.layui-icon-chart:before{content:"\e62c"}.layui-icon-ok-circle:before{content:"\1005"}.layui-icon-layim-theme:before{content:"\e61b"}.layui-icon-table:before{content:"\e62d"}.layui-icon-right:before{content:"\e602"}.layui-icon-left:before{content:"\e603"}.layui-icon-cart-simple:before{content:"\e698"}.layui-icon-face-cry:before{content:"\e69c"}.layui-icon-face-smile:before{content:"\e6af"}.layui-icon-survey:before{content:"\e6b2"}.layui-icon-tree:before{content:"\e62e"}.layui-icon-ie:before{content:"\e7bb"}.layui-icon-upload-circle:before{content:"\e62f"}.layui-icon-add-circle:before{content:"\e61f"}.layui-icon-download-circle:before{content:"\e601"}.layui-icon-templeate-1:before{content:"\e630"}.layui-icon-util:before{content:"\e631"}.layui-icon-face-surprised:before{content:"\e664"}.layui-icon-edit:before{content:"\e642"}.layui-icon-speaker:before{content:"\e645"}.layui-icon-down:before{content:"\e61a"}.layui-icon-file:before{content:"\e621"}.layui-icon-layouts:before{content:"\e632"}.layui-icon-rate-half:before{content:"\e6c9"}.layui-icon-add-circle-fine:before{content:"\e608"}.layui-icon-prev-circle:before{content:"\e633"}.layui-icon-read:before{content:"\e705"}.layui-icon-404:before{content:"\e61c"}.layui-icon-carousel:before{content:"\e634"}.layui-icon-help:before{content:"\e607"}.layui-icon-code-circle:before{content:"\e635"}.layui-icon-windows:before{content:"\e67f"}.layui-icon-water:before{content:"\e636"}.layui-icon-username:before{content:"\e66f"}.layui-icon-find-fill:before{content:"\e670"}.layui-icon-about:before{content:"\e60b"}.layui-icon-location:before{content:"\e715"}.layui-icon-up:before{content:"\e619"}.layui-icon-pause:before{content:"\e651"}.layui-icon-date:before{content:"\e637"}.layui-icon-layim-uploadfile:before{content:"\e61d"}.layui-icon-delete:before{content:"\e640"}.layui-icon-play:before{content:"\e652"}.layui-icon-top:before{content:"\e604"}.layui-icon-firefox:before{content:"\e686"}.layui-icon-friends:before{content:"\e612"}.layui-icon-refresh-3:before{content:"\e9aa"}.layui-icon-ok:before{content:"\e605"}.layui-icon-layer:before{content:"\e638"}.layui-icon-face-smile-fine:before{content:"\e60c"}.layui-icon-dollar:before{content:"\e659"}.layui-icon-group:before{content:"\e613"}.layui-icon-layim-download:before{content:"\e61e"}.layui-icon-picture-fine:before{content:"\e60d"}.layui-icon-link:before{content:"\e64c"}.layui-icon-diamond:before{content:"\e735"}.layui-icon-log:before{content:"\e60e"}.layui-icon-key:before{content:"\e683"}.layui-icon-rate-solid:before{content:"\e67a"}.layui-icon-fonts-del:before{content:"\e64f"}.layui-icon-unlink:before{content:"\e64d"}.layui-icon-fonts-clear:before{content:"\e639"}.layui-icon-triangle-r:before{content:"\e623"}.layui-icon-circle:before{content:"\e63f"}.layui-icon-radio:before{content:"\e643"}.layui-icon-align-center:before{content:"\e647"}.layui-icon-align-right:before{content:"\e648"}.layui-icon-align-left:before{content:"\e649"}.layui-icon-loading-1:before{content:"\e63e"}.layui-icon-return:before{content:"\e65c"}.layui-icon-fonts-strong:before{content:"\e62b"}.layui-icon-upload:before{content:"\e67c"}.layui-icon-dialogue:before{content:"\e63a"}.layui-icon-video:before{content:"\e6ed"}.layui-icon-headset:before{content:"\e6fc"}.layui-icon-cellphone-fine:before{content:"\e63b"}.layui-icon-add-1:before{content:"\e654"}.layui-icon-face-smile-b:before{content:"\e650"}.layui-icon-fonts-html:before{content:"\e64b"}.layui-icon-screen-full:before{content:"\e622"}.layui-icon-form:before{content:"\e63c"}.layui-icon-cart:before{content:"\e657"}.layui-icon-camera-fill:before{content:"\e65d"}.layui-icon-tabs:before{content:"\e62a"}.layui-icon-heart-fill:before{content:"\e68f"}.layui-icon-fonts-code:before{content:"\e64e"}.layui-icon-ios:before{content:"\e680"}.layui-icon-at:before{content:"\e687"}.layui-icon-fire:before{content:"\e756"}.layui-icon-set:before{content:"\e716"}.layui-icon-fonts-u:before{content:"\e646"}.layui-icon-triangle-d:before{content:"\e625"}.layui-icon-tips:before{content:"\e702"}.layui-icon-picture:before{content:"\e64a"}.layui-icon-more-vertical:before{content:"\e671"}.layui-icon-bluetooth:before{content:"\e689"}.layui-icon-flag:before{content:"\e66c"}.layui-icon-loading:before{content:"\e63d"}.layui-icon-fonts-i:before{content:"\e644"}.layui-icon-refresh-1:before{content:"\e666"}.layui-icon-rmb:before{content:"\e65e"}.layui-icon-addition:before{content:"\e624"}.layui-icon-home:before{content:"\e68e"}.layui-icon-time:before{content:"\e68d"}.layui-icon-user:before{content:"\e770"}.layui-icon-notice:before{content:"\e667"}.layui-icon-chrome:before{content:"\e68a"}.layui-icon-edge:before{content:"\e68b"}.layui-icon-login-weibo:before{content:"\e675"}.layui-icon-voice:before{content:"\e688"}.layui-icon-upload-drag:before{content:"\e681"}.layui-icon-login-qq:before{content:"\e676"}.layui-icon-snowflake:before{content:"\e6b1"}.layui-icon-heart:before{content:"\e68c"}.layui-icon-logout:before{content:"\e682"}.layui-icon-file-b:before{content:"\e655"}.layui-icon-template:before{content:"\e663"}.layui-icon-transfer:before{content:"\e691"}.layui-icon-auz:before{content:"\e672"}.layui-icon-console:before{content:"\e665"}.layui-icon-app:before{content:"\e653"}.layui-icon-prev:before{content:"\e65a"}.layui-icon-website:before{content:"\e7ae"}.layui-icon-next:before{content:"\e65b"}.layui-icon-component:before{content:"\e857"}.layui-icon-android:before{content:"\e684"}.layui-icon-more:before{content:"\e65f"}.layui-icon-login-wechat:before{content:"\e677"}.layui-icon-shrink-right:before{content:"\e668"}.layui-icon-spread-left:before{content:"\e66b"}.layui-icon-camera:before{content:"\e660"}.layui-icon-note:before{content:"\e66e"}.layui-icon-refresh:before{content:"\e669"}.layui-icon-female:before{content:"\e661"}.layui-icon-male:before{content:"\e662"}.layui-icon-screen-restore:before{content:"\e758"}.layui-icon-password:before{content:"\e673"}.layui-icon-senior:before{content:"\e674"}.layui-icon-theme:before{content:"\e66a"}.layui-icon-tread:before{content:"\e6c5"}.layui-icon-praise:before{content:"\e6c6"}.layui-icon-star-fill:before{content:"\e658"}.layui-icon-rate:before{content:"\e67b"}.layui-icon-template-1:before{content:"\e656"}.layui-icon-vercode:before{content:"\e679"}.layui-icon-service:before{content:"\e626"}.layui-icon-cellphone:before{content:"\e678"}.layui-icon-print:before{content:"\e66d"}.layui-icon-cols:before{content:"\e610"}.layui-icon-wifi:before{content:"\e7e0"}.layui-icon-export:before{content:"\e67d"}.layui-icon-rss:before{content:"\e808"}.layui-icon-slider:before{content:"\e714"}.layui-icon-email:before{content:"\e618"}.layui-icon-subtraction:before{content:"\e67e"}.layui-icon-mike:before{content:"\e6dc"}.layui-icon-light:before{content:"\e748"}.layui-icon-gift:before{content:"\e627"}.layui-icon-mute:before{content:"\e685"}.layui-icon-reduce-circle:before{content:"\e616"}.layui-icon-music:before{content:"\e690"}.layui-main{width:1140px;margin:0 auto}.layui-header{z-index:1000;height:60px}.layui-header a:hover{transition:all .5s;-webkit-transition:all .5s}.layui-side{position:fixed;left:0;top:0;bottom:0;z-index:999;width:200px}.layui-side-scroll{position:relative;width:220px;height:100%}.layui-body{position:relative;left:200px;right:0;top:0;bottom:0;z-index:900;width:auto;box-sizing:border-box}.layui-layout-admin .layui-header{position:fixed;top:0;left:0;right:0;background-color:#23262E}.layui-layout-admin .layui-side{top:60px;width:200px;overflow-x:hidden}.layui-layout-admin .layui-body{position:absolute;top:60px;padding-bottom:44px}.layui-layout-admin .layui-main{width:auto;margin:0 15px}.layui-layout-admin .layui-footer{position:fixed;left:200px;right:0;bottom:0;z-index:990;height:44px;line-height:44px;padding:0 15px;box-shadow:-1px 0 4px rgb(0 0 0 / 12%);background-color:#FAFAFA}.layui-layout-admin .layui-logo{position:absolute;left:0;top:0;width:200px;height:100%;line-height:60px;text-align:center;color:#009688;font-size:16px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 15%)}.layui-layout-admin .layui-header .layui-nav{background:0 0}.layui-layout-left{position:absolute!important;left:200px;top:0}.layui-layout-right{position:absolute!important;right:0;top:0}.layui-container{position:relative;margin:0 auto;padding:0 15px;box-sizing:border-box}.layui-fluid{position:relative;margin:0 auto;padding:0 15px}.layui-row:after,.layui-row:before{content:"";display:block;clear:both}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9,.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9,.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9,.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{position:relative;display:block;box-sizing:border-box}.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{float:left}.layui-col-xs1{width:8.33333333%}.layui-col-xs2{width:16.66666667%}.layui-col-xs3{width:25%}.layui-col-xs4{width:33.33333333%}.layui-col-xs5{width:41.66666667%}.layui-col-xs6{width:50%}.layui-col-xs7{width:58.33333333%}.layui-col-xs8{width:66.66666667%}.layui-col-xs9{width:75%}.layui-col-xs10{width:83.33333333%}.layui-col-xs11{width:91.66666667%}.layui-col-xs12{width:100%}.layui-col-xs-offset1{margin-left:8.33333333%}.layui-col-xs-offset2{margin-left:16.66666667%}.layui-col-xs-offset3{margin-left:25%}.layui-col-xs-offset4{margin-left:33.33333333%}.layui-col-xs-offset5{margin-left:41.66666667%}.layui-col-xs-offset6{margin-left:50%}.layui-col-xs-offset7{margin-left:58.33333333%}.layui-col-xs-offset8{margin-left:66.66666667%}.layui-col-xs-offset9{margin-left:75%}.layui-col-xs-offset10{margin-left:83.33333333%}.layui-col-xs-offset11{margin-left:91.66666667%}.layui-col-xs-offset12{margin-left:100%}@media screen and (max-width:768px){.layui-hide-xs{display:none!important}.layui-show-xs-block{display:block!important}.layui-show-xs-inline{display:inline!important}.layui-show-xs-inline-block{display:inline-block!important}}@media screen and (min-width:768px){.layui-container{width:750px}.layui-hide-sm{display:none!important}.layui-show-sm-block{display:block!important}.layui-show-sm-inline{display:inline!important}.layui-show-sm-inline-block{display:inline-block!important}.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9{float:left}.layui-col-sm1{width:8.33333333%}.layui-col-sm2{width:16.66666667%}.layui-col-sm3{width:25%}.layui-col-sm4{width:33.33333333%}.layui-col-sm5{width:41.66666667%}.layui-col-sm6{width:50%}.layui-col-sm7{width:58.33333333%}.layui-col-sm8{width:66.66666667%}.layui-col-sm9{width:75%}.layui-col-sm10{width:83.33333333%}.layui-col-sm11{width:91.66666667%}.layui-col-sm12{width:100%}.layui-col-sm-offset1{margin-left:8.33333333%}.layui-col-sm-offset2{margin-left:16.66666667%}.layui-col-sm-offset3{margin-left:25%}.layui-col-sm-offset4{margin-left:33.33333333%}.layui-col-sm-offset5{margin-left:41.66666667%}.layui-col-sm-offset6{margin-left:50%}.layui-col-sm-offset7{margin-left:58.33333333%}.layui-col-sm-offset8{margin-left:66.66666667%}.layui-col-sm-offset9{margin-left:75%}.layui-col-sm-offset10{margin-left:83.33333333%}.layui-col-sm-offset11{margin-left:91.66666667%}.layui-col-sm-offset12{margin-left:100%}}@media screen and (min-width:992px){.layui-container{width:970px}.layui-hide-md{display:none!important}.layui-show-md-block{display:block!important}.layui-show-md-inline{display:inline!important}.layui-show-md-inline-block{display:inline-block!important}.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9{float:left}.layui-col-md1{width:8.33333333%}.layui-col-md2{width:16.66666667%}.layui-col-md3{width:25%}.layui-col-md4{width:33.33333333%}.layui-col-md5{width:41.66666667%}.layui-col-md6{width:50%}.layui-col-md7{width:58.33333333%}.layui-col-md8{width:66.66666667%}.layui-col-md9{width:75%}.layui-col-md10{width:83.33333333%}.layui-col-md11{width:91.66666667%}.layui-col-md12{width:100%}.layui-col-md-offset1{margin-left:8.33333333%}.layui-col-md-offset2{margin-left:16.66666667%}.layui-col-md-offset3{margin-left:25%}.layui-col-md-offset4{margin-left:33.33333333%}.layui-col-md-offset5{margin-left:41.66666667%}.layui-col-md-offset6{margin-left:50%}.layui-col-md-offset7{margin-left:58.33333333%}.layui-col-md-offset8{margin-left:66.66666667%}.layui-col-md-offset9{margin-left:75%}.layui-col-md-offset10{margin-left:83.33333333%}.layui-col-md-offset11{margin-left:91.66666667%}.layui-col-md-offset12{margin-left:100%}}@media screen and (min-width:1200px){.layui-container{width:1170px}.layui-hide-lg{display:none!important}.layui-show-lg-block{display:block!important}.layui-show-lg-inline{display:inline!important}.layui-show-lg-inline-block{display:inline-block!important}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9{float:left}.layui-col-lg1{width:8.33333333%}.layui-col-lg2{width:16.66666667%}.layui-col-lg3{width:25%}.layui-col-lg4{width:33.33333333%}.layui-col-lg5{width:41.66666667%}.layui-col-lg6{width:50%}.layui-col-lg7{width:58.33333333%}.layui-col-lg8{width:66.66666667%}.layui-col-lg9{width:75%}.layui-col-lg10{width:83.33333333%}.layui-col-lg11{width:91.66666667%}.layui-col-lg12{width:100%}.layui-col-lg-offset1{margin-left:8.33333333%}.layui-col-lg-offset2{margin-left:16.66666667%}.layui-col-lg-offset3{margin-left:25%}.layui-col-lg-offset4{margin-left:33.33333333%}.layui-col-lg-offset5{margin-left:41.66666667%}.layui-col-lg-offset6{margin-left:50%}.layui-col-lg-offset7{margin-left:58.33333333%}.layui-col-lg-offset8{margin-left:66.66666667%}.layui-col-lg-offset9{margin-left:75%}.layui-col-lg-offset10{margin-left:83.33333333%}.layui-col-lg-offset11{margin-left:91.66666667%}.layui-col-lg-offset12{margin-left:100%}}.layui-col-space1{margin:-.5px}.layui-col-space1>*{padding:.5px}.layui-col-space2{margin:-1px}.layui-col-space2>*{padding:1px}.layui-col-space4{margin:-2px}.layui-col-space4>*{padding:2px}.layui-col-space5{margin:-2.5px}.layui-col-space5>*{padding:2.5px}.layui-col-space6{margin:-3px}.layui-col-space6>*{padding:3px}.layui-col-space8{margin:-4px}.layui-col-space8>*{padding:4px}.layui-col-space10{margin:-5px}.layui-col-space10>*{padding:5px}.layui-col-space12{margin:-6px}.layui-col-space12>*{padding:6px}.layui-col-space14{margin:-7px}.layui-col-space14>*{padding:7px}.layui-col-space15{margin:-7.5px}.layui-col-space15>*{padding:7.5px}.layui-col-space16{margin:-8px}.layui-col-space16>*{padding:8px}.layui-col-space18{margin:-9px}.layui-col-space18>*{padding:9px}.layui-col-space20{margin:-10px}.layui-col-space20>*{padding:10px}.layui-col-space22{margin:-11px}.layui-col-space22>*{padding:11px}.layui-col-space24{margin:-12px}.layui-col-space24>*{padding:12px}.layui-col-space25{margin:-12.5px}.layui-col-space25>*{padding:12.5px}.layui-col-space26{margin:-13px}.layui-col-space26>*{padding:13px}.layui-col-space28{margin:-14px}.layui-col-space28>*{padding:14px}.layui-col-space30{margin:-15px}.layui-col-space30>*{padding:15px}.layui-btn,.layui-input,.layui-select,.layui-textarea,.layui-upload-button{outline:0;-webkit-appearance:none;transition:all .3s;-webkit-transition:all .3s;box-sizing:border-box}.layui-elem-quote{margin-bottom:10px;padding:15px;line-height:1.6;border-left:5px solid #5FB878;border-radius:0 2px 2px 0;background-color:#FAFAFA}.layui-quote-nm{border-style:solid;border-width:1px 1px 1px 5px;background:0 0}.layui-elem-field{margin-bottom:10px;padding:0;border-width:1px;border-style:solid}.layui-elem-field legend{margin-left:20px;padding:0 10px;font-size:20px;font-weight:300}.layui-field-title{margin:10px 0 20px;border-width:1px 0 0}.layui-field-box{padding:15px}.layui-field-title .layui-field-box{padding:10px 0}.layui-progress{position:relative;height:6px;border-radius:20px;background-color:#eee}.layui-progress-bar{position:absolute;left:0;top:0;width:0;max-width:100%;height:6px;border-radius:20px;text-align:right;background-color:#5FB878;transition:all .3s;-webkit-transition:all .3s}.layui-progress-big,.layui-progress-big .layui-progress-bar{height:18px;line-height:18px}.layui-progress-text{position:relative;top:-20px;line-height:18px;font-size:12px;color:#666}.layui-progress-big .layui-progress-text{position:static;padding:0 10px;color:#fff}.layui-collapse{border-width:1px;border-style:solid;border-radius:2px}.layui-colla-content,.layui-colla-item{border-top-width:1px;border-top-style:solid}.layui-colla-item:first-child{border-top:none}.layui-colla-title{position:relative;height:42px;line-height:42px;padding:0 15px 0 35px;color:#333;background-color:#FAFAFA;cursor:pointer;font-size:14px;overflow:hidden}.layui-colla-content{display:none;padding:10px 15px;line-height:1.6;color:#666}.layui-colla-icon{position:absolute;left:15px;top:0;font-size:14px}.layui-card-body,.layui-card-header,.layui-form-label,.layui-form-mid,.layui-form-select,.layui-input-block,.layui-input-inline,.layui-panel,.layui-textarea{position:relative}.layui-card{margin-bottom:15px;border-radius:2px;background-color:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}.layui-form-select dl,.layui-panel{box-shadow:1px 1px 4px rgb(0 0 0 / 8%)}.layui-card:last-child{margin-bottom:0}.layui-card-header{height:42px;line-height:42px;padding:0 15px;border-bottom:1px solid #f6f6f6;color:#333;border-radius:2px 2px 0 0;font-size:14px}.layui-card-body{padding:10px 15px;line-height:24px}.layui-card-body[pad15]{padding:15px}.layui-card-body[pad20]{padding:20px}.layui-card-body .layui-table{margin:5px 0}.layui-card .layui-tab{margin:0}.layui-panel{border-width:1px;border-style:solid;border-radius:2px;background-color:#fff;color:#666}.layui-bg-black,.layui-bg-blue,.layui-bg-cyan,.layui-bg-green,.layui-bg-orange,.layui-bg-red{color:#fff!important}.layui-panel-window{position:relative;padding:15px;border-radius:0;border-top:5px solid #eee;background-color:#fff}.layui-border,.layui-border-black,.layui-border-blue,.layui-border-cyan,.layui-border-green,.layui-border-orange,.layui-border-red{border-width:1px;border-style:solid}.layui-auxiliar-moving{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:0 0;z-index:9999999999}.layui-bg-red{background-color:#FF5722!important}.layui-bg-orange{background-color:#FFB800!important}.layui-bg-green{background-color:#009688!important}.layui-bg-cyan{background-color:#2F4056!important}.layui-bg-blue{background-color:#1E9FFF!important}.layui-bg-black{background-color:#393D49!important}.layui-bg-gray{background-color:#FAFAFA!important;color:#666!important}.layui-badge-rim,.layui-border,.layui-colla-content,.layui-colla-item,.layui-collapse,.layui-elem-field,.layui-form-pane .layui-form-item[pane],.layui-form-pane .layui-form-label,.layui-input,.layui-layedit,.layui-layedit-tool,.layui-panel,.layui-quote-nm,.layui-select,.layui-tab-bar,.layui-tab-card,.layui-tab-title,.layui-tab-title .layui-this:after,.layui-textarea{border-color:#eee}.layui-border{color:#666!important}.layui-border-red{border-color:#FF5722!important;color:#FF5722!important}.layui-border-orange{border-color:#FFB800!important;color:#FFB800!important}.layui-border-green{border-color:#009688!important;color:#009688!important}.layui-border-cyan{border-color:#2F4056!important;color:#2F4056!important}.layui-border-blue{border-color:#1E9FFF!important;color:#1E9FFF!important}.layui-border-black{border-color:#393D49!important;color:#393D49!important}.layui-timeline-item:before{background-color:#eee}.layui-text{line-height:1.6;font-size:14px;color:#666}.layui-text h1,.layui-text h2,.layui-text h3{font-weight:500;color:#333}.layui-text h1{font-size:30px}.layui-text h2{font-size:24px}.layui-text h3{font-size:18px}.layui-text a:not(.layui-btn){color:#01AAED}.layui-text a:not(.layui-btn):hover{text-decoration:underline}.layui-text ul{padding:5px 0 5px 15px}.layui-text ul li{margin-top:5px;list-style-type:disc}.layui-text em,.layui-word-aux{color:#999!important;padding-left:5px!important;padding-right:5px!important}.layui-text p{margin:10px 0}.layui-text p:first-child{margin-top:0}.layui-font-12{font-size:12px!important}.layui-font-14{font-size:14px!important}.layui-font-16{font-size:16px!important}.layui-font-18{font-size:18px!important}.layui-font-20{font-size:20px!important}.layui-font-red{color:#FF5722!important}.layui-font-orange{color:#FFB800!important}.layui-font-green{color:#009688!important}.layui-font-cyan{color:#2F4056!important}.layui-font-blue{color:#01AAED!important}.layui-font-black{color:#000!important}.layui-font-gray{color:#c2c2c2!important}.layui-btn{height:38px;line-height:38px;border:1px solid transparent;padding:0 18px;background-color:#009688;color:#fff;white-space:nowrap;text-align:center;font-size:14px;border-radius:2px;cursor:pointer}.layui-btn:hover{opacity:.8;filter:alpha(opacity=80);color:#fff}.layui-btn:active{opacity:1;filter:alpha(opacity=100)}.layui-btn+.layui-btn{margin-left:10px}.layui-btn-container{font-size:0}.layui-btn-container .layui-btn{margin-right:10px;margin-bottom:10px}.layui-btn-container .layui-btn+.layui-btn{margin-left:0}.layui-table .layui-btn-container .layui-btn{margin-bottom:9px}.layui-btn-radius{border-radius:100px}.layui-btn .layui-icon{padding:0 2px;vertical-align:middle\9;vertical-align:bottom}.layui-btn-primary{border-color:#d2d2d2;background:0 0;color:#666}.layui-btn-primary:hover{border-color:#009688;color:#333}.layui-btn-normal{background-color:#1E9FFF}.layui-btn-warm{background-color:#FFB800}.layui-btn-danger{background-color:#FF5722}.layui-btn-checked{background-color:#5FB878}.layui-btn-disabled,.layui-btn-disabled:active,.layui-btn-disabled:hover{border-color:#eee!important;background-color:#FBFBFB!important;color:#d2d2d2!important;cursor:not-allowed!important;opacity:1}.layui-btn-lg{height:44px;line-height:44px;padding:0 25px;font-size:16px}.layui-btn-sm{height:30px;line-height:30px;padding:0 10px;font-size:12px}.layui-btn-xs{height:22px;line-height:22px;padding:0 5px;font-size:12px}.layui-btn-xs i{font-size:12px!important}.layui-btn-group{vertical-align:middle;font-size:0}.layui-btn-group .layui-btn{margin-left:0!important;margin-right:0!important;border-left:1px solid rgba(255,255,255,.5);border-radius:0}.layui-btn-group .layui-btn-primary{border-left:none}.layui-btn-group .layui-btn-primary:hover{border-color:#d2d2d2;color:#009688}.layui-btn-group .layui-btn:first-child{border-left:none;border-radius:2px 0 0 2px}.layui-btn-group .layui-btn-primary:first-child{border-left:1px solid #d2d2d2}.layui-btn-group .layui-btn:last-child{border-radius:0 2px 2px 0}.layui-btn-group .layui-btn+.layui-btn{margin-left:0}.layui-btn-group+.layui-btn-group{margin-left:10px}.layui-btn-fluid{width:100%}.layui-input,.layui-select,.layui-textarea{height:38px;line-height:1.3;line-height:38px\9;border-width:1px;border-style:solid;background-color:#fff;color:rgba(0,0,0,.85);border-radius:2px}.layui-input::-webkit-input-placeholder,.layui-select::-webkit-input-placeholder,.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-input,.layui-textarea{display:block;width:100%;padding-left:10px}.layui-input:hover,.layui-textarea:hover{border-color:#eee!important}.layui-input:focus,.layui-textarea:focus{border-color:#d2d2d2!important}.layui-textarea{min-height:100px;height:auto;line-height:20px;padding:6px 10px;resize:vertical}.layui-select{padding:0 10px}.layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select{display:none}.layui-form [lay-ignore]{display:initial}.layui-form-item{margin-bottom:15px;clear:both;*zoom:1}.layui-form-item:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-form-label{float:left;display:block;padding:9px 15px;width:80px;font-weight:400;line-height:20px;text-align:right}.layui-form-label-col{display:block;float:none;padding:9px 0;line-height:20px;text-align:left}.layui-form-item .layui-inline{margin-bottom:5px;margin-right:10px}.layui-input-block{margin-left:110px;min-height:36px}.layui-input-inline{display:inline-block;vertical-align:middle}.layui-form-item .layui-input-inline{float:left;width:190px;margin-right:10px}.layui-form-text .layui-input-inline{width:auto}.layui-form-mid{float:left;display:block;padding:9px 0!important;line-height:20px;margin-right:10px}.layui-form-danger+.layui-form-select .layui-input,.layui-form-danger:focus{border-color:#FF5722!important}.layui-form-select .layui-input{padding-right:30px;cursor:pointer}.layui-form-select .layui-edge{position:absolute;right:10px;top:50%;margin-top:-3px;cursor:pointer;border-width:6px;border-top-color:#c2c2c2;border-top-style:solid;transition:all .3s;-webkit-transition:all .3s}.layui-form-select dl{display:none;position:absolute;left:0;top:42px;padding:5px 0;z-index:899;min-width:100%;border:1px solid #eee;max-height:300px;overflow-y:auto;background-color:#fff;border-radius:2px;box-sizing:border-box}.layui-form-select dl dd,.layui-form-select dl dt{padding:0 10px;line-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-form-select dl dt{font-size:12px;color:#999}.layui-form-select dl dd{cursor:pointer}.layui-form-select dl dd:hover{background-color:#F6F6F6;-webkit-transition:.5s all;transition:.5s all}.layui-form-select .layui-select-group dd{padding-left:20px}.layui-form-select dl dd.layui-select-tips{padding-left:10px!important;color:#999}.layui-form-select dl dd.layui-this{background-color:#5FB878;color:#fff}.layui-form-checkbox,.layui-form-select dl dd.layui-disabled{background-color:#fff}.layui-form-selected dl{display:block}.layui-form-checkbox,.layui-form-checkbox *,.layui-form-switch{display:inline-block;vertical-align:middle}.layui-form-selected .layui-edge{margin-top:-9px;-webkit-transform:rotate(180deg);transform:rotate(180deg);margin-top:-3px\9}:root .layui-form-selected .layui-edge{margin-top:-9px\0/IE9}.layui-form-selectup dl{top:auto;bottom:42px}.layui-select-none{margin:5px 0;text-align:center;color:#999}.layui-select-disabled .layui-disabled{border-color:#eee!important}.layui-select-disabled .layui-edge{border-top-color:#d2d2d2}.layui-form-checkbox{position:relative;height:30px;line-height:30px;margin-right:10px;padding-right:30px;cursor:pointer;font-size:0;-webkit-transition:.1s linear;transition:.1s linear;box-sizing:border-box}.layui-form-checkbox span{padding:0 10px;height:100%;font-size:14px;border-radius:2px 0 0 2px;background-color:#d2d2d2;color:#fff;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.layui-form-checkbox:hover span{background-color:#c2c2c2}.layui-form-checkbox i{position:absolute;right:0;top:0;width:30px;height:28px;border:1px solid #d2d2d2;border-left:none;border-radius:0 2px 2px 0;color:#fff;font-size:20px;text-align:center}.layui-form-checkbox:hover i{border-color:#c2c2c2;color:#c2c2c2}.layui-form-checked,.layui-form-checked:hover{border-color:#5FB878}.layui-form-checked span,.layui-form-checked:hover span{background-color:#5FB878}.layui-form-checked i,.layui-form-checked:hover i{color:#5FB878}.layui-form-item .layui-form-checkbox{margin-top:4px}.layui-form-checkbox[lay-skin=primary]{height:auto!important;line-height:normal!important;min-width:18px;min-height:18px;border:none!important;margin-right:0;padding-left:28px;padding-right:0;background:0 0}.layui-form-checkbox[lay-skin=primary] span{padding-left:0;padding-right:15px;line-height:18px;background:0 0;color:#666}.layui-form-checkbox[lay-skin=primary] i{right:auto;left:0;width:16px;height:16px;line-height:16px;border:1px solid #d2d2d2;font-size:12px;border-radius:2px;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-checkbox[lay-skin=primary]:hover i{border-color:#5FB878;color:#fff}.layui-form-checked[lay-skin=primary] i{border-color:#5FB878!important;background-color:#5FB878;color:#fff}.layui-checkbox-disabled[lay-skin=primary] span{background:0 0!important;color:#c2c2c2!important}.layui-checkbox-disabled[lay-skin=primary]:hover i{border-color:#d2d2d2}.layui-form-item .layui-form-checkbox[lay-skin=primary]{margin-top:10px}.layui-form-switch{position:relative;height:22px;line-height:22px;min-width:35px;padding:0 5px;margin-top:8px;border:1px solid #d2d2d2;border-radius:20px;cursor:pointer;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch i{position:absolute;left:5px;top:3px;width:16px;height:16px;border-radius:20px;background-color:#d2d2d2;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch em{position:relative;top:0;width:25px;margin-left:21px;padding:0!important;text-align:center!important;color:#999!important;font-style:normal!important;font-size:12px}.layui-form-onswitch{border-color:#5FB878;background-color:#5FB878}.layui-checkbox-disabled,.layui-checkbox-disabled i{border-color:#eee!important}.layui-form-onswitch i{left:100%;margin-left:-21px;background-color:#fff}.layui-form-onswitch em{margin-left:5px;margin-right:21px;color:#fff!important}.layui-checkbox-disabled span{background-color:#eee!important}.layui-checkbox-disabled em{color:#d2d2d2!important}.layui-checkbox-disabled:hover i{color:#fff!important}[lay-radio]{display:none}.layui-form-radio,.layui-form-radio *{display:inline-block;vertical-align:middle}.layui-form-radio{line-height:28px;margin:6px 10px 0 0;padding-right:10px;cursor:pointer;font-size:0}.layui-form-radio *{font-size:14px}.layui-form-radio>i{margin-right:8px;font-size:22px;color:#c2c2c2}.layui-form-radio:hover *,.layui-form-radioed,.layui-form-radioed>i{color:#5FB878}.layui-radio-disabled>i{color:#eee!important}.layui-radio-disabled *{color:#c2c2c2!important}.layui-form-pane .layui-form-label{width:110px;padding:8px 15px;height:38px;line-height:20px;border-width:1px;border-style:solid;border-radius:2px 0 0 2px;text-align:center;background-color:#FAFAFA;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box}.layui-form-pane .layui-input-inline{margin-left:-1px}.layui-form-pane .layui-input-block{margin-left:110px;left:-1px}.layui-form-pane .layui-input{border-radius:0 2px 2px 0}.layui-form-pane .layui-form-text .layui-form-label{float:none;width:100%;border-radius:2px;box-sizing:border-box;text-align:left}.layui-form-pane .layui-form-text .layui-input-inline{display:block;margin:0;top:-1px;clear:both}.layui-form-pane .layui-form-text .layui-input-block{margin:0;left:0;top:-1px}.layui-form-pane .layui-form-text .layui-textarea{min-height:100px;border-radius:0 0 2px 2px}.layui-form-pane .layui-form-checkbox{margin:4px 0 4px 10px}.layui-form-pane .layui-form-radio,.layui-form-pane .layui-form-switch{margin-top:6px;margin-left:10px}.layui-form-pane .layui-form-item[pane]{position:relative;border-width:1px;border-style:solid}.layui-form-pane .layui-form-item[pane] .layui-form-label{position:absolute;left:0;top:0;height:100%;border-width:0 1px 0 0}.layui-form-pane .layui-form-item[pane] .layui-input-inline{margin-left:110px}@media screen and (max-width:450px){.layui-form-item .layui-form-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-form-item .layui-inline{display:block;margin-right:0;margin-bottom:20px;clear:both}.layui-form-item .layui-inline:after{content:'\20';clear:both;display:block;height:0}.layui-form-item .layui-input-inline{display:block;float:none;left:-3px;width:auto!important;margin:0 0 10px 112px}.layui-form-item .layui-input-inline+.layui-form-mid{margin-left:110px;top:-5px;padding:0}.layui-form-item .layui-form-checkbox{margin-right:5px;margin-bottom:5px}}.layui-layedit{border-width:1px;border-style:solid;border-radius:2px}.layui-layedit-tool{padding:3px 5px;border-bottom-width:1px;border-bottom-style:solid;font-size:0}.layedit-tool-fixed{position:fixed;top:0;border-top:1px solid #eee}.layui-layedit-tool .layedit-tool-mid,.layui-layedit-tool .layui-icon{display:inline-block;vertical-align:middle;text-align:center;font-size:14px}.layui-layedit-tool .layui-icon{position:relative;width:32px;height:30px;line-height:30px;margin:3px 5px;color:#777;cursor:pointer;border-radius:2px}.layui-layedit-tool .layui-icon:hover{color:#393D49}.layui-layedit-tool .layui-icon:active{color:#000}.layui-layedit-tool .layedit-tool-active{background-color:#eee;color:#000}.layui-layedit-tool .layui-disabled,.layui-layedit-tool .layui-disabled:hover{color:#d2d2d2;cursor:not-allowed}.layui-layedit-tool .layedit-tool-mid{width:1px;height:18px;margin:0 10px;background-color:#d2d2d2}.layedit-tool-html{width:50px!important;font-size:30px!important}.layedit-tool-b,.layedit-tool-code,.layedit-tool-help{font-size:16px!important}.layedit-tool-d,.layedit-tool-face,.layedit-tool-image,.layedit-tool-unlink{font-size:18px!important}.layedit-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-layedit-iframe iframe{display:block;width:100%}#LAY_layedit_code{overflow:hidden}.layui-laypage{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;margin:10px 0;font-size:0}.layui-laypage>a:first-child,.layui-laypage>a:first-child em{border-radius:2px 0 0 2px}.layui-laypage>a:last-child,.layui-laypage>a:last-child em{border-radius:0 2px 2px 0}.layui-laypage>:first-child{margin-left:0!important}.layui-laypage>:last-child{margin-right:0!important}.layui-laypage a,.layui-laypage button,.layui-laypage input,.layui-laypage select,.layui-laypage span{border:1px solid #eee}.layui-laypage a,.layui-laypage span{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding:0 15px;height:28px;line-height:28px;margin:0 -1px 5px 0;background-color:#fff;color:#333;font-size:12px}.layui-flow-more a *,.layui-laypage input,.layui-table-view select[lay-ignore]{display:inline-block}.layui-laypage a:hover{color:#009688}.layui-laypage em{font-style:normal}.layui-laypage .layui-laypage-spr{color:#999;font-weight:700}.layui-laypage a{text-decoration:none}.layui-laypage .layui-laypage-curr{position:relative}.layui-laypage .layui-laypage-curr em{position:relative;color:#fff}.layui-laypage .layui-laypage-curr .layui-laypage-em{position:absolute;left:-1px;top:-1px;padding:1px;width:100%;height:100%;background-color:#009688}.layui-laypage-em{border-radius:2px}.layui-laypage-next em,.layui-laypage-prev em{font-family:Sim sun;font-size:16px}.layui-laypage .layui-laypage-count,.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh,.layui-laypage .layui-laypage-skip{margin-left:10px;margin-right:10px;padding:0;border:none}.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh{vertical-align:top}.layui-laypage .layui-laypage-refresh i{font-size:18px;cursor:pointer}.layui-laypage select{height:22px;padding:3px;border-radius:2px;cursor:pointer}.layui-laypage .layui-laypage-skip{height:30px;line-height:30px;color:#999}.layui-laypage button,.layui-laypage input{height:30px;line-height:30px;border-radius:2px;vertical-align:top;background-color:#fff;box-sizing:border-box}.layui-laypage input{width:40px;margin:0 10px;padding:0 3px;text-align:center}.layui-laypage input:focus,.layui-laypage select:focus{border-color:#009688!important}.layui-laypage button{margin-left:10px;padding:0 10px;cursor:pointer}.layui-table,.layui-table-view{margin:10px 0}.layui-flow-more{margin:10px 0;text-align:center;color:#999;font-size:14px}.layui-flow-more a{height:32px;line-height:32px}.layui-flow-more a *{vertical-align:top}.layui-flow-more a cite{padding:0 20px;border-radius:3px;background-color:#eee;color:#333;font-style:normal}.layui-flow-more a cite:hover{opacity:.8}.layui-flow-more a i{font-size:30px;color:#737383}.layui-table{width:100%;background-color:#fff;color:#666}.layui-table tr{transition:all .3s;-webkit-transition:all .3s}.layui-table th{text-align:left;font-weight:400}.layui-table tbody tr:hover,.layui-table thead tr,.layui-table-click,.layui-table-header,.layui-table-hover,.layui-table-mend,.layui-table-patch,.layui-table-tool,.layui-table-total,.layui-table-total tr,.layui-table[lay-even] tr:nth-child(even){background-color:#FAFAFA}.layui-table td,.layui-table th,.layui-table-col-set,.layui-table-fixed-r,.layui-table-grid-down,.layui-table-header,.layui-table-page,.layui-table-tips-main,.layui-table-tool,.layui-table-total,.layui-table-view,.layui-table[lay-skin=line],.layui-table[lay-skin=row]{border-width:1px;border-style:solid;border-color:#eee}.layui-table td,.layui-table th{position:relative;padding:9px 15px;min-height:20px;line-height:20px;font-size:14px}.layui-table[lay-skin=line] td,.layui-table[lay-skin=line] th{border-width:0 0 1px}.layui-table[lay-skin=row] td,.layui-table[lay-skin=row] th{border-width:0 1px 0 0}.layui-table[lay-skin=nob] td,.layui-table[lay-skin=nob] th{border:none}.layui-table img{max-width:100px}.layui-table[lay-size=lg] td,.layui-table[lay-size=lg] th{padding:15px 30px}.layui-table-view .layui-table[lay-size=lg] .layui-table-cell{height:40px;line-height:40px}.layui-table[lay-size=sm] td,.layui-table[lay-size=sm] th{font-size:12px;padding:5px 10px}.layui-table-view .layui-table[lay-size=sm] .layui-table-cell{height:20px;line-height:20px}.layui-table[lay-data]{display:none}.layui-table-box{position:relative;overflow:hidden}.layui-table-view .layui-table{position:relative;width:auto;margin:0}.layui-table-view .layui-table[lay-skin=line]{border-width:0 1px 0 0}.layui-table-view .layui-table[lay-skin=row]{border-width:0 0 1px}.layui-table-view .layui-table td,.layui-table-view .layui-table th{padding:5px 0;border-top:none;border-left:none}.layui-table-view .layui-table th.layui-unselect .layui-table-cell span{cursor:pointer}.layui-table-view .layui-table td{cursor:default}.layui-table-view .layui-table td[data-edit=text]{cursor:text}.layui-table-view .layui-form-checkbox[lay-skin=primary] i{width:18px;height:18px}.layui-table-view .layui-form-radio{line-height:0;padding:0}.layui-table-view .layui-form-radio>i{margin:0;font-size:20px}.layui-table-init{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:110}.layui-table-init .layui-icon{position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px;font-size:30px;color:#c2c2c2}.layui-table-header{border-width:0 0 1px;overflow:hidden}.layui-table-header .layui-table{margin-bottom:-1px}.layui-table-tool .layui-inline[lay-event]{position:relative;width:26px;height:26px;padding:5px;line-height:16px;margin-right:10px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool .layui-inline[lay-event]:hover{border:1px solid #999}.layui-table-tool-temp{padding-right:120px}.layui-table-tool-self{position:absolute;right:17px;top:10px}.layui-table-tool .layui-table-tool-self .layui-inline[lay-event]{margin:0 0 0 10px}.layui-table-tool-panel{position:absolute;top:29px;left:-1px;padding:5px 0;min-width:150px;min-height:40px;border:1px solid #d2d2d2;text-align:left;overflow-y:auto;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-table-cell,.layui-table-tool-panel li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layui-table-tool-panel li{padding:0 10px;line-height:30px;-webkit-transition:.5s all;transition:.5s all}.layui-menu li,.layui-menu-body-title a:hover,.layui-menu-body-title>.layui-icon:hover{transition:all .3s}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{width:100%;padding-left:28px}.layui-table-tool-panel li:hover{background-color:#F6F6F6}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i{position:absolute;left:0;top:0}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span{padding:0}.layui-table-tool .layui-table-tool-self .layui-table-tool-panel{left:auto;right:-1px}.layui-table-col-set{position:absolute;right:0;top:0;width:20px;height:100%;border-width:0 0 0 1px;background-color:#fff}.layui-table-sort{width:10px;height:20px;margin-left:5px;cursor:pointer!important}.layui-table-sort .layui-edge{position:absolute;left:5px;border-width:5px}.layui-table-sort .layui-table-sort-asc{top:3px;border-top:none;border-bottom-style:solid;border-bottom-color:#b2b2b2}.layui-table-sort .layui-table-sort-asc:hover{border-bottom-color:#666}.layui-table-sort .layui-table-sort-desc{bottom:5px;border-bottom:none;border-top-style:solid;border-top-color:#b2b2b2}.layui-table-sort .layui-table-sort-desc:hover{border-top-color:#666}.layui-table-sort[lay-sort=asc] .layui-table-sort-asc{border-bottom-color:#000}.layui-table-sort[lay-sort=desc] .layui-table-sort-desc{border-top-color:#000}.layui-table-cell{height:28px;line-height:28px;padding:0 15px;position:relative;box-sizing:border-box}.layui-table-cell .layui-form-checkbox[lay-skin=primary]{top:-1px;padding:0}.layui-table-cell .layui-table-link{color:#01AAED}.laytable-cell-checkbox,.laytable-cell-numbers,.laytable-cell-radio,.laytable-cell-space{padding:0;text-align:center}.layui-table-body{position:relative;overflow:auto;margin-right:-1px;margin-bottom:-1px}.layui-table-body .layui-none{line-height:26px;padding:30px 15px;text-align:center;color:#999}.layui-table-fixed{position:absolute;left:0;top:0;z-index:101}.layui-table-fixed .layui-table-body{overflow:hidden}.layui-table-fixed-l{box-shadow:1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r{left:auto;right:-1px;border-width:0 0 0 1px;box-shadow:-1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r .layui-table-header{position:relative;overflow:visible}.layui-table-mend{position:absolute;right:-49px;top:0;height:100%;width:50px}.layui-table-tool{position:relative;z-index:890;width:100%;min-height:50px;line-height:30px;padding:10px 15px;border-width:0 0 1px}.layui-table-tool .layui-btn-container{margin-bottom:-10px}.layui-table-page,.layui-table-total{border-width:1px 0 0;margin-bottom:-1px;overflow:hidden}.layui-table-page{position:relative;width:100%;padding:7px 7px 0;height:41px;font-size:12px;white-space:nowrap}.layui-table-page>div{height:26px}.layui-table-page .layui-laypage{margin:0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span{height:26px;line-height:26px;margin-bottom:10px;border:none;background:0 0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span.layui-laypage-curr{padding:0 12px}.layui-table-page .layui-laypage span{margin-left:0;padding:0}.layui-table-page .layui-laypage .layui-laypage-prev{margin-left:-7px!important}.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em{left:0;top:0;padding:0}.layui-table-page .layui-laypage button,.layui-table-page .layui-laypage input{height:26px;line-height:26px}.layui-table-page .layui-laypage input{width:40px}.layui-table-page .layui-laypage button{padding:0 10px}.layui-table-page select{height:18px}.layui-table-patch .layui-table-cell{padding:0;width:30px}.layui-table-edit{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 14px 1px;border-radius:0;box-shadow:1px 1px 20px rgba(0,0,0,.15)}.layui-table-edit:focus{border-color:#5FB878!important}select.layui-table-edit{padding:0 0 0 10px;border-color:#d2d2d2}.layui-table-view .layui-form-checkbox,.layui-table-view .layui-form-radio,.layui-table-view .layui-form-switch{top:0;margin:0;box-sizing:content-box}.layui-colorpicker-alpha-slider,.layui-colorpicker-side-slider,.layui-menu,.layui-menu *,.layui-nav{box-sizing:border-box}.layui-table-view .layui-form-checkbox{top:-1px;height:26px;line-height:26px}.layui-table-view .layui-form-checkbox i{height:26px}.layui-table-grid .layui-table-cell{overflow:visible}.layui-table-grid-down{position:absolute;top:0;right:0;width:26px;height:100%;padding:5px 0;border-width:0 0 0 1px;text-align:center;background-color:#fff;color:#999;cursor:pointer}.layui-table-grid-down .layui-icon{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.layui-table-grid-down:hover{background-color:#fbfbfb}body .layui-table-tips .layui-layer-content{background:0 0;padding:0;box-shadow:0 1px 6px rgba(0,0,0,.12)}.layui-table-tips-main{margin:-44px 0 0 -1px;max-height:150px;padding:8px 15px;font-size:14px;overflow-y:scroll;background-color:#fff;color:#666}.layui-table-tips-c{position:absolute;right:-3px;top:-13px;width:20px;height:20px;padding:3px;cursor:pointer;background-color:#666;border-radius:50%;color:#fff}.layui-table-tips-c:hover{background-color:#777}.layui-table-tips-c:before{position:relative;right:-2px}.layui-upload-file{display:none!important;opacity:.01;filter:Alpha(opacity=1)}.layui-upload-drag,.layui-upload-form,.layui-upload-wrap{display:inline-block}.layui-upload-list{margin:10px 0}.layui-upload-choose{max-width:200px;padding:0 10px;color:#999;font-size:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-upload-drag{position:relative;padding:30px;border:1px dashed #e2e2e2;background-color:#fff;text-align:center;cursor:pointer;color:#999}.layui-upload-drag .layui-icon{font-size:50px;color:#009688}.layui-upload-drag[lay-over]{border-color:#009688}.layui-upload-iframe{position:absolute;width:0;height:0;border:0;visibility:hidden}.layui-upload-wrap{position:relative;vertical-align:middle}.layui-upload-wrap .layui-upload-file{display:block!important;position:absolute;left:0;top:0;z-index:10;font-size:100px;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-btn-container .layui-upload-choose{padding-left:0}.layui-menu{position:relative;margin:5px 0;background-color:#fff}.layui-menu li,.layui-menu-body-title a{padding:5px 15px}.layui-menu li{position:relative;margin:1px 0;width:calc(100% + 1px);line-height:26px;color:rgba(0,0,0,.8);font-size:14px;white-space:nowrap;cursor:pointer}.layui-menu li:hover{background-color:#F6F6F6}.layui-menu-item-parent:hover>.layui-menu-body-panel{display:block;animation-name:layui-fadein;animation-duration:.3s;animation-fill-mode:both;animation-delay:.2s}.layui-menu-item-group .layui-menu-body-title,.layui-menu-item-parent .layui-menu-body-title{padding-right:25px}.layui-menu .layui-menu-item-divider:hover,.layui-menu .layui-menu-item-group:hover,.layui-menu .layui-menu-item-none:hover{background:0 0;cursor:default}.layui-menu .layui-menu-item-group>ul{margin:5px 0 -5px}.layui-menu .layui-menu-item-group>.layui-menu-body-title{color:rgba(0,0,0,.35);user-select:none}.layui-menu .layui-menu-item-none{color:rgba(0,0,0,.35);cursor:default;text-align:center}.layui-menu .layui-menu-item-divider{margin:5px 0;padding:0;height:0;line-height:0;border-bottom:1px solid #eee;overflow:hidden}.layui-menu .layui-menu-item-down:hover,.layui-menu .layui-menu-item-up:hover{cursor:pointer}.layui-menu .layui-menu-item-up>.layui-menu-body-title{color:rgba(0,0,0,.8)}.layui-menu .layui-menu-item-up>ul{visibility:hidden;height:0;overflow:hidden}.layui-menu .layui-menu-item-down:hover>.layui-menu-body-title>.layui-icon,.layui-menu .layui-menu-item-up>.layui-menu-body-title:hover>.layui-icon{color:rgba(0,0,0,1)}.layui-menu .layui-menu-item-down>ul{visibility:visible;height:auto}.layui-breadcrumb,.layui-tree-btnGroup{visibility:hidden}.layui-menu .layui-menu-item-checked,.layui-menu .layui-menu-item-checked2{background-color:#F6F6F6!important;color:#5FB878}.layui-menu .layui-menu-item-checked a,.layui-menu .layui-menu-item-checked2 a{color:#5FB878}.layui-menu .layui-menu-item-checked:after{position:absolute;right:0;top:0;bottom:0;border-right:3px solid #5FB878;content:""}.layui-menu-body-title{position:relative;overflow:hidden;text-overflow:ellipsis}.layui-menu-body-title a{display:block;margin:-5px -15px;color:rgba(0,0,0,.8)}.layui-menu-body-title>.layui-icon{position:absolute;right:0;top:0;font-size:14px}.layui-menu-body-title>.layui-icon-right{right:-1px}.layui-menu-body-panel{display:none;position:absolute;top:-7px;left:100%;z-index:1000;margin-left:13px;padding:5px 0}.layui-menu-body-panel:before{content:"";position:absolute;width:20px;left:-16px;top:0;bottom:0}.layui-menu-body-panel-left{left:auto;right:100%;margin:0 13px}.layui-menu-body-panel-left:before{left:auto;right:-16px}.layui-menu-lg li{line-height:32px}.layui-menu-lg .layui-menu-body-title a:hover,.layui-menu-lg li:hover{background:0 0;color:#5FB878}.layui-menu-lg li .layui-menu-body-panel{margin-left:14px}.layui-menu-lg li .layui-menu-body-panel-left{margin:0 15px}.layui-dropdown{position:absolute;left:-999999px;top:-999999px;z-index:66666666;margin:5px 0;min-width:100px}.layui-dropdown:before{content:"";position:absolute;width:100%;height:6px;left:0;top:-6px}.layui-nav{position:relative;padding:0 20px;background-color:#393D49;color:#fff;border-radius:2px;font-size:0}.layui-nav *{font-size:14px}.layui-nav .layui-nav-item{position:relative;display:inline-block;*display:inline;*zoom:1;vertical-align:middle;line-height:60px}.layui-nav .layui-nav-item a{display:block;padding:0 20px;color:#fff;color:rgba(255,255,255,.7);transition:all .3s;-webkit-transition:all .3s}.layui-nav .layui-this:after,.layui-nav-bar{content:"";position:absolute;left:0;top:0;width:0;height:5px;background-color:#5FB878;transition:all .2s;-webkit-transition:all .2s;pointer-events:none}.layui-nav-bar{z-index:1000}.layui-nav[lay-bar=disabled] .layui-nav-bar{display:none}.layui-nav .layui-nav-item a:hover,.layui-nav .layui-this a{color:#fff}.layui-nav .layui-this:after{top:auto;bottom:0;width:100%}.layui-nav-img{width:30px;height:30px;margin-right:10px;border-radius:50%}.layui-nav .layui-nav-more{position:absolute;top:0;right:3px;left:auto!important;margin-top:0;font-size:12px;cursor:pointer;transition:all .2s;-webkit-transition:all .2s}.layui-nav .layui-nav-mored,.layui-nav-itemed>a .layui-nav-more{transform:rotate(180deg)}.layui-nav-child{display:none;position:absolute;left:0;top:65px;min-width:100%;line-height:36px;padding:5px 0;box-shadow:0 2px 4px rgba(0,0,0,.12);border:1px solid #eee;background-color:#fff;z-index:100;border-radius:2px;white-space:nowrap}.layui-nav .layui-nav-child a{color:#666;color:rgba(0,0,0,.8)}.layui-nav .layui-nav-child a:hover{background-color:#F6F6F6;color:rgba(0,0,0,.8)}.layui-nav-child dd{margin:1px 0;position:relative}.layui-nav-child dd.layui-this{background-color:#F6F6F6;color:#000}.layui-nav-child dd.layui-this:after{display:none}.layui-nav-child-r{left:auto;right:0}.layui-nav-child-c{text-align:center}.layui-nav-tree{width:200px;padding:0}.layui-nav-tree .layui-nav-item{display:block;width:100%;line-height:40px}.layui-nav-tree .layui-nav-item a{position:relative;height:40px;line-height:40px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-nav-tree .layui-nav-item>a{padding-top:5px;padding-bottom:5px}.layui-nav-tree .layui-nav-more{right:15px}.layui-nav-tree .layui-nav-item>a .layui-nav-more{padding:5px 0}.layui-nav-tree .layui-nav-bar{width:5px;height:0;background-color:#009688}.layui-side .layui-nav-tree .layui-nav-bar{width:2px}.layui-nav-tree .layui-nav-child dd.layui-this,.layui-nav-tree .layui-nav-child dd.layui-this a,.layui-nav-tree .layui-this,.layui-nav-tree .layui-this>a,.layui-nav-tree .layui-this>a:hover{background-color:#009688;color:#fff}.layui-nav-tree .layui-this:after{display:none}.layui-nav-itemed>a,.layui-nav-tree .layui-nav-title a,.layui-nav-tree .layui-nav-title a:hover{color:#fff!important}.layui-nav-tree .layui-nav-child{position:relative;z-index:0;top:0;border:none;box-shadow:none}.layui-nav-tree .layui-nav-child dd{margin:0}.layui-nav-tree .layui-nav-child a{color:#fff;color:rgba(255,255,255,.7)}.layui-nav-tree .layui-nav-child,.layui-nav-tree .layui-nav-child a:hover{background:0 0;color:#fff}.layui-nav-itemed>.layui-nav-child{display:block;background-color:rgba(0,0,0,.3)!important}.layui-nav-itemed>.layui-nav-child>.layui-this>.layui-nav-child{display:block}.layui-nav-side{position:fixed;top:0;bottom:0;left:0;overflow-x:hidden;z-index:999}.layui-breadcrumb{font-size:0}.layui-breadcrumb>*{font-size:14px}.layui-breadcrumb a{color:#999!important}.layui-breadcrumb a:hover{color:#5FB878!important}.layui-breadcrumb a cite{color:#666;font-style:normal}.layui-breadcrumb span[lay-separator]{margin:0 10px;color:#999}.layui-tab{margin:10px 0;text-align:left!important}.layui-tab[overflow]>.layui-tab-title{overflow:hidden}.layui-tab-title{position:relative;left:0;height:40px;white-space:nowrap;font-size:0;border-bottom-width:1px;border-bottom-style:solid;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;font-size:14px;transition:all .2s;-webkit-transition:all .2s;position:relative;line-height:40px;min-width:65px;padding:0 15px;text-align:center;cursor:pointer}.layui-tab-title li a{display:block;padding:0 15px;margin:0 -15px}.layui-tab-title .layui-this{color:#000}.layui-tab-title .layui-this:after{position:absolute;left:0;top:0;content:"";width:100%;height:41px;border-width:1px;border-style:solid;border-bottom-color:#fff;border-radius:2px 2px 0 0;box-sizing:border-box;pointer-events:none}.layui-tab-bar{position:absolute;right:0;top:0;z-index:10;width:30px;height:39px;line-height:39px;border-width:1px;border-style:solid;border-radius:2px;text-align:center;background-color:#fff;cursor:pointer}.layui-tab-bar .layui-icon{position:relative;display:inline-block;top:3px;transition:all .3s;-webkit-transition:all .3s}.layui-tab-item{display:none}.layui-tab-more{padding-right:30px;height:auto!important;white-space:normal!important}.layui-tab-more li.layui-this:after{border-bottom-color:#eee;border-radius:2px}.layui-tab-more .layui-tab-bar .layui-icon{top:-2px;top:3px\9;-webkit-transform:rotate(180deg);transform:rotate(180deg)}:root .layui-tab-more .layui-tab-bar .layui-icon{top:-2px\0/IE9}.layui-tab-content{padding:15px 0}.layui-tab-title li .layui-tab-close{position:relative;display:inline-block;width:18px;height:18px;line-height:20px;margin-left:8px;top:1px;text-align:center;font-size:14px;color:#c2c2c2;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li .layui-tab-close:hover{border-radius:2px;background-color:#FF5722;color:#fff}.layui-tab-brief>.layui-tab-title .layui-this{color:#009688}.layui-tab-brief>.layui-tab-more li.layui-this:after,.layui-tab-brief>.layui-tab-title .layui-this:after{border:none;border-radius:0;border-bottom:2px solid #5FB878}.layui-tab-brief[overflow]>.layui-tab-title .layui-this:after{top:-1px}.layui-tab-card{border-width:1px;border-style:solid;border-radius:2px;box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.layui-tab-card>.layui-tab-title{background-color:#FAFAFA}.layui-tab-card>.layui-tab-title li{margin-right:-1px;margin-left:-1px}.layui-tab-card>.layui-tab-title .layui-this{background-color:#fff}.layui-tab-card>.layui-tab-title .layui-this:after{border-top:none;border-width:1px;border-bottom-color:#fff}.layui-tab-card>.layui-tab-title .layui-tab-bar{height:40px;line-height:40px;border-radius:0;border-top:none;border-right:none}.layui-tab-card>.layui-tab-more .layui-this{background:0 0;color:#5FB878}.layui-tab-card>.layui-tab-more .layui-this:after{border:none}.layui-timeline{padding-left:5px}.layui-timeline-item{position:relative;padding-bottom:20px}.layui-timeline-axis{position:absolute;left:-5px;top:0;z-index:10;width:20px;height:20px;line-height:20px;background-color:#fff;color:#5FB878;border-radius:50%;text-align:center;cursor:pointer}.layui-timeline-axis:hover{color:#FF5722}.layui-timeline-item:before{content:"";position:absolute;left:5px;top:0;z-index:0;width:1px;height:100%}.layui-timeline-item:first-child:before{display:block}.layui-timeline-item:last-child:before{display:none}.layui-timeline-content{padding-left:25px}.layui-timeline-title{position:relative;margin-bottom:10px;line-height:22px}.layui-badge,.layui-badge-dot,.layui-badge-rim{position:relative;display:inline-block;padding:0 6px;font-size:12px;text-align:center;background-color:#FF5722;color:#fff;border-radius:2px}.layui-badge{height:18px;line-height:18px}.layui-badge-dot{width:8px;height:8px;padding:0;border-radius:50%}.layui-badge-rim{height:18px;line-height:18px;border-width:1px;border-style:solid;background-color:#fff;color:#666}.layui-btn .layui-badge,.layui-btn .layui-badge-dot{margin-left:5px}.layui-nav .layui-badge,.layui-nav .layui-badge-dot{position:absolute;top:50%;margin:-5px 6px 0}.layui-nav .layui-badge{margin-top:-10px}.layui-tab-title .layui-badge,.layui-tab-title .layui-badge-dot{left:5px;top:-2px}.layui-carousel{position:relative;left:0;top:0;background-color:#f8f8f8}.layui-carousel>[carousel-item]{position:relative;width:100%;height:100%;overflow:hidden}.layui-carousel>[carousel-item]:before{position:absolute;content:'\e63d';left:50%;top:50%;width:100px;line-height:20px;margin:-10px 0 0 -50px;text-align:center;color:#c2c2c2;font-family:layui-icon!important;font-size:30px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-carousel>[carousel-item]>*{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f8f8f8;transition-duration:.3s;-webkit-transition-duration:.3s}.layui-carousel-updown>*{-webkit-transition:.3s ease-in-out up;transition:.3s ease-in-out up}.layui-carousel-arrow{display:none\9;opacity:0;position:absolute;left:10px;top:50%;margin-top:-18px;width:36px;height:36px;line-height:36px;text-align:center;font-size:20px;border:0;border-radius:50%;background-color:rgba(0,0,0,.2);color:#fff;-webkit-transition-duration:.3s;transition-duration:.3s;cursor:pointer}.layui-carousel-arrow[lay-type=add]{left:auto!important;right:10px}.layui-carousel:hover .layui-carousel-arrow[lay-type=add],.layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow{opacity:1;left:20px}.layui-carousel[lay-arrow=none] .layui-carousel-arrow{display:none}.layui-carousel-arrow:hover,.layui-carousel-ind ul:hover{background-color:rgba(0,0,0,.35)}.layui-carousel:hover .layui-carousel-arrow{display:block\9;opacity:1;left:20px}.layui-carousel-ind{position:relative;top:-35px;width:100%;line-height:0!important;text-align:center;font-size:0}.layui-carousel[lay-indicator=outside]{margin-bottom:30px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind{top:10px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul{background-color:rgba(0,0,0,.5)}.layui-carousel[lay-indicator=none] .layui-carousel-ind{display:none}.layui-carousel-ind ul{display:inline-block;padding:5px;background-color:rgba(0,0,0,.2);border-radius:10px;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li{display:inline-block;width:10px;height:10px;margin:0 3px;font-size:14px;background-color:#eee;background-color:rgba(255,255,255,.5);border-radius:50%;cursor:pointer;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li:hover{background-color:rgba(255,255,255,.7)}.layui-carousel-ind li.layui-this{background-color:#fff}.layui-carousel>[carousel-item]>.layui-carousel-next,.layui-carousel>[carousel-item]>.layui-carousel-prev,.layui-carousel>[carousel-item]>.layui-this{display:block}.layui-carousel>[carousel-item]>.layui-this{left:0}.layui-carousel>[carousel-item]>.layui-carousel-prev{left:-100%}.layui-carousel>[carousel-item]>.layui-carousel-next{left:100%}.layui-carousel>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel>[carousel-item]>.layui-carousel-prev.layui-carousel-right{left:0}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-left{left:-100%}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-right{left:100%}.layui-carousel[lay-anim=updown] .layui-carousel-arrow{left:50%!important;top:20px;margin:0 0 0 -18px}.layui-carousel[lay-anim=updown]>[carousel-item]>*,.layui-carousel[lay-anim=fade]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add]{top:auto!important;bottom:20px}.layui-carousel[lay-anim=updown] .layui-carousel-ind{position:absolute;top:50%;right:20px;width:auto;height:auto}.layui-carousel[lay-anim=updown] .layui-carousel-ind ul{padding:3px 5px}.layui-carousel[lay-anim=updown] .layui-carousel-ind li{display:block;margin:6px 0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next{top:100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-left{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-right{top:100%}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev{opacity:0}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{opacity:1}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-right{opacity:0}.layui-fixbar{position:fixed;right:15px;bottom:15px;z-index:999999}.layui-fixbar li{width:50px;height:50px;line-height:50px;margin-bottom:1px;text-align:center;cursor:pointer;font-size:30px;background-color:#9F9F9F;color:#fff;border-radius:2px;opacity:.95}.layui-fixbar li:hover{opacity:.85}.layui-fixbar li:active{opacity:1}.layui-fixbar .layui-fixbar-top{display:none;font-size:40px}body .layui-util-face{border:none;background:0 0}body .layui-util-face .layui-layer-content{padding:0;background-color:#fff;color:#666;box-shadow:none}.layui-util-face .layui-layer-TipsG{display:none}.layui-transfer-active,.layui-transfer-box{display:inline-block;vertical-align:middle}.layui-util-face ul{position:relative;width:372px;padding:10px;border:1px solid #D9D9D9;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.2)}.layui-util-face ul li{cursor:pointer;float:left;border:1px solid #e8e8e8;height:22px;width:26px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.layui-util-face ul li:hover{position:relative;z-index:2;border:1px solid #eb7350;background:#fff9ec}.layui-code{position:relative;margin:10px 0;padding:15px;line-height:20px;border:1px solid #eee;border-left-width:6px;background-color:#FAFAFA;color:#333;font-family:Courier New;font-size:12px}.layui-transfer-box,.layui-transfer-header,.layui-transfer-search{border-width:0;border-style:solid;border-color:#eee}.layui-transfer-box{position:relative;border-width:1px;width:200px;height:360px;border-radius:2px;background-color:#fff}.layui-transfer-box .layui-form-checkbox{width:100%;margin:0!important}.layui-transfer-header{height:38px;line-height:38px;padding:0 10px;border-bottom-width:1px}.layui-transfer-search{position:relative;padding:10px;border-bottom-width:1px}.layui-transfer-search .layui-input{height:32px;padding-left:30px;font-size:12px}.layui-transfer-search .layui-icon-search{position:absolute;left:20px;top:50%;margin-top:-8px;color:#666}.layui-transfer-active{margin:0 15px}.layui-transfer-active .layui-btn{display:block;margin:0;padding:0 15px;background-color:#5FB878;border-color:#5FB878;color:#fff}.layui-transfer-active .layui-btn-disabled{background-color:#FBFBFB;border-color:#eee;color:#d2d2d2}.layui-transfer-active .layui-btn:first-child{margin-bottom:15px}.layui-transfer-active .layui-btn .layui-icon{margin:0;font-size:14px!important}.layui-transfer-data{padding:5px 0;overflow:auto}.layui-transfer-data li{height:32px;line-height:32px;padding:0 10px}.layui-transfer-data li:hover{background-color:#F6F6F6;transition:.5s all}.layui-transfer-data .layui-none{padding:15px 10px;text-align:center;color:#999}.layui-rate,.layui-rate *{display:inline-block;vertical-align:middle}.layui-rate{padding:10px 5px 10px 0;font-size:0}.layui-rate li i.layui-icon{font-size:20px;color:#FFB800;margin-right:5px;transition:all .3s;-webkit-transition:all .3s}.layui-rate li i:hover{cursor:pointer;transform:scale(1.12);-webkit-transform:scale(1.12)}.layui-rate[readonly] li i:hover{cursor:default;transform:scale(1)}.layui-colorpicker{width:26px;height:26px;border:1px solid #eee;padding:5px;border-radius:2px;line-height:24px;display:inline-block;cursor:pointer;transition:all .3s;-webkit-transition:all .3s}.layui-colorpicker:hover{border-color:#d2d2d2}.layui-colorpicker.layui-colorpicker-lg{width:34px;height:34px;line-height:32px}.layui-colorpicker.layui-colorpicker-sm{width:24px;height:24px;line-height:22px}.layui-colorpicker.layui-colorpicker-xs{width:22px;height:22px;line-height:20px}.layui-colorpicker-trigger-bgcolor{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);border-radius:2px}.layui-colorpicker-trigger-span{display:block;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.15);border-radius:2px;text-align:center}.layui-colorpicker-trigger-i{display:inline-block;color:#FFF;font-size:12px}.layui-colorpicker-trigger-i.layui-icon-close{color:#999}.layui-colorpicker-main{position:absolute;left:-999999px;top:-999999px;z-index:66666666;width:280px;margin:5px 0;padding:7px;background:#FFF;border:1px solid #d2d2d2;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-colorpicker-main-wrapper{height:180px;position:relative}.layui-colorpicker-basis{width:260px;height:100%;position:relative}.layui-colorpicker-basis-white{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#FFF,hsla(0,0%,100%,0))}.layui-colorpicker-basis-black{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(0deg,#000,transparent)}.layui-colorpicker-basis-cursor{width:10px;height:10px;border:1px solid #FFF;border-radius:50%;position:absolute;top:-3px;right:-3px;cursor:pointer}.layui-colorpicker-side{position:absolute;top:0;right:0;width:12px;height:100%;background:linear-gradient(red,#FF0,#0F0,#0FF,#00F,#F0F,red)}.layui-colorpicker-side-slider{width:100%;height:5px;box-shadow:0 0 1px #888;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;left:0}.layui-colorpicker-main-alpha{display:none;height:12px;margin-top:7px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-alpha-bgcolor{height:100%;position:relative}.layui-colorpicker-alpha-slider{width:5px;height:100%;box-shadow:0 0 1px #888;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;top:0}.layui-colorpicker-main-pre{padding-top:7px;font-size:0}.layui-colorpicker-pre{width:20px;height:20px;border-radius:2px;display:inline-block;margin-left:6px;margin-bottom:7px;cursor:pointer}.layui-colorpicker-pre:nth-child(11n+1){margin-left:0}.layui-colorpicker-pre-isalpha{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-pre.layui-this{box-shadow:0 0 3px 2px rgba(0,0,0,.15)}.layui-colorpicker-pre>div{height:100%;border-radius:2px}.layui-colorpicker-main-input{text-align:right;padding-top:7px}.layui-colorpicker-main-input .layui-btn-container .layui-btn{margin:0 0 0 10px}.layui-colorpicker-main-input div.layui-inline{float:left;margin-right:10px;font-size:14px}.layui-colorpicker-main-input input.layui-input{width:150px;height:30px;color:#666}.layui-slider{height:4px;background:#eee;border-radius:3px;position:relative;cursor:pointer}.layui-slider-bar{border-radius:3px;position:absolute;height:100%}.layui-slider-step{position:absolute;top:0;width:4px;height:4px;border-radius:50%;background:#FFF;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.layui-slider-wrap{width:36px;height:36px;position:absolute;top:-16px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10;text-align:center}.layui-slider-wrap-btn{width:12px;height:12px;border-radius:50%;background:#FFF;display:inline-block;vertical-align:middle;cursor:pointer;transition:.3s}.layui-slider-wrap:after{content:"";height:100%;display:inline-block;vertical-align:middle}.layui-slider-wrap-btn.layui-slider-hover,.layui-slider-wrap-btn:hover{transform:scale(1.2)}.layui-slider-wrap-btn.layui-disabled:hover{transform:scale(1)!important}.layui-slider-tips{position:absolute;top:-42px;z-index:66666666;white-space:nowrap;display:none;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#FFF;background:#000;border-radius:3px;height:25px;line-height:25px;padding:0 10px}.layui-slider-tips:after{content:"";position:absolute;bottom:-12px;left:50%;margin-left:-6px;width:0;height:0;border-width:6px;border-style:solid;border-color:#000 transparent transparent}.layui-slider-input{width:70px;height:32px;border:1px solid #eee;border-radius:3px;font-size:16px;line-height:32px;position:absolute;right:0;top:-14px}.layui-slider-input-btn{position:absolute;top:0;right:0;width:20px;height:100%;border-left:1px solid #eee}.layui-slider-input-btn i{cursor:pointer;position:absolute;right:0;bottom:0;width:20px;height:50%;font-size:12px;line-height:16px;text-align:center;color:#999}.layui-slider-input-btn i:first-child{top:0;border-bottom:1px solid #eee}.layui-slider-input-txt{height:100%;font-size:14px}.layui-slider-input-txt input{height:100%;border:none}.layui-slider-input-btn i:hover{color:#009688}.layui-slider-vertical{width:4px;margin-left:33px}.layui-slider-vertical .layui-slider-bar{width:4px}.layui-slider-vertical .layui-slider-step{top:auto;left:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-wrap{top:auto;left:-16px;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-tips{top:auto;left:2px}@media \0screen{.layui-slider-wrap-btn{margin-left:-20px}.layui-slider-vertical .layui-slider-wrap-btn{margin-left:0;margin-bottom:-20px}.layui-slider-vertical .layui-slider-tips{margin-left:-8px}.layui-slider>span{margin-left:8px}}.layui-tree{line-height:22px}.layui-tree .layui-form-checkbox{margin:0!important}.layui-tree-set{width:100%;position:relative}.layui-tree-pack{display:none;padding-left:20px;position:relative}.layui-tree-iconClick,.layui-tree-main{display:inline-block;vertical-align:middle}.layui-tree-line .layui-tree-pack{padding-left:27px}.layui-tree-line .layui-tree-set .layui-tree-set:after{content:"";position:absolute;top:14px;left:-9px;width:17px;height:0;border-top:1px dotted #c0c4cc}.layui-tree-entry{position:relative;padding:3px 0;height:20px;white-space:nowrap}.layui-tree-entry:hover{background-color:#eee}.layui-tree-line .layui-tree-entry:hover{background-color:rgba(0,0,0,0)}.layui-tree-line .layui-tree-entry:hover .layui-tree-txt{color:#999;text-decoration:underline;transition:.3s}.layui-tree-main{cursor:pointer;padding-right:10px}.layui-tree-line .layui-tree-set:before{content:"";position:absolute;top:0;left:-9px;width:0;height:100%;border-left:1px dotted #c0c4cc}.layui-tree-line .layui-tree-set.layui-tree-setLineShort:before{height:13px}.layui-tree-line .layui-tree-set.layui-tree-setHide:before{height:0}.layui-tree-iconClick{position:relative;height:20px;line-height:20px;margin:0 10px;color:#c0c4cc}.layui-tree-icon{height:12px;line-height:12px;width:12px;text-align:center;border:1px solid #c0c4cc}.layui-tree-iconClick .layui-icon{font-size:18px}.layui-tree-icon .layui-icon{font-size:12px;color:#666}.layui-tree-iconArrow{padding:0 5px}.layui-tree-iconArrow:after{content:"";position:absolute;left:4px;top:3px;z-index:100;width:0;height:0;border-width:5px;border-style:solid;border-color:transparent transparent transparent #c0c4cc;transition:.5s}.layui-tree-btnGroup,.layui-tree-editInput{position:relative;vertical-align:middle;display:inline-block}.layui-tree-spread>.layui-tree-entry>.layui-tree-iconClick>.layui-tree-iconArrow:after{transform:rotate(90deg) translate(3px,4px)}.layui-tree-txt{display:inline-block;vertical-align:middle;color:#555}.layui-tree-search{margin-bottom:15px;color:#666}.layui-tree-btnGroup .layui-icon{display:inline-block;vertical-align:middle;padding:0 2px;cursor:pointer}.layui-tree-btnGroup .layui-icon:hover{color:#999;transition:.3s}.layui-tree-entry:hover .layui-tree-btnGroup{visibility:visible}.layui-tree-editInput{height:20px;line-height:20px;padding:0 3px;border:none;background-color:rgba(0,0,0,.05)}.layui-tree-emptyText{text-align:center;color:#999}.layui-anim{-webkit-animation-duration:.3s;-webkit-animation-fill-mode:both;animation-duration:.3s;animation-fill-mode:both}.layui-anim.layui-icon{display:inline-block}.layui-anim-loop{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.layui-trans,.layui-trans a{transition:all .2s;-webkit-transition:all .2s}@-webkit-keyframes layui-rotate{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes layui-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.layui-anim-rotate{-webkit-animation-name:layui-rotate;animation-name:layui-rotate;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes layui-up{from{-webkit-transform:translate3d(0,100%,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-up{from{transform:translate3d(0,100%,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-up{-webkit-animation-name:layui-up;animation-name:layui-up}@-webkit-keyframes layui-upbit{from{-webkit-transform:translate3d(0,15px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-upbit{from{transform:translate3d(0,15px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-upbit{-webkit-animation-name:layui-upbit;animation-name:layui-upbit}@keyframes layui-down{0%{opacity:.3;transform:translate3d(0,-100%,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-down{animation-name:layui-down}@keyframes layui-downbit{0%{opacity:.3;transform:translate3d(0,-5px,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-downbit{animation-name:layui-downbit}@-webkit-keyframes layui-scale{0%{opacity:.3;-webkit-transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale{0%{opacity:.3;-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-ms-transform:scale(1);transform:scale(1)}}.layui-anim-scale{-webkit-animation-name:layui-scale;animation-name:layui-scale}@-webkit-keyframes layui-scale-spring{0%{opacity:.5;-webkit-transform:scale(.5)}80%{opacity:.8;-webkit-transform:scale(1.1)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale-spring{0%{opacity:.5;transform:scale(.5)}80%{opacity:.8;transform:scale(1.1)}100%{opacity:1;transform:scale(1)}}.layui-anim-scaleSpring{-webkit-animation-name:layui-scale-spring;animation-name:layui-scale-spring}@keyframes layui-scalesmall{0%{opacity:.3;transform:scale(1.5)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall{animation-name:layui-scalesmall}@keyframes layui-scalesmall-spring{0%{opacity:.3;transform:scale(1.5)}80%{opacity:.8;transform:scale(.9)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall-spring{animation-name:layui-scalesmall-spring}@-webkit-keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}@keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}.layui-anim-fadein{-webkit-animation-name:layui-fadein;animation-name:layui-fadein}@-webkit-keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}@keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}.layui-anim-fadeout{-webkit-animation-name:layui-fadeout;animation-name:layui-fadeout} \ No newline at end of file diff --git a/web-res/static/css/swiper-bundle.min.css b/web-res/static/css/swiper-bundle.min.css new file mode 100644 index 0000000..fde322a --- /dev/null +++ b/web-res/static/css/swiper-bundle.min.css @@ -0,0 +1,13 @@ +/** + * Swiper 11.0.3 + * Most modern mobile touch slider and framework with hardware accelerated transitions + * https://swiperjs.com + * + * Copyright 2014-2023 Vladimir Kharlampidi + * + * Released under the MIT License + * + * Released on: October 26, 2023 + */ + +@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:'prev'}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:'next'}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active{pointer-events:auto}.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden} \ No newline at end of file diff --git a/web-v2-res/static/js/adapter.js b/web-res/static/js/adapter.js similarity index 100% rename from web-v2-res/static/js/adapter.js rename to web-res/static/js/adapter.js diff --git a/web-res/static/js/axios.js b/web-res/static/js/axios.js new file mode 100644 index 0000000..8d6b7d6 --- /dev/null +++ b/web-res/static/js/axios.js @@ -0,0 +1,637 @@ +/* axios v0.18.0 | (c) 2018 by Matt Zabriskie */ ! function(e, t) { + "object" == typeof exports && "object" == typeof module ? module.exports = t() : + "function" == typeof define && define.amd ? define([], t) : "object" == + typeof exports ? exports.axios = t() : e.axios = t() +}(this, function() { + return function(e) { + function t(r) { + if (n[r]) return n[r].exports; + var o = n[r] = { + exports: {}, + id: r, + loaded: !1 + }; + return e[r].call(o.exports, o, o.exports, t), o.loaded = !0, o.exports + } + var n = {}; + return t.m = e, t.c = n, t.p = "", t(0) + }([function(e, t, n) { + e.exports = n(1) + }, function(e, t, n) { + "use strict"; + + function r(e) { + var t = new s(e), + n = i(s.prototype.request, t); + return o.extend(n, s.prototype, t), o.extend(n, t), n + } + var o = n(2), + i = n(3), + s = n(5), + u = n(6), + a = r(u); + a.Axios = s, a.create = function(e) { + return r(o.merge(u, e)) + }, a.Cancel = n(23), a.CancelToken = n(24), a.isCancel = n(20), a + .all = function(e) { + return Promise.all(e) + }, a.spread = n(25), e.exports = a, e.exports.default = a + }, function(e, t, n) { + "use strict"; + + function r(e) { + return "[object Array]" === R.call(e) + } + + function o(e) { + return "[object ArrayBuffer]" === R.call(e) + } + + function i(e) { + return "undefined" != typeof FormData && e instanceof FormData + } + + function s(e) { + var t; + return t = "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? + ArrayBuffer.isView(e) : e && e.buffer && e.buffer instanceof ArrayBuffer + } + + function u(e) { + return "string" == typeof e + } + + function a(e) { + return "number" == typeof e + } + + function c(e) { + return "undefined" == typeof e + } + + function f(e) { + return null !== e && "object" == typeof e + } + + function p(e) { + return "[object Date]" === R.call(e) + } + + function d(e) { + return "[object File]" === R.call(e) + } + + function l(e) { + return "[object Blob]" === R.call(e) + } + + function h(e) { + return "[object Function]" === R.call(e) + } + + function m(e) { + return f(e) && h(e.pipe) + } + + function y(e) { + return "undefined" != typeof URLSearchParams && e instanceof URLSearchParams + } + + function w(e) { + return e.replace(/^\s*/, "").replace(/\s*$/, "") + } + + function g() { + return ("undefined" == typeof navigator || "ReactNative" !== + navigator.product) && ("undefined" != typeof window && + "undefined" != typeof document) + } + + function v(e, t) { + if (null !== e && "undefined" != typeof e) + if ("object" != typeof e && (e = [e]), r(e)) + for (var n = 0, o = e.length; n < o; n++) t.call(null, e[n], + n, e); + else + for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && + t.call(null, e[i], i, e) + } + + function x() { + function e(e, n) { + "object" == typeof t[n] && "object" == typeof e ? t[n] = x(t[n], + e) : t[n] = e + } + for (var t = {}, n = 0, r = arguments.length; n < r; n++) v( + arguments[n], e); + return t + } + + function b(e, t, n) { + return v(t, function(t, r) { + n && "function" == typeof t ? e[r] = E(t, n) : e[r] = t + }), e + } + var E = n(3), + C = n(4), + R = Object.prototype.toString; + e.exports = { + isArray: r, + isArrayBuffer: o, + isBuffer: C, + isFormData: i, + isArrayBufferView: s, + isString: u, + isNumber: a, + isObject: f, + isUndefined: c, + isDate: p, + isFile: d, + isBlob: l, + isFunction: h, + isStream: m, + isURLSearchParams: y, + isStandardBrowserEnv: g, + forEach: v, + merge: x, + extend: b, + trim: w + } + }, function(e, t) { + "use strict"; + e.exports = function(e, t) { + return function() { + for (var n = new Array(arguments.length), r = 0; r < n.length; r++) + n[r] = arguments[r]; + return e.apply(t, n) + } + } + }, function(e, t) { + function n(e) { + return !!e.constructor && "function" == typeof e.constructor.isBuffer && + e.constructor.isBuffer(e) + } + + function r(e) { + return "function" == typeof e.readFloatLE && "function" == typeof e + .slice && n(e.slice(0, 0)) + } + /*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */ + e.exports = function(e) { + return null != e && (n(e) || r(e) || !!e._isBuffer) + } + }, function(e, t, n) { + "use strict"; + + function r(e) { + this.defaults = e, this.interceptors = { + request: new s, + response: new s + } + } + var o = n(6), + i = n(2), + s = n(17), + u = n(18); + r.prototype.request = function(e) { + "string" == typeof e && (e = i.merge({ + url: arguments[0] + }, arguments[1])), e = i.merge(o, { + method: "get" + }, this.defaults, e), e.method = e.method.toLowerCase(); + var t = [u, void 0], + n = Promise.resolve(e); + for (this.interceptors.request.forEach(function(e) { + t.unshift(e.fulfilled, e.rejected) + }), this.interceptors.response.forEach(function(e) { + t.push(e.fulfilled, e.rejected) + }); t.length;) n = n.then(t.shift(), t.shift()); + return n + }, i.forEach(["delete", "get", "head", "options"], function(e) { + r.prototype[e] = function(t, n) { + return this.request(i.merge(n || {}, { + method: e, + url: t + })) + } + }), i.forEach(["post", "put", "patch"], function(e) { + r.prototype[e] = function(t, n, r) { + return this.request(i.merge(r || {}, { + method: e, + url: t, + data: n + })) + } + }), e.exports = r + }, function(e, t, n) { + "use strict"; + + function r(e, t) { + !i.isUndefined(e) && i.isUndefined(e["Content-Type"]) && (e[ + "Content-Type"] = t) + } + + function o() { + var e; + return "undefined" != typeof XMLHttpRequest ? e = n(8) : + "undefined" != typeof process && (e = n(8)), e + } + var i = n(2), + s = n(7), + u = { + "Content-Type": "application/x-www-form-urlencoded" + }, + a = { + adapter: o(), + transformRequest: [function(e, t) { + return s(t, "Content-Type"), i.isFormData(e) || i.isArrayBuffer( + e) || i.isBuffer(e) || i.isStream(e) || i.isFile(e) || + i.isBlob(e) ? e : i.isArrayBufferView(e) ? e.buffer : i + .isURLSearchParams(e) ? (r(t, + "application/x-www-form-urlencoded;charset=utf-8"), + e.toString()) : i.isObject(e) ? (r(t, + "application/json;charset=utf-8"), JSON.stringify(e)) : + e + }], + transformResponse: [function(e) { + if ("string" == typeof e) try { + e = JSON.parse(e) + } catch (e) {} + return e + }], + timeout: 0, + xsrfCookieName: "XSRF-TOKEN", + xsrfHeaderName: "X-XSRF-TOKEN", + maxContentLength: -1, + validateStatus: function(e) { + return e >= 200 && e < 300 + } + }; + a.headers = { + common: { + Accept: "application/json, text/plain, */*" + } + }, i.forEach(["delete", "get", "head"], function(e) { + a.headers[e] = {} + }), i.forEach(["post", "put", "patch"], function(e) { + a.headers[e] = i.merge(u) + }), e.exports = a + }, function(e, t, n) { + "use strict"; + var r = n(2); + e.exports = function(e, t) { + r.forEach(e, function(n, r) { + r !== t && r.toUpperCase() === t.toUpperCase() && (e[t] = + n, delete e[r]) + }) + } + }, function(e, t, n) { + "use strict"; + var r = n(2), + o = n(9), + i = n(12), + s = n(13), + u = n(14), + a = n(10), + c = "undefined" != typeof window && window.btoa && window.btoa.bind( + window) || n(15); + e.exports = function(e) { + return new Promise(function(t, f) { + var p = e.data, + d = e.headers; + r.isFormData(p) && delete d["Content-Type"]; + var l = new XMLHttpRequest, + h = "onreadystatechange", + m = !1; + if ("undefined" == typeof window || !window.XDomainRequest || + "withCredentials" in l || u(e.url) || (l = new window.XDomainRequest, + h = "onload", m = !0, l.onprogress = function() {}, l + .ontimeout = function() {}), e.auth) { + var y = e.auth.username || "", + w = e.auth.password || ""; + d.Authorization = "Basic " + c(y + ":" + w) + } + if (l.open(e.method.toUpperCase(), i(e.url, e.params, e.paramsSerializer), ! + 0), l.timeout = e.timeout, l[h] = function() { + if (l && (4 === l.readyState || m) && (0 !== l.status || + l.responseURL && 0 === l.responseURL.indexOf( + "file:"))) { + var n = "getAllResponseHeaders" in l ? s(l.getAllResponseHeaders()) : + null, + r = e.responseType && "text" !== e.responseType ? + l.response : l.responseText, + i = { + data: r, + status: 1223 === l.status ? 204 : l.status, + statusText: 1223 === l.status ? "No Content" : l + .statusText, + headers: n, + config: e, + request: l + }; + o(t, f, i), l = null + } + }, l.onerror = function() { + f(a("Network Error", e, null, l)), l = null + }, l.ontimeout = function() { + f(a("timeout of " + e.timeout + "ms exceeded", e, + "ECONNABORTED", l)), l = null + }, r.isStandardBrowserEnv()) { + var g = n(16), + v = (e.withCredentials || u(e.url)) && e.xsrfCookieName ? + g.read(e.xsrfCookieName) : void 0; + v && (d[e.xsrfHeaderName] = v) + } + if ("setRequestHeader" in l && r.forEach(d, function(e, t) { + "undefined" == typeof p && "content-type" === t.toLowerCase() ? + delete d[t] : l.setRequestHeader(t, e) + }), e.withCredentials && (l.withCredentials = !0), e.responseType) + try { + l.responseType = e.responseType + } catch (t) { + if ("json" !== e.responseType) throw t + } + "function" == typeof e.onDownloadProgress && l.addEventListener( + "progress", e.onDownloadProgress), "function" == + typeof e.onUploadProgress && l.upload && l.upload.addEventListener( + "progress", e.onUploadProgress), e.cancelToken && e.cancelToken + .promise.then(function(e) { + l && (l.abort(), f(e), l = null) + }), void 0 === p && (p = null), l.send(p) + }) + } + }, function(e, t, n) { + "use strict"; + var r = n(10); + e.exports = function(e, t, n) { + var o = n.config.validateStatus; + n.status && o && !o(n.status) ? t(r( + "Request failed with status code " + n.status, n.config, + null, n.request, n)) : e(n) + } + }, function(e, t, n) { + "use strict"; + var r = n(11); + e.exports = function(e, t, n, o, i) { + var s = new Error(e); + return r(s, t, n, o, i) + } + }, function(e, t) { + "use strict"; + e.exports = function(e, t, n, r, o) { + return e.config = t, n && (e.code = n), e.request = r, e.response = + o, e + } + }, function(e, t, n) { + "use strict"; + + function r(e) { + return encodeURIComponent(e).replace(/%40/gi, "@").replace( + /%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace( + /%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]") + } + var o = n(2); + e.exports = function(e, t, n) { + if (!t) return e; + var i; + if (n) i = n(t); + else if (o.isURLSearchParams(t)) i = t.toString(); + else { + var s = []; + o.forEach(t, function(e, t) { + null !== e && "undefined" != typeof e && (o.isArray(e) ? + t += "[]" : e = [e], o.forEach(e, function(e) { + o.isDate(e) ? e = e.toISOString() : o.isObject( + e) && (e = JSON.stringify(e)), s.push(r(t) + + "=" + r(e)) + })) + }), i = s.join("&") + } + return i && (e += (e.indexOf("?") === -1 ? "?" : "&") + i), e + } + }, function(e, t, n) { + "use strict"; + var r = n(2), + o = ["age", "authorization", "content-length", "content-type", + "etag", "expires", "from", "host", "if-modified-since", + "if-unmodified-since", "last-modified", "location", + "max-forwards", "proxy-authorization", "referer", "retry-after", + "user-agent" + ]; + e.exports = function(e) { + var t, n, i, s = {}; + return e ? (r.forEach(e.split("\n"), function(e) { + if (i = e.indexOf(":"), t = r.trim(e.substr(0, i)).toLowerCase(), + n = r.trim(e.substr(i + 1)), t) { + if (s[t] && o.indexOf(t) >= 0) return; + "set-cookie" === t ? s[t] = (s[t] ? s[t] : []).concat( + [n]) : s[t] = s[t] ? s[t] + ", " + n : n + } + }), s) : s + } + }, function(e, t, n) { + "use strict"; + var r = n(2); + e.exports = r.isStandardBrowserEnv() ? function() { + function e(e) { + var t = e; + return n && (o.setAttribute("href", t), t = o.href), o.setAttribute( + "href", t), { + href: o.href, + protocol: o.protocol ? o.protocol.replace(/:$/, "") : "", + host: o.host, + search: o.search ? o.search.replace(/^\?/, "") : "", + hash: o.hash ? o.hash.replace(/^#/, "") : "", + hostname: o.hostname, + port: o.port, + pathname: "/" === o.pathname.charAt(0) ? o.pathname : "/" + + o.pathname + } + } + var t, n = /(msie|trident)/i.test(navigator.userAgent), + o = document.createElement("a"); + return t = e(window.location.href), + function(n) { + var o = r.isString(n) ? e(n) : n; + return o.protocol === t.protocol && o.host === t.host + } + }() : function() { + return function() { + return !0 + } + }() + }, function(e, t) { + "use strict"; + + function n() { + this.message = "String contains an invalid character" + } + + function r(e) { + for (var t, r, i = String(e), s = "", u = 0, a = o; i.charAt(0 | + u) || (a = "=", u % 1); s += a.charAt(63 & t >> 8 - u % 1 * 8)) { + if (r = i.charCodeAt(u += .75), r > 255) throw new n; + t = t << 8 | r + } + return s + } + var o = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + n.prototype = new Error, n.prototype.code = 5, n.prototype.name = + "InvalidCharacterError", e.exports = r + }, function(e, t, n) { + "use strict"; + var r = n(2); + e.exports = r.isStandardBrowserEnv() ? function() { + return { + write: function(e, t, n, o, i, s) { + var u = []; + u.push(e + "=" + encodeURIComponent(t)), r.isNumber(n) && + u.push("expires=" + new Date(n).toGMTString()), r.isString( + o) && u.push("path=" + o), r.isString(i) && u.push( + "domain=" + i), s === !0 && u.push("secure"), + document.cookie = u.join("; ") + }, + read: function(e) { + var t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + + ")=([^;]*)")); + return t ? decodeURIComponent(t[3]) : null + }, + remove: function(e) { + this.write(e, "", Date.now() - 864e5) + } + } + }() : function() { + return { + write: function() {}, + read: function() { + return null + }, + remove: function() {} + } + }() + }, function(e, t, n) { + "use strict"; + + function r() { + this.handlers = [] + } + var o = n(2); + r.prototype.use = function(e, t) { + return this.handlers.push({ + fulfilled: e, + rejected: t + }), this.handlers.length - 1 + }, r.prototype.eject = function(e) { + this.handlers[e] && (this.handlers[e] = null) + }, r.prototype.forEach = function(e) { + o.forEach(this.handlers, function(t) { + null !== t && e(t) + }) + }, e.exports = r + }, function(e, t, n) { + "use strict"; + + function r(e) { + e.cancelToken && e.cancelToken.throwIfRequested() + } + var o = n(2), + i = n(19), + s = n(20), + u = n(6), + a = n(21), + c = n(22); + e.exports = function(e) { + r(e), e.baseURL && !a(e.url) && (e.url = c(e.baseURL, e.url)), + e.headers = e.headers || {}, e.data = i(e.data, e.headers, e.transformRequest), + e.headers = o.merge(e.headers.common || {}, e.headers[e.method] || {}, + e.headers || {}), o.forEach(["delete", "get", "head", + "post", "put", "patch", "common" + ], function(t) { + delete e.headers[t] + }); + var t = e.adapter || u.adapter; + return t(e).then(function(t) { + return r(e), t.data = i(t.data, t.headers, e.transformResponse), + t + }, function(t) { + return s(t) || (r(e), t && t.response && (t.response.data = + i(t.response.data, t.response.headers, e.transformResponse) + )), Promise.reject(t) + }) + } + }, function(e, t, n) { + "use strict"; + var r = n(2); + e.exports = function(e, t, n) { + return r.forEach(n, function(n) { + e = n(e, t) + }), e + } + }, function(e, t) { + "use strict"; + e.exports = function(e) { + return !(!e || !e.__CANCEL__) + } + }, function(e, t) { + "use strict"; + e.exports = function(e) { + return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e) + } + }, function(e, t) { + "use strict"; + e.exports = function(e, t) { + return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : + e + } + }, function(e, t) { + "use strict"; + + function n(e) { + this.message = e + } + n.prototype.toString = function() { + return "Cancel" + (this.message ? ": " + this.message : "") + }, n.prototype.__CANCEL__ = !0, e.exports = n + }, function(e, t, n) { + "use strict"; + + function r(e) { + if ("function" != typeof e) throw new TypeError( + "executor must be a function."); + var t; + this.promise = new Promise(function(e) { + t = e + }); + var n = this; + e(function(e) { + n.reason || (n.reason = new o(e), t(n.reason)) + }) + } + var o = n(23); + r.prototype.throwIfRequested = function() { + if (this.reason) throw this.reason + }, r.source = function() { + var e, t = new r(function(t) { + e = t + }); + return { + token: t, + cancel: e + } + }, e.exports = r + }, function(e, t) { + "use strict"; + e.exports = function(e) { + return function(t) { + return e.apply(null, t) + } + } + }]) +}); +//# sourceMappingURL=axios.min.map diff --git a/web-res/static/js/base64.min.js b/web-res/static/js/base64.min.js new file mode 100644 index 0000000..b7a54a2 --- /dev/null +++ b/web-res/static/js/base64.min.js @@ -0,0 +1,8 @@ +/** + * Minified by jsDelivr using Terser v5.19.2. + * Original file: /npm/js-base64@3.7.7/base64.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +!function(t,n){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(r=t.Base64,(e=n()).noConflict=function(){return t.Base64=r,e},t.Meteor&&(Base64=e),t.Base64=e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,(function(){"use strict";var t,n="3.7.7",r=n,e="function"==typeof Buffer,o="function"==typeof TextDecoder?new TextDecoder:void 0,u="function"==typeof TextEncoder?new TextEncoder:void 0,i=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),f=(t={},i.forEach((function(n,r){return t[n]=r})),t),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,a=String.fromCharCode.bind(String),d="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){return new Uint8Array(Array.prototype.slice.call(t,0))},s=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},l=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},h=function(t){for(var n,r,e,o,u="",f=t.length%3,c=0;c255||(e=t.charCodeAt(c++))>255||(o=t.charCodeAt(c++))>255)throw new TypeError("invalid character found");u+=i[(n=r<<16|e<<8|o)>>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]}return f?u.slice(0,f-3)+"===".substring(f):u},p="function"==typeof btoa?function(t){return btoa(t)}:e?function(t){return Buffer.from(t,"binary").toString("base64")}:h,y=e?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var n=[],r=0,e=t.length;r>>6)+a(128|63&n):a(224|n>>>12&15)+a(128|n>>>6&63)+a(128|63&n);var n=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return a(240|n>>>18&7)+a(128|n>>>12&63)+a(128|n>>>6&63)+a(128|63&n)},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,B=function(t){return t.replace(g,b)},x=e?function(t){return Buffer.from(t,"utf8").toString("base64")}:u?function(t){return y(u.encode(t))}:function(t){return p(B(t))},C=function(t,n){return void 0===n&&(n=!1),n?s(x(t)):x(t)},m=function(t){return C(t,!0)},v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,U=function(t){switch(t.length){case 4:var n=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return a(55296+(n>>>10))+a(56320+(1023&n));case 3:return a((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return a((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},F=function(t){return t.replace(v,U)},w=function(t){if(t=t.replace(/\s+/g,""),!c.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var n,r,e,o="",u=0;u>16&255):64===e?a(n>>16&255,n>>8&255):a(n>>16&255,n>>8&255,255&n);return o},S="function"==typeof atob?function(t){return atob(l(t))}:e?function(t){return Buffer.from(t,"base64").toString("binary")}:w,E=e?function(t){return d(Buffer.from(t,"base64"))}:function(t){return d(S(t).split("").map((function(t){return t.charCodeAt(0)})))},D=function(t){return E(z(t))},R=e?function(t){return Buffer.from(t,"base64").toString("utf8")}:o?function(t){return o.decode(E(t))}:function(t){return F(S(t))},z=function(t){return l(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})))},T=function(t){return R(z(t))},Z=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}},j=function(){var t=function(t,n){return Object.defineProperty(String.prototype,t,Z(n))};t("fromBase64",(function(){return T(this)})),t("toBase64",(function(t){return C(this,t)})),t("toBase64URI",(function(){return C(this,!0)})),t("toBase64URL",(function(){return C(this,!0)})),t("toUint8Array",(function(){return D(this)}))},I=function(){var t=function(t,n){return Object.defineProperty(Uint8Array.prototype,t,Z(n))};t("toBase64",(function(t){return A(this,t)})),t("toBase64URI",(function(){return A(this,!0)})),t("toBase64URL",(function(){return A(this,!0)}))},O={version:n,VERSION:r,atob:S,atobPolyfill:w,btoa:p,btoaPolyfill:h,fromBase64:T,toBase64:C,encode:C,encodeURI:m,encodeURL:m,utob:B,btou:F,decode:T,isValid:function(t){if("string"!=typeof t)return!1;var n=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(n)||!/[^\s0-9a-zA-Z\-_]/.test(n)},fromUint8Array:A,toUint8Array:D,extendString:j,extendUint8Array:I,extendBuiltins:function(){j(),I()},Base64:{}};return Object.keys(O).forEach((function(t){return O.Base64[t]=O[t]})),O})); +//# sourceMappingURL=/sm/b3f991b414b0fa1b0799af2a7f930299e529ee04d4e0dc56fb33a5bfd532f984.map \ No newline at end of file diff --git a/web-res/static/js/clipboard.min.js b/web-res/static/js/clipboard.min.js new file mode 100644 index 0000000..02c549e --- /dev/null +++ b/web-res/static/js/clipboard.min.js @@ -0,0 +1,7 @@ +/*! + * clipboard.js v2.0.4 + * https://zenorocha.github.io/clipboard.js + * + * Licensed MIT © Zeno Rocha + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="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},i=function(){function o(t,e){for(var n=0;n>>2]>>>24-n%4*8&255;e[i+n>>>2]|=s<<24-(i+n)%4*8}else for(var c=0;c>>2]=r[c>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=h.ceil(e/4)},clone:function(){var t=n.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r>>2]>>>24-o%4*8&255;i.push((n>>>4).toString(16)),i.push((15&n).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new l.init(r,e/2)}},a=s.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],o=0;o>>2]>>>24-o%4*8&255;i.push(String.fromCharCode(n))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new l.init(r,e)}},f=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(a.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return a.parse(unescape(encodeURIComponent(t)))}},d=o.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e,r=this._data,i=r.words,o=r.sigBytes,n=this.blockSize,s=o/(4*n),c=(s=t?h.ceil(s):h.max((0|s)-this._minBufferSize,0))*n,t=h.min(4*c,o);if(c){for(var a=0;a>>2]|=t[i]<<24-i%4*8;I.call(this,r,e)}else I.apply(this,arguments)}).prototype=p),i),p1=u.lib.WordArray;function _1(t){return t<<8&4278255360|t>>>8&16711935}(u=u.enc).Utf16=u.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535;i.push(String.fromCharCode(n))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i>>1]|=t.charCodeAt(i)<<16-i%2*16;return p1.create(r,2*e)}},u.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(n))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i>>1]|=_1(t.charCodeAt(i)<<16-i%2*16);return p1.create(r,2*e)}},U=(p=i).lib.WordArray,p.enc.Base64={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=this._map,o=(t.clamp(),[]),n=0;n>>2]>>>24-n%4*8&255)<<16|(e[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|e[n+2>>>2]>>>24-(n+2)%4*8&255,c=0;c<4&&n+.75*c>>6*(3-c)&63));var a=i.charAt(64);if(a)for(;o.length%4;)o.push(a);return o.join("")},parse:function(t){var e=t.length,r=this._map;if(!(i=this._reverseMap))for(var i=this._reverseMap=[],o=0;o>>6-u%4*2,s=s|n,f[d>>>2]|=s<<24-d%4*8,d++);return U.create(f,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},K=(u=i).lib.WordArray,u.enc.Base64url={stringify:function(t,e){for(var r=t.words,i=t.sigBytes,o=(e=void 0===e?!0:e)?this._safe_map:this._map,n=(t.clamp(),[]),s=0;s>>2]>>>24-s%4*8&255)<<16|(r[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|r[s+2>>>2]>>>24-(s+2)%4*8&255,a=0;a<4&&s+.75*a>>6*(3-a)&63));var h=o.charAt(64);if(h)for(;n.length%4;)n.push(h);return n.join("")},parse:function(t,e){var r=t.length,i=(e=void 0===e?!0:e)?this._safe_map:this._map;if(!(o=this._reverseMap))for(var o=this._reverseMap=[],n=0;n>>6-u%4*2,c=c|s,f[d>>>2]|=c<<24-d%4*8,d++);return K.create(f,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};for(var y1=Math,p=i,g1=(u=p.lib).WordArray,v1=u.Hasher,u=p.algo,A=[],B1=0;B1<64;B1++)A[B1]=4294967296*y1.abs(y1.sin(B1+1))|0;function z(t,e,r,i,o,n,s){t=t+(e&r|~e&i)+o+s;return(t<>>32-n)+e}function H(t,e,r,i,o,n,s){t=t+(e&i|r&~i)+o+s;return(t<>>32-n)+e}function C(t,e,r,i,o,n,s){t=t+(e^r^i)+o+s;return(t<>>32-n)+e}function R(t,e,r,i,o,n,s){t=t+(r^(e|~i))+o+s;return(t<>>32-n)+e}u=u.MD5=v1.extend({_doReset:function(){this._hash=new g1.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r,o=t[i];t[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var n=this._hash.words,s=t[e+0],c=t[e+1],a=t[e+2],h=t[e+3],l=t[e+4],f=t[e+5],d=t[e+6],u=t[e+7],p=t[e+8],_=t[e+9],y=t[e+10],g=t[e+11],v=t[e+12],B=t[e+13],w=t[e+14],k=t[e+15],x=z(n[0],S=n[1],m=n[2],b=n[3],s,7,A[0]),b=z(b,x,S,m,c,12,A[1]),m=z(m,b,x,S,a,17,A[2]),S=z(S,m,b,x,h,22,A[3]);x=z(x,S,m,b,l,7,A[4]),b=z(b,x,S,m,f,12,A[5]),m=z(m,b,x,S,d,17,A[6]),S=z(S,m,b,x,u,22,A[7]),x=z(x,S,m,b,p,7,A[8]),b=z(b,x,S,m,_,12,A[9]),m=z(m,b,x,S,y,17,A[10]),S=z(S,m,b,x,g,22,A[11]),x=z(x,S,m,b,v,7,A[12]),b=z(b,x,S,m,B,12,A[13]),m=z(m,b,x,S,w,17,A[14]),x=H(x,S=z(S,m,b,x,k,22,A[15]),m,b,c,5,A[16]),b=H(b,x,S,m,d,9,A[17]),m=H(m,b,x,S,g,14,A[18]),S=H(S,m,b,x,s,20,A[19]),x=H(x,S,m,b,f,5,A[20]),b=H(b,x,S,m,y,9,A[21]),m=H(m,b,x,S,k,14,A[22]),S=H(S,m,b,x,l,20,A[23]),x=H(x,S,m,b,_,5,A[24]),b=H(b,x,S,m,w,9,A[25]),m=H(m,b,x,S,h,14,A[26]),S=H(S,m,b,x,p,20,A[27]),x=H(x,S,m,b,B,5,A[28]),b=H(b,x,S,m,a,9,A[29]),m=H(m,b,x,S,u,14,A[30]),x=C(x,S=H(S,m,b,x,v,20,A[31]),m,b,f,4,A[32]),b=C(b,x,S,m,p,11,A[33]),m=C(m,b,x,S,g,16,A[34]),S=C(S,m,b,x,w,23,A[35]),x=C(x,S,m,b,c,4,A[36]),b=C(b,x,S,m,l,11,A[37]),m=C(m,b,x,S,u,16,A[38]),S=C(S,m,b,x,y,23,A[39]),x=C(x,S,m,b,B,4,A[40]),b=C(b,x,S,m,s,11,A[41]),m=C(m,b,x,S,h,16,A[42]),S=C(S,m,b,x,d,23,A[43]),x=C(x,S,m,b,_,4,A[44]),b=C(b,x,S,m,v,11,A[45]),m=C(m,b,x,S,k,16,A[46]),x=R(x,S=C(S,m,b,x,a,23,A[47]),m,b,s,6,A[48]),b=R(b,x,S,m,u,10,A[49]),m=R(m,b,x,S,w,15,A[50]),S=R(S,m,b,x,f,21,A[51]),x=R(x,S,m,b,v,6,A[52]),b=R(b,x,S,m,h,10,A[53]),m=R(m,b,x,S,y,15,A[54]),S=R(S,m,b,x,c,21,A[55]),x=R(x,S,m,b,p,6,A[56]),b=R(b,x,S,m,k,10,A[57]),m=R(m,b,x,S,d,15,A[58]),S=R(S,m,b,x,B,21,A[59]),x=R(x,S,m,b,l,6,A[60]),b=R(b,x,S,m,g,10,A[61]),m=R(m,b,x,S,a,15,A[62]),S=R(S,m,b,x,_,21,A[63]),n[0]=n[0]+x|0,n[1]=n[1]+S|0,n[2]=n[2]+m|0,n[3]=n[3]+b|0},_doFinalize:function(){for(var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes,o=(e[i>>>5]|=128<<24-i%32,y1.floor(r/4294967296)),o=(e[15+(64+i>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(64+i>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process(),this._hash),n=o.words,s=0;s<4;s++){var c=n[s];n[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return o},clone:function(){var t=v1.clone.call(this);return t._hash=this._hash.clone(),t}}),p.MD5=v1._createHelper(u),p.HmacMD5=v1._createHmacHelper(u),u=(p=i).lib,X=u.WordArray,L=u.Hasher,u=p.algo,l=[],u=u.SHA1=L.extend({_doReset:function(){this._hash=new X.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],o=r[1],n=r[2],s=r[3],c=r[4],a=0;a<80;a++){a<16?l[a]=0|t[e+a]:(h=l[a-3]^l[a-8]^l[a-14]^l[a-16],l[a]=h<<1|h>>>31);var h=(i<<5|i>>>27)+c+l[a];h+=a<20?1518500249+(o&n|~o&s):a<40?1859775393+(o^n^s):a<60?(o&n|o&s|n&s)-1894007588:(o^n^s)-899497514,c=s,s=n,n=o<<30|o>>>2,o=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+o|0,r[2]=r[2]+n|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(64+i>>>9<<4)]=Math.floor(r/4294967296),e[15+(64+i>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=L.clone.call(this);return t._hash=this._hash.clone(),t}}),p.SHA1=L._createHelper(u),p.HmacSHA1=L._createHmacHelper(u);var w1=Math,p=i,k1=(u=p.lib).WordArray,x1=u.Hasher,u=p.algo,b1=[],m1=[];function S1(t){return 4294967296*(t-(0|t))|0}for(var A1=2,z1=0;z1<64;)!function(t){for(var e=w1.sqrt(t),r=2;r<=e;r++)if(!(t%r))return;return 1}(A1)||(z1<8&&(b1[z1]=S1(w1.pow(A1,.5))),m1[z1]=S1(w1.pow(A1,1/3)),z1++),A1++;var _=[],u=u.SHA256=x1.extend({_doReset:function(){this._hash=new k1.init(b1.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],o=r[1],n=r[2],s=r[3],c=r[4],a=r[5],h=r[6],l=r[7],f=0;f<64;f++){f<16?_[f]=0|t[e+f]:(d=_[f-15],u=_[f-2],_[f]=((d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3)+_[f-7]+((u<<15|u>>>17)^(u<<13|u>>>19)^u>>>10)+_[f-16]);var d=i&o^i&n^o&n,u=l+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&a^~c&h)+m1[f]+_[f],l=h,h=a,a=c,c=s+u|0,s=n,n=o,o=i,i=u+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+d)|0}r[0]=r[0]+i|0,r[1]=r[1]+o|0,r[2]=r[2]+n|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0,r[5]=r[5]+a|0,r[6]=r[6]+h|0,r[7]=r[7]+l|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(64+i>>>9<<4)]=w1.floor(r/4294967296),e[15+(64+i>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=x1.clone.call(this);return t._hash=this._hash.clone(),t}}),p=(p.SHA256=x1._createHelper(u),p.HmacSHA256=x1._createHmacHelper(u),j=(p=i).lib.WordArray,u=p.algo,T=u.SHA256,u=u.SHA224=T.extend({_doReset:function(){this._hash=new j.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=T._doFinalize.call(this);return t.sigBytes-=4,t}}),p.SHA224=T._createHelper(u),p.HmacSHA224=T._createHmacHelper(u),i),H1=p.lib.Hasher,y=(u=p.x64).Word,C1=u.WordArray,u=p.algo;function g(){return y.create.apply(y,arguments)}for(var R1=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],D1=[],E1=0;E1<80;E1++)D1[E1]=g();u=u.SHA512=H1.extend({_doReset:function(){this._hash=new C1.init([new y.init(1779033703,4089235720),new y.init(3144134277,2227873595),new y.init(1013904242,4271175723),new y.init(2773480762,1595750129),new y.init(1359893119,2917565137),new y.init(2600822924,725511199),new y.init(528734635,4215389547),new y.init(1541459225,327033209)])},_doProcessBlock:function(W,O){for(var t=this._hash.words,e=t[0],r=t[1],i=t[2],o=t[3],n=t[4],s=t[5],c=t[6],t=t[7],I=e.high,a=e.low,U=r.high,h=r.low,K=i.high,l=i.low,X=o.high,f=o.low,L=n.high,d=n.low,j=s.high,u=s.low,T=c.high,p=c.low,N=t.high,_=t.low,y=I,g=a,v=U,B=h,w=K,k=l,q=X,x=f,b=L,m=d,Z=j,S=u,V=T,G=p,J=N,Q=_,A=0;A<80;A++)var z,H,C=D1[A],R=(A<16?(H=C.high=0|W[O+2*A],z=C.low=0|W[O+2*A+1]):(F=(P=D1[A-15]).high,P=P.low,M=(E=D1[A-2]).high,E=E.low,D=(R=D1[A-7]).high,R=R.low,$=(Y=D1[A-16]).high,H=(H=((F>>>1|P<<31)^(F>>>8|P<<24)^F>>>7)+D+((z=(D=(P>>>1|F<<31)^(P>>>8|F<<24)^(P>>>7|F<<25))+R)>>>0>>0?1:0))+((M>>>19|E<<13)^(M<<3|E>>>29)^M>>>6)+((z+=P=(E>>>19|M<<13)^(E<<3|M>>>29)^(E>>>6|M<<26))>>>0

              >>0?1:0),z+=F=Y.low,C.high=H=H+$+(z>>>0>>0?1:0),C.low=z),b&Z^~b&V),D=m&S^~m&G,E=y&v^y&w^v&w,M=(g>>>28|y<<4)^(g<<30|y>>>2)^(g<<25|y>>>7),P=R1[A],Y=P.high,$=P.low,F=Q+((m>>>14|b<<18)^(m>>>18|b<<14)^(m<<23|b>>>9)),C=J+((b>>>14|m<<18)^(b>>>18|m<<14)^(b<<23|m>>>9))+(F>>>0>>0?1:0),t1=M+(g&B^g&k^B&k),J=V,Q=G,V=Z,G=S,Z=b,S=m,b=q+(C=C+R+((F=F+D)>>>0>>0?1:0)+Y+((F=F+$)>>>0<$>>>0?1:0)+H+((F=F+z)>>>0>>0?1:0))+((m=x+F|0)>>>0>>0?1:0)|0,q=w,x=k,w=v,k=B,v=y,B=g,y=C+(((y>>>28|g<<4)^(y<<30|g>>>2)^(y<<25|g>>>7))+E+(t1>>>0>>0?1:0))+((g=F+t1|0)>>>0>>0?1:0)|0;a=e.low=a+g,e.high=I+y+(a>>>0>>0?1:0),h=r.low=h+B,r.high=U+v+(h>>>0>>0?1:0),l=i.low=l+k,i.high=K+w+(l>>>0>>0?1:0),f=o.low=f+x,o.high=X+q+(f>>>0>>0?1:0),d=n.low=d+m,n.high=L+b+(d>>>0>>0?1:0),u=s.low=u+S,s.high=j+Z+(u>>>0>>0?1:0),p=c.low=p+G,c.high=T+V+(p>>>0>>0?1:0),_=t.low=_+Q,t.high=N+J+(_>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(128+i>>>10<<5)]=Math.floor(r/4294967296),e[31+(128+i>>>10<<5)]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=H1.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),p.SHA512=H1._createHelper(u),p.HmacSHA512=H1._createHmacHelper(u),u=(p=i).x64,t=u.Word,N=u.WordArray,u=p.algo,q=u.SHA512,u=u.SHA384=q.extend({_doReset:function(){this._hash=new N.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var t=q._doFinalize.call(this);return t.sigBytes-=16,t}}),p.SHA384=q._createHelper(u),p.HmacSHA384=q._createHmacHelper(u);for(var M1=Math,p=i,P1=(u=p.lib).WordArray,F1=u.Hasher,W1=p.x64.Word,u=p.algo,O1=[],I1=[],U1=[],v=1,B=0,K1=0;K1<24;K1++){O1[v+5*B]=(K1+1)*(K1+2)/2%64;var X1=(2*v+3*B)%5;v=B%5,B=X1}for(v=0;v<5;v++)for(B=0;B<5;B++)I1[v+5*B]=B+(2*v+3*B)%5*5;for(var L1=1,j1=0;j1<24;j1++){for(var T1,N1=0,q1=0,Z1=0;Z1<7;Z1++)1&L1&&((T1=(1<>>32-e}function Y1(t){return"string"==typeof t?f1:o}function $1(t,e,r){var i,o=this._iv;o?(i=o,this._iv=void 0):i=this._prevBlock;for(var n=0;n>24&255)?(r=t>>8&255,i=255&t,255===(e=t>>16&255)?(e=0,255===r?(r=0,255===i?i=0:++i):++r):++e,t=0,t=(t+=e<<16)+(r<<8)+i):t+=1<<24,t}u=u.SHA3=F1.extend({cfg:F1.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new W1.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,i=this.blockSize/2,o=0;o>>24)|4278255360&(n<<24|n>>>8);(x=r[o]).high^=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),x.low^=n}for(var c=0;c<24;c++){for(var a=0;a<5;a++){for(var h=0,l=0,f=0;f<5;f++)h^=(x=r[a+5*f]).high,l^=x.low;var d=D[a];d.high=h,d.low=l}for(a=0;a<5;a++)for(var u=D[(a+4)%5],p=D[(a+1)%5],_=p.high,p=p.low,h=u.high^(_<<1|p>>>31),l=u.low^(p<<1|_>>>31),f=0;f<5;f++)(x=r[a+5*f]).high^=h,x.low^=l;for(var y=1;y<25;y++){var g=(x=r[y]).high,v=x.low,B=O1[y],g=(l=B<32?(h=g<>>32-B,v<>>32-B):(h=v<>>64-B,g<>>64-B),D[I1[y]]);g.high=h,g.low=l}var w=D[0],k=r[0];w.high=k.high,w.low=k.low;for(a=0;a<5;a++)for(f=0;f<5;f++){var x=r[y=a+5*f],b=D[y],m=D[(a+1)%5+5*f],S=D[(a+2)%5+5*f];x.high=b.high^~m.high&S.high,x.low=b.low^~m.low&S.low}x=r[0],w=U1[c];x.high^=w.high,x.low^=w.low}},_doFinalize:function(){for(var t=this._data,e=t.words,r=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize,o=(e[r>>>5]|=1<<24-r%32,e[(M1.ceil((1+r)/i)*i>>>5)-1]|=128,t.sigBytes=4*e.length,this._process(),this._state),r=this.cfg.outputLength/8,n=r/8,s=[],c=0;c>>24)|4278255360&(h<<24|h>>>8);s.push(16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)),s.push(h)}return new P1.init(s,r)},clone:function(){for(var t=F1.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}}),p.SHA3=F1._createHelper(u),p.HmacSHA3=F1._createHmacHelper(u),Math,u=(p=i).lib,e=u.WordArray,Z=u.Hasher,u=p.algo,V=e.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]),G=e.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]),J=e.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]),Q=e.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]),Y=e.create([0,1518500249,1859775393,2400959708,2840853838]),$=e.create([1352829926,1548603684,1836072691,2053994217,0]),u=u.RIPEMD160=Z.extend({_doReset:function(){this._hash=e.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r,o=t[i];t[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}for(var n,s,c,a,h,l,f=this._hash.words,d=Y.words,u=$.words,p=V.words,_=G.words,y=J.words,g=Q.words,v=n=f[0],B=s=f[1],w=c=f[2],k=a=f[3],x=h=f[4],r=0;r<80;r+=1)l=(l=Q1(l=(l=n+t[e+p[r]]|0)+(r<16?(s^c^a)+d[0]:r<32?G1(s,c,a)+d[1]:r<48?((s|~c)^a)+d[2]:r<64?J1(s,c,a)+d[3]:(s^(c|~a))+d[4])|0,y[r]))+h|0,n=h,h=a,a=Q1(c,10),c=s,s=l,l=(l=Q1(l=(l=v+t[e+_[r]]|0)+(r<16?(B^(w|~k))+u[0]:r<32?J1(B,w,k)+u[1]:r<48?((B|~w)^k)+u[2]:r<64?G1(B,w,k)+u[3]:(B^w^k)+u[4])|0,g[r]))+x|0,v=x,x=k,k=Q1(w,10),w=B,B=l;l=f[1]+c+k|0,f[1]=f[2]+a+x|0,f[2]=f[3]+h+v|0,f[3]=f[4]+n+B|0,f[4]=f[0]+s+w|0,f[0]=l},_doFinalize:function(){for(var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes,i=(e[i>>>5]|=128<<24-i%32,e[14+(64+i>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process(),this._hash),o=i.words,n=0;n<5;n++){var s=o[n];o[n]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=Z.clone.call(this);return t._hash=this._hash.clone(),t}}),p.RIPEMD160=Z._createHelper(u),p.HmacRIPEMD160=Z._createHmacHelper(u),u=(p=i).lib.Base,t1=p.enc.Utf8,p.algo.HMAC=u.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=t1.parse(e));for(var r=t.blockSize,i=4*r,t=((e=e.sigBytes>i?t.finalize(e):e).clamp(),this._oKey=e.clone()),e=this._iKey=e.clone(),o=t.words,n=e.words,s=0;s>>2];t.sigBytes-=e}},P.BlockCipher=h1.extend({cfg:h1.cfg.extend({mode:r,padding:u}),reset:function(){h1.reset.call(this);var t,e=this.cfg,r=e.iv,e=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=e.createEncryptor:(t=e.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(e,this,r&&r.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}),l1=P.CipherParams=p.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),r=(w.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,t=t.salt,t=t?s.create([1398893684,1701076831]).concat(t).concat(e):e;return t.toString(c1)},parse:function(t){var e,t=c1.parse(t),r=t.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=s.create(r.slice(2,4)),r.splice(0,4),t.sigBytes-=16),l1.create({ciphertext:t,salt:e})}},o=P.SerializableCipher=p.extend({cfg:p.extend({format:r}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var o=t.createEncryptor(r,i),e=o.finalize(e),o=o.cfg;return l1.create({ciphertext:e,key:r,iv:o.iv,algorithm:t,mode:o.mode,padding:o.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),t.createDecryptor(r,i).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),u=(w.kdf={}).OpenSSL={execute:function(t,e,r,i,o){i=i||s.random(8),o=(o?a1.create({keySize:e+r,hasher:o}):a1.create({keySize:e+r})).compute(t,i);t=s.create(o.words.slice(e),4*r);return o.sigBytes=4*e,l1.create({key:o,iv:t,salt:i})}},f1=P.PasswordBasedCipher=o.extend({cfg:o.cfg.extend({kdf:u}),encrypt:function(t,e,r,i){r=(i=this.cfg.extend(i)).kdf.execute(r,t.keySize,t.ivSize,i.salt,i.hasher),i.iv=r.iv,t=o.encrypt.call(this,t,e,r.key,i);return t.mixIn(r),t},decrypt:function(t,e,r,i){i=this.cfg.extend(i),e=this._parse(e,i.format);r=i.kdf.execute(r,t.keySize,t.ivSize,e.salt,i.hasher);return i.iv=r.iv,o.decrypt.call(this,t,e,r.key,i)}})),i.mode.CFB=((p=i.lib.BlockCipherMode.extend()).Encryptor=p.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize;t2.call(this,t,e,i,r),this._prevBlock=t.slice(e,e+i)}}),p.Decryptor=p.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=t.slice(e,e+i);t2.call(this,t,e,i,r),this._prevBlock=o}}),p),i.mode.CTR=(r=i.lib.BlockCipherMode.extend(),w=r.Encryptor=r.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=this._iv,n=this._counter,s=(o&&(n=this._counter=o.slice(0),this._iv=void 0),n.slice(0));r.encryptBlock(s,0),n[i-1]=n[i-1]+1|0;for(var c=0;c>>2]|=e<<24-r%4*8,t.sigBytes+=e},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},i.pad.Iso10126={pad:function(t,e){e*=4,e-=t.sigBytes%e;t.concat(i.lib.WordArray.random(e-1)).concat(i.lib.WordArray.create([e<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},i.pad.Iso97971={pad:function(t,e){t.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(t,e)},unpad:function(t){i.pad.ZeroPadding.unpad(t),t.sigBytes--}},i.pad.ZeroPadding={pad:function(t,e){e*=4;t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){for(var e=t.words,r=t.sigBytes-1,r=t.sigBytes-1;0<=r;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},i.pad.NoPadding={pad:function(){},unpad:function(){}},d1=(P=i).lib.CipherParams,u1=P.enc.Hex,P.format.Hex={stringify:function(t){return t.ciphertext.toString(u1)},parse:function(t){t=u1.parse(t);return d1.create({ciphertext:t})}};for(var w=i,p=w.lib.BlockCipher,u=w.algo,k=[],r2=[],i2=[],o2=[],n2=[],s2=[],c2=[],a2=[],h2=[],l2=[],x=[],b=0;b<256;b++)x[b]=b<128?b<<1:b<<1^283;for(var m=0,S=0,b=0;b<256;b++){var E=S^S<<1^S<<2^S<<3^S<<4,f2=(k[m]=E=E>>>8^255&E^99,x[r2[E]=m]),d2=x[f2],u2=x[d2],M=257*x[E]^16843008*E;i2[m]=M<<24|M>>>8,o2[m]=M<<16|M>>>16,n2[m]=M<<8|M>>>24,s2[m]=M,c2[E]=(M=16843009*u2^65537*d2^257*f2^16843008*m)<<24|M>>>8,a2[E]=M<<16|M>>>16,h2[E]=M<<8|M>>>24,l2[E]=M,m?(m=f2^x[x[x[u2^f2]]],S^=x[x[S]]):m=S=1}var p2=[0,1,2,4,8,16,32,64,128,27,54],u=u.AES=p.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,i=4*(1+(this._nRounds=6+r)),o=this._keySchedule=[],n=0;n>>24]<<24|k[a>>>16&255]<<16|k[a>>>8&255]<<8|k[255&a]):(a=k[(a=a<<8|a>>>24)>>>24]<<24|k[a>>>16&255]<<16|k[a>>>8&255]<<8|k[255&a],a^=p2[n/r|0]<<24),o[n]=o[n-r]^a);for(var s=this._invKeySchedule=[],c=0;c>>24]]^a2[k[a>>>16&255]]^h2[k[a>>>8&255]]^l2[k[255&a]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,i2,o2,n2,s2,k)},decryptBlock:function(t,e){var r=t[e+1],r=(t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,c2,a2,h2,l2,r2),t[e+1]);t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,i,o,n,s,c){for(var a=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],f=t[e+2]^r[2],d=t[e+3]^r[3],u=4,p=1;p>>24]^o[l>>>16&255]^n[f>>>8&255]^s[255&d]^r[u++],y=i[l>>>24]^o[f>>>16&255]^n[d>>>8&255]^s[255&h]^r[u++],g=i[f>>>24]^o[d>>>16&255]^n[h>>>8&255]^s[255&l]^r[u++],v=i[d>>>24]^o[h>>>16&255]^n[l>>>8&255]^s[255&f]^r[u++],h=_,l=y,f=g,d=v;_=(c[h>>>24]<<24|c[l>>>16&255]<<16|c[f>>>8&255]<<8|c[255&d])^r[u++],y=(c[l>>>24]<<24|c[f>>>16&255]<<16|c[d>>>8&255]<<8|c[255&h])^r[u++],g=(c[f>>>24]<<24|c[d>>>16&255]<<16|c[h>>>8&255]<<8|c[255&l])^r[u++],v=(c[d>>>24]<<24|c[h>>>16&255]<<16|c[l>>>8&255]<<8|c[255&f])^r[u++];t[e]=_,t[e+1]=y,t[e+2]=g,t[e+3]=v},keySize:8}),P=(w.AES=p._createHelper(u),i),_2=(w=P.lib).WordArray,w=w.BlockCipher,p=P.algo,y2=[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],g2=[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],v2=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],B2=[{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}],w2=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],k2=p.DES=w.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;r<56;r++){var i=y2[r]-1;e[r]=t[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],n=0;n<16;n++){for(var s=o[n]=[],c=v2[n],r=0;r<24;r++)s[r/6|0]|=e[(g2[r]-1+c)%28]<<31-r%6,s[4+(r/6|0)]|=e[28+(g2[r+24]-1+c)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var a=this._invSubKeys=[],r=0;r<16;r++)a[r]=o[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],x2.call(this,4,252645135),x2.call(this,16,65535),b2.call(this,2,858993459),b2.call(this,8,16711935),x2.call(this,1,1431655765);for(var i=0;i<16;i++){for(var o=r[i],n=this._lBlock,s=this._rBlock,c=0,a=0;a<8;a++)c|=B2[a][((s^o[a])&w2[a])>>>0];this._lBlock=s,this._rBlock=n^c}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,x2.call(this,1,1431655765),b2.call(this,8,16711935),b2.call(this,2,858993459),x2.call(this,16,65535),x2.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function x2(t,e){e=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=e,this._lBlock^=e<>>t^this._lBlock)&e;this._lBlock^=e,this._rBlock^=e<192.");var e=t.slice(0,2),r=t.length<4?t.slice(0,2):t.slice(2,4),t=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=k2.createEncryptor(_2.create(e)),this._des2=k2.createEncryptor(_2.create(r)),this._des3=k2.createEncryptor(_2.create(t))},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}),P.TripleDES=w._createHelper(p);var u=i,P=u.lib.StreamCipher,w=u.algo,m2=w.RC4=P.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,i=this._S=[],o=0;o<256;o++)i[o]=o;for(var o=0,n=0;o<256;o++){var s=o%r,s=e[s>>>2]>>>24-s%4*8&255,n=(n+i[o]+s)%256,s=i[o];i[o]=i[n],i[n]=s}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=S2.call(this)},keySize:8,ivSize:0});function S2(){for(var t=this._S,e=this._i,r=this._j,i=0,o=0;o<4;o++){var r=(r+t[e=(e+1)%256])%256,n=t[e];t[e]=t[r],t[r]=n,i|=t[(t[e]+t[r])%256]<<24-8*o}return this._i=e,this._j=r,i}function A2(){for(var t=this._X,e=this._C,r=0;r<8;r++)c[r]=e[r];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;for(r=0;r<8;r++){var i=t[r]+e[r],o=65535&i,n=i>>>16;a[r]=((o*o>>>17)+o*n>>>15)+n*n^((4294901760&i)*i|0)+((65535&i)*i|0)}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}function z2(){for(var t=this._X,e=this._C,r=0;r<8;r++)f[r]=e[r];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;for(r=0;r<8;r++){var i=t[r]+e[r],o=65535&i,n=i>>>16;d[r]=((o*o>>>17)+o*n>>>15)+n*n^((4294901760&i)*i|0)+((65535&i)*i|0)}t[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,t[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,t[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,t[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,t[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,t[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,t[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,t[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}u.RC4=P._createHelper(m2),w=w.RC4Drop=m2.extend({cfg:m2.cfg.extend({drop:192}),_doReset:function(){m2._doReset.call(this);for(var t=this.cfg.drop;0>>24)|4278255360&(t[r]<<24|t[r]>>>8);for(var i=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],o=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]],r=this._b=0;r<4;r++)A2.call(this);for(r=0;r<8;r++)o[r]^=i[r+4&7];if(e){var e=e.words,n=e[0],e=e[1],n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),s=n>>>16|4294901760&e,c=e<<16|65535&n;o[0]^=n,o[1]^=s,o[2]^=e,o[3]^=c,o[4]^=n,o[5]^=s,o[6]^=e,o[7]^=c;for(r=0;r<4;r++)A2.call(this)}},_doProcessBlock:function(t,e){var r=this._X;A2.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),t[e+i]^=n[i]},blockSize:4,ivSize:2}),p.Rabbit=u._createHelper(P),p=(w=i).lib.StreamCipher,u=w.algo,h=[],f=[],d=[],u=u.RabbitLegacy=p.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,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]],o=this._b=0;o<4;o++)z2.call(this);for(o=0;o<8;o++)i[o]^=r[o+4&7];if(e){var t=e.words,e=t[0],t=t[1],e=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),n=e>>>16|4294901760&t,s=t<<16|65535&e;i[0]^=e,i[1]^=n,i[2]^=t,i[3]^=s,i[4]^=e,i[5]^=n,i[6]^=t,i[7]^=s;for(o=0;o<4;o++)z2.call(this)}},_doProcessBlock:function(t,e){var r=this._X;z2.call(this),h[0]=r[0]^r[5]>>>16^r[3]<<16,h[1]=r[2]^r[7]>>>16^r[5]<<16,h[2]=r[4]^r[1]>>>16^r[7]<<16,h[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)h[i]=16711935&(h[i]<<8|h[i]>>>24)|4278255360&(h[i]<<24|h[i]>>>8),t[e+i]^=h[i]},blockSize:4,ivSize:2}),w.RabbitLegacy=p._createHelper(u);{w=(P=i).lib.BlockCipher,p=P.algo;const F=16,D2=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],E2=[[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 H2={pbox:[],sbox:[]};function C2(t,e){var r=t.sbox[0][e>>24&255]+t.sbox[1][e>>16&255];return r=(r^=t.sbox[2][e>>8&255])+t.sbox[3][255&e]}function R2(e,t,r){let i=t,o=r,n;for(let t=0;t=a&&(e=0);let r=0,i=0,o=0;for(let t=0;t\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",f=a.console&&(a.console.warn||a.console.log);return f&&f.call(a.console,e,d),b.apply(this,arguments)}}function i(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&la(d,c)}function j(a,b){return function(){return a.apply(b,arguments)}}function k(a,b){return typeof a==oa?a.apply(b?b[0]||d:d,b):a}function l(a,b){return a===d?b:a}function m(a,b,c){g(q(b),function(b){a.addEventListener(b,c,!1)})}function n(a,b,c){g(q(b),function(b){a.removeEventListener(b,c,!1)})}function o(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function p(a,b){return a.indexOf(b)>-1}function q(a){return a.trim().split(/\s+/g)}function r(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;dc[b]}):d.sort()),d}function u(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g1&&!c.firstMultiple?c.firstMultiple=D(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=E(d);b.timeStamp=ra(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=I(h,i),b.distance=H(h,i),B(c,b),b.offsetDirection=G(b.deltaX,b.deltaY);var j=F(b.deltaTime,b.deltaX,b.deltaY);b.overallVelocityX=j.x,b.overallVelocityY=j.y,b.overallVelocity=qa(j.x)>qa(j.y)?j.x:j.y,b.scale=g?K(g.pointers,d):1,b.rotation=g?J(g.pointers,d):0,b.maxPointers=c.prevInput?b.pointers.length>c.prevInput.maxPointers?b.pointers.length:c.prevInput.maxPointers:b.pointers.length,C(c,b);var k=a.element;o(b.srcEvent.target,k)&&(k=b.srcEvent.target),b.target=k}function B(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};b.eventType!==Ea&&f.eventType!==Ga||(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function C(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Ha&&(i>Da||h.velocity===d)){var j=b.deltaX-h.deltaX,k=b.deltaY-h.deltaY,l=F(i,j,k);e=l.x,f=l.y,c=qa(l.x)>qa(l.y)?l.x:l.y,g=G(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function D(a){for(var b=[],c=0;ce;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:pa(c/b),y:pa(d/b)}}function F(a,b,c){return{x:b/a||0,y:c/a||0}}function G(a,b){return a===b?Ia:qa(a)>=qa(b)?0>a?Ja:Ka:0>b?La:Ma}function H(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function I(a,b,c){c||(c=Qa);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function J(a,b){return I(b[1],b[0],Ra)+I(a[1],a[0],Ra)}function K(a,b){return H(b[0],b[1],Ra)/H(a[0],a[1],Ra)}function L(){this.evEl=Ta,this.evWin=Ua,this.pressed=!1,x.apply(this,arguments)}function M(){this.evEl=Xa,this.evWin=Ya,x.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=$a,this.evWin=_a,this.started=!1,x.apply(this,arguments)}function O(a,b){var c=s(a.touches),d=s(a.changedTouches);return b&(Ga|Ha)&&(c=t(c.concat(d),"identifier",!0)),[c,d]}function P(){this.evTarget=bb,this.targetIds={},x.apply(this,arguments)}function Q(a,b){var c=s(a.touches),d=this.targetIds;if(b&(Ea|Fa)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=s(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return o(a.target,i)}),b===Ea)for(e=0;e-1&&d.splice(a,1)};setTimeout(e,cb)}}function U(a){for(var b=a.srcEvent.clientX,c=a.srcEvent.clientY,d=0;d=f&&db>=g)return!0}return!1}function V(a,b){this.manager=a,this.set(b)}function W(a){if(p(a,jb))return jb;var b=p(a,kb),c=p(a,lb);return b&&c?jb:b||c?b?kb:lb:p(a,ib)?ib:hb}function X(){if(!fb)return!1;var b={},c=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(d){b[d]=c?a.CSS.supports("touch-action",d):!0}),b}function Y(a){this.options=la({},this.defaults,a||{}),this.id=v(),this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=nb,this.simultaneous={},this.requireFail=[]}function Z(a){return a&sb?"cancel":a&qb?"end":a&pb?"move":a&ob?"start":""}function $(a){return a==Ma?"down":a==La?"up":a==Ja?"left":a==Ka?"right":""}function _(a,b){var c=b.manager;return c?c.get(a):a}function aa(){Y.apply(this,arguments)}function ba(){aa.apply(this,arguments),this.pX=null,this.pY=null}function ca(){aa.apply(this,arguments)}function da(){Y.apply(this,arguments),this._timer=null,this._input=null}function ea(){aa.apply(this,arguments)}function fa(){aa.apply(this,arguments)}function ga(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ha(a,b){return b=b||{},b.recognizers=l(b.recognizers,ha.defaults.preset),new ia(a,b)}function ia(a,b){this.options=la({},ha.defaults,b||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=y(this),this.touchAction=new V(this,this.options.touchAction),ja(this,!0),g(this.options.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function ja(a,b){var c=a.element;if(c.style){var d;g(a.options.cssProps,function(e,f){d=u(c.style,f),b?(a.oldCssProps[d]=c.style[d],c.style[d]=e):c.style[d]=a.oldCssProps[d]||""}),b||(a.oldCssProps={})}}function ka(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var la,ma=["","webkit","Moz","MS","ms","o"],na=b.createElement("div"),oa="function",pa=Math.round,qa=Math.abs,ra=Date.now;la="function"!=typeof Object.assign?function(a){if(a===d||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;ch&&(b.push(a),h=b.length-1):e&(Ga|Ha)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Za={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},$a="touchstart",_a="touchstart touchmove touchend touchcancel";i(N,x,{handler:function(a){var b=Za[a.type];if(b===Ea&&(this.started=!0),this.started){var c=O.call(this,a,b);b&(Ga|Ha)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}}});var ab={touchstart:Ea,touchmove:Fa,touchend:Ga,touchcancel:Ha},bb="touchstart touchmove touchend touchcancel";i(P,x,{handler:function(a){var b=ab[a.type],c=Q.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:za,srcEvent:a})}});var cb=2500,db=25;i(R,x,{handler:function(a,b,c){var d=c.pointerType==za,e=c.pointerType==Ba;if(!(e&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(d)S.call(this,b,c);else if(e&&U.call(this,c))return;this.callback(a,b,c)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var eb=u(na.style,"touchAction"),fb=eb!==d,gb="compute",hb="auto",ib="manipulation",jb="none",kb="pan-x",lb="pan-y",mb=X();V.prototype={set:function(a){a==gb&&(a=this.compute()),fb&&this.manager.element.style&&mb[a]&&(this.manager.element.style[eb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){k(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),W(a.join(" "))},preventDefaults:function(a){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=p(d,jb)&&!mb[jb],f=p(d,lb)&&!mb[lb],g=p(d,kb)&&!mb[kb];if(e){var h=1===a.pointers.length,i=a.distance<2,j=a.deltaTime<250;if(h&&i&&j)return}return g&&f?void 0:e||f&&c&Na||g&&c&Oa?this.preventSrc(b):void 0},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var nb=1,ob=2,pb=4,qb=8,rb=qb,sb=16,tb=32;Y.prototype={defaults:{},set:function(a){return la(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=_(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=_(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=_(a,this),-1===r(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=_(a,this);var b=r(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(b,a)}var c=this,d=this.state;qb>d&&b(c.options.event+Z(d)),b(c.options.event),a.additionalEvent&&b(a.additionalEvent),d>=qb&&b(c.options.event+Z(d))},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=tb)},canEmit:function(){for(var a=0;af?Ja:Ka,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Ia:0>g?La:Ma,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return aa.prototype.attrTest.call(this,a)&&(this.state&ob||!(this.state&ob)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=$(a.direction);b&&(a.additionalEvent=this.options.event+b),this._super.emit.call(this,a)}}),i(ca,aa,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ob)},emit:function(a){if(1!==a.scale){var b=a.scale<1?"in":"out";a.additionalEvent=this.options.event+b}this._super.emit.call(this,a)}}),i(da,Y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hb]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distanceb.time;if(this._input=a,!d||!c||a.eventType&(Ga|Ha)&&!f)this.reset();else if(a.eventType&Ea)this.reset(),this._timer=e(function(){this.state=rb,this.tryEmit()},b.time,this);else if(a.eventType&Ga)return rb;return tb},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===rb&&(a&&a.eventType&Ga?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=ra(),this.manager.emit(this.options.event,this._input)))}}),i(ea,aa,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ob)}}),i(fa,aa,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Na|Oa,pointers:1},getTouchAction:function(){return ba.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Na|Oa)?b=a.overallVelocity:c&Na?b=a.overallVelocityX:c&Oa&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&qa(b)>this.options.velocity&&a.eventType&Ga},emit:function(a){var b=$(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),i(ga,Y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ib]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance + * Copyright (c) 2022 Niklas von Hertzen + * Released under MIT License + */ +!function(A,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(A="undefined"!=typeof globalThis?globalThis:A||self).html2canvas=e()}(this,function(){"use strict"; +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + ***************************************************************************** */var r=function(A,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(A,e)};function A(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var h=function(){return(h=Object.assign||function(A){for(var e,t=1,r=arguments.length;ts[0]&&e[1]>10),s%1024+56320)),(B+1===t||16384>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},l);function l(A,e,t,r,B,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=B,this.data=n}for(var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),F=0;F>4,i[o++]=(15&t)<<4|r>>2,i[o++]=(3&r)<<6|63&B;return n}(y="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),L=Array.isArray(m)?function(A){for(var e=A.length,t=[],r=0;r=this._value.length?-1:this._value[A]},XA.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();lA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(g.apply(void 0,A.map(function(A){return 63===A?48:A})),16),end:parseInt(g.apply(void 0,A.map(function(A){return 63===A?70:A})),16)};var r=parseInt(g.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&lA(this.peekCodePoint(1))){this.consumeCodePoint();for(var e=this.consumeCodePoint(),B=[];lA(e)&&B.length<6;)B.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(g.apply(void 0,B),16)}}return{type:30,start:r,end:r}},XA.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},XA.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e,t=this.peekCodePoint(0);if(39===t||34===t){t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),xA)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:22,value:g.apply(void 0,A)};if(CA(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:g.apply(void 0,A)}):(this.consumeBadUrlRemnants(),xA);if(34===r||39===r||40===r||(0<=(e=r)&&e<=8||11===e||14<=e&&e<=31||127===e))return this.consumeBadUrlRemnants(),xA;if(92===r){if(!hA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),xA;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},XA.prototype.consumeWhiteSpace=function(){for(;CA(this.peekCodePoint(0));)this.consumeCodePoint()},XA.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;hA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},XA.prototype.consumeStringSlice=function(A){for(var e="";0>8,r=255&A>>16,A=255&A>>24;return e<255?"rgba("+A+","+r+","+t+","+e/255+")":"rgb("+A+","+r+","+t+")"}function Qe(A,e){if(17===A.type)return A.number;if(16!==A.type)return 0;var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}var ce=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},ae={type:17,number:0,flags:4},ge={type:16,number:50,flags:4},we={type:16,number:100,flags:4},Ue=function(A,e){if(16===A.type)return A.number/100*e;if(WA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},le=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},Ce=function(A){return Math.PI*A/180},ue=function(A,e){if(18===e.type){var t=me[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3);return Fe(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(4===e.value.length){var r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3),s=e.value.substring(3,4);return Fe(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===e.value.length){r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6);return Fe(parseInt(r,16),parseInt(B,16),parseInt(n,16),1)}if(8===e.value.length){r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6),s=e.value.substring(6,8);return Fe(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}}if(20===e.type){e=Le[e.value.toUpperCase()];if(void 0!==e)return e}return Le.TRANSPARENT},Fe=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},he=function(A,e){e=e.filter($A);if(3===e.length){var t=e.map(Qe),r=t[0],B=t[1],t=t[2];return Fe(r,B,t,1)}if(4!==e.length)return 0;e=e.map(Qe),r=e[0],B=e[1],t=e[2],e=e[3];return Fe(r,B,t,e)};function de(A,e,t){return t<0&&(t+=1),1<=t&&--t,t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}function fe(A,e){return ue(A,JA.create(e).parseComponentValue())}function He(A,e){return A=ue(A,e[0]),(e=e[1])&&te(e)?{color:A,stop:e}:{color:A,stop:null}}function pe(A,t){var e=A[0],r=A[A.length-1];null===e.stop&&(e.stop=ae),null===r.stop&&(r.stop=we);for(var B=[],n=0,s=0;sA.optimumDistance)?{optimumCorner:e,optimumDistance:r}:A},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner}var Ke=function(A,e){var t=e.filter($A),r=t[0],B=t[1],n=t[2],e=t[3],t=(17===r.type?Ce(r.number):le(A,r))/(2*Math.PI),A=te(B)?B.number/100:0,r=te(n)?n.number/100:0,B=void 0!==e&&te(e)?Ue(e,1):1;if(0==A)return Fe(255*r,255*r,255*r,1);n=r<=.5?r*(1+A):r+A-r*A,e=2*r-n,A=de(e,n,t+1/3),r=de(e,n,t),t=de(e,n,t-1/3);return Fe(255*A,255*r,255*t,B)},me={hsl:Ke,hsla:Ke,rgb:he,rgba:he},Le={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},be={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(_A(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},De={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ke=function(t,A){var r=Ce(180),B=[];return Ae(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&-1!==["top","left","right","bottom"].indexOf(e.value))return void(r=se(A));if(ne(e))return void(r=(le(t,e)+Ce(270))%Ce(360))}A=He(t,A);B.push(A)}),{angle:r,stops:B,type:1}},ve="closest-side",xe="farthest-side",Me="closest-corner",Se="farthest-corner",Te="ellipse",Ge="contain",he=function(r,A){var B=0,n=3,s=[],o=[];return Ae(A).forEach(function(A,e){var t=!0;0===e?t=A.reduce(function(A,e){if(_A(e))switch(e.value){case"center":return o.push(ge),!1;case"top":case"left":return o.push(ae),!1;case"right":case"bottom":return o.push(we),!1}else if(te(e)||ee(e))return o.push(e),!1;return A},t):1===e&&(t=A.reduce(function(A,e){if(_A(e))switch(e.value){case"circle":return B=0,!1;case Te:return!(B=1);case Ge:case ve:return n=0,!1;case xe:return!(n=1);case Me:return!(n=2);case"cover":case Se:return!(n=3)}else if(ee(e)||te(e))return(n=!Array.isArray(n)?[]:n).push(e),!1;return A},t)),t&&(A=He(r,A),s.push(A))}),{size:n,shape:B,stops:s,position:o,type:2}},Oe=function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18!==e.type)throw new Error("Unsupported image type "+e.type);t=ke[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return t(A,e.values)};var Ve,ke={"linear-gradient":function(t,A){var r=Ce(180),B=[];return Ae(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&"to"===e.value)return void(r=se(A));if(ne(e))return void(r=le(t,e))}A=He(t,A);B.push(A)}),{angle:r,stops:B,type:1}},"-moz-linear-gradient":Ke,"-ms-linear-gradient":Ke,"-o-linear-gradient":Ke,"-webkit-linear-gradient":Ke,"radial-gradient":function(B,A){var n=0,s=3,o=[],i=[];return Ae(A).forEach(function(A,e){var t,r=!0;0===e&&(t=!1,r=A.reduce(function(A,e){if(t)if(_A(e))switch(e.value){case"center":return i.push(ge),A;case"top":case"left":return i.push(ae),A;case"right":case"bottom":return i.push(we),A}else(te(e)||ee(e))&&i.push(e);else if(_A(e))switch(e.value){case"circle":return n=0,!1;case Te:return!(n=1);case"at":return!(t=!0);case ve:return s=0,!1;case"cover":case xe:return!(s=1);case Ge:case Me:return!(s=2);case Se:return!(s=3)}else if(ee(e)||te(e))return(s=!Array.isArray(s)?[]:s).push(e),!1;return A},r)),r&&(A=He(B,A),o.push(A))}),{size:s,shape:n,stops:o,position:i,type:2}},"-moz-radial-gradient":he,"-ms-radial-gradient":he,"-o-radial-gradient":he,"-webkit-radial-gradient":he,"-webkit-gradient":function(r,A){var e=Ce(180),B=[],n=1;return Ae(A).forEach(function(A,e){var t,A=A[0];if(0===e){if(_A(A)&&"linear"===A.value)return void(n=1);if(_A(A)&&"radial"===A.value)return void(n=2)}18===A.type&&("from"===A.name?(t=ue(r,A.values[0]),B.push({stop:ae,color:t})):"to"===A.name?(t=ue(r,A.values[0]),B.push({stop:we,color:t})):"color-stop"!==A.name||2===(A=A.values.filter($A)).length&&(t=ue(r,A[1]),A=A[0],ZA(A)&&B.push({stop:{type:16,number:100*A.number,flags:A.flags},color:t})))}),1===n?{angle:(e+Ce(180))%Ce(360),stops:B,type:n}:{size:3,shape:0,stops:B,position:[],type:n}}},Re={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A.filter(function(A){return $A(A)&&!(20===(A=A).type&&"none"===A.value||18===A.type&&!ke[A.name])}).map(function(A){return Oe(e,A)})}},Ne={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(_A(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Pe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Ae(e).map(function(A){return A.filter(te)}).map(re)}},Xe={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Ae(e).map(function(A){return A.filter(_A).map(function(A){return A.value}).join(" ")}).map(Je)}},Je=function(A){switch(A){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}};(he=Ve=Ve||{}).AUTO="auto",he.CONTAIN="contain";function Ye(A,e){return _A(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:te(A)?Ue(A,e):e}var We,Ze,_e={name:"background-size",initialValue:"0",prefix:!(he.COVER="cover"),type:1,parse:function(A,e){return Ae(e).map(function(A){return A.filter(qe)})}},qe=function(A){return _A(A)||te(A)},he=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},je=he("top"),ze=he("right"),$e=he("bottom"),At=he("left"),he=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return re(e.filter(te))}}},et=he("top-left"),tt=he("top-right"),rt=he("bottom-right"),Bt=he("bottom-left"),he=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},nt=he("top"),st=he("right"),ot=he("bottom"),it=he("left"),he=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return WA(e)?e.number:0}}},Qt=he("top"),ct=he("right"),at=he("bottom"),gt=he("left"),wt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ut={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"!==e?0:1}},lt={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(_A).reduce(function(A,e){return A|Ct(e.value)},0)}},Ct=function(A){switch(A){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},ut={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ft={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return!(20===e.type&&"normal"===e.value||17!==e.type&&15!==e.type)?e.number:0}},ht={name:"line-break",initialValue:(he=We=We||{}).NORMAL="normal",prefix:!(he.STRICT="strict"),type:2,parse:function(A,e){return"strict"!==e?We.NORMAL:We.STRICT}},dt={name:"line-height",initialValue:"normal",prefix:!1,type:4},ft={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Oe(A,e)}},Ht={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"!==e?1:0}},pt={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,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}}},he=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Et=he("top"),It=he("right"),yt=he("bottom"),Kt=he("left"),mt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(_A).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Lt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"!==e?"normal":"break-word"}},he=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},bt=he("top"),Dt=he("right"),vt=he("bottom"),xt=he("left"),Mt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},St={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Tt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,A){return 1===A.length&&jA(A[0],"none")?[]:Ae(A).map(function(A){for(var e={color:Le.TRANSPARENT,offsetX:ae,offsetY:ae,blur:ae},t=0,r=0;r>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},pr);function pr(A,e,t,r,B,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=B,this.data=n}for(var Er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ir="undefined"==typeof Uint8Array?[]:new Uint8Array(256),yr=0;yr>10),s%1024+56320)),(B+1===t||16384>4,i[o++]=(15&t)<<4|r>>2,i[o++]=(3&r)<<6|63&B;return n}(br="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),xr=Array.isArray(vr)?function(A){for(var e=A.length,t=[],r=0;rs.x||t.y>s.y;return s=t,0===e||A});return A.body.removeChild(e),t}(document);return Object.defineProperty(Xr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),A=t.getContext("2d");if(!A)return!1;e.src="data:image/svg+xml,";try{A.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(Xr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var A=t.createElement("canvas"),r=100;A.width=r,A.height=r;var B=A.getContext("2d");if(!B)return Promise.reject(!1);B.fillStyle="rgb(0, 255, 0)",B.fillRect(0,0,r,r);var e=new Image,n=A.toDataURL();e.src=n;e=Nr(r,r,0,0,e);return B.fillStyle="red",B.fillRect(0,0,r,r),Pr(e).then(function(A){B.drawImage(A,0,0);var e=B.getImageData(0,0,r,r).data;B.fillStyle="red",B.fillRect(0,0,r,r);A=t.createElement("div");return A.style.backgroundImage="url("+n+")",A.style.height="100px",Lr(e)?Pr(Nr(r,r,0,0,A)):Promise.reject(!1)}).then(function(A){return B.drawImage(A,0,0),Lr(B.getImageData(0,0,r,r).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Xr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(Xr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Xr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Xr,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Xr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Jr=function(A,e){this.text=A,this.bounds=e},Yr=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));t=e.parentNode;if(t){t.replaceChild(r,e);A=f(A,r);return r.firstChild&&t.replaceChild(r.firstChild,r),A}}return d.EMPTY},Wr=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");r=r.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},Zr=function(A){if(Xr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(A){return A.segment})}return function(A){for(var e,t=mr(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r}(A)},_r=function(A,e){return 0!==e.letterSpacing?Zr(A):function(A,e){if(Xr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(A){return A.segment})}return jr(A,e)}(A,e)},qr=[32,160,4961,65792,65793,4153,4241],jr=function(A,e){for(var t,r=wA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),B=[];!(t=r.next()).done;)!function(){var A,e;t.value&&(A=t.value.slice(),A=Q(A),e="",A.forEach(function(A){-1===qr.indexOf(A)?e+=g(A):(e.length&&B.push(e),B.push(g(A)),e="")}),e.length&&B.push(e))}();return B},zr=function(A,e,t){var B,n,s,o,i;this.text=$r(e.data,t.textTransform),this.textBounds=(B=A,A=this.text,s=e,A=_r(A,n=t),o=[],i=0,A.forEach(function(A){var e,t,r;n.textDecorationLine.length||0e.height?new d(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width"),Ln(this.referenceElement.ownerDocument,t,n),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),A},fn.prototype.createElementClone=function(A){if(Cr(A,2),zB(A))return this.createCanvasClone(A);if(MB(A))return this.createVideoClone(A);if(SB(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return $B(e)&&($B(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),TB(e)?this.createCustomElementClone(e):e},fn.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Kn(A.style,e),e},fn.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A},""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},fn.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(A){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}t=e.cloneNode(!1);try{t.width=e.width,t.height=e.height;var r,B,n=e.getContext("2d"),s=t.getContext("2d");return s&&(!this.options.allowTaint&&n?s.putImageData(n.getImageData(0,0,e.width,e.height),0,0):(!(r=null!==(A=e.getContext("webgl2"))&&void 0!==A?A:e.getContext("webgl"))||!1===(null==(B=r.getContextAttributes())?void 0:B.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e),s.drawImage(e,0,0))),t}catch(A){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return t},fn.prototype.createVideoClone=function(e){var A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var t=A.getContext("2d");try{return t&&(t.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||t.getImageData(0,0,A.width,A.height)),A}catch(A){this.context.logger.info("Unable to clone video as it is tainted",e)}A=e.ownerDocument.createElement("canvas");return A.width=e.offsetWidth,A.height=e.offsetHeight,A},fn.prototype.appendChildNode=function(A,e,t){XB(e)&&("SCRIPT"===e.tagName||e.hasAttribute(hn)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&XB(e)&&SB(e)||A.appendChild(this.cloneNode(e,t))},fn.prototype.cloneChildNodes=function(A,e,t){for(var r,B=this,n=(A.shadowRoot||A).firstChild;n;n=n.nextSibling)XB(n)&&rn(n)&&"function"==typeof n.assignedNodes?(r=n.assignedNodes()).length&&r.forEach(function(A){return B.appendChildNode(e,A,t)}):this.appendChildNode(e,n,t)},fn.prototype.cloneNode=function(A,e){if(PB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&XB(A)&&(JB(A)||YB(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var B=t.getComputedStyle(A),n=t.getComputedStyle(A,":before"),s=t.getComputedStyle(A,":after");this.referenceElement===A&&JB(r)&&(this.clonedReferenceElement=r),jB(r)&&Mn(r);t=this.counters.parse(new Ur(this.context,B)),n=this.resolvePseudoContent(A,r,n,gn.BEFORE);TB(A)&&(e=!0),MB(A)||this.cloneChildNodes(A,r,e),n&&r.insertBefore(n,r.firstChild);s=this.resolvePseudoContent(A,r,s,gn.AFTER);return s&&r.appendChild(s),this.counters.pop(t),(B&&(this.options.copyStyles||YB(A))&&!An(A)||e)&&Kn(B,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(en(A)||tn(A))&&(en(r)||tn(r))&&(r.value=A.value),r}return A.cloneNode(!1)},fn.prototype.resolvePseudoContent=function(o,A,e,t){var i=this;if(e){var r=e.content,Q=A.ownerDocument;if(Q&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==e.display){this.counters.parse(new Ur(this.context,e));var c=new wr(this.context,e),a=Q.createElement("html2canvaspseudoelement");Kn(e,a),c.content.forEach(function(A){if(0===A.type)a.appendChild(Q.createTextNode(A.value));else if(22===A.type){var e=Q.createElement("img");e.src=A.value,e.style.opacity="1",a.appendChild(e)}else if(18===A.type){var t,r,B,n,s;"attr"===A.name?(e=A.values.filter(_A)).length&&a.appendChild(Q.createTextNode(o.getAttribute(e[0].value)||"")):"counter"===A.name?(B=(r=A.values.filter($A))[0],r=r[1],B&&_A(B)&&(t=i.counters.getCounterValue(B.value),s=r&&_A(r)?pt.parse(i.context,r.value):3,a.appendChild(Q.createTextNode(Fn(t,s,!1))))):"counters"===A.name&&(B=(t=A.values.filter($A))[0],s=t[1],r=t[2],B&&_A(B)&&(B=i.counters.getCounterValues(B.value),n=r&&_A(r)?pt.parse(i.context,r.value):3,s=s&&0===s.type?s.value:"",s=B.map(function(A){return Fn(A,n,!1)}).join(s),a.appendChild(Q.createTextNode(s))))}else if(20===A.type)switch(A.value){case"open-quote":a.appendChild(Q.createTextNode(Xt(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":a.appendChild(Q.createTextNode(Xt(c.quotes,--i.quoteDepth,!1)));break;default:a.appendChild(Q.createTextNode(A.value))}}),a.className=Dn+" "+vn;t=t===gn.BEFORE?" "+Dn:" "+vn;return YB(A)?A.className.baseValue+=t:A.className+=t,a}}},fn.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},fn);function fn(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Bn,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}(he=gn=gn||{})[he.BEFORE=0]="BEFORE",he[he.AFTER=1]="AFTER";function Hn(e){return new Promise(function(A){!e.complete&&e.src?(e.onload=A,e.onerror=A):A()})}var pn=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(hn,"true"),A.body.appendChild(t),t},En=function(A){return Promise.all([].slice.call(A.images,0).map(Hn))},In=function(B){return new Promise(function(e,A){var t=B.contentWindow;if(!t)return A("No window assigned for iframe");var r=t.document;t.onload=B.onload=function(){t.onload=B.onload=null;var A=setInterval(function(){0"),e},Ln=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},bn=function(A){var e=A[0],t=A[1],A=A[2];e.scrollLeft=t,e.scrollTop=A},Dn="___html2canvas___pseudoelement_before",vn="___html2canvas___pseudoelement_after",xn='{\n content: "" !important;\n display: none !important;\n}',Mn=function(A){Sn(A,"."+Dn+":before"+xn+"\n ."+vn+":after"+xn)},Sn=function(A,e){var t=A.ownerDocument;t&&((t=t.createElement("style")).textContent=e,A.appendChild(t))},Tn=(Gn.getOrigin=function(A){var e=Gn._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},Gn.isSameOrigin=function(A){return Gn.getOrigin(A)===Gn._origin},Gn.setContext=function(A){Gn._link=A.document.createElement("a"),Gn._origin=Gn.getOrigin(A.location.href)},Gn._origin="about:blank",Gn);function Gn(){}var On=(Vn.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Yn(A)||Pn(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},Vn.prototype.match=function(A){return this._cache[A]},Vn.prototype.loadImage=function(s){return a(this,void 0,void 0,function(){var e,r,t,B,n=this;return H(this,function(A){switch(A.label){case 0:return(e=Tn.isSameOrigin(s),r=!Xn(s)&&!0===this._options.useCORS&&Xr.SUPPORT_CORS_IMAGES&&!e,t=!Xn(s)&&!e&&!Yn(s)&&"string"==typeof this._options.proxy&&Xr.SUPPORT_CORS_XHR&&!r,e||!1!==this._options.allowTaint||Xn(s)||Yn(s)||t||r)?(B=s,t?[4,this.proxy(B)]:[3,2]):[2];case 1:B=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+s.substring(0,256)),[4,new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,(Jn(B)||r)&&(t.crossOrigin="anonymous"),t.src=B,!0===t.complete&&setTimeout(function(){return A(t)},500),0t.width+C?0:Math.max(0,n-C),Math.max(0,s-l),As.TOP_RIGHT):new Zn(t.left+t.width-C,t.top+l),this.bottomRightPaddingBox=0t.width+F+A?0:n-F+A,s-(l+h),As.TOP_RIGHT):new Zn(t.left+t.width-(C+d),t.top+l+h),this.bottomRightContentBox=0A.element.container.styles.zIndex.order?(s=e,!1):0=A.element.container.styles.zIndex.order?(o=e+1,!1):0=t.length&&e.substr(0,t.length)===t},n.endsWith=function(e,t){return e.length>=t.length&&e.substr(e.length-t.length)===t},n.containsQueryString=function(e){return/^[^\#]*\?/gi.test(e)},n.isAbsolutePath=function(e){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(e)},n.forEachProperty=function(e,t){if(e){var r=void 0;for(r in e)e.hasOwnProperty(r)&&t(r,e[r])}},n.isEmpty=function(e){var t=!0;return n.forEachProperty(e,function(){t=!1}),t},n.recursiveClone=function(e){if(!e||"object"!=typeof e||e instanceof RegExp||!Array.isArray(e)&&Object.getPrototypeOf(e)!==Object.prototype)return e;var r=Array.isArray(e)?[]:{};return n.forEachProperty(e,function(e,t){r[e]=t&&"object"==typeof t?n.recursiveClone(t):t}),r},n.generateAnonymousModule=function(){return"===anonymous"+n.NEXT_ANONYMOUS_ID+++"==="},n.isAnonymousModule=function(e){return n.startsWith(e,"===anonymous")},n.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=e.global.performance&&"function"==typeof e.global.performance.now),(this.HAS_PERFORMANCE_NOW?e.global.performance:Date).now()},n.NEXT_ANONYMOUS_ID=1,n.PERFORMANCE_NOW_PROBED=!1,n.HAS_PERFORMANCE_NOW=!1,n);function n(){}e.Utilities=t}(AMDLoader=AMDLoader||{}),function(d){function r(e){if(e instanceof Error)return e;var t=new Error(e.message||String(e)||"Unknown Error");return e.stack&&(t.stack=e.stack),t}d.ensureError=r;var o=(n.validateConfigurationOptions=function(e){var t;return"string"!=typeof(e=e||{}).baseUrl&&(e.baseUrl=""),"boolean"!=typeof e.isBuild&&(e.isBuild=!1),"object"!=typeof e.paths&&(e.paths={}),"object"!=typeof e.config&&(e.config={}),void 0===e.catchError&&(e.catchError=!1),void 0===e.recordStats&&(e.recordStats=!1),"string"!=typeof e.urlArgs&&(e.urlArgs=""),"function"!=typeof e.onError&&(e.onError=function(e){if("loading"===e.phase)return console.error('Loading "'+e.moduleId+'" failed'),console.error(e),console.error("Here are the modules that depend on it:"),void console.error(e.neededBy);"factory"===e.phase&&(console.error('The factory method of "'+e.moduleId+'" has thrown an exception'),console.error(e))}),Array.isArray(e.ignoreDuplicateModules)||(e.ignoreDuplicateModules=[]),0=o.length)d._onLoadError(n,e);else{var t=o[i],r=d.getRecorder();if(d._config.isBuild()&&"empty:"===t)return d._buildInfoPath[n]=t,d.defineModule(d._moduleIdProvider.getStrModuleId(n),[],null,null,null),void d._onLoad(n);r.record(10,t),d._scriptLoader.load(d,t,function(){d._config.isBuild()&&(d._buildInfoPath[n]=t),r.record(11,t),d._onLoad(n)},function(e){r.record(12,t),s(e)})}})(null))},l.prototype._loadPluginDependency=function(e,t){var r,n=this;this._modules2[t.id]||this._knownModules2[t.id]||(this._knownModules2[t.id]=!0,(r=function(e){n.defineModule(n._moduleIdProvider.getStrModuleId(t.id),[],e,null,null)}).error=function(e){n._config.onError(n._createLoadError(t.id,e))},e.load(t.pluginParam,this._createRequire(a.ROOT),r,this._config.getOptionsLiteral()))},l.prototype._resolve=function(e){var t=this,r=e.dependencies;if(r)for(var n=0,o=r.length;n +`)),e.unresolvedDependenciesCount--):(this._inverseDependencies2[i.id]=this._inverseDependencies2[i.id]||[],this._inverseDependencies2[i.id].push(e.id),i instanceof u?(s=this._modules2[i.pluginId])&&s.isComplete()?this._loadPluginDependency(s.exports,i):((s=this._inversePluginDependencies2.get(i.pluginId))||this._inversePluginDependencies2.set(i.pluginId,s=[]),s.push(i),this._loadModule(i.pluginId)):this._loadModule(i.id))}else e.unresolvedDependenciesCount--;else e.unresolvedDependenciesCount--;else e.exportsPassedIn=!0,e.unresolvedDependenciesCount--}0===e.unresolvedDependenciesCount&&this._onModuleComplete(e)},l.prototype._onModuleComplete=function(e){var t=this,r=this.getRecorder();if(!e.isComplete()){var n=e.dependencies,o=[];if(n)for(var i=0,s=n.length;i=43)}}).catch(function(){return!1})}function n(a){return"boolean"==typeof xa?va.resolve(xa):m(a).then(function(a){return xa=a})}function o(a){var b=ya[a.name],c={};c.promise=new va(function(a,b){c.resolve=a,c.reject=b}),b.deferredOperations.push(c),b.dbReady?b.dbReady=b.dbReady.then(function(){return c.promise}):b.dbReady=c.promise}function p(a){var b=ya[a.name],c=b.deferredOperations.pop();if(c)return c.resolve(),c.promise}function q(a,b){var c=ya[a.name],d=c.deferredOperations.pop();if(d)return d.reject(b),d.promise}function r(a,b){return new va(function(c,d){if(ya[a.name]=ya[a.name]||B(),a.db){if(!b)return c(a.db);o(a),a.db.close()}var e=[a.name];b&&e.push(a.version);var f=ua.open.apply(ua,e);b&&(f.onupgradeneeded=function(b){var c=f.result;try{c.createObjectStore(a.storeName),b.oldVersion<=1&&c.createObjectStore(wa)}catch(c){if("ConstraintError"!==c.name)throw c;console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.storeName+'" already exists.')}}),f.onerror=function(a){a.preventDefault(),d(f.error)},f.onsuccess=function(){var b=f.result;b.onversionchange=function(a){a.target.close()},c(b),p(a)}})}function s(a){return r(a,!1)}function t(a){return r(a,!0)}function u(a,b){if(!a.db)return!0;var c=!a.db.objectStoreNames.contains(a.storeName),d=a.versiona.db.version;if(d&&(a.version!==b&&console.warn('The database "'+a.name+"\" can't be downgraded from version "+a.db.version+" to version "+a.version+"."),a.version=a.db.version),e||c){if(c){var f=a.db.version+1;f>a.version&&(a.version=f)}return!0}return!1}function v(a){return new va(function(b,c){var d=new FileReader;d.onerror=c,d.onloadend=function(c){var d=btoa(c.target.result||"");b({__local_forage_encoded_blob:!0,data:d,type:a.type})},d.readAsBinaryString(a)})}function w(a){return g([l(atob(a.data))],{type:a.type})}function x(a){return a&&a.__local_forage_encoded_blob}function y(a){var b=this,c=b._initReady().then(function(){var a=ya[b._dbInfo.name];if(a&&a.dbReady)return a.dbReady});return i(c,a,a),c}function z(a){o(a);for(var b=ya[a.name],c=b.forages,d=0;d0&&(!a.db||"InvalidStateError"===e.name||"NotFoundError"===e.name))return va.resolve().then(function(){if(!a.db||"NotFoundError"===e.name&&!a.db.objectStoreNames.contains(a.storeName)&&a.version<=a.db.version)return a.db&&(a.version=a.db.version+1),t(a)}).then(function(){return z(a).then(function(){A(a,b,c,d-1)})}).catch(c);c(e)}}function B(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function C(a){function b(){return va.resolve()}var c=this,d={db:null};if(a)for(var e in a)d[e]=a[e];var f=ya[d.name];f||(f=B(),ya[d.name]=f),f.forages.push(c),c._initReady||(c._initReady=c.ready,c.ready=y);for(var g=[],h=0;h>4,k[i++]=(15&d)<<4|e>>2,k[i++]=(3&e)<<6|63&f;return j}function O(a){var b,c=new Uint8Array(a),d="";for(b=0;b>2],d+=Da[(3&c[b])<<4|c[b+1]>>4],d+=Da[(15&c[b+1])<<2|c[b+2]>>6],d+=Da[63&c[b+2]];return c.length%3==2?d=d.substring(0,d.length-1)+"=":c.length%3==1&&(d=d.substring(0,d.length-2)+"=="),d}function P(a,b){var c="";if(a&&(c=Ua.call(a)),a&&("[object ArrayBuffer]"===c||a.buffer&&"[object ArrayBuffer]"===Ua.call(a.buffer))){var d,e=Ga;a instanceof ArrayBuffer?(d=a,e+=Ia):(d=a.buffer,"[object Int8Array]"===c?e+=Ka:"[object Uint8Array]"===c?e+=La:"[object Uint8ClampedArray]"===c?e+=Ma:"[object Int16Array]"===c?e+=Na:"[object Uint16Array]"===c?e+=Pa:"[object Int32Array]"===c?e+=Oa:"[object Uint32Array]"===c?e+=Qa:"[object Float32Array]"===c?e+=Ra:"[object Float64Array]"===c?e+=Sa:b(new Error("Failed to get type for BinaryArray"))),b(e+O(d))}else if("[object Blob]"===c){var f=new FileReader;f.onload=function(){var c=Ea+a.type+"~"+O(this.result);b(Ga+Ja+c)},f.readAsArrayBuffer(a)}else try{b(JSON.stringify(a))}catch(c){console.error("Couldn't convert value into a JSON string: ",a),b(null,c)}}function Q(a){if(a.substring(0,Ha)!==Ga)return JSON.parse(a);var b,c=a.substring(Ta),d=a.substring(Ha,Ta);if(d===Ja&&Fa.test(c)){var e=c.match(Fa);b=e[1],c=c.substring(e[0].length)}var f=N(c);switch(d){case Ia:return f;case Ja:return g([f],{type:b});case Ka:return new Int8Array(f);case La:return new Uint8Array(f);case Ma:return new Uint8ClampedArray(f);case Na:return new Int16Array(f);case Pa:return new Uint16Array(f);case Oa:return new Int32Array(f);case Qa:return new Uint32Array(f);case Ra:return new Float32Array(f);case Sa:return new Float64Array(f);default:throw new Error("Unkown type: "+d)}}function R(a,b,c,d){a.executeSql("CREATE TABLE IF NOT EXISTS "+b.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],c,d)}function S(a){var b=this,c={db:null};if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new va(function(a,d){try{c.db=openDatabase(c.name,String(c.version),c.description,c.size)}catch(a){return d(a)}c.db.transaction(function(e){R(e,c,function(){b._dbInfo=c,a()},function(a,b){d(b)})},d)});return c.serializer=Va,e}function T(a,b,c,d,e,f){a.executeSql(c,d,e,function(a,g){g.code===g.SYNTAX_ERR?a.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[b.storeName],function(a,h){h.rows.length?f(a,g):R(a,b,function(){a.executeSql(c,d,e,f)},f)},f):f(a,g)},f)}function U(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT * FROM "+e.storeName+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.serializer.deserialize(d)),b(d)},function(a,b){d(b)})})}).catch(d)});return h(d,b),d}function V(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT * FROM "+e.storeName,[],function(c,d){for(var f=d.rows,g=f.length,h=0;h0)return void f(W.apply(e,[a,h,c,d-1]));g(b)}})})}).catch(g)});return h(f,c),f}function X(a,b,c){return W.apply(this,[a,b,c,1])}function Y(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"DELETE FROM "+e.storeName+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})}).catch(d)});return h(d,b),d}function Z(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"DELETE FROM "+d.storeName,[],function(){a()},function(a,b){c(b)})})}).catch(c)});return h(c,a),c}function $(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"SELECT COUNT(key) as c FROM "+d.storeName,[],function(b,c){var d=c.rows.item(0).c;a(d)},function(a,b){c(b)})})}).catch(c)});return h(c,a),c}function _(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT key FROM "+e.storeName+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})}).catch(d)});return h(d,b),d}function aa(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"SELECT key FROM "+d.storeName,[],function(b,c){for(var d=[],e=0;e '__WebKitDatabaseInfoTable__'",[],function(c,d){for(var e=[],f=0;f0}function ha(a){var b=this,c={};if(a)for(var d in a)c[d]=a[d];return c.keyPrefix=ea(a,b._defaultConfig),ga()?(b._dbInfo=c,c.serializer=Va,va.resolve()):va.reject()}function ia(a){var b=this,c=b.ready().then(function(){for(var a=b._dbInfo.keyPrefix,c=localStorage.length-1;c>=0;c--){var d=localStorage.key(c);0===d.indexOf(a)&&localStorage.removeItem(d)}});return h(c,a),c}function ja(a,b){var c=this;a=j(a);var d=c.ready().then(function(){var b=c._dbInfo,d=localStorage.getItem(b.keyPrefix+a);return d&&(d=b.serializer.deserialize(d)),d});return h(d,b),d}function ka(a,b){var c=this,d=c.ready().then(function(){for(var b=c._dbInfo,d=b.keyPrefix,e=d.length,f=localStorage.length,g=1,h=0;h=0;b--){var c=localStorage.key(b);0===c.indexOf(a)&&localStorage.removeItem(c)}}):va.reject("Invalid arguments"),h(d,b),d}function ra(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,c)})}}function sa(){for(var a=1;ad;d++){var f=this.data.charCodeAt(d);f>65536?(b[0]=240|(1835008&f)>>>18,b[1]=128|(258048&f)>>>12,b[2]=128|(4032&f)>>>6,b[3]=128|63&f):f>2048?(b[0]=224|(61440&f)>>>12,b[1]=128|(4032&f)>>>6,b[2]=128|63&f):f>128?(b[0]=192|(1984&f)>>>6,b[1]=128|63&f):b[0]=f,this.parsedData=this.parsedData.concat(b)}this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function b(a,b){this.typeNumber=a,this.errorCorrectLevel=b,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function i(a,b){if(void 0==a.length)throw new Error(a.length+"/"+b);for(var c=0;c=f;f++){var h=0;switch(b){case d.L:h=l[f][0];break;case d.M:h=l[f][1];break;case d.Q:h=l[f][2];break;case d.H:h=l[f][3]}if(h>=e)break;c++}if(c>l.length)throw new Error("Too long data");return c}function s(a){var b=encodeURI(a).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return b.length+(b.length!=a?3:0)}a.prototype={getLength:function(){return this.parsedData.length},write:function(a){for(var b=0,c=this.parsedData.length;c>b;b++)a.put(this.parsedData[b],8)}},b.prototype={addData:function(b){var c=new a(b);this.dataList.push(c),this.dataCache=null},isDark:function(a,b){if(0>a||this.moduleCount<=a||0>b||this.moduleCount<=b)throw new Error(a+","+b);return this.modules[a][b]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(a,c){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var d=0;d=7&&this.setupTypeNumber(a),null==this.dataCache&&(this.dataCache=b.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,c)},setupPositionProbePattern:function(a,b){for(var c=-1;7>=c;c++)if(!(-1>=a+c||this.moduleCount<=a+c))for(var d=-1;7>=d;d++)-1>=b+d||this.moduleCount<=b+d||(this.modules[a+c][b+d]=c>=0&&6>=c&&(0==d||6==d)||d>=0&&6>=d&&(0==c||6==c)||c>=2&&4>=c&&d>=2&&4>=d?!0:!1)},getBestMaskPattern:function(){for(var a=0,b=0,c=0;8>c;c++){this.makeImpl(!0,c);var d=f.getLostPoint(this);(0==c||a>d)&&(a=d,b=c)}return b},createMovieClip:function(a,b,c){var d=a.createEmptyMovieClip(b,c),e=1;this.make();for(var f=0;f=g;g++)for(var h=-2;2>=h;h++)this.modules[d+g][e+h]=-2==g||2==g||-2==h||2==h||0==g&&0==h?!0:!1}},setupTypeNumber:function(a){for(var b=f.getBCHTypeNumber(this.typeNumber),c=0;18>c;c++){var d=!a&&1==(1&b>>c);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=d}for(var c=0;18>c;c++){var d=!a&&1==(1&b>>c);this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=d}},setupTypeInfo:function(a,b){for(var c=this.errorCorrectLevel<<3|b,d=f.getBCHTypeInfo(c),e=0;15>e;e++){var g=!a&&1==(1&d>>e);6>e?this.modules[e][8]=g:8>e?this.modules[e+1][8]=g:this.modules[this.moduleCount-15+e][8]=g}for(var e=0;15>e;e++){var g=!a&&1==(1&d>>e);8>e?this.modules[8][this.moduleCount-e-1]=g:9>e?this.modules[8][15-e-1+1]=g:this.modules[8][15-e-1]=g}this.modules[this.moduleCount-8][8]=!a},mapData:function(a,b){for(var c=-1,d=this.moduleCount-1,e=7,g=0,h=this.moduleCount-1;h>0;h-=2)for(6==h&&h--;;){for(var i=0;2>i;i++)if(null==this.modules[d][h-i]){var j=!1;g>>e));var k=f.getMask(b,d,h-i);k&&(j=!j),this.modules[d][h-i]=j,e--,-1==e&&(g++,e=7)}if(d+=c,0>d||this.moduleCount<=d){d-=c,c=-c;break}}}},b.PAD0=236,b.PAD1=17,b.createData=function(a,c,d){for(var e=j.getRSBlocks(a,c),g=new k,h=0;h8*l)throw new Error("code length overflow. ("+g.getLengthInBits()+">"+8*l+")");for(g.getLengthInBits()+4<=8*l&&g.put(0,4);0!=g.getLengthInBits()%8;)g.putBit(!1);for(;;){if(g.getLengthInBits()>=8*l)break;if(g.put(b.PAD0,8),g.getLengthInBits()>=8*l)break;g.put(b.PAD1,8)}return b.createBytes(g,e)},b.createBytes=function(a,b){for(var c=0,d=0,e=0,g=new Array(b.length),h=new Array(b.length),j=0;j=0?p.get(q):0}}for(var r=0,m=0;mm;m++)for(var j=0;jm;m++)for(var j=0;j=0;)b^=f.G15<=0;)b^=f.G18<>>=1;return b},getPatternPosition:function(a){return f.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,b,c){switch(a){case e.PATTERN000:return 0==(b+c)%2;case e.PATTERN001:return 0==b%2;case e.PATTERN010:return 0==c%3;case e.PATTERN011:return 0==(b+c)%3;case e.PATTERN100:return 0==(Math.floor(b/2)+Math.floor(c/3))%2;case e.PATTERN101:return 0==b*c%2+b*c%3;case e.PATTERN110:return 0==(b*c%2+b*c%3)%2;case e.PATTERN111:return 0==(b*c%3+(b+c)%2)%2;default:throw new Error("bad maskPattern:"+a)}},getErrorCorrectPolynomial:function(a){for(var b=new i([1],0),c=0;a>c;c++)b=b.multiply(new i([1,g.gexp(c)],0));return b},getLengthInBits:function(a,b){if(b>=1&&10>b)switch(a){case c.MODE_NUMBER:return 10;case c.MODE_ALPHA_NUM:return 9;case c.MODE_8BIT_BYTE:return 8;case c.MODE_KANJI:return 8;default:throw new Error("mode:"+a)}else if(27>b)switch(a){case c.MODE_NUMBER:return 12;case c.MODE_ALPHA_NUM:return 11;case c.MODE_8BIT_BYTE:return 16;case c.MODE_KANJI:return 10;default:throw new Error("mode:"+a)}else{if(!(41>b))throw new Error("type:"+b);switch(a){case c.MODE_NUMBER:return 14;case c.MODE_ALPHA_NUM:return 13;case c.MODE_8BIT_BYTE:return 16;case c.MODE_KANJI:return 12;default:throw new Error("mode:"+a)}}},getLostPoint:function(a){for(var b=a.getModuleCount(),c=0,d=0;b>d;d++)for(var e=0;b>e;e++){for(var f=0,g=a.isDark(d,e),h=-1;1>=h;h++)if(!(0>d+h||d+h>=b))for(var i=-1;1>=i;i++)0>e+i||e+i>=b||(0!=h||0!=i)&&g==a.isDark(d+h,e+i)&&f++;f>5&&(c+=3+f-5)}for(var d=0;b-1>d;d++)for(var e=0;b-1>e;e++){var j=0;a.isDark(d,e)&&j++,a.isDark(d+1,e)&&j++,a.isDark(d,e+1)&&j++,a.isDark(d+1,e+1)&&j++,(0==j||4==j)&&(c+=3)}for(var d=0;b>d;d++)for(var e=0;b-6>e;e++)a.isDark(d,e)&&!a.isDark(d,e+1)&&a.isDark(d,e+2)&&a.isDark(d,e+3)&&a.isDark(d,e+4)&&!a.isDark(d,e+5)&&a.isDark(d,e+6)&&(c+=40);for(var e=0;b>e;e++)for(var d=0;b-6>d;d++)a.isDark(d,e)&&!a.isDark(d+1,e)&&a.isDark(d+2,e)&&a.isDark(d+3,e)&&a.isDark(d+4,e)&&!a.isDark(d+5,e)&&a.isDark(d+6,e)&&(c+=40);for(var k=0,e=0;b>e;e++)for(var d=0;b>d;d++)a.isDark(d,e)&&k++;var l=Math.abs(100*k/b/b-50)/5;return c+=10*l}},g={glog:function(a){if(1>a)throw new Error("glog("+a+")");return g.LOG_TABLE[a]},gexp:function(a){for(;0>a;)a+=255;for(;a>=256;)a-=255;return g.EXP_TABLE[a]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},h=0;8>h;h++)g.EXP_TABLE[h]=1<h;h++)g.EXP_TABLE[h]=g.EXP_TABLE[h-4]^g.EXP_TABLE[h-5]^g.EXP_TABLE[h-6]^g.EXP_TABLE[h-8];for(var h=0;255>h;h++)g.LOG_TABLE[g.EXP_TABLE[h]]=h;i.prototype={get:function(a){return this.num[a]},getLength:function(){return this.num.length},multiply:function(a){for(var b=new Array(this.getLength()+a.getLength()-1),c=0;cf;f++)for(var g=c[3*f+0],h=c[3*f+1],i=c[3*f+2],k=0;g>k;k++)e.push(new j(h,i));return e},j.getRsBlockTable=function(a,b){switch(b){case d.L:return j.RS_BLOCK_TABLE[4*(a-1)+0];case d.M:return j.RS_BLOCK_TABLE[4*(a-1)+1];case d.Q:return j.RS_BLOCK_TABLE[4*(a-1)+2];case d.H:return j.RS_BLOCK_TABLE[4*(a-1)+3];default:return void 0}},k.prototype={get:function(a){var b=Math.floor(a/8);return 1==(1&this.buffer[b]>>>7-a%8)},put:function(a,b){for(var c=0;b>c;c++)this.putBit(1==(1&a>>>b-c-1))},getLengthInBits:function(){return this.length},putBit:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0),a&&(this.buffer[b]|=128>>>this.length%8),this.length++}};var l=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],o=function(){var a=function(a,b){this._el=a,this._htOption=b};return a.prototype.draw=function(a){function g(a,b){var c=document.createElementNS("http://www.w3.org/2000/svg",a);for(var d in b)b.hasOwnProperty(d)&&c.setAttribute(d,b[d]);return c}var b=this._htOption,c=this._el,d=a.getModuleCount();Math.floor(b.width/d),Math.floor(b.height/d),this.clear();var h=g("svg",{viewBox:"0 0 "+String(d)+" "+String(d),width:"100%",height:"100%",fill:b.colorLight});h.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),c.appendChild(h),h.appendChild(g("rect",{fill:b.colorDark,width:"1",height:"1",id:"template"}));for(var i=0;d>i;i++)for(var j=0;d>j;j++)if(a.isDark(i,j)){var k=g("use",{x:String(i),y:String(j)});k.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),h.appendChild(k)}},a.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},a}(),p="svg"===document.documentElement.tagName.toLowerCase(),q=p?o:m()?function(){function a(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}function d(a,b){var c=this;if(c._fFail=b,c._fSuccess=a,null===c._bSupportDataURI){var d=document.createElement("img"),e=function(){c._bSupportDataURI=!1,c._fFail&&_fFail.call(c)},f=function(){c._bSupportDataURI=!0,c._fSuccess&&c._fSuccess.call(c)};return d.onabort=e,d.onerror=e,d.onload=f,d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==",void 0}c._bSupportDataURI===!0&&c._fSuccess?c._fSuccess.call(c):c._bSupportDataURI===!1&&c._fFail&&c._fFail.call(c)}if(this._android&&this._android<=2.1){var b=1/window.devicePixelRatio,c=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(a,d,e,f,g,h,i,j){if("nodeName"in a&&/img/i.test(a.nodeName))for(var l=arguments.length-1;l>=1;l--)arguments[l]=arguments[l]*b;else"undefined"==typeof j&&(arguments[1]*=b,arguments[2]*=b,arguments[3]*=b,arguments[4]*=b);c.apply(this,arguments)}}var e=function(a,b){this._bIsPainted=!1,this._android=n(),this._htOption=b,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=b.width,this._elCanvas.height=b.height,a.appendChild(this._elCanvas),this._el=a,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return e.prototype.draw=function(a){var b=this._elImage,c=this._oContext,d=this._htOption,e=a.getModuleCount(),f=d.width/e,g=d.height/e,h=Math.round(f),i=Math.round(g);b.style.display="none",this.clear();for(var j=0;e>j;j++)for(var k=0;e>k;k++){var l=a.isDark(j,k),m=k*f,n=j*g;c.strokeStyle=l?d.colorDark:d.colorLight,c.lineWidth=1,c.fillStyle=l?d.colorDark:d.colorLight,c.fillRect(m,n,f,g),c.strokeRect(Math.floor(m)+.5,Math.floor(n)+.5,h,i),c.strokeRect(Math.ceil(m)-.5,Math.ceil(n)-.5,h,i)}this._bIsPainted=!0},e.prototype.makeImage=function(){this._bIsPainted&&d.call(this,a)},e.prototype.isPainted=function(){return this._bIsPainted},e.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},e.prototype.round=function(a){return a?Math.floor(1e3*a)/1e3:a},e}():function(){var a=function(a,b){this._el=a,this._htOption=b};return a.prototype.draw=function(a){for(var b=this._htOption,c=this._el,d=a.getModuleCount(),e=Math.floor(b.width/d),f=Math.floor(b.height/d),g=[''],h=0;d>h;h++){g.push("");for(var i=0;d>i;i++)g.push('');g.push("")}g.push("
              "),c.innerHTML=g.join("");var j=c.childNodes[0],k=(b.width-j.offsetWidth)/2,l=(b.height-j.offsetHeight)/2;k>0&&l>0&&(j.style.margin=l+"px "+k+"px")},a.prototype.clear=function(){this._el.innerHTML=""},a}();QRCode=function(a,b){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:d.H},"string"==typeof b&&(b={text:b}),b)for(var c in b)this._htOption[c]=b[c];"string"==typeof a&&(a=document.getElementById(a)),this._android=n(),this._el=a,this._oQRCode=null,this._oDrawing=new q(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},QRCode.prototype.makeCode=function(a){this._oQRCode=new b(r(a,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(a),this._oQRCode.make(),this._el.title=a,this._oDrawing.draw(this._oQRCode),this.makeImage()},QRCode.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},QRCode.prototype.clear=function(){this._oDrawing.clear()},QRCode.CorrectLevel=d}(); \ No newline at end of file diff --git a/web-v2-res/static/js/socket.io.js b/web-res/static/js/socket.io.js similarity index 100% rename from web-v2-res/static/js/socket.io.js rename to web-res/static/js/socket.io.js diff --git a/web-res/static/js/swiper-bundle.min.js b/web-res/static/js/swiper-bundle.min.js new file mode 100644 index 0000000..714db1b --- /dev/null +++ b/web-res/static/js/swiper-bundle.min.js @@ -0,0 +1,14 @@ +/** + * Swiper 11.0.3 + * Most modern mobile touch slider and framework with hardware accelerated transitions + * https://swiperjs.com + * + * Copyright 2014-2023 Vladimir Kharlampidi + * + * Released under the MIT License + * + * Released on: October 26, 2023 + */ + +var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={}),Object.keys(a).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}function n(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function l(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function o(){return Date.now()}function d(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let a=1;at.indexOf(e)<0));for(let t=0,a=s.length;tn?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}function h(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function f(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function w(e){const t=r(),s=a(),i=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}function b(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function y(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function E(e,t){const s=[];let a=e.parentElement;for(;a;)t?a.matches(t)&&s.push(a):s.push(a),a=a.parentElement;return s}function x(e,t){t&&e.addEventListener("transitionend",(function s(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",s))}))}function S(e,t,s){const a=r();return s?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}let T,M,C;function P(){return T||(T=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),T}function L(e){return void 0===e&&(e={}),M||(M=function(e){let{userAgent:t}=void 0===e?{}:e;const s=P(),a=r(),i=a.navigator.platform,n=t||a.navigator.userAgent,l={ios:!1,android:!1},o=a.screen.width,d=a.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let p=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),m=!p&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!p&&f&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${d}`)>=0&&(p=n.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),f=!1),c&&!h&&(l.os="android",l.android=!0),(p||m||u)&&(l.os="ios",l.ios=!0),l}(e)),M}function A(){return C||(C=function(){const e=r();let t=!1;function s(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(s()){const s=String(e.navigator.userAgent);if(s.includes("Version/")){const[e,a]=s.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));t=e<16||16===e&&a<2}}return{isSafari:t||s(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),C}var I={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,r=new Array(s),n=0;n=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,a;for(var i=arguments.length,r=new Array(i),n=0;n{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(a,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(a,s)}))})),e}};const z=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(s){let t=s.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(s.shadowRoot?t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{s.shadowRoot&&(t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},$=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},k=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const a="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,r=[s-t];return r.push(...Array.from({length:t}).map(((e,t)=>s+a+t))),void e.slides.forEach(((t,s)=>{r.includes(t.column)&&$(e,s)}))}const r=i+a-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=r+t;a+=1){const t=(a%s+s)%s;(tr)&&$(e,t)}else for(let a=Math.max(i-t,0);a<=Math.min(r+t,s-1);a+=1)a!==i&&(a>r||a=0?x=parseFloat(x.replace("%",""))/100*r:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x,c.forEach((e=>{n?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),s.centeredSlides&&s.cssMode&&(u(a,"--swiper-centered-offset-before",""),u(a,"--swiper-centered-offset-after",""));const P=s.grid&&s.grid.rows>1&&e.grid;let L;P?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const A="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let a=0;a1&&m.push(e.virtualSize-r)}if(o&&s.loop){const t=g[0]+x;if(s.slidesPerGroup>1){const a=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),i=t*s.slidesPerGroup;for(let e=0;e!(s.cssMode&&!s.loop)||t!==c.length-1)).forEach((e=>{e.style[t]=`${x}px`}))}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=e-r;m=m.map((e=>e<=0?-v:e>t?t+w:e))}if(s.centerInsufficientSlides){let e=0;if(g.forEach((t=>{e+=t+(x||0)})),e-=x,e{m[s]=e-t})),h.forEach(((e,s)=>{h[s]=e+t}))}}if(Object.assign(e,{slides:c,snapGrid:m,slidesGrid:h,slidesSizesGrid:g}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){u(a,"--swiper-centered-offset-before",-m[0]+"px"),u(a,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(p!==d&&e.emit("slidesLengthChange"),m.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==E&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!(o||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,a=e.el.classList.contains(t);p<=s.maxBackfaceHiddenSlides?a||e.el.classList.add(t):a&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{s.push(e)}));else for(i=0;it.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;ir?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let a=0;a{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=s.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e=0&&u<=t.size-t.slidesSizesGrid[e];(u>=0&&u1&&m<=t.size||u<=0&&m>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e),a[e].classList.add(s.slideVisibleClass)),h&&a[e].classList.add(s.slideFullyVisibleClass),o.progress=i?-c:c,o.originalProgress=i?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n,progressLoop:l}=t;const o=r,d=n;if(0===a)i=0,r=!0,n=!0;else{i=(e-t.minTranslate())/a;const s=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;r=s||i<=0,n=l||i>=1,s&&(i=0),l&&(i=1)}if(s.loop){const s=t.getSlideIndexByData(0),a=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[s],r=t.slidesGrid[a],n=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);l=o>=i?(o-i)/n:(o+n-r)/n,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:a,activeIndex:i}=e,r=e.virtual&&s.virtual.enabled,n=e.grid&&s.grid&&s.grid.rows>1,l=e=>f(a,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let o,d,c;if(t.forEach((e=>{e.classList.remove(s.slideActiveClass,s.slideNextClass,s.slidePrevClass)})),r)if(s.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${t}"]`)}else o=l(`[data-swiper-slide-index="${i}"]`);else n?(o=t.filter((e=>e.column===i))[0],c=t.filter((e=>e.column===i+1))[0],d=t.filter((e=>e.column===i-1))[0]):o=t[i];o&&(o.classList.add(s.slideActiveClass),n?(c&&c.classList.add(s.slideNextClass),d&&d.classList.add(s.slidePrevClass)):(c=function(e,t){const s=[];for(;e.nextElementSibling;){const a=e.nextElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),c&&c.classList.add(s.slideNextClass),d=function(e,t){const s=[];for(;e.previousElementSibling;){const a=e.previousElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]),d&&d.classList.add(s.slidePrevClass))),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:a,params:i,activeIndex:r,realIndex:n,snapIndex:l}=t;let o,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,a=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e=t[e]&&a=t[e]&&a=t[e]&&(i=e);return s.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),a.indexOf(s)>=0)o=a.indexOf(s);else{const e=Math.min(i.slidesPerGroupSkip,d);o=e+Math.floor((d-e)/i.slidesPerGroup)}if(o>=a.length&&(o=a.length-1),d===r&&!t.params.loop)return void(o!==l&&(t.snapIndex=o,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&i.grid&&i.grid.rows>1;let u;if(t.virtual&&i.virtual.enabled&&i.loop)u=c(d);else if(p){const e=t.slides.filter((e=>e.column===d))[0];let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/i.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:l,snapIndex:o,previousRealIndex:n,realIndex:u,previousIndex:r,activeIndex:d}),t.initialized&&k(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(n!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,a=s.params;let i=e.closest(`.${a.slideClass}, swiper-slide`);!i&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(`.${a.slideClass}, swiper-slide`)&&(i=e)}));let r,n=!1;if(i)for(let e=0;eo?o:a&&en?"next":r=o.length&&(v=o.length-1);const w=-o[v];if(l.normalizeSlideIndex)for(let e=0;e=s&&t=s&&t=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&(u?w>r.translate&&w>r.minTranslate():wr.translate&&w>r.maxTranslate()&&(p||0)!==n)return!1}let b;if(n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(w),b=n>p?"next":n0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=s}))):h[e?"scrollLeft":"scrollTop"]=s,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}))}else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),"string"==typeof e){e=parseInt(e,10)}const i=this,r=i.grid&&i.params.grid&&i.params.grid.rows>1;let n=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)n+=i.virtual.slidesBefore;else{let e;if(r){const t=n*i.params.grid.rows;e=i.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=i.getSlideIndexByData(n);const t=r?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:s}=i.params;let a=i.params.slidesPerView;"auto"===a?a=i.slidesPerViewDynamic():(a=Math.ceil(parseFloat(i.params.slidesPerView,10)),s&&a%2==0&&(a+=1));let l=t-e1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else n=i.getSlideIndexByData(n)}return requestAnimationFrame((()=>{i.slideTo(n,t,s,a)})),i},slideNext:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const a=this,{enabled:i,params:r,animating:n}=a;if(!i)return a;let l=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex{a.slideTo(a.activeIndex+o,e,t,s)})),!0}return r.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const a=this,{params:i,snapGrid:r,slidesGrid:n,rtlTranslate:l,enabled:o,animating:d}=a;if(!o)return a;const c=a.virtual&&i.virtual.enabled;if(i.loop){if(d&&!c&&i.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=p(l?a.translate:-a.translate),m=r.map((e=>p(e)));let h=r[m.indexOf(u)-1];if(void 0===h&&i.cssMode){let e;r.forEach(((t,s)=>{u>=t&&(e=s)})),void 0!==e&&(h=r[e>0?e-1:e])}let f=0;if(void 0!==h&&(f=n.indexOf(h),f<0&&(f=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(f=f-a.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),i.rewind&&a.isBeginning){const i=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(i,e,t,s)}return i.loop&&0===a.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{a.slideTo(f,e,t,s)})),!0):a.slideTo(f,e,t,s)},slideReset:function(e,t,s){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,s)},slideToClosest:function(e,t,s,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===a&&(a=.5);const i=this;let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this,{params:t,slidesEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.clickedIndex;const n=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?re.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=e.getSlideIndex(f(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=e.getSlideIndex(f(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var H={loopCreate:function(e){const t=this,{params:s,slidesEl:a}=t;if(!s.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{f(a,`.${s.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},r=t.grid&&s.grid&&s.grid.rows>1,n=s.slidesPerGroup*(r?s.grid.rows:1),l=t.slides.length%n!=0,o=r&&t.slides.length%s.grid.rows!=0,d=e=>{for(let a=0;a1;d.lengthe.classList.contains(m.slideActiveClass)))[0]):x=r;const S="next"===a||!a,T="prev"===a||!a;let M=0,C=0;const P=b?Math.ceil(d.length/m.grid.rows):d.length,L=(b?d[r].column:r)+(h&&void 0===i?-f/2+.5:0);if(L=0;t-=1)d[t].column===e&&y.push(t)}else y.push(P-t-1)}}else if(L+f>P-w){C=Math.max(L-(P-2*w),v);for(let e=0;e{e.column===t&&E.push(s)})):E.push(t)}}if(o.__preventObserver__=!0,requestAnimationFrame((()=>{o.__preventObserver__=!1})),T&&y.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.prepend(d[e]),d[e].swiperLoopMoveDOM=!1})),S&&E.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.append(d[e]),d[e].swiperLoopMoveDOM=!1})),o.recalcSlides(),"auto"===m.slidesPerView?o.updateSlides():b&&(y.length>0&&T||E.length>0&&S)&&o.slides.forEach(((e,t)=>{o.grid.updateSlide(t,e,o.slides)})),m.watchSlidesProgress&&o.updateSlidesOffset(),s)if(y.length>0&&T){if(void 0===t){const e=o.slidesGrid[x],t=o.slidesGrid[x+M]-e;l?o.setTranslate(o.translate-t):(o.slideTo(x+M,0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else if(i){const e=b?y.length/m.grid.rows:y.length;o.slideTo(o.activeIndex+e,0,!1,!0),o.touchEventsData.currentTranslate=o.translate}}else if(E.length>0&&S)if(void 0===t){const e=o.slidesGrid[x],t=o.slidesGrid[x-C]-e;l?o.setTranslate(o.translate-t):(o.slideTo(x-C,0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else{const e=b?E.length/m.grid.rows:E.length;o.slideTo(o.activeIndex-e,0,!1,!0)}if(o.allowSlidePrev=c,o.allowSlideNext=p,o.controller&&o.controller.control&&!n){const e={slideRealIndex:t,direction:a,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&s})})):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix({...e,slideTo:o.controller.control.params.slidesPerView===m.slidesPerView&&s})}o.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const a=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;a[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),a.forEach((e=>{s.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function N(e,t,s){const a=r(),{params:i}=e,n=i.edgeSwipeDetection,l=i.edgeSwipeThreshold;return!n||!(s<=l||s>=a.innerWidth-l)||"prevent"===n&&(t.preventDefault(),!0)}function Y(e){const t=this,s=a();let i=e;i.originalEvent&&(i=i.originalEvent);const n=t.touchEventsData;if("pointerdown"===i.type){if(null!==n.pointerId&&n.pointerId!==i.pointerId)return;n.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(n.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void N(t,i,i.targetTouches[0].pageX);const{params:l,touches:d,enabled:c}=t;if(!c)return;if(!l.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=i.target;if("wrapper"===l.touchEventsTarget&&!t.wrapperEl.contains(p))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(n.isTouched&&n.isMoved)return;const u=!!l.noSwipingClass&&""!==l.noSwipingClass,m=i.composedPath?i.composedPath():i.path;u&&i.target&&i.target.shadowRoot&&m&&(p=m[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!(!i.target||!i.target.shadowRoot);if(l.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===a()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(h,p):p.closest(h)))return void(t.allowClick=!0);if(l.swipeHandler&&!p.closest(l.swipeHandler))return;d.currentX=i.pageX,d.currentY=i.pageY;const g=d.currentX,v=d.currentY;if(!N(t,i,g))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=g,d.startY=v,n.touchStartTime=o(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1);let w=!0;p.matches(n.focusableElements)&&(w=!1,"SELECT"===p.nodeName&&(n.isTouched=!1)),s.activeElement&&s.activeElement.matches(n.focusableElements)&&s.activeElement!==p&&s.activeElement.blur();const b=w&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!b||p.isContentEditable||i.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function B(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:d}=s;if(!d)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let c,p=e;if(p.originalEvent&&(p=p.originalEvent),"pointermove"===p.type){if(null!==i.touchId)return;if(p.pointerId!==i.pointerId)return}if("touchmove"===p.type){if(c=[...p.changedTouches].filter((e=>e.identifier===i.touchId))[0],!c||c.identifier!==i.touchId)return}else c=p;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",p));const u=c.pageX,m=c.pageY;if(p.preventedByNestedSwiper)return n.startX=u,void(n.startY=m);if(!s.allowTouchMove)return p.target.matches(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m}),i.touchStartTime=o()));if(r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(mn.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(un.startX&&s.translate>=s.minTranslate())return;if(t.activeElement&&p.target===t.activeElement&&p.target.matches(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);i.allowTouchCallbacks&&s.emit("touchMove",p),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=u,n.currentY=m;const h=n.currentX-n.startX,f=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(h**2+f**2)=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",p),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&p.cancelable&&p.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&p.stopPropagation();let g=s.isHorizontal()?h:f,v=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),n.diff=g,g*=r.touchRatio,l&&(g=-g,v=-v);const w=s.touchesDirection;s.swipeDirection=g>0?"prev":"next",s.touchesDirection=v>0?"prev":"next";const b=s.params.loop&&!r.cssMode,y="next"===s.touchesDirection&&s.allowSlideNext||"prev"===s.touchesDirection&&s.allowSlidePrev;if(!i.isMoved){if(b&&y&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});s.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",p)}if((new Date).getTime(),i.isMoved&&i.allowThresholdMove&&w!==s.touchesDirection&&b&&y&&Math.abs(g)>=1)return Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);s.emit("sliderMove",p),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let E=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),g>0?(b&&y&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+g)**x))):g<0&&(b&&y&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]:s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-("auto"===r.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(g)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function R(e){const t=this,s=t.touchEventsData;let a,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(a=[...i.changedTouches].filter((e=>e.identifier===s.touchId))[0],!a||a.identifier!==s.touchId)return}else{if(null!==s.touchId)return;if(i.pointerId!==s.pointerId)return;a=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}s.pointerId=null,s.touchId=null;const{params:r,touches:n,rtlTranslate:d,slidesGrid:c,enabled:p}=t;if(!p)return;if(!r.simulateTouch&&"mouse"===i.pointerType)return;if(s.allowTouchCallbacks&&t.emit("touchEnd",i),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&r.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);r.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=o(),m=u-s.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),m<300&&u-s.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(s.lastClickTime=o(),l((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===n.diff&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=r.followFinger?d?t.translate:-t.translate:-s.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});let f=0,g=t.slidesSizesGrid[0];for(let e=0;e=c[e]&&h=c[e]&&(f=e,g=c[c.length-1]-c[c.length-2])}let v=null,w=null;r.rewind&&(t.isBeginning?w=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const b=(h-c[f])/g,y=fr.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?v:f+y):t.slideTo(f)),"prev"===t.swipeDirection&&(b>1-r.longSwipesRatio?t.slideTo(f+y):null!==w&&b<0&&Math.abs(b)>r.longSwipesRatio?t.slideTo(w):t.slideTo(f))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(f+y):t.slideTo(f):("next"===t.swipeDirection&&t.slideTo(null!==v?v:f+y),"prev"===t.swipeDirection&&t.slideTo(null!==w?w:f))}}function q(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e,n=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=n&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l?e.params.loop&&!n?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function V(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function _(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function F(e){const t=this;z(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function j(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const W=(e,t)=>{const s=a(),{params:i,el:r,wrapperEl:n,device:l}=e,o=!!i.nested,d="on"===t?"addEventListener":"removeEventListener",c=t;s[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[d]("touchstart",e.onTouchStart,{passive:!1}),r[d]("pointerdown",e.onTouchStart,{passive:!1}),s[d]("touchmove",e.onTouchMove,{passive:!1,capture:o}),s[d]("pointermove",e.onTouchMove,{passive:!1,capture:o}),s[d]("touchend",e.onTouchEnd,{passive:!0}),s[d]("pointerup",e.onTouchEnd,{passive:!0}),s[d]("pointercancel",e.onTouchEnd,{passive:!0}),s[d]("touchcancel",e.onTouchEnd,{passive:!0}),s[d]("pointerout",e.onTouchEnd,{passive:!0}),s[d]("pointerleave",e.onTouchEnd,{passive:!0}),s[d]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[d]("click",e.onClick,!0),i.cssMode&&n[d]("scroll",e.onScroll),i.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",q,!0):e[c]("observerUpdate",q,!0),r[d]("load",e.onLoad,{capture:!0})};const U=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var K={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Z(e,t){return function(s){void 0===s&&(s={});const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(!0===e[a]&&(e[a]={enabled:!0}),"navigation"===a&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),a in e&&"enabled"in i?("object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),p(t,s)):p(t,s)):p(t,s)}}const Q={eventsEmitter:I,update:O,translate:D,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`,s.wrapperEl.style.transitionDelay=0===e?"0ms":""),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),G({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),G({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:X,loop:H,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=Y.bind(e),e.onTouchMove=B.bind(e),e.onTouchEnd=R.bind(e),e.onDocumentTouchStart=j.bind(e),t.cssMode&&(e.onScroll=_.bind(e)),e.onClick=V.bind(e),e.onLoad=F.bind(e),W(e,"on")},detachEvents:function(){W(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:s,params:a,el:i}=e,r=a.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const n=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!n||e.currentBreakpoint===n)return;const l=(n in r?r[n]:void 0)||e.originalParams,o=U(e,a),d=U(e,l),c=a.enabled;o&&!d?(i.classList.remove(`${a.containerModifierClass}grid`,`${a.containerModifierClass}grid-column`),e.emitContainerClasses()):!o&&d&&(i.classList.add(`${a.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===a.grid.fill)&&i.classList.add(`${a.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===l[t])return;const s=a[t]&&a[t].enabled,i=l[t]&&l[t].enabled;s&&!i&&e[t].disable(),!s&&i&&e[t].enable()}));const u=l.direction&&l.direction!==a.direction,m=a.loop&&(l.slidesPerView!==a.slidesPerView||u),h=a.loop;u&&s&&e.changeDirection(),p(e.params,l);const f=e.params.enabled,g=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),c&&!f?e.disable():!c&&f&&e.enable(),e.currentBreakpoint=n,e.emit("_beforeBreakpoint",l),s&&(m?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!h&&g?(e.loopCreate(t),e.updateSlides()):h&&!g&&e.loopDestroy()),e.emit("breakpoint",l)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;es}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,el:i,device:r}=e,n=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...n),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},J={};class ee{constructor(){let e,t;for(var s=arguments.length,i=new Array(s),r=0;r1){const e=[];return n.querySelectorAll(t.el).forEach((s=>{const a=p({},t,{el:s});e.push(new ee(a))})),e}const l=this;l.__swiper__=!0,l.support=P(),l.device=L({userAgent:t.userAgent}),l.browser=A(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const o={};l.modules.forEach((e=>{e({params:t,swiper:l,extendParams:Z(t,o),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));const d=p({},K,o);return l.params=p({},d,J,t),l.originalParams=p({},l.params),l.passedParams=p({},t),l.params&&l.params.on&&Object.keys(l.params.on).forEach((e=>{l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:s}=this,a=y(f(t,`.${s.slideClass}, swiper-slide`)[0]);return y(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=f(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let e,t=a[l]?a[l].swiperSlideSize:0;for(let s=l+1;sn&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e=0;e-=1){i[l]-i[e]{t.complete&&z(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)a(),s.autoHeight&&e.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const t=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||a()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.el.classList.remove(`${s.params.containerModifierClass}${a}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&"SWIPER-CONTAINER"===s.parentNode.host.nodeName&&(t.isElement=!0);const a=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(s&&s.shadowRoot&&s.shadowRoot.querySelector){return s.shadowRoot.querySelector(a())}return f(s,a())[0]})();return!i&&t.params.createElements&&(i=v("div",t.params.wrapperClass),s.append(i),f(s,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:s,wrapperEl:i,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:i,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction")),wrongRTL:"-webkit-box"===b(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach((e=>{e.complete?z(t,e):e.addEventListener("load",(e=>{z(t,e.target)}))})),k(t),t.initialized=!0,k(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:a,el:i,wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i.removeAttribute("style"),r.removeAttribute("style"),n&&n.length&&n.forEach((e=>{e.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.el.swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){p(J,e)}static get extendedDefaults(){return J}static get defaults(){return K}static installModule(e){ee.prototype.__modules__||(ee.prototype.__modules__=[]);const t=ee.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>ee.installModule(e))),ee):(ee.installModule(e),ee)}}function te(e,t,s,a){return e.params.createElements&&Object.keys(a).forEach((i=>{if(!s[i]&&!0===s.auto){let r=f(e.el,`.${a[i]}`)[0];r||(r=v("div",a[i]),r.className=a[i],e.el.append(r)),s[i]=r,t[i]=r}})),s}function se(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function ae(e){const t=this,{params:s,slidesEl:a}=t;s.loop&&t.loopDestroy();const i=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,a.append(t.children[0]),t.innerHTML=""}else a.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,i.prepend(t.children[0]),t.innerHTML=""}else i.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides[t];e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;ee?n+t.length:n}else r.append(t);for(let e=0;e{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)})),a("setTranslate",(()=>{s.params.effect===t&&i()})),a("setTransition",((e,a)=>{s.params.effect===t&&r(a)})),a("transitionEnd",(()=>{if(s.params.effect===t&&o){if(!d||!d().slideShadows)return;s.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),o()}})),a("virtualUpdate",(()=>{s.params.effect===t&&(s.slides.length||(c=!0),requestAnimationFrame((()=>{c&&s.slides&&s.slides.length&&(i(),c=!1)})))}))}function de(e,t){const s=h(t);return s!==t&&(s.style.backfaceVisibility="hidden",s.style["-webkit-backface-visibility"]="hidden"),s}function ce(e){let{swiper:t,duration:s,transformElements:a,allSlides:i}=e;const{activeIndex:r}=t;if(t.params.virtualTranslate&&0!==s){let e,s=!1;e=i?a:a.filter((e=>{const s=e.classList.contains("swiper-slide-transform")?(e=>{if(!e.parentElement)return t.slides.filter((t=>t.shadowRoot&&t.shadowRoot===e.parentNode))[0];return e.parentElement})(e):e;return t.getSlideIndex(s)===r})),e.forEach((e=>{x(e,(()=>{if(s)return;if(!t||t.destroyed)return;s=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function pe(e,t,s){const a=`swiper-slide-shadow${s?`-${s}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=h(t);let r=i.querySelector(`.${a.split(" ").join(".")}`);return r||(r=v("div",a.split(" ")),i.append(r)),r}Object.keys(Q).forEach((e=>{Object.keys(Q[e]).forEach((t=>{ee.prototype[t]=Q[e][t]}))})),ee.use([function(e){let{swiper:t,on:s,emit:a}=e;const i=r();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(a("beforeResize"),a("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&a("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=i.requestAnimationFrame((()=>{const{width:s,height:a}=t;let i=s,r=a;e.forEach((e=>{let{contentBoxSize:s,contentRect:a,target:n}=e;n&&n!==t.el||(i=a?a.width:(s[0]||s).inlineSize,r=a?a.height:(s[0]||s).blockSize)})),i===s&&r===a||o()}))})),n.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&i.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=[],l=r(),o=function(e,s){void 0===s&&(s={});const a=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const s=function(){i("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(s):l.setTimeout(s,0)}));a.observe(e,{attributes:void 0===s.attributes||s.attributes,childList:void 0===s.childList||s.childList,characterData:void 0===s.characterData||s.characterData}),n.push(a)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=E(t.hostEl);for(let t=0;t{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const ue=[function(e){let t,{swiper:s,extendParams:i,on:r,emit:n}=e;i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const l=a();s.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=l.createElement("div");function d(e,t){const a=s.params.virtual;if(a.cache&&s.virtual.cache[t])return s.virtual.cache[t];let i;return a.renderSlide?(i=a.renderSlide.call(s,e,t),"string"==typeof i&&(o.innerHTML=i,i=o.children[0])):i=s.isElement?v("swiper-slide"):v("div",s.params.slideClass),i.setAttribute("data-swiper-slide-index",t),a.renderSlide||(i.innerHTML=e),a.cache&&(s.virtual.cache[t]=i),i}function c(e){const{slidesPerView:t,slidesPerGroup:a,centeredSlides:i,loop:r}=s.params,{addSlidesBefore:l,addSlidesAfter:o}=s.params.virtual,{from:c,to:p,slides:u,slidesGrid:m,offset:h}=s.virtual;s.params.cssMode||s.updateActiveIndex();const g=s.activeIndex||0;let v,w,b;v=s.rtlTranslate?"right":s.isHorizontal()?"left":"top",i?(w=Math.floor(t/2)+a+o,b=Math.floor(t/2)+a+l):(w=t+(a-1)+o,b=(r?t:a)+l);let y=g-b,E=g+w;r||(y=Math.max(y,0),E=Math.min(E,u.length-1));let x=(s.slidesGrid[y]||0)-(s.slidesGrid[0]||0);function S(){s.updateSlides(),s.updateProgress(),s.updateSlidesClasses(),n("virtualUpdate")}if(r&&g>=b?(y-=b,i||(x+=s.slidesGrid[0])):r&&g{e.style[v]=x-Math.abs(s.cssOverflowAdjustment())+"px"})),s.updateProgress(),void n("virtualUpdate");if(s.params.virtual.renderExternal)return s.params.virtual.renderExternal.call(s,{offset:x,from:y,to:E,slides:function(){const e=[];for(let t=y;t<=E;t+=1)e.push(u[t]);return e}()}),void(s.params.virtual.renderExternalUpdate?S():n("virtualUpdate"));const T=[],M=[],C=e=>{let t=e;return e<0?t=u.length+e:t>=u.length&&(t-=u.length),t};if(e)s.slides.filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=c;e<=p;e+=1)if(eE){const t=C(e);s.slides.filter((e=>e.matches(`.${s.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`))).forEach((e=>{e.remove()}))}const P=r?-u.length:0,L=r?2*u.length:u.length;for(let t=P;t=y&&t<=E){const s=C(t);void 0===p||e?M.push(s):(t>p&&M.push(s),t{s.slidesEl.append(d(u[e],e))})),r)for(let e=T.length-1;e>=0;e-=1){const t=T[e];s.slidesEl.prepend(d(u[t],t))}else T.sort(((e,t)=>t-e)),T.forEach((e=>{s.slidesEl.prepend(d(u[e],e))}));f(s.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[v]=x-Math.abs(s.cssOverflowAdjustment())+"px"})),S()}r("beforeInit",(()=>{if(!s.params.virtual.enabled)return;let e;if(void 0===s.passedParams.virtual.slides){const t=[...s.slidesEl.children].filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`)));t&&t.length&&(s.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),s.virtual.cache[t]=e,e.remove()})))}e||(s.virtual.slides=s.params.virtual.slides),s.classNames.push(`${s.params.containerModifierClass}virtual`),s.params.watchSlidesProgress=!0,s.originalParams.watchSlidesProgress=!0,c()})),r("setTranslate",(()=>{s.params.virtual.enabled&&(s.params.cssMode&&!s._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{c()}),100)):c())})),r("init update resize",(()=>{s.params.virtual.enabled&&s.params.cssMode&&u(s.wrapperEl,"--swiper-virtual-size",`${s.virtualSize}px`)})),Object.assign(s.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t{const a=e[s],r=a.getAttribute("data-swiper-slide-index");r&&a.setAttribute("data-swiper-slide-index",parseInt(r,10)+i),t[parseInt(s,10)+i]=a})),s.virtual.cache=t}c(!0),s.slideTo(a,0)},removeSlide:function(e){if(null==e)return;let t=s.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)s.params.virtual.cache&&(delete s.virtual.cache[e[a]],Object.keys(s.virtual.cache).forEach((t=>{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e[a],1),e[a]{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e,1),e0&&0===E(t.el,`.${t.params.slideActiveClass}`).length)return;const a=t.el,i=a.clientWidth,r=a.clientHeight,n=o.innerWidth,l=o.innerHeight,d=w(a);s&&(d.left-=a.scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let t=0;t=0&&s[0]<=n&&s[1]>=0&&s[1]<=l){if(0===s[0]&&0===s[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&t.slideNext(),((d||p)&&!s||(c||u)&&s)&&t.slidePrev()):((d||c||m||h)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||h)&&t.slideNext(),(d||m)&&t.slidePrev()),n("keyPress",i)}}function c(){t.keyboard.enabled||(l.addEventListener("keydown",d),t.keyboard.enabled=!0)}function p(){t.keyboard.enabled&&(l.removeEventListener("keydown",d),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&c()})),i("destroy",(()=>{t.keyboard.enabled&&p()})),Object.assign(t.keyboard,{enable:c,disable:p})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();let d;s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let c,p=o();const u=[];function m(){t.enabled&&(t.mouseEntered=!0)}function h(){t.enabled&&(t.mouseEntered=!1)}function f(e){return!(t.params.mousewheel.thresholdDelta&&e.delta=6&&o()-p<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),p=(new n.Date).getTime(),!1)))}function g(e){let s=e,a=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const r=t.params.mousewheel;t.params.cssMode&&s.preventDefault();let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget));const p=n&&n.contains(s.target);if(!t.mouseEntered&&!p&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let m=0;const h=t.rtlTranslate?-1:1,g=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;m=-g.pixelX*h}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;m=-g.pixelY}else m=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*h:-g.pixelY;if(0===m)return!0;r.invert&&(m=-m);let v=t.getTranslate()+m*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),a=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),a&&t.params.nested&&s.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:o(),delta:Math.abs(m),direction:Math.sign(m)},a=c&&e.time=t.minTranslate()&&(n=t.minTranslate()),n<=t.maxTranslate()&&(n=t.maxTranslate()),t.setTransition(0),t.setTranslate(n),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!o&&t.isBeginning||!p&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(d),d=void 0,u.length>=15&&u.shift();const s=u.length?u[u.length-1]:void 0,a=u[0];if(u.push(e),s&&(e.delta>s.delta||e.direction!==s.direction))u.splice(0);else if(u.length>=15&&e.time-a.time<500&&a.delta-e.delta>=1&&e.delta<=6){const s=m>0?.8:.2;c=e,u.splice(0),d=l((()=>{t.slideToClosest(t.params.speed,!0,void 0,s)}),0)}d||(d=l((()=>{c=e,u.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(a||i("scroll",s),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),r.releaseOnEdges&&(n===t.minTranslate()||n===t.maxTranslate()))return!0}}else{const s={time:o(),delta:Math.abs(m),direction:Math.sign(m),raw:e};u.length>=2&&u.shift();const a=u.length?u[u.length-1]:void 0;if(u.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&f(s):f(s),function(e){const s=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&s.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function v(e){let s=t.el;"container"!==t.params.mousewheel.eventsTarget&&(s=document.querySelector(t.params.mousewheel.eventsTarget)),s[e]("mouseenter",m),s[e]("mouseleave",h),s[e]("wheel",g)}function w(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}a("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&b(),t.params.mousewheel.enabled&&w()})),a("destroy",(()=>{t.params.cssMode&&w(),t.mousewheel.enabled&&b()})),Object.assign(t.mousewheel,{enable:w,disable:b})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};const r=e=>(Array.isArray(e)?e:[e]).filter((e=>!!e));function n(e){let s;return e&&"string"==typeof e&&t.isElement&&(s=t.el.querySelector(e),s)?s:(e&&("string"==typeof e&&(s=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&s.length>1&&1===t.el.querySelectorAll(e).length&&(s=t.el.querySelector(e))),e&&!s?e:s)}function l(e,s){const a=t.params.navigation;(e=r(e)).forEach((e=>{e&&(e.classList[s?"add":"remove"](...a.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=s),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](a.lockClass))}))}function o(){const{nextEl:e,prevEl:s}=t.navigation;if(t.params.loop)return l(s,!1),void l(e,!1);l(s,t.isBeginning&&!t.params.rewind),l(e,t.isEnd&&!t.params.rewind)}function d(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function p(){const e=t.params.navigation;if(t.params.navigation=te(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let s=n(e.nextEl),a=n(e.prevEl);Object.assign(t.navigation,{nextEl:s,prevEl:a}),s=r(s),a=r(a);const i=(s,a)=>{s&&s.addEventListener("click","next"===a?c:d),!t.enabled&&s&&s.classList.add(...e.lockClass.split(" "))};s.forEach((e=>i(e,"next"))),a.forEach((e=>i(e,"prev")))}function u(){let{nextEl:e,prevEl:s}=t.navigation;e=r(e),s=r(s);const a=(e,s)=>{e.removeEventListener("click","next"===s?c:d),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>a(e,"next"))),s.forEach((e=>a(e,"prev")))}a("init",(()=>{!1===t.params.navigation.enabled?m():(p(),o())})),a("toEdge fromEdge lock unlock",(()=>{o()})),a("destroy",(()=>{u()})),a("enable disable",(()=>{let{nextEl:e,prevEl:s}=t.navigation;e=r(e),s=r(s),t.enabled?o():[...e,...s].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),a("click",((e,s)=>{let{nextEl:a,prevEl:n}=t.navigation;a=r(a),n=r(n);const l=s.target;if(t.params.navigation.hideOnClick&&!n.includes(l)&&!a.includes(l)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===l||t.pagination.el.contains(l)))return;let e;a.length?e=a[0].classList.contains(t.params.navigation.hiddenClass):n.length&&(e=n[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...a,...n].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const m=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),p(),o()},disable:m,update:o,init:p,destroy:u})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const r="swiper-pagination";let n;s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let l=0;const o=e=>(Array.isArray(e)?e:[e]).filter((e=>!!e));function d(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,s){const{bulletActiveClass:a}=t.params.pagination;e&&(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${a}-${s}`),(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&e.classList.add(`${a}-${s}-${s}`))}function p(e){const s=e.target.closest(se(t.params.pagination.bulletClass));if(!s)return;e.preventDefault();const a=y(s)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===a)return;t.slideToLoop(a)}else t.slideTo(a)}function u(){const e=t.rtl,s=t.params.pagination;if(d())return;let a,r,p=t.pagination.el;p=o(p);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,m=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,a=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(a=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,a=t.activeIndex||0),"bullets"===s.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let o,d,u;if(s.dynamicBullets&&(n=S(i[0],t.isHorizontal()?"width":"height",!0),p.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=n*(s.dynamicMainBullets+4)+"px"})),s.dynamicMainBullets>1&&void 0!==r&&(l+=a-(r||0),l>s.dynamicMainBullets-1?l=s.dynamicMainBullets-1:l<0&&(l=0)),o=Math.max(a-l,0),d=o+(Math.min(i.length,s.dynamicMainBullets)-1),u=(d+o)/2),i.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),p.length>1)i.forEach((e=>{const i=y(e);i===a?e.classList.add(...s.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),s.dynamicBullets&&(i>=o&&i<=d&&e.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),i===o&&c(e,"prev"),i===d&&c(e,"next"))}));else{const e=i[a];if(e&&e.classList.add(...s.bulletActiveClass.split(" ")),t.isElement&&i.forEach(((e,t)=>{e.setAttribute("part",t===a?"bullet-active":"bullet")})),s.dynamicBullets){const e=i[o],t=i[d];for(let e=o;e<=d;e+=1)i[e]&&i[e].classList.add(...`${s.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(s.dynamicBullets){const a=Math.min(i.length,s.dynamicMainBullets+4),r=(n*a-n)/2-u*n,l=e?"right":"left";i.forEach((e=>{e.style[t.isHorizontal()?l:"top"]=`${r}px`}))}}p.forEach(((e,r)=>{if("fraction"===s.type&&(e.querySelectorAll(se(s.currentClass)).forEach((e=>{e.textContent=s.formatFractionCurrent(a+1)})),e.querySelectorAll(se(s.totalClass)).forEach((e=>{e.textContent=s.formatFractionTotal(m)}))),"progressbar"===s.type){let i;i=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(a+1)/m;let n=1,l=1;"horizontal"===i?n=r:l=r,e.querySelectorAll(se(s.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${l})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===s.type&&s.renderCustom?(e.innerHTML=s.renderCustom(t,a+1,m),0===r&&i("paginationRender",e)):(0===r&&i("paginationRender",e),i("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass)}))}function m(){const e=t.params.pagination;if(d())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let a=t.pagination.el;a=o(a);let r="";if("bullets"===e.type){let a=t.params.loop?Math.ceil(s/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&a>s&&(a=s);for(let s=0;s`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):` / `),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):``),t.pagination.bullets=[],a.forEach((s=>{"custom"!==e.type&&(s.innerHTML=r||""),"bullets"===e.type&&t.pagination.bullets.push(...s.querySelectorAll(se(e.bulletClass)))})),"custom"!==e.type&&i("paginationRender",a[0])}function h(){t.params.pagination=te(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let s;"string"==typeof e.el&&t.isElement&&(s=t.el.querySelector(e.el)),s||"string"!=typeof e.el||(s=[...document.querySelectorAll(e.el)]),s||(s=e.el),s&&0!==s.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(s)&&s.length>1&&(s=[...t.el.querySelectorAll(e.el)],s.length>1&&(s=s.filter((e=>E(e,".swiper")[0]===t.el))[0])),Array.isArray(s)&&1===s.length&&(s=s[0]),Object.assign(t.pagination,{el:s}),s=o(s),s.forEach((s=>{"bullets"===e.type&&e.clickable&&s.classList.add(...(e.clickableClass||"").split(" ")),s.classList.add(e.modifierClass+e.type),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(s.classList.add(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&s.classList.add(e.progressbarOppositeClass),e.clickable&&s.addEventListener("click",p),t.enabled||s.classList.add(e.lockClass)})))}function f(){const e=t.params.pagination;if(d())return;let s=t.pagination.el;s&&(s=o(s),s.forEach((s=>{s.classList.remove(e.hiddenClass),s.classList.remove(e.modifierClass+e.type),s.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(s.classList.remove(...(e.clickableClass||"").split(" ")),s.removeEventListener("click",p))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}a("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:s}=t.pagination;s=o(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),a("init",(()=>{!1===t.params.pagination.enabled?g():(h(),m(),u())})),a("activeIndexChange",(()=>{void 0===t.snapIndex&&u()})),a("snapIndexChange",(()=>{u()})),a("snapGridLengthChange",(()=>{m(),u()})),a("destroy",(()=>{f()})),a("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=o(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),a("lock unlock",(()=>{u()})),a("click",((e,s)=>{const a=s.target,r=o(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!a.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&a===t.navigation.nextEl||t.navigation.prevEl&&a===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),r.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=o(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=o(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),h(),m(),u()},disable:g,render:m,update:u,init:h,destroy:f})},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const o=a();let d,c,p,u,m=!1,h=null,f=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:s}=t,{dragEl:a,el:i}=e,r=t.params.scrollbar,n=t.params.loop?t.progressLoop:t.progress;let l=c,o=(p-c)*n;s?(o=-o,o>0?(l=c-o,o=0):-o+c>p&&(l=p+o)):o<0?(l=c+o,o=0):o+c>p&&(l=p-o),t.isHorizontal()?(a.style.transform=`translate3d(${o}px, 0, 0)`,a.style.width=`${l}px`):(a.style.transform=`translate3d(0px, ${o}px, 0)`,a.style.height=`${l}px`),r.hide&&(clearTimeout(h),i.style.opacity=1,h=setTimeout((()=>{i.style.opacity=0,i.style.transitionDuration="400ms"}),1e3))}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:s,el:a}=e;s.style.width="",s.style.height="",p=t.isHorizontal()?a.offsetWidth:a.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),c="auto"===t.params.scrollbar.dragSize?p*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?s.style.width=`${c}px`:s.style.height=`${c}px`,a.style.display=u>=1?"none":"",t.params.scrollbar.hide&&(a.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function y(e){return t.isHorizontal()?e.clientX:e.clientY}function E(e){const{scrollbar:s,rtlTranslate:a}=t,{el:i}=s;let r;r=(y(e)-w(i)[t.isHorizontal()?"left":"top"]-(null!==d?d:c/2))/(p-c),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(n),t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n,dragEl:l}=a;m=!0,d=e.target===l?y(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.style.transitionDuration="100ms",l.style.transitionDuration="100ms",E(e),clearTimeout(f),n.style.transitionDuration="0ms",s.hide&&(n.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function S(e){const{scrollbar:s,wrapperEl:a}=t,{el:i,dragEl:n}=s;m&&(e.preventDefault?e.preventDefault():e.returnValue=!1,E(e),a.style.transitionDuration="0ms",i.style.transitionDuration="0ms",n.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function T(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n}=a;m&&(m=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",i.style.transitionDuration=""),s.hide&&(clearTimeout(f),f=l((()=>{n.style.opacity=0,n.style.transitionDuration="400ms"}),1e3)),r("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())}function M(e){const{scrollbar:s,params:a}=t,i=s.el;if(!i)return;const r=i,n=!!a.passiveListeners&&{passive:!1,capture:!1},l=!!a.passiveListeners&&{passive:!0,capture:!1};if(!r)return;const d="on"===e?"addEventListener":"removeEventListener";r[d]("pointerdown",x,n),o[d]("pointermove",S,n),o[d]("pointerup",T,l)}function C(){const{scrollbar:e,el:s}=t;t.params.scrollbar=te(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const a=t.params.scrollbar;if(!a.el)return;let i,r;if("string"==typeof a.el&&t.isElement&&(i=t.el.querySelector(a.el)),i||"string"!=typeof a.el)i||(i=a.el);else if(i=o.querySelectorAll(a.el),!i.length)return;t.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.querySelectorAll(a.el).length&&(i=s.querySelector(a.el)),i.length>0&&(i=i[0]),i.classList.add(t.isHorizontal()?a.horizontalClass:a.verticalClass),i&&(r=i.querySelector(se(t.params.scrollbar.dragClass)),r||(r=v("div",t.params.scrollbar.dragClass),i.append(r))),Object.assign(e,{el:i,dragEl:r}),a.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&M("on"),i&&i.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))}function P(){const e=t.params.scrollbar,s=t.scrollbar.el;s&&s.classList.remove(...n(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&M("off")}s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},i("init",(()=>{!1===t.params.scrollbar.enabled?L():(C(),b(),g())})),i("update resize observerUpdate lock unlock",(()=>{b()})),i("setTranslate",(()=>{g()})),i("setTransition",((e,s)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(s)})),i("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))})),i("destroy",(()=>{P()}));const L=()=>{t.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),P()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),C(),b(),g()},disable:L,updateSize:b,setTranslate:g,init:C,destroy:P})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,s)=>{const{rtl:a}=t,i=a?-1:1,r=e.getAttribute("data-swiper-parallax")||"0";let n=e.getAttribute("data-swiper-parallax-x"),l=e.getAttribute("data-swiper-parallax-y");const o=e.getAttribute("data-swiper-parallax-scale"),d=e.getAttribute("data-swiper-parallax-opacity"),c=e.getAttribute("data-swiper-parallax-rotate");if(n||l?(n=n||"0",l=l||"0"):t.isHorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexOf("%")>=0?parseInt(n,10)*s*i+"%":n*s*i+"px",l=l.indexOf("%")>=0?parseInt(l,10)*s+"%":l*s+"px",null!=d){const t=d-(d-1)*(1-Math.abs(s));e.style.opacity=t}let p=`translate3d(${n}, ${l}, 0px)`;if(null!=o){p+=` scale(${o-(o-1)*(1-Math.abs(s))})`}if(c&&null!=c){p+=` rotate(${c*s*-1}deg)`}e.style.transform=p},n=()=>{const{el:e,slides:s,progress:a,snapGrid:n,isElement:l}=t,o=f(e,i);t.isElement&&o.push(...f(t.hostEl,i)),o.forEach((e=>{r(e,a)})),s.forEach(((e,s)=>{let l=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(l+=Math.ceil(s/2)-a*(n.length-1)),l=Math.min(Math.max(l,-1),1),e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach((e=>{r(e,l)}))}))};a("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),a("init",(()=>{t.params.parallax.enabled&&n()})),a("setTranslate",(()=>{t.params.parallax.enabled&&n()})),a("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:s,hostEl:a}=t,r=[...s.querySelectorAll(i)];t.isElement&&r.push(...a.querySelectorAll(i)),r.forEach((t=>{let s=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.style.transitionDuration=`${s}ms`}))}(s)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();s({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let l,o,c=1,p=!1;const u=[],m={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},h={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v=1;function b(){if(u.length<2)return 1;const e=u[0].pageX,t=u[0].pageY,s=u[1].pageX,a=u[1].pageY;return Math.sqrt((s-e)**2+(a-t)**2)}function y(e){const s=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(s)||t.slides.filter((t=>t.contains(e.target))).length>0}function x(e){if("mouse"===e.pointerType&&u.splice(0,u.length),!y(e))return;const s=t.params.zoom;if(l=!1,o=!1,u.push(e),!(u.length<2)){if(l=!0,m.scaleStart=b(),!m.slideEl){m.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),m.slideEl||(m.slideEl=t.slides[t.activeIndex]);let a=m.slideEl.querySelector(`.${s.containerClass}`);if(a&&(a=a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=a,m.imageWrapEl=a?E(m.imageEl,`.${s.containerClass}`)[0]:void 0,!m.imageWrapEl)return void(m.imageEl=void 0);m.maxRatio=m.imageWrapEl.getAttribute("data-swiper-zoom")||s.maxRatio}if(m.imageEl){const[e,t]=function(){if(u.length<2)return{x:null,y:null};const e=m.imageEl.getBoundingClientRect();return[(u[0].pageX+(u[1].pageX-u[0].pageX)/2-e.x-n.scrollX)/c,(u[0].pageY+(u[1].pageY-u[0].pageY)/2-e.y-n.scrollY)/c]}();m.originX=e,m.originY=t,m.imageEl.style.transitionDuration="0ms"}p=!0}}function S(e){if(!y(e))return;const s=t.params.zoom,a=t.zoom,i=u.findIndex((t=>t.pointerId===e.pointerId));i>=0&&(u[i]=e),u.length<2||(o=!0,m.scaleMove=b(),m.imageEl&&(a.scale=m.scaleMove/m.scaleStart*c,a.scale>m.maxRatio&&(a.scale=m.maxRatio-1+(a.scale-m.maxRatio+1)**.5),a.scalet.pointerId===e.pointerId));i>=0&&u.splice(i,1),l&&o&&(l=!1,o=!1,m.imageEl&&(a.scale=Math.max(Math.min(a.scale,m.maxRatio),s.minRatio),m.imageEl.style.transitionDuration=`${t.params.speed}ms`,m.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`,c=a.scale,p=!1,a.scale>1&&m.slideEl?m.slideEl.classList.add(`${s.zoomedSlideClass}`):a.scale<=1&&m.slideEl&&m.slideEl.classList.remove(`${s.zoomedSlideClass}`),1===a.scale&&(m.originX=0,m.originY=0,m.slideEl=void 0)))}function M(e){if(!y(e)||!function(e){const s=`.${t.params.zoom.containerClass}`;return!!e.target.matches(s)||[...t.hostEl.querySelectorAll(s)].filter((t=>t.contains(e.target))).length>0}(e))return;const s=t.zoom;if(!m.imageEl)return;if(!h.isTouched||!m.slideEl)return;h.isMoved||(h.width=m.imageEl.offsetWidth,h.height=m.imageEl.offsetHeight,h.startX=d(m.imageWrapEl,"x")||0,h.startY=d(m.imageWrapEl,"y")||0,m.slideWidth=m.slideEl.offsetWidth,m.slideHeight=m.slideEl.offsetHeight,m.imageWrapEl.style.transitionDuration="0ms");const a=h.width*s.scale,i=h.height*s.scale;if(a0?u[0].pageX:e.pageX,h.touchesCurrent.y=u.length>0?u[0].pageY:e.pageY;if(Math.max(Math.abs(h.touchesCurrent.x-h.touchesStart.x),Math.abs(h.touchesCurrent.y-h.touchesStart.y))>5&&(t.allowClick=!1),!h.isMoved&&!p){if(t.isHorizontal()&&(Math.floor(h.minX)===Math.floor(h.startX)&&h.touchesCurrent.xh.touchesStart.x))return void(h.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(h.minY)===Math.floor(h.startY)&&h.touchesCurrent.yh.touchesStart.y))return void(h.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),h.isMoved=!0;const r=(s.scale-c)/(m.maxRatio-t.params.zoom.minRatio),{originX:n,originY:l}=m;h.currentX=h.touchesCurrent.x-h.touchesStart.x+h.startX+r*(h.width-2*n),h.currentY=h.touchesCurrent.y-h.touchesStart.y+h.startY+r*(h.height-2*l),h.currentXh.maxX&&(h.currentX=h.maxX-1+(h.currentX-h.maxX+1)**.8),h.currentYh.maxY&&(h.currentY=h.maxY-1+(h.currentY-h.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=h.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=h.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(h.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(h.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(h.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(h.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=h.touchesCurrent.x,g.prevPositionY=h.touchesCurrent.y,g.prevTime=Date.now(),m.imageWrapEl.style.transform=`translate3d(${h.currentX}px, ${h.currentY}px,0)`}function C(){const e=t.zoom;m.slideEl&&t.activeIndex!==t.slides.indexOf(m.slideEl)&&(m.imageEl&&(m.imageEl.style.transform="translate3d(0,0,0) scale(1)"),m.imageWrapEl&&(m.imageWrapEl.style.transform="translate3d(0,0,0)"),m.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,c=1,m.slideEl=void 0,m.imageEl=void 0,m.imageWrapEl=void 0,m.originX=0,m.originY=0)}function P(e){const s=t.zoom,a=t.params.zoom;if(!m.slideEl){e&&e.target&&(m.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),m.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:m.slideEl=t.slides[t.activeIndex]);let s=m.slideEl.querySelector(`.${a.containerClass}`);s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=s,m.imageWrapEl=s?E(m.imageEl,`.${a.containerClass}`)[0]:void 0}if(!m.imageEl||!m.imageWrapEl)return;let i,r,l,o,d,p,u,g,v,b,y,x,S,T,M,C,P,L;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),m.slideEl.classList.add(`${a.zoomedSlideClass}`),void 0===h.touchesStart.x&&e?(i=e.pageX,r=e.pageY):(i=h.touchesStart.x,r=h.touchesStart.y);const A="number"==typeof e?e:null;1===c&&A&&(i=void 0,r=void 0),s.scale=A||m.imageWrapEl.getAttribute("data-swiper-zoom")||a.maxRatio,c=A||m.imageWrapEl.getAttribute("data-swiper-zoom")||a.maxRatio,!e||1===c&&A?(u=0,g=0):(P=m.slideEl.offsetWidth,L=m.slideEl.offsetHeight,l=w(m.slideEl).left+n.scrollX,o=w(m.slideEl).top+n.scrollY,d=l+P/2-i,p=o+L/2-r,v=m.imageEl.offsetWidth,b=m.imageEl.offsetHeight,y=v*s.scale,x=b*s.scale,S=Math.min(P/2-y/2,0),T=Math.min(L/2-x/2,0),M=-S,C=-T,u=d*s.scale,g=p*s.scale,uM&&(u=M),gC&&(g=C)),A&&1===s.scale&&(m.originX=0,m.originY=0),m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform=`translate3d(${u}px, ${g}px,0)`,m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`}function L(){const e=t.zoom,s=t.params.zoom;if(!m.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:m.slideEl=t.slides[t.activeIndex];let e=m.slideEl.querySelector(`.${s.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=e,m.imageWrapEl=e?E(m.imageEl,`.${s.containerClass}`)[0]:void 0}m.imageEl&&m.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,c=1,m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform="translate3d(0,0,0)",m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform="translate3d(0,0,0) scale(1)",m.slideEl.classList.remove(`${s.zoomedSlideClass}`),m.slideEl=void 0,m.originX=0,m.originY=0)}function A(e){const s=t.zoom;s.scale&&1!==s.scale?L():P(e)}function I(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function z(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:s,activeListenerWithCapture:a}=I();t.wrapperEl.addEventListener("pointerdown",x,s),t.wrapperEl.addEventListener("pointermove",S,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,T,s)})),t.wrapperEl.addEventListener("pointermove",M,a)}function $(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:s,activeListenerWithCapture:a}=I();t.wrapperEl.removeEventListener("pointerdown",x,s),t.wrapperEl.removeEventListener("pointermove",S,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,T,s)})),t.wrapperEl.removeEventListener("pointermove",M,a)}Object.defineProperty(t.zoom,"scale",{get:()=>v,set(e){if(v!==e){const t=m.imageEl,s=m.slideEl;i("zoomChange",e,t,s)}v=e}}),a("init",(()=>{t.params.zoom.enabled&&z()})),a("destroy",(()=>{$()})),a("touchStart",((e,s)=>{t.zoom.enabled&&function(e){const s=t.device;if(!m.imageEl)return;if(h.isTouched)return;s.android&&e.cancelable&&e.preventDefault(),h.isTouched=!0;const a=u.length>0?u[0]:e;h.touchesStart.x=a.pageX,h.touchesStart.y=a.pageY}(s)})),a("touchEnd",((e,s)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!m.imageEl)return;if(!h.isTouched||!h.isMoved)return h.isTouched=!1,void(h.isMoved=!1);h.isTouched=!1,h.isMoved=!1;let s=300,a=300;const i=g.x*s,r=h.currentX+i,n=g.y*a,l=h.currentY+n;0!==g.x&&(s=Math.abs((r-h.currentX)/g.x)),0!==g.y&&(a=Math.abs((l-h.currentY)/g.y));const o=Math.max(s,a);h.currentX=r,h.currentY=l;const d=h.width*e.scale,c=h.height*e.scale;h.minX=Math.min(m.slideWidth/2-d/2,0),h.maxX=-h.minX,h.minY=Math.min(m.slideHeight/2-c/2,0),h.maxY=-h.minY,h.currentX=Math.max(Math.min(h.currentX,h.maxX),h.minX),h.currentY=Math.max(Math.min(h.currentY,h.maxY),h.minY),m.imageWrapEl.style.transitionDuration=`${o}ms`,m.imageWrapEl.style.transform=`translate3d(${h.currentX}px, ${h.currentY}px,0)`}()})),a("doubleTap",((e,s)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&A(s)})),a("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&C()})),a("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&C()})),Object.assign(t.zoom,{enable:z,disable:$,in:P,out:L,toggle:A})},function(e){let{swiper:t,extendParams:s,on:a}=e;function i(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}s({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},a("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){const e=document.querySelector(t.params.controller.control);if(e&&e.swiper)t.controller.control=e.swiper;else if(e){const s=a=>{t.controller.control=a.detail[0],t.update(),e.removeEventListener("init",s)};e.addEventListener("init",s)}}else t.controller.control=t.params.controller.control})),a("update",(()=>{r()})),a("resize",(()=>{r()})),a("observerUpdate",(()=>{r()})),a("setTranslate",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(s,a)})),a("setTransition",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(s,a)})),Object.assign(t.controller,{setTranslate:function(e,s){const a=t.controller.control;let r,n;const l=t.constructor;function o(e){if(e.destroyed)return;const s=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid)}(e),n=-t.controller.spline.interpolate(-s)),n&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),n=(s-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(let e=0;e{s.updateAutoHeight()})),x(s.wrapperEl,(()=>{i&&s.transitionEnd()}))))}if(Array.isArray(i))for(r=0;r(Array.isArray(e)?e:[e]).filter((e=>!!e));function l(e){(e=n(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function o(e){(e=n(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function d(e,t){(e=n(e)).forEach((e=>{e.setAttribute("role",t)}))}function c(e,t){(e=n(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function p(e,t){(e=n(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function u(e){(e=n(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function m(e){(e=n(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function h(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=t.params.a11y,a=e.target;t.pagination&&t.pagination.el&&(a===t.pagination.el||t.pagination.el.contains(e.target))&&!e.target.matches(se(t.params.pagination.bulletClass))||(t.navigation&&t.navigation.nextEl&&a===t.navigation.nextEl&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?r(s.lastSlideMessage):r(s.nextSlideMessage)),t.navigation&&t.navigation.prevEl&&a===t.navigation.prevEl&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?r(s.firstSlideMessage):r(s.prevSlideMessage)),t.pagination&&a.matches(se(t.params.pagination.bulletClass))&&a.click())}function f(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function g(){return f()&&t.params.pagination.clickable}const w=(e,t,s)=>{l(e),"BUTTON"!==e.tagName&&(d(e,"button"),e.addEventListener("keydown",h)),p(e,s),function(e,t){(e=n(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},b=()=>{t.a11y.clicked=!0},E=()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},x=e=>{if(t.a11y.clicked)return;const s=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!s||!t.slides.includes(s))return;const a=t.slides.indexOf(s)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(s);a||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(s),0))},S=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&c(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&d(t.slides,e.slideRole);const s=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((a,i)=>{const r=t.params.loop?parseInt(a.getAttribute("data-swiper-slide-index"),10):i;p(a,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,s))}))},T=()=>{const e=t.params.a11y;t.el.append(i);const s=t.el;e.containerRoleDescriptionMessage&&c(s,e.containerRoleDescriptionMessage),e.containerMessage&&p(s,e.containerMessage);const a=t.wrapperEl,r=e.id||a.getAttribute("id")||`swiper-wrapper-${l=16,void 0===l&&(l=16),"x".repeat(l).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var l;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var d;d=r,n(a).forEach((e=>{e.setAttribute("id",d)})),function(e,t){(e=n(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(a,o),S();let{nextEl:u,prevEl:m}=t.navigation?t.navigation:{};if(u=n(u),m=n(m),u&&u.forEach((t=>w(t,r,e.nextSlideMessage))),m&&m.forEach((t=>w(t,r,e.prevSlideMessage))),g()){(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach((e=>{e.addEventListener("keydown",h)}))}t.el.addEventListener("focus",x,!0),t.el.addEventListener("pointerdown",b,!0),t.el.addEventListener("pointerup",E,!0)};a("beforeInit",(()=>{i=v("span",t.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")})),a("afterInit",(()=>{t.params.a11y.enabled&&T()})),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&S()})),a("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:s}=t.navigation;s&&(t.isBeginning?(u(s),o(s)):(m(s),l(s))),e&&(t.isEnd?(u(e),o(e)):(m(e),l(e)))}()})),a("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;f()&&t.pagination.bullets.forEach((s=>{t.params.pagination.clickable&&(l(s),t.params.pagination.renderBullet||(d(s,"button"),p(s,e.paginationBulletMessage.replace(/\{\{index\}\}/,y(s)+1)))),s.matches(se(t.params.pagination.bulletActiveClass))?s.setAttribute("aria-current","true"):s.removeAttribute("aria-current")}))}()})),a("destroy",(()=>{t.params.a11y.enabled&&function(){i&&i.remove();let{nextEl:e,prevEl:s}=t.navigation?t.navigation:{};e=n(e),s=n(s),e&&e.forEach((e=>e.removeEventListener("keydown",h))),s&&s.forEach((e=>e.removeEventListener("keydown",h))),g()&&(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach((e=>{e.removeEventListener("keydown",h)}));t.el.removeEventListener("focus",x,!0),t.el.removeEventListener("pointerdown",b,!0),t.el.removeEventListener("pointerup",E,!0)}()}))},function(e){let{swiper:t,extendParams:s,on:a}=e;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,n={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},d=(e,s)=>{const a=r();if(!i||!t.params.history.enabled)return;let n;n=t.params.url?new URL(t.params.url):a.location;const o=t.slides[s];let d=l(o.getAttribute("data-history"));if(t.params.history.root.length>0){let s=t.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${e?`${e}/`:""}${d}`}else n.pathname.includes(e)||(d=`${e?`${e}/`:""}${d}`);t.params.history.keepQuery&&(d+=n.search);const c=a.history.state;c&&c.value===d||(t.params.history.replaceState?a.history.replaceState({value:d},null,d):a.history.pushState({value:d},null,d))},c=(e,s,a)=>{if(s)for(let i=0,r=t.slides.length;i{n=o(t.params.url),c(t.params.speed,n.value,!1)};a("init",(()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,n=o(t.params.url),n.key||n.value?(c(0,n.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",p)):t.params.history.replaceState||e.addEventListener("popstate",p)}})()})),a("destroy",(()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",p)})()})),a("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&d(t.params.history.key,t.activeIndex)})),a("slideChange",(()=>{i&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:s,emit:i,on:n}=e,l=!1;const o=a(),d=r();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,s){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.filter((e=>e.getAttribute("data-hash")===s))[0];if(!e)return 0;return parseInt(e.getAttribute("data-swiper-slide-index"),10)}return t.getSlideIndex(f(t.slidesEl,`.${t.params.slideClass}[data-hash="${s}"], swiper-slide[data-hash="${s}"]`)[0])}}});const c=()=>{i("hashChange");const e=o.location.hash.replace("#",""),s=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(s?s.getAttribute("data-hash"):"")){const s=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===s||Number.isNaN(s))return;t.slideTo(s)}},p=()=>{if(!l||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],s=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState?(d.history.replaceState(null,null,`#${s}`||""),i("hashSet")):(o.location.hash=s||"",i("hashSet"))};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;l=!0;const e=o.location.hash.replace("#","");if(e){const s=0,a=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(a||0,s,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&d.addEventListener("hashchange",c)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d.removeEventListener("hashchange",c)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{l&&p()})),n("slideChange",(()=>{l&&t.params.cssMode&&p()}))},function(e){let t,s,{swiper:i,extendParams:r,on:n,emit:l,params:o}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let d,c,p,u,m,h,f,g,v=o&&o.autoplay?o.autoplay.delay:3e3,w=o&&o.autoplay?o.autoplay.delay:3e3,b=(new Date).getTime();function y(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",y),g||C())}const E=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(w=d,c=!1);const e=i.autoplay.paused?d:b+w-(new Date).getTime();i.autoplay.timeLeft=e,l("autoplayTimeLeft",e,e/v),s=requestAnimationFrame((()=>{E()}))},x=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(s),E();let a=void 0===e?i.params.autoplay.delay:e;v=i.params.autoplay.delay,w=i.params.autoplay.delay;const r=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:i.slides[i.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(a=r,v=r,w=r),d=a;const n=i.params.speed,o=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,n,!0,!0),l("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,n,!0,!0),l("autoplay")),i.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return a>0?(clearTimeout(t),t=setTimeout((()=>{o()}),a)):requestAnimationFrame((()=>{o()})),a},S=()=>{b=(new Date).getTime(),i.autoplay.running=!0,x(),l("autoplayStart")},T=()=>{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(s),l("autoplayStop")},M=(e,s)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(f=!0);const a=()=>{l("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",y):C()};if(i.autoplay.paused=!0,s)return h&&(d=i.params.autoplay.delay),h=!1,void a();const r=d||i.params.autoplay.delay;d=r-((new Date).getTime()-b),i.isEnd&&d<0&&!i.params.loop||(d<0&&(d=0),a())},C=()=>{i.isEnd&&d<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(b=(new Date).getTime(),f?(f=!1,x(d)):x(),i.autoplay.paused=!1,l("autoplayResume"))},P=()=>{if(i.destroyed||!i.autoplay.running)return;const e=a();"hidden"===e.visibilityState&&(f=!0,M(!0)),"visible"===e.visibilityState&&C()},L=e=>{"mouse"===e.pointerType&&(f=!0,g=!0,i.animating||i.autoplay.paused||M(!0))},A=e=>{"mouse"===e.pointerType&&(g=!1,i.autoplay.paused&&C())};n("init",(()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",L),i.el.addEventListener("pointerleave",A)),a().addEventListener("visibilitychange",P),S())})),n("destroy",(()=>{i.el.removeEventListener("pointerenter",L),i.el.removeEventListener("pointerleave",A),a().removeEventListener("visibilitychange",P),i.autoplay.running&&T()})),n("_freeModeStaticRelease",(()=>{(u||f)&&C()})),n("_freeModeNoMomentumRelease",(()=>{i.params.autoplay.disableOnInteraction?T():M(!0,!0)})),n("beforeTransitionStart",((e,t,s)=>{!i.destroyed&&i.autoplay.running&&(s||!i.params.autoplay.disableOnInteraction?M(!0,!0):T())})),n("sliderFirstMove",(()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?T():(p=!0,u=!1,f=!1,m=setTimeout((()=>{f=!0,u=!0,M(!0)}),200)))})),n("touchEnd",(()=>{if(!i.destroyed&&i.autoplay.running&&p){if(clearTimeout(m),clearTimeout(t),i.params.autoplay.disableOnInteraction)return u=!1,void(p=!1);u&&i.params.cssMode&&C(),u=!1,p=!1}})),n("slideChange",(()=>{!i.destroyed&&i.autoplay.running&&(h=!0)})),Object.assign(i.autoplay,{start:S,stop:T,pause:M,resume:C})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,n=!1;function l(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const s=e.clickedIndex,a=e.clickedSlide;if(a&&a.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;i=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):s,t.params.loop?t.slideToLoop(i):t.slideTo(i)}function o(){const{thumbs:e}=t.params;if(r)return!1;r=!0;const s=t.constructor;if(e.swiper instanceof s)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(c(e.swiper)){const a=Object.assign({},e.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new s(a),n=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",l),!0}function d(e){const s=t.thumbs.swiper;if(!s||s.destroyed)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),s.slides.forEach((e=>e.classList.remove(r))),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e{e.classList.add(r)}));else for(let e=0;ee.getAttribute("data-swiper-slide-index")===`${t.realIndex}`))[0];r=s.slides.indexOf(e),o=t.activeIndex>t.previousIndex?"next":"prev"}else r=t.realIndex,o=r>t.previousIndex?"next":"prev";l&&(r+="next"===o?n:-1*n),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(r)<0&&(s.params.centeredSlides?r=r>i?r-Math.floor(a/2)+1:r+Math.floor(a/2)-1:r>i&&s.params.slidesPerGroup,s.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},i("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const s=a(),i=()=>{const a="string"==typeof e.swiper?s.querySelector(e.swiper):e.swiper;if(a&&a.swiper)e.swiper=a.swiper,o(),d(!0);else if(a){const s=i=>{e.swiper=i.detail[0],a.removeEventListener("init",s),o(),d(!0),e.swiper.update(),t.update()};a.addEventListener("init",s)}return a},r=()=>{if(t.destroyed)return;i()||requestAnimationFrame(r)};requestAnimationFrame(r)}else o(),d(!0)})),i("slideChange update resize observerUpdate",(()=>{d()})),i("setTransition",((e,s)=>{const a=t.thumbs.swiper;a&&!a.destroyed&&a.setTransition(s)})),i("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()})),Object.assign(t.thumbs,{init:o,update:d})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:o()})},onTouchEnd:function(e){let{currentPos:s}=e;if(t.params.cssMode)return;const{params:r,wrapperEl:n,rtlTranslate:l,snapGrid:d,touchEventsData:c}=t,p=o()-c.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length1){const e=c.velocities.pop(),s=c.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)150||o()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let p=t.translate+s;l&&(p=-p);let u,m=!1;const h=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(pt.minTranslate())r.freeMode.momentumBounce?(p-t.minTranslate()>h&&(p=t.minTranslate()+h),u=t.minTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t-p){e=t;break}p=Math.abs(d[e]-p){t.loopFix()})),0!==t.velocity){if(e=l?Math.abs((-p-t.translate)/t.velocity):Math.abs((p-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((l?-p:p)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s{t&&!t.destroyed&&c.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(u),x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(p),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(p),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||p>=r.longSwipesMs)&&(a("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,i,{swiper:r,extendParams:n,on:l}=e;n({grid:{rows:1,fill:"column"}});const o=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};l("init",(()=>{i=r.params.grid&&r.params.grid.rows>1})),l("update",(()=>{const{params:e,el:t}=r,s=e.grid&&e.grid.rows>1;i&&!s?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),a=1,r.emitContainerClasses()):!i&&s&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),i=s})),r.grid={initSlides:e=>{const{slidesPerView:i}=r.params,{rows:n,fill:l}=r.params.grid,o=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;a=Math.floor(o/n),t=Math.floor(o/n)===o/n?o:Math.ceil(o/n)*n,"auto"!==i&&"row"===l&&(t=Math.max(t,i*n)),s=t/n},unsetSlides:()=>{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,i,n)=>{const{slidesPerGroup:l}=r.params,d=o(),{rows:c,fill:p}=r.params.grid,u=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:n.length;let m,h,f;if("row"===p&&l>1){const s=Math.floor(e/(l*c)),a=e-c*l*s,r=0===s?l:Math.min(Math.ceil((u-s*c*l)/c),l);f=Math.floor(a/r),h=a-f*r+s*l,m=h+f*t/c,i.style.order=m}else"column"===p?(h=Math.floor(e/c),f=e-h*c,(h>a||h===a&&f===c-1)&&(f+=1,f>=c&&(f=0,h+=1))):(f=Math.floor(e/s),h=e-f*s);i.row=f,i.column=h,i.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,i.style[r.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(e,s)=>{const{centeredSlides:a,roundLengths:i}=r.params,n=o(),{rows:l}=r.params.grid;if(r.virtualSize=(e+n)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-n,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+n}px`),a){const e=[];for(let t=0;t{const{slides:e}=t;t.params.fadeEffect;for(let s=0;s{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`})),ce({swiper:t,duration:e,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=s?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"left":"top")).split(" ")),e.append(a)),i||(i=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"right":"bottom")).split(" ")),e.append(i)),a&&(a.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};oe({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{el:e,wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:d}=t,c=t.params.cubeEffect,p=t.isHorizontal(),u=t.virtual&&t.params.virtual.enabled;let m,h=0;c.shadow&&(p?(m=t.wrapperEl.querySelector(".swiper-cube-shadow"),m||(m=v("div","swiper-cube-shadow"),t.wrapperEl.append(m)),m.style.height=`${r}px`):(m=e.querySelector(".swiper-cube-shadow"),m||(m=v("div","swiper-cube-shadow"),e.append(m))));for(let e=0;e-1&&(h=90*s+90*d,l&&(h=90*-s-90*d)),t.style.transform=v,c.slideShadows&&i(t,d,p)}if(s.style.transformOrigin=`50% 50% -${o/2}px`,s.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,c.shadow)if(p)m.style.transform=`translate3d(0px, ${r/2+c.shadowOffset}px, ${-r/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`;else{const e=Math.abs(h)-90*Math.floor(Math.abs(h)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=c.shadowScale,a=c.shadowScale/t,i=c.shadowOffset;m.style.transform=`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-90deg)`}const f=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-o/2:0;s.style.transform=`translate3d(0px,0,${f}px) rotateX(${t.isHorizontal()?0:h}deg) rotateY(${t.isHorizontal()?-h:0}deg)`,s.style.setProperty("--swiper-cube-translate-z",`${f}px`)},setTransition:e=>{const{el:s,slides:a}=t;if(a.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=s.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(t,s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(e,s)=>{let a=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=pe("flip",e,t.isHorizontal()?"left":"top")),i||(i=pe("flip",e,t.isHorizontal()?"right":"bottom")),a&&(a.style.opacity=Math.max(-s,0)),i&&(i.style.opacity=Math.max(s,0))};oe({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect;for(let r=0;r{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),ce({swiper:t,duration:e,transformElements:s})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let s=e.progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(e.progress,1),-1)),i(e,s)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),oe({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth;for(let e=0,t=a.length;e0?p:0),s&&(s.style.opacity=-p>0?-p:0)}}},setTransition:e=>{t.slides.map((e=>h(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;oe({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides;if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.style.transform=`translateX(calc(50% - ${e}px))`}for(let s=0;s0&&(f=r.prev,h=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d*n)}))`})),m.forEach(((e,t)=>{m[t]=f.rotate[t]*Math.abs(d*n)})),a.style.zIndex=-Math.abs(Math.round(o))+e.length;const g=u.join(", "),v=`rotateX(${m[0]}deg) rotateY(${m[1]}deg) rotateZ(${m[2]}deg)`,w=c<0?`scale(${1+(1-f.scale)*c*n})`:`scale(${1-(1-f.scale)*c*n})`,b=c<0?1+(1-f.opacity)*c*n:1-(1-f.opacity)*c*n,y=`translate3d(${g}) ${v} ${w}`;if(h&&f.shadow||!h){let e=a.querySelector(".swiper-slide-shadow");if(!e&&f.shadow&&(e=pe("creative",a)),e){const t=r.shadowPerProgress?d*(1/r.limitProgress):d;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const E=de(0,a);E.style.transform=y,E.style.opacity=b,f.origin&&(E.style.transformOrigin=f.origin)}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),ce({swiper:t,duration:e,transformElements:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),oe({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s,rtlTranslate:a}=t,i=t.params.cardsEffect,{startTranslate:r,isTouched:n}=t.touchEventsData,l=a?-t.translate:t.translate;for(let o=0;o0&&p<1&&(n||t.params.cssMode)&&l-1&&(n||t.params.cssMode)&&l>r;if(y||E){const e=(1-Math.abs((Math.abs(p)-.5)/.5))**.5;v+=-28*p*e,g+=-.5*e,w+=96*e,h=-25*e*Math.abs(p)+"%"}if(m=p<0?`calc(${m}px ${a?"-":"+"} (${w*Math.abs(p)}%))`:p>0?`calc(${m}px ${a?"-":"+"} (-${w*Math.abs(p)}%))`:`${m}px`,!t.isHorizontal()){const e=h;h=m,m=e}const x=p<0?""+(1+(1-g)*p):""+(1-(1-g)*p),S=`\n translate3d(${m}, ${h}, ${f}px)\n rotateZ(${i.rotate?a?-v:v:0}deg)\n scale(${x})\n `;if(i.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=pe("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+e.length;de(0,d).style.transform=S}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),ce({swiper:t,duration:e,transformElements:s})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return ee.use(ue),ee}(); +//# sourceMappingURL=swiper-bundle.min.js.map \ No newline at end of file diff --git a/web-res/static/js/vconsole.js b/web-res/static/js/vconsole.js new file mode 100644 index 0000000..3eb8aee --- /dev/null +++ b/web-res/static/js/vconsole.js @@ -0,0 +1 @@ +var vConsole = new VConsole(); \ No newline at end of file diff --git a/web-res/static/js/vconsole.min.js b/web-res/static/js/vconsole.min.js new file mode 100644 index 0000000..9c54a6e --- /dev/null +++ b/web-res/static/js/vconsole.min.js @@ -0,0 +1,10 @@ +/*! + * vConsole v3.4.0 (https://github.com/Tencent/vConsole) + * + * Tencent is pleased to support the open source community by making vConsole available. + * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. + * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + * http://opensource.org/licenses/MIT + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("VConsole",[],t):"object"==typeof exports?exports.VConsole=t():e.VConsole=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){var o,r,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=[t],void 0===(i="function"==typeof(o=function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){return"[object Number]"==Object.prototype.toString.call(e)}function o(e){return"[object String]"==Object.prototype.toString.call(e)}function r(e){return"[object Array]"==Object.prototype.toString.call(e)}function i(e){return"[object Boolean]"==Object.prototype.toString.call(e)}function a(e){return void 0===e}function l(e){return null===e}function c(e){return"[object Symbol]"==Object.prototype.toString.call(e)}function s(e){return!("[object Object]"!=Object.prototype.toString.call(e)&&(n(e)||o(e)||i(e)||r(e)||l(e)||u(e)||a(e)||c(e)))}function u(e){return"[object Function]"==Object.prototype.toString.call(e)}function d(e){var t=Object.prototype.toString.call(e);return"[object global]"==t||"[object Window]"==t||"[object DOMWindow]"==t}function f(e){if(!s(e)&&!r(e))return[];var t=[];for(var n in e)t.push(n);return t.sort()}Object.defineProperty(e,"__esModule",{value:!0}),e.getDate=function(e){var t=e>0?new Date(e):new Date,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=t.getMonth()<9?"0"+(t.getMonth()+1):t.getMonth()+1,r=t.getFullYear(),i=t.getHours()<10?"0"+t.getHours():t.getHours(),a=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),l=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),c=t.getMilliseconds()<10?"0"+t.getMilliseconds():t.getMilliseconds();return c<100&&(c="0"+c),{time:+t,year:r,month:o,day:n,hour:i,minute:a,second:l,millisecond:c}},e.isNumber=n,e.isString=o,e.isArray=r,e.isBoolean=i,e.isUndefined=a,e.isNull=l,e.isSymbol=c,e.isObject=s,e.isFunction=u,e.isElement=function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":t(HTMLElement))?e instanceof HTMLElement:e&&"object"===t(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isWindow=d,e.isPlainObject=function(e){var n,o=Object.prototype.hasOwnProperty;if(!e||"object"!==t(e)||e.nodeType||d(e))return!1;try{if(e.constructor&&!o.call(e,"constructor")&&!o.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(n in e);return void 0===n||o.call(e,n)},e.htmlEncode=function(e){return document.createElement("a").appendChild(document.createTextNode(e)).parentNode.innerHTML},e.JSONStringify=function(e){if(!s(e)&&!r(e))return JSON.stringify(e);var t="{",n="}";r(e)&&(t="[",n="]");for(var o=t,i=f(e),a=0;a-1||(r.push(t),e[n].className=r.join(" "))}}},removeClass:function(e,t){if(e){(0,o.isArray)(e)||(e=[e]);for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"newPlugin";o(this,e),this.id=t,this.name=n,this.isReady=!1,this.eventList={}}var t,n,i;return t=e,(n=[{key:"on",value:function(e,t){return this.eventList[e]=t,this}},{key:"trigger",value:function(e,t){if("function"==typeof this.eventList[e])this.eventList[e].call(this,t);else{var n="on"+e.charAt(0).toUpperCase()+e.slice(1);"function"==typeof this[n]&&this[n].call(this,t)}return this}},{key:"id",get:function(){return this._id},set:function(e){if(!e)throw"Plugin ID cannot be empty";this._id=e.toLowerCase()}},{key:"name",get:function(){return this._name},set:function(e){if(!e)throw"Plugin name cannot be empty";this._name=e}},{key:"vConsole",get:function(){return this._vConsole||void 0},set:function(e){if(!e)throw"vConsole cannot be empty";this._vConsole=e}}])&&r(t.prototype,n),i&&r(t,i),e}();n.default=i,e.exports=t.default})?o.apply(t,r):o)||(e.exports=i)},function(e,t,n){var o,r,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=[t,n(0),n(1),n(2),n(18),n(19),n(20)],void 0===(i="function"==typeof(o=function(n,o,r,i,a,l,c){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n=n.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)}));for(var o=0;o-1&&g.splice(e,1)}},{key:"onShow",value:function(){this.isShow=!0,1==this.isInBottom&&this.autoScrollToBottom()}},{key:"onHide",value:function(){this.isShow=!1}},{key:"onShowConsole",value:function(){1==this.isInBottom&&this.autoScrollToBottom()}},{key:"onUpdateOption",value:function(){this.vConsole.option.maxLogNumber!=this.maxLogNumber&&(this.updateMaxLogNumber(),this.limitMaxLogs())}},{key:"updateMaxLogNumber",value:function(){this.maxLogNumber=this.vConsole.option.maxLogNumber||1e3,this.maxLogNumber=Math.max(1,this.maxLogNumber)}},{key:"limitMaxLogs",value:function(){if(this.isReady)for(;this.logNumber>this.maxLogNumber;){var e=r.default.one(".vc-item",this.$tabbox);if(!e)break;e.parentNode.removeChild(e),this.logNumber--}}},{key:"showLogType",value:function(e){var t=r.default.one(".vc-log",this.$tabbox);r.default.removeClass(t,"vc-log-partly-log"),r.default.removeClass(t,"vc-log-partly-info"),r.default.removeClass(t,"vc-log-partly-warn"),r.default.removeClass(t,"vc-log-partly-error"),"all"==e?r.default.removeClass(t,"vc-log-partly"):(r.default.addClass(t,"vc-log-partly"),r.default.addClass(t,"vc-log-partly-"+e))}},{key:"autoScrollToBottom",value:function(){this.vConsole.option.disableLogScrolling||this.scrollToBottom()}},{key:"scrollToBottom",value:function(){var e=r.default.one(".vc-content");e&&(e.scrollTop=e.scrollHeight-e.offsetHeight)}},{key:"mockConsole",value:function(){var e=this,t=this,n=["log","info","warn","debug","error"];window.console?(n.map((function(e){t.console[e]=window.console[e]})),t.console.time=window.console.time,t.console.timeEnd=window.console.timeEnd,t.console.clear=window.console.clear):window.console={},n.map((function(t){window.console[t]=function(){for(var n=arguments.length,o=new Array(n),r=0;r0&&(r=a[1].toLowerCase(),i=g.indexOf(r)>-1)}if(r===this.id||!0!==i&&"default"===this.id)if(e._id||(e._id="__vc_"+Math.random().toString(36).substring(2,8)),e.date||(e.date=+new Date),this.isReady){o.isString(t[0])&&i&&(t[0]=t[0].replace(n,""),""===t[0]&&t.shift());for(var l={_id:e._id,logType:e.logType,logText:[],hasContent:!!e.content,count:1},c=0;c "+t[p].toString()+"":o.isObject(t[p])||o.isArray(t[p])?this.getFoldedLine(t[p]):(l[p]?' '):" ")+o.htmlEncode(t[p]).replace(/\n/g,"
              ")+"
              "}catch(e){b=" ["+d(t[p])+"]"}b&&("string"==typeof b?v.insertAdjacentHTML("beforeend",b):v.insertAdjacentElement("beforeend",b))}o.isObject(e.content)&&v.insertAdjacentElement("beforeend",e.content),this.formatLine&&(n=this.formatLine(n)),r.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",n),this.logNumber++,this.limitMaxLogs()}},{key:"getFoldedLine",value:function(e,t){var n=this;if(!t){var i=o.JSONStringify(e),a=i.substr(0,36);t=o.getObjName(e),i.length>36&&(a+="..."),t+=" "+a}var s=r.default.render(l.default,{outer:t,lineType:"obj"});return r.default.bind(r.default.one(".vc-fold-outer",s),"click",(function(t){t.preventDefault(),t.stopPropagation(),r.default.hasClass(s,"vc-toggle")?(r.default.removeClass(s,"vc-toggle"),r.default.removeClass(r.default.one(".vc-fold-inner",s),"vc-toggle"),r.default.removeClass(r.default.one(".vc-fold-outer",s),"vc-toggle")):(r.default.addClass(s,"vc-toggle"),r.default.addClass(r.default.one(".vc-fold-inner",s),"vc-toggle"),r.default.addClass(r.default.one(".vc-fold-outer",s),"vc-toggle"));var i=r.default.one(".vc-fold-inner",s);return setTimeout((function(){if(0==i.children.length&&e){for(var t=o.getObjAllKeys(e),a=0;ae.length)&&(t=e.length);for(var n=0,o=new Array(t);no&&(t=o-e.offsetWidth),n+e.offsetHeight>r&&(n=r-e.offsetHeight),t<0&&(t=0),n<20&&(n=20),[t,n]}},{key:"_mockTap",value:function(){var e,t,n,o=!1,r=null;this.$dom.addEventListener("touchstart",(function(o){if(void 0===e){var i=o.targetTouches[0];t=i.pageX,n=i.pageY,e=o.timeStamp,r=o.target.nodeType===Node.TEXT_NODE?o.target.parentNode:o.target}}),!1),this.$dom.addEventListener("touchmove",(function(e){var r=e.changedTouches[0];(Math.abs(r.pageX-t)>10||Math.abs(r.pageY-n)>10)&&(o=!0)})),this.$dom.addEventListener("touchend",(function(t){if(!1===o&&t.timeStamp-e<700&&null!=r){var n=!1;switch(r.tagName.toLowerCase()){case"textarea":n=!0;break;case"input":switch(r.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":n=!1;break;default:n=!r.disabled&&!r.readOnly}}if(n?r.focus():"function"==typeof window.getSelection&&getSelection().rangeCount||t.preventDefault(),!r.disabled&&!r.readOnly){var i=t.changedTouches[0],a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),a.forwardedTouchEvent=!0,a.initEvent("click",!0,!0),r.dispatchEvent(a)}}e=void 0,o=!1,r=null}),!1)}},{key:"_bindEvent",value:function(){var e=this,t=l.default.one(".vc-switch",e.$dom);l.default.bind(t,"touchstart",(function(t){e.switchPos.startX=t.touches[0].pageX,e.switchPos.startY=t.touches[0].pageY,e.switchPos.hasMoved=!1})),l.default.bind(t,"touchend",(function(t){e.switchPos.hasMoved&&(e.switchPos.x=e.switchPos.endX,e.switchPos.y=e.switchPos.endY,e.switchPos.startX=0,e.switchPos.startY=0,e.switchPos.hasMoved=!1,i.setStorage("switch_x",e.switchPos.x),i.setStorage("switch_y",e.switchPos.y))})),l.default.bind(t,"touchmove",(function(n){if(!(n.touches.length<=0)){var o=n.touches[0].pageX-e.switchPos.startX,r=n.touches[0].pageY-e.switchPos.startY,i=Math.floor(e.switchPos.x-o),a=Math.floor(e.switchPos.y-r),l=x(e._getSwitchButtonSafeAreaXY(t,i,a),2);i=l[0],a=l[1],t.style.right=i+"px",t.style.bottom=a+"px",e.switchPos.endX=i,e.switchPos.endY=a,e.switchPos.hasMoved=!0,console.log(i,a),n.preventDefault()}})),l.default.bind(l.default.one(".vc-switch",e.$dom),"click",(function(){e.show()})),l.default.bind(l.default.one(".vc-hide",e.$dom),"click",(function(){e.hide()}));var n=l.default.one(".vc-mask",this.$dom),o=l.default.one(".vc-panel",this.$dom),r=window.transitionEnd(n).whichTransitionEnd(),a=function(){n.style.display="none",o.style.display="none"};r?l.default.bind(n,r,a):a(),l.default.bind(n,"click",(function(t){if(t.target!=l.default.one(".vc-mask"))return!1;e.hide()})),l.default.delegate(l.default.one(".vc-tabbar",e.$dom),"click",".vc-tab",(function(t){var n=this.dataset.tab;n!=e.activedTab&&e.showTab(n)}));var c=function(t){l.default.hasClass(e.$dom,"vc-toggle")||(t.style.display="none")};r?l.default.bind(o,r,(function(e){if(e.target!=o)return!1;c(e.target)})):c(o);var s=l.default.one(".vc-content",e.$dom),u=!1;l.default.bind(s,"touchstart",(function(e){var t=s.scrollTop,n=s.scrollHeight,o=t+s.offsetHeight;0===t?(s.scrollTop=1,0===s.scrollTop&&(l.default.hasClass(e.target,"vc-cmd-input")||(u=!0))):o===n&&(s.scrollTop=t-1,s.scrollTop===t&&(l.default.hasClass(e.target,"vc-cmd-input")||(u=!0)))})),l.default.bind(s,"touchmove",(function(e){u&&e.preventDefault()})),l.default.bind(s,"touchend",(function(e){u=!1}))}},{key:"_autoRun",value:function(){for(var e in this.isInited=!0,this.pluginList)this._initPlugin(this.pluginList[e]);this.tabList.length>0&&this.showTab(this.tabList[0]),this.triggerEvent("ready")}},{key:"triggerEvent",value:function(e,t){e="on"+e.charAt(0).toUpperCase()+e.slice(1),i.isFunction(this.option[e])&&this.option[e].apply(this,t)}},{key:"_initPlugin",value:function(e){var t=this;e.vConsole=this,e.trigger("init"),e.trigger("renderTab",(function(n){t.tabList.push(e.id);var o=l.default.render(u.default,{id:e.id,name:e.name});l.default.one(".vc-tabbar",t.$dom).insertAdjacentElement("beforeend",o);var r=l.default.render(d.default,{id:e.id});n&&(i.isString(n)?r.innerHTML+=n:i.isFunction(n.appendTo)?n.appendTo(r):i.isElement(n)&&r.insertAdjacentElement("beforeend",n)),l.default.one(".vc-content",t.$dom).insertAdjacentElement("beforeend",r)})),e.trigger("addTopBar",(function(n){if(n)for(var o=l.default.one(".vc-topbar",t.$dom),r=function(t){var r=n[t],a=l.default.render(f.default,{name:r.name||"Undefined",className:r.className||"",pluginID:e.id});if(r.data)for(var c in r.data)a.dataset[c]=r.data[c];i.isFunction(r.onClick)&&l.default.bind(a,"click",(function(t){!1===r.onClick.call(a)||(l.default.removeClass(l.default.all(".vc-topbar-"+e.id),"vc-actived"),l.default.addClass(a,"vc-actived"))})),o.insertAdjacentElement("beforeend",a)},a=0;a-1&&this.tabList.splice(s,1);try{delete this.pluginList[e]}catch(t){this.pluginList[e]=void 0}return this.activedTab==e&&this.tabList.length>0&&this.showTab(this.tabList[0]),!0}},{key:"show",value:function(){if(this.isInited){var e=this;l.default.one(".vc-panel",this.$dom).style.display="block",setTimeout((function(){l.default.addClass(e.$dom,"vc-toggle"),e._triggerPluginsEvent("showConsole"),l.default.one(".vc-mask",e.$dom).style.display="block"}),10)}}},{key:"hide",value:function(){this.isInited&&(l.default.removeClass(this.$dom,"vc-toggle"),this._triggerPluginsEvent("hideConsole"))}},{key:"showSwitch",value:function(){this.isInited&&(l.default.one(".vc-switch",this.$dom).style.display="block")}},{key:"hideSwitch",value:function(){this.isInited&&(l.default.one(".vc-switch",this.$dom).style.display="none")}},{key:"showTab",value:function(e){if(this.isInited){var t=l.default.one("#__vc_log_"+e);l.default.removeClass(l.default.all(".vc-tab",this.$dom),"vc-actived"),l.default.addClass(l.default.one("#__vc_tab_"+e),"vc-actived"),l.default.removeClass(l.default.all(".vc-logbox",this.$dom),"vc-actived"),l.default.addClass(t,"vc-actived");var n=l.default.all(".vc-topbar-"+e,this.$dom);l.default.removeClass(l.default.all(".vc-toptab",this.$dom),"vc-toggle"),l.default.addClass(n,"vc-toggle"),n.length>0?l.default.addClass(l.default.one(".vc-content",this.$dom),"vc-has-topbar"):l.default.removeClass(l.default.one(".vc-content",this.$dom),"vc-has-topbar"),l.default.removeClass(l.default.all(".vc-tool",this.$dom),"vc-toggle"),l.default.addClass(l.default.all(".vc-tool-"+e,this.$dom),"vc-toggle"),this.activedTab&&this._triggerPluginEvent(this.activedTab,"hide"),this.activedTab=e,this._triggerPluginEvent(this.activedTab,"show")}}},{key:"setOption",value:function(e,t){if(i.isString(e))this.option[e]=t,this._triggerPluginsEvent("updateOption");else if(i.isObject(e)){for(var n in e)this.option[n]=e[n];this._triggerPluginsEvent("updateOption")}else console.debug("The first parameter of vConsole.setOption() must be a string or an object.")}},{key:"destroy",value:function(){if(this.isInited){for(var e=Object.keys(this.pluginList),t=e.length-1;t>=0;t--)this.removePlugin(e[t]);this.$dom.parentNode.removeChild(this.$dom),this.isInited=!1}}}])&&O(t.prototype,n),o&&O(t,o),e}();E.VConsolePlugin=p.default,E.VConsoleLogPlugin=b.default,E.VConsoleDefaultPlugin=h.default,E.VConsoleSystemPlugin=m.default,E.VConsoleNetworkPlugin=g.default,E.VConsoleElementPlugin=y.default,E.VConsoleStoragePlugin=_.default;var T=E;n.default=T,e.exports=t.default})?o.apply(t,r):o)||(e.exports=i)},function(e,t){!function(e){"use strict";var t=function(e,t){this.element=e,this.type=t};t.prototype={add:function(e){this.callback=e,this.element.addEventListener(this.type,this.callback,!1)},remove:function(){this.element.removeEventListener(this.type,this.callback,!1)}};var n=function(e){this.element=e,this.transitionEnd=this.whichTransitionEnd(),this.event=new t(this.element,this.transitionEnd)};n.prototype={whichTransitionEnd:function(){var e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in e)if(void 0!==this.element.style[t])return e[t]},bind:function(e){this.event.add(e)},unbind:function(){this.event.remove()}};var o={list:[],getPosition:function(e){if(Array.prototype.indexOf)return this.list.indexOf(e);for(var t=0,n=this.list.length;t=e.length?{done:!0}:{done:!1,value:e[o++]}},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 a,l=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n\n

              vConsole
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n
              \n Hide\n
              \n
              \n
              '},function(e,t){e.exports='{{name}}'},function(e,t){e.exports='
              \n \n
              '},function(e,t){e.exports='{{name}}'},function(e,t){e.exports='{{name}}'},function(e,t){e.exports='
              \n\t
              \n
              '},function(e,t){e.exports='
              \n {{if (lineType == \'obj\')}}\n {{outer}}\n
              \n {{else if (lineType == \'value\')}}\n {{value}}\n {{else if (lineType == \'kv\')}}\n {{key}}: {{value}}\n {{/if}}\n
              '},function(e,t){e.exports='\n {{key}}: {{value}}\n'},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,factory=function(_exports,_query,tool,_log,_tabbox_default,_item_code){"use strict";function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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 i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n-1||(keyTypes[winKeys[i]]=_typeof(window[winKeys[i]]));var cacheObj={},ID_REGEX=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/,retrievePrecedingIdentifier=function(e,t,n){n=n||ID_REGEX;for(var o=[],r=t-1;r>=0&&n.test(e[r]);r--)o.push(e[r]);if(0==o.length){n=/\./;for(var i=t-1;i>=0&&n.test(e[i]);i--)o.push(e[i])}if(0===o.length){var a=e.match(/[\(\)\[\]\{\}]/gi)||[];return a[a.length-1]}return o.reverse().join("")},moveCursorToPos=function(e,t){e.setSelectionRange&&e.setSelectionRange(t,t)},$input=_query.default.one(".vc-cmd-input");_query.default.bind($input,"keyup",(function(e){var isDeleteKeyCode=8===e.keyCode||46===e.keyCode,$prompted=_query.default.one(".vc-cmd-prompted");$prompted.style.display="none",$prompted.innerHTML="";var tempValue=this.value,value=retrievePrecedingIdentifier(this.value,this.value.length);if(value&&value.length>0){if(/\(/.test(value)&&!isDeleteKeyCode)return $input.value+=")",void moveCursorToPos($input,$input.value.length-1);if(/\[/.test(value)&&!isDeleteKeyCode)return $input.value+="]",void moveCursorToPos($input,$input.value.length-1);if(/\{/.test(value)&&!isDeleteKeyCode)return $input.value+="}",void moveCursorToPos($input,$input.value.length-1);if("."===value){var key=retrievePrecedingIdentifier(tempValue,tempValue.length-1);if(!cacheObj[key])try{cacheObj[key]=Object.getOwnPropertyNames(eval("("+key+")")).sort()}catch(e){}try{for(var _i3=0;_i3=0){var _$li=document.createElement("li");_$li.innerHTML=winKeys[_i4],_$li.onclick=function(){$input.value="",$input.value=this.innerHTML,"function"==keyTypes[this.innerHTML]&&($input.value+="()"),$prompted.style.display="none"},$prompted.appendChild(_$li)}}else{var arr=value.split(".");if(cacheObj[arr[0]]){cacheObj[arr[0]].sort();for(var _i5=0;_i5=0&&(_$li2.innerHTML=_key3,_$li2.onclick=function(){$input.value="",$input.value=tempValue+this.innerHTML,$prompted.style.display="none"},$prompted.appendChild(_$li2))}}}if($prompted.children.length>0){var m=Math.min(200,31*$prompted.children.length);$prompted.style.display="block",$prompted.style.height=m+"px",$prompted.style.marginTop=-m+"px"}}else $prompted.style.display="none"})),_query.default.bind(_query.default.one(".vc-cmd",this.$tabbox),"submit",(function(e){e.preventDefault();var t=_query.default.one(".vc-cmd-input",e.target),n=t.value;t.value="",""!==n&&that.evalCommand(n);var o=_query.default.one(".vc-cmd-prompted");o&&(o.style.display="none")})),_query.default.bind(_query.default.one(".vc-cmd.vc-filter",this.$tabbox),"submit",(function(e){e.preventDefault();var t=_query.default.one(".vc-cmd.vc-filter .vc-cmd-input",e.target);filterText=t.value,_query.default.all(".vc-log>.vc-item").forEach((function(e){checkFilterInLine(e)?_query.default.addClass(e,"hide"):_query.default.removeClass(e,"hide")}))}));var code="";code+="if (!!window) {",code+="window.__vConsole_cmd_result = undefined;",code+="window.__vConsole_cmd_error = false;",code+="}";var scriptList=document.getElementsByTagName("script"),nonce="",_iterator=_createForOfIteratorHelper(scriptList),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _script=_step.value;if(_script.nonce){nonce=_script.nonce;break}}}catch(e){_iterator.e(e)}finally{_iterator.f()}var script=document.createElement("SCRIPT");script.innerHTML=code,script.setAttribute("nonce",nonce),document.documentElement.appendChild(script),document.documentElement.removeChild(script)}},{key:"mockConsole",value:function(){_get(_getPrototypeOf(VConsoleDefaultTab.prototype),"mockConsole",this).call(this);var e=this;tool.isFunction(window.onerror)&&(this.windowOnError=window.onerror),window.onerror=function(t,n,o,r,i){var a=t;n&&(a+="\n"+n.replace(location.origin,"")),(o||r)&&(a+=":"+o+":"+r);var l=!!i&&!!i.stack&&i.stack.toString()||"";e.printLog({logType:"error",logs:[a,l],noOrigin:!0}),tool.isFunction(e.windowOnError)&&e.windowOnError.call(window,t,n,o,r,i)}}},{key:"evalCommand",value:function(e){this.printLog({logType:"log",content:_query.default.render(_item_code.default,{content:e,type:"input"}),style:""});var t,n=void 0;try{n=eval.call(window,"("+e+")")}catch(t){try{n=eval.call(window,e)}catch(e){}}tool.isArray(n)||tool.isObject(n)?t=this.getFoldedLine(n):(tool.isNull(n)?n="null":tool.isUndefined(n)?n="undefined":tool.isFunction(n)?n="function()":tool.isString(n)&&(n='"'+n+'"'),t=_query.default.render(_item_code.default,{content:n,type:"output"})),this.printLog({logType:"log",content:t,style:""}),window.winKeys=Object.getOwnPropertyNames(window).sort()}}]),VConsoleDefaultTab}(_log.default),_default=VConsoleDefaultTab;_exports.default=_default,module.exports=exports.default},__WEBPACK_AMD_DEFINE_ARRAY__=[exports,__webpack_require__(1),__webpack_require__(0),__webpack_require__(3),__webpack_require__(22),__webpack_require__(23)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(e,t){e.exports='
              \n
              \n
              \n \n
                \n
                \n \n
                \n
                \n
                \n \n
                  \n
                  \n \n
                  \n
                  \n
                  \n'},function(e,t){e.exports='
                  {{content}}
                  '},function(e,t,n){var o,r,i;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=[t,n(3),n(25)],void 0===(i="function"==typeof(o=function(n,o,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n\n
                  \n
                  '},function(e,t,n){var o,r,i;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=[t,n(1),n(0),n(2),n(27),n(28),n(29)],void 0===(i="function"==typeof(o=function(n,o,r,i,l,c,s){"use strict";function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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 i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=t.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)})),e.reqList)e.updateRequest(n,{})}},{key:"onRemove",value:function(){window.XMLHttpRequest&&(window.XMLHttpRequest.prototype.open=this._open,window.XMLHttpRequest.prototype.send=this._send,window.XMLHttpRequest.prototype.setRequestHeader=this._setRequestHeader,this._open=void 0,this._send=void 0,this._setRequestHeader=void 0)}},{key:"onShow",value:function(){this.isShow=!0,1==this.isInBottom&&this.scrollToBottom()}},{key:"onHide",value:function(){this.isShow=!1}},{key:"onShowConsole",value:function(){1==this.isInBottom&&this.scrollToBottom()}},{key:"scrollToBottom",value:function(){var e=o.default.one(".vc-content");e.scrollTop=e.scrollHeight-e.offsetHeight}},{key:"clearLog",value:function(){for(var e in this.reqList={},this.domList)this.domList[e].parentNode.removeChild(this.domList[e]),this.domList[e]=void 0;this.domList={},this.renderHeader()}},{key:"renderHeader",value:function(){var e=Object.keys(this.reqList).length,t=o.default.render(c.default,{count:e}),n=o.default.one(".vc-log",this.$tabbox);this.$header?this.$header.parentNode.replaceChild(t,this.$header):n.parentNode.insertBefore(t,n),this.$header=t}},{key:"updateRequest",value:function(e,t){var n=Object.keys(this.reqList).length,i=this.reqList[e]||{};for(var a in t)i[a]=t[a];if(this.reqList[e]=i,this.isReady){var l={id:e,name:i.name,url:i.url,status:i.status,method:i.method||"-",costTime:i.costTime>0?i.costTime+"ms":"-",header:i.header||null,requestHeader:i.requestHeader||null,getData:i.getData||null,postData:i.postData||null,response:null,actived:!!i.actived};switch(i.responseType){case"":case"text":if(r.isString(i.response))try{l.response=JSON.parse(i.response),l.response=JSON.stringify(l.response,null,1),l.response=r.htmlEncode(l.response)}catch(e){l.response=r.htmlEncode(i.response)}else void 0!==i.response&&(l.response=Object.prototype.toString.call(i.response));break;case"json":void 0!==i.response&&(l.response=JSON.stringify(i.response,null,1),l.response=r.htmlEncode(l.response));break;case"blob":case"document":case"arraybuffer":default:void 0!==i.response&&(l.response=Object.prototype.toString.call(i.response))}0==i.readyState||1==i.readyState?l.status="Pending":2==i.readyState||3==i.readyState?l.status="Loading":4==i.readyState||(l.status="Unknown");var c=o.default.render(s.default,l),u=this.domList[e];i.status>=400&&o.default.addClass(o.default.one(".vc-group-preview",c),"vc-table-row-error"),u?u.parentNode.replaceChild(c,u):o.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",c),this.domList[e]=c,Object.keys(this.reqList).length!=n&&this.renderHeader(),this.isInBottom&&this.scrollToBottom()}}},{key:"mockAjax",value:function(){if(window.XMLHttpRequest){var e=this,t=window.XMLHttpRequest.prototype.open,n=window.XMLHttpRequest.prototype.send,o=window.XMLHttpRequest.prototype.setRequestHeader;e._open=t,e._send=n,e._setRequestHeader=o,window.XMLHttpRequest.prototype.open=function(){var n=this,o=[].slice.call(arguments),r=o[0],i=o[1],a=e.getUniqueID(),l=null;n._requestID=a,n._method=r,n._url=i;var c=n.onreadystatechange||function(){},s=function(){var t=e.reqList[a]||{};if(t.readyState=n.readyState,t.status=0,n.readyState>1&&(t.status=n.status),t.responseType=n.responseType,0==n.readyState)t.startTime||(t.startTime=+new Date);else if(1==n.readyState)t.startTime||(t.startTime=+new Date);else if(2==n.readyState){t.header={};for(var o=n.getAllResponseHeaders()||"",r=o.split("\n"),i=0;i0){a.name+="?"+l,a.getData={};var c,s=f(l=(l=l.join("?")).split("&"));try{for(s.s();!(c=s.n()).done;){var u=c.value;u=u.split("="),a.getData[u[0]]=decodeURIComponent(u[1])}}catch(e){s.e(e)}finally{s.f()}}if("POST"==a.method)if(r.isString(i)){var d=i.split("&");a.postData={};var v,p=f(d);try{for(p.s();!(v=p.n()).done;){var b=v.value;b=b.split("="),a.postData[b[0]]=b[1]}}catch(e){p.e(e)}finally{p.f()}}else r.isPlainObject(i)?a.postData=i:a.postData="[object Object]";return t._noVConsole||e.updateRequest(t._requestID,a),n.apply(t,o)}}}},{key:"mockFetch",value:function(){var e=window.fetch;if(e){var t=this;window.fetch=function(n,o){var i=t.getUniqueID();t.reqList[i]={};var a=t.reqList[i]||{},l=[],c="",s="GET",u=null;if(r.isString(n)?(s=o.method||"GET",c=n,u=o.headers):(s=n.method||"GET",c=n.url,u=n.headers),l=c.split("?"),a.id=i,a.method=s,a.requestHeader=u,a.url=c,a.name=l.shift()||"",a.name=a.name.replace(new RegExp("[/]*$"),"").split("/").pop()||"",l.length>0){a.name+="?"+l,a.getData={};var d,v=f(l=(l=l.join("?")).split("&"));try{for(v.s();!(d=v.n()).done;){var p=d.value;p=p.split("="),a.getData[p[0]]=p[1]}}catch(e){v.e(e)}finally{v.f()}}if("POST"===a.method)if(r.isString(n))if(r.isString(o.body)){var b=o.body.split("&");a.postData={};var h,m=f(b);try{for(m.s();!(h=m.n()).done;){var g=h.value;g=g.split("="),a.postData[g[0]]=g[1]}}catch(e){m.e(e)}finally{m.f()}}else r.isPlainObject(o.body)?a.postData=o.body:a.postData="[object Object]";else a.postData="[object Object]";return a.startTime||(a.startTime=+new Date),e(c,o).then((function(e){return e.clone().json().then((function(t){a.endTime=+new Date,a.costTime=a.endTime-(a.startTime||a.endTime),a.status=e.status,a.header={};var n,o=f(e.headers.entries());try{for(o.s();!(n=o.n()).done;){var r=n.value;a.header[r[0]]=r[1]}}catch(e){o.e(e)}finally{o.f()}a.response=t,a.readyState=4;var i=e.headers.get("content-type");return a.responseType=i.includes("application/json")?"json":i.includes("text/html")?"text":"",t})),t.updateRequest(i,a),e}))}}}},{key:"getUniqueID",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}}])&&b(t.prototype,n),i&&b(t,i),u}(i.default);n.default=_,e.exports=t.default})?o.apply(t,r):o)||(e.exports=i)},function(e,t){e.exports='
                  \n
                  \n
                  '},function(e,t){e.exports='
                  \n
                  Name {{if (count > 0)}}({{count}}){{/if}}
                  \n
                  Method
                  \n
                  Status
                  \n
                  Time
                  \n
                  '},function(e,t){e.exports='
                  \n
                  \n
                  {{name}}
                  \n
                  {{method}}
                  \n
                  {{status}}
                  \n
                  {{costTime}}
                  \n
                  \n
                  \n
                  \n
                  \n
                  General
                  \n
                  \n
                  \n
                  URL
                  \n
                  {{url}}
                  \n
                  \n
                  \n
                  Method
                  \n
                  {{method}}
                  \n
                  \n
                  \n {{if (header !== null)}}\n
                  \n
                  \n
                  Response Headers
                  \n
                  \n {{for (var key in header)}}\n
                  \n
                  {{key}}
                  \n
                  {{header[key]}}
                  \n
                  \n {{/for}}\n
                  \n {{/if}}\n {{if (requestHeader !== null)}}\n
                  \n
                  \n
                  Request Headers
                  \n
                  \n {{for (var key in requestHeader)}}\n
                  \n
                  {{key}}
                  \n
                  {{requestHeader[key]}}
                  \n
                  \n {{/for}}\n
                  \n {{/if}}\n {{if (getData !== null)}}\n
                  \n
                  \n
                  Query String Parameters
                  \n
                  \n {{for (var key in getData)}}\n
                  \n
                  {{key}}
                  \n
                  {{getData[key]}}
                  \n
                  \n {{/for}}\n
                  \n {{/if}}\n {{if (postData !== null)}}\n
                  \n
                  \n
                  Request Payload
                  \n
                  \n {{if (typeof postData === \'string\')}}\n
                  \n
                  {{postData}}
                  \n
                  \n {{else}}\n {{for (var key in postData)}}\n
                  \n
                  {{key}}
                  \n
                  {{postData[key]}}
                  \n
                  \n {{/for}}\n {{/if}}\n
                  \n {{/if}}\n
                  \n
                  \n
                  Response
                  \n
                  \n
                  \n
                  {{response || \'\'}}
                  \n
                  \n
                  \n
                  \n
                  '},function(e,t,n){var o,r,i;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=[t,n(31),n(32),n(2),n(34),n(35),n(0),n(1)],void 0===(i="function"==typeof(o=function(n,o,r,i,l,c,s,u){"use strict";function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n0&&this.onChildRemove(e),e.addedNodes.length>0&&this.onChildAdd(e);break;case"attributes":this.onAttributesChange(e);break;case"characterData":this.onCharacterDataChange(e)}}},{key:"onChildRemove",value:function(e){var t=e.target;if(t.__vconsole_node){for(var n=0;n0||(e.childNodes[r]?o.renderView(e.childNodes[r],a,"replace"):a.style.display="none"))}}})),n){case"replace":t.parentNode.replaceChild(r,t);break;case"insertBefore":t.parentNode.insertBefore(r,t);break;default:t.appendChild(r)}return r}},{key:"getNode",value:function(e){if(!this._isIgnoredElement(e)){var t=e.__vconsole_node||{};if(t.nodeType=e.nodeType,t.nodeName=e.nodeName,t.tagName=e.tagName||"",t.textContent="",t.nodeType!=e.TEXT_NODE&&t.nodeType!=e.DOCUMENT_TYPE_NODE||(t.textContent=e.textContent),t.id=e.id||"",t.className=e.className||"",t.attributes=[],e.hasAttributes&&e.hasAttributes())for(var n=0;n0)for(var o=0;o>>0)+i+++"__"}).prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:r(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];if(!t)return!1;var n=t[0]===e;return t[0]=t[1]=void 0,n},has:function(e){var t=e[this.name];return!!t&&t[0]===e}}}var a=new o,l=window.msSetImmediate;if(!l){var c=[],s=String(Math.random());window.addEventListener("message",(function(e){if(e.data===s){var t=c;c=[],t.forEach((function(e){e()}))}})),l=function(e){c.push(e),window.postMessage(s,"*")}}var u=!1,d=[];function f(){u=!1;var e=d;d=[],e.sort((function(e,t){return e.uid_-t.uid_}));var t=!1;e.forEach((function(e){var n=e.takeRecords();!function(e){e.nodes_.forEach((function(t){var n=a.get(t);n&&n.forEach((function(t){t.observer===e&&t.removeTransientObservers()}))}))}(e),n.length&&(e.callback_(n,e),t=!0)})),t&&f()}function v(e,t){for(var n=e;n;n=n.parentNode){var o=a.get(n);if(o)for(var r=0;r0){var r=w(n[o-1],e);if(r)return void(n[o-1]=r)}else t=this.observer,d.push(t),u||(u=!0,l(f));n[o]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=a.get(e);t||a.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach((function(e){this.removeListeners_(e);for(var t=a.get(e),n=0;n .vcelm-node {\n display: block;\n}\n.vcelm-l .vcelm-node:active {\n background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vcelm-l.vcelm-noc .vcelm-node:active {\n background-color: transparent;\n}\n.vcelm-t {\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n/* level */\n.vcelm-l .vcelm-l {\n display: none;\n}\n.vcelm-l.vc-toggle > .vcelm-l {\n margin-left: 4px;\n display: block;\n}\n/* arrow */\n.vcelm-l:before {\n content: "";\n display: block;\n position: absolute;\n top: 6px;\n left: 3px;\n width: 0;\n height: 0;\n border: transparent solid 3px;\n border-left-color: var(--VC-FG-1);\n}\n.vcelm-l.vc-toggle:before {\n display: block;\n top: 6px;\n left: 0;\n border-top-color: var(--VC-FG-1);\n border-left-color: transparent;\n}\n.vcelm-l.vcelm-noc:before {\n display: none;\n}\n',""]),e.exports=t},function(e,t){e.exports='
                  \n
                  \n
                  '},function(e,t,n){var o,r,i;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=[t,n(36),n(37),n(0),n(1)],void 0===(i="function"==typeof(o=function(n,o,r,i,l){"use strict";function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n-1),a=i;0==e.childNodes.length&&(a=!0);var c=l.default.render(o.default,{node:e}),s=l.default.render(r.default,{node:e});if(a)l.default.addClass(t,"vcelm-noc"),t.appendChild(c),i||t.appendChild(s);else{t.appendChild(c);for(var u=0;u<{{node.tagName.toLowerCase()}}{{if (node.className || node.attributes.length)}}\n \n {{for (var i = 0; i < node.attributes.length; i++)}}\n {{if (node.attributes[i].value !== \'\')}}\n {{node.attributes[i].name}}="{{node.attributes[i].value}}"{{else}}\n {{node.attributes[i].name}}{{/if}}{{/for}}{{/if}}>'},function(e,t){e.exports='</{{node.tagName.toLowerCase()}}>'},function(e,t,n){var o,r,i;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=[t,n(2),n(39),n(40),n(0),n(1)],void 0===(i="function"==typeof(o=function(n,o,r,i,l,c){"use strict";function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n\n
                  \n
                  '},function(e,t){e.exports='
                  \n
                  \n
                  Name
                  \n
                  Value
                  \n
                  \n {{for (var i = 0; i < list.length; i++)}}\n
                  \n
                  {{list[i].name}}
                  \n
                  {{list[i].value}}
                  \n
                  \n {{/for}}\n
                  '}])})); \ No newline at end of file diff --git a/web-v2-res/static/js/vue-content-loader.min.js b/web-res/static/js/vue-content-loader.min.js similarity index 100% rename from web-v2-res/static/js/vue-content-loader.min.js rename to web-res/static/js/vue-content-loader.min.js diff --git a/web-res/static/js/vue.min.js b/web-res/static/js/vue.min.js new file mode 100644 index 0000000..37febff --- /dev/null +++ b/web-res/static/js/vue.min.js @@ -0,0 +1,6 @@ +/*! + * Vue.js v2.5.16 + * (c) 2014-2018 Evan You + * Released under the MIT License. + */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";var y=Object.freeze({});function M(e){return null==e}function D(e){return null!=e}function S(e){return!0===e}function T(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function P(e){return null!==e&&"object"==typeof e}var r=Object.prototype.toString;function l(e){return"[object Object]"===r.call(e)}function i(e){var t=parseFloat(String(e));return 0<=t&&Math.floor(t)===t&&isFinite(e)}function t(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function F(e){var t=parseFloat(e);return isNaN(t)?e:t}function s(e,t){for(var n=Object.create(null),r=e.split(","),i=0;ie.id;)n--;bt.splice(n+1,0,e)}else bt.push(e);Ct||(Ct=!0,Ze(At))}}(this)},St.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||P(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Fe(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},St.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},St.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},St.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||f(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Tt={enumerable:!0,configurable:!0,get:$,set:$};function Et(e,t,n){Tt.get=function(){return this[t][n]},Tt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Tt)}function jt(e){e._watchers=[];var t=e.$options;t.props&&function(n,r){var i=n.$options.propsData||{},o=n._props={},a=n.$options._propKeys=[];n.$parent&&ge(!1);var e=function(e){a.push(e);var t=Ie(e,r,i,n);Ce(o,e,t),e in n||Et(n,"_props",e)};for(var t in r)e(t);ge(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?$:v(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){se();try{return e.call(t,t)}catch(e){return Fe(e,t,"data()"),{}}finally{ce()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&p(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&Et(e,"_data",o))}var a;we(t,!0)}(e):we(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Y();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new St(e,a||$,$,Nt)),i in e||Lt(e,i,o)}}(e,t.computed),t.watch&&t.watch!==G&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;iparseInt(this.max)&&bn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};$n=hn,Cn={get:function(){return j}},Object.defineProperty($n,"config",Cn),$n.util={warn:re,extend:m,mergeOptions:Ne,defineReactive:Ce},$n.set=xe,$n.delete=ke,$n.nextTick=Ze,$n.options=Object.create(null),k.forEach(function(e){$n.options[e+"s"]=Object.create(null)}),m(($n.options._base=$n).options.components,kn),$n.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(-1=a&&l()};setTimeout(function(){c\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,oo="[a-zA-Z_][\\w\\-\\.]*",ao="((?:"+oo+"\\:)?"+oo+")",so=new RegExp("^<"+ao),co=/^\s*(\/?)>/,lo=new RegExp("^<\\/"+ao+"[^>]*>"),uo=/^]+>/i,fo=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},go=/&(?:lt|gt|quot|amp);/g,_o=/&(?:lt|gt|quot|amp|#10|#9);/g,bo=s("pre,textarea",!0),$o=function(e,t){return e&&bo(e)&&"\n"===t[0]};var wo,Co,xo,ko,Ao,Oo,So,To,Eo=/^@|^v-on:/,jo=/^v-|^@|^:/,No=/([^]*?)\s+(?:in|of)\s+([^]*)/,Lo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Io=/^\(|\)$/g,Mo=/:(.*)$/,Do=/^:|^v-bind:/,Po=/\.[^.]+/g,Fo=e(eo);function Ro(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n]*>)","i")),n=i.replace(t,function(e,t,n){return r=n.length,ho(o)||"noscript"===o||(t=t.replace(//g,"$1").replace(//g,"$1")),$o(o,t)&&(t=t.slice(1)),d.chars&&d.chars(t),""});a+=i.length-n.length,i=n,A(o,a-r,a)}else{var s=i.indexOf("<");if(0===s){if(fo.test(i)){var c=i.indexOf("--\x3e");if(0<=c){d.shouldKeepComment&&d.comment(i.substring(4,c)),C(c+3);continue}}if(po.test(i)){var l=i.indexOf("]>");if(0<=l){C(l+2);continue}}var u=i.match(uo);if(u){C(u[0].length);continue}var f=i.match(lo);if(f){var p=a;C(f[0].length),A(f[1],p,a);continue}var _=x();if(_){k(_),$o(v,i)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(0<=s){for($=i.slice(s);!(lo.test($)||so.test($)||fo.test($)||po.test($)||(w=$.indexOf("<",1))<0);)s+=w,$=i.slice(s);b=i.substring(0,s),C(s)}s<0&&(b=i,i=""),d.chars&&b&&d.chars(b)}if(i===e){d.chars&&d.chars(i);break}}function C(e){a+=e,i=i.substring(e)}function x(){var e=i.match(so);if(e){var t,n,r={tagName:e[1],attrs:[],start:a};for(C(e[0].length);!(t=i.match(co))&&(n=i.match(io));)C(n[0].length),r.attrs.push(n);if(t)return r.unarySlash=t[1],C(t[0].length),r.end=a,r}}function k(e){var t=e.tagName,n=e.unarySlash;m&&("p"===v&&ro(t)&&A(v),g(t)&&v===t&&A(t));for(var r,i,o,a=y(t)||!!n,s=e.attrs.length,c=new Array(s),l=0;l-1"+("true"===d?":("+l+")":":_q("+l+","+d+")")),Ar(c,"change","var $$a="+l+",$$el=$event.target,$$c=$$el.checked?("+d+"):("+v+");if(Array.isArray($$a)){var $$v="+(f?"_n("+p+")":p)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Er(l,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Er(l,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Er(l,"$$c")+"}",null,!0);else if("input"===$&&"radio"===w)r=e,i=_,a=(o=b)&&o.number,s=Or(r,"value")||"null",Cr(r,"checked","_q("+i+","+(s=a?"_n("+s+")":s)+")"),Ar(r,"change",Er(i,s),null,!0);else if("input"===$||"textarea"===$)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?Pr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=Er(t,u);c&&(f="if($event.target.composing)return;"+f),Cr(e,"value","("+t+")"),Ar(e,l,f,null,!0),(s||a)&&Ar(e,"blur","$forceUpdate()")}(e,_,b);else if(!j.isReservedTag($))return Tr(e,_,b),!1;return!0},text:function(e,t){t.value&&Cr(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&Cr(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:to,mustUseProp:Sn,canBeLeftOpenTag:no,isReservedTag:Un,getTagNamespace:Vn,staticKeys:(Go=Wo,Go.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(","))},Qo=e(function(e){return s("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function ea(e,t){e&&(Zo=Qo(t.staticKeys||""),Xo=t.isReservedTag||O,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||c(e.tag)||!Xo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Zo)))}(t);if(1===t.type){if(!Xo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function\s*\(/,na=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ra={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ia={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},oa=function(e){return"if("+e+")return null;"},aa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:oa("$event.target !== $event.currentTarget"),ctrl:oa("!$event.ctrlKey"),shift:oa("!$event.shiftKey"),alt:oa("!$event.altKey"),meta:oa("!$event.metaKey"),left:oa("'button' in $event && $event.button !== 0"),middle:oa("'button' in $event && $event.button !== 1"),right:oa("'button' in $event && $event.button !== 2")};function sa(e,t,n){var r=t?"nativeOn:{":"on:{";for(var i in e)r+='"'+i+'":'+ca(i,e[i])+",";return r.slice(0,-1)+"}"}function ca(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return ca(t,e)}).join(",")+"]";var n=na.test(e.value),r=ta.test(e.value);if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(aa[s])o+=aa[s],ra[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=oa(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+="if(!('button' in $event)&&"+a.map(la).join("&&")+")return null;"),o&&(i+=o),"function($event){"+i+(n?"return "+e.value+"($event)":r?"return ("+e.value+")($event)":e.value)+"}"}return n||r?e.value:"function($event){"+e.value+"}"}function la(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ra[e],r=ia[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var ua={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(t,n){t.wrapData=function(e){return"_b("+e+",'"+t.tag+"',"+n.value+","+(n.modifiers&&n.modifiers.prop?"true":"false")+(n.modifiers&&n.modifiers.sync?",true":"")+")"}},cloak:$},fa=function(e){this.options=e,this.warn=e.warn||$r,this.transforms=wr(e.modules,"transformCode"),this.dataGenFns=wr(e.modules,"genData"),this.directives=m(m({},ua),e.directives);var t=e.isReservedTag||O;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]};function pa(e,t){var n=new fa(t);return{render:"with(this){return "+(e?da(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function da(e,t){if(e.staticRoot&&!e.staticProcessed)return va(e,t);if(e.once&&!e.onceProcessed)return ha(e,t);if(e.for&&!e.forProcessed)return f=t,v=(u=e).for,h=u.alias,m=u.iterator1?","+u.iterator1:"",y=u.iterator2?","+u.iterator2:"",u.forProcessed=!0,(d||"_l")+"(("+v+"),function("+h+m+y+"){return "+(p||da)(u,f)+"})";if(e.if&&!e.ifProcessed)return ma(e,t);if("template"!==e.tag||e.slotTarget){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=_a(e,t),i="_t("+n+(r?","+r:""),o=e.attrs&&"{"+e.attrs.map(function(e){return g(e.name)+":"+e.value}).join(",")+"}",a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)a=e.component,c=t,l=(s=e).inlineTemplate?null:_a(s,c,!0),n="_c("+a+","+ya(s,c)+(l?","+l:"")+")";else{var r=e.plain?void 0:ya(e,t),i=e.inlineTemplate?null:_a(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o':'
                  ',0*{padding:.5px}.layui-col-space2{margin:-1px}.layui-col-space2>*{padding:1px}.layui-col-space4{margin:-2px}.layui-col-space4>*{padding:2px}.layui-col-space5{margin:-2.5px}.layui-col-space5>*{padding:2.5px}.layui-col-space6{margin:-3px}.layui-col-space6>*{padding:3px}.layui-col-space8{margin:-4px}.layui-col-space8>*{padding:4px}.layui-col-space10{margin:-5px}.layui-col-space10>*{padding:5px}.layui-col-space12{margin:-6px}.layui-col-space12>*{padding:6px}.layui-col-space14{margin:-7px}.layui-col-space14>*{padding:7px}.layui-col-space15{margin:-7.5px}.layui-col-space15>*{padding:7.5px}.layui-col-space16{margin:-8px}.layui-col-space16>*{padding:8px}.layui-col-space18{margin:-9px}.layui-col-space18>*{padding:9px}.layui-col-space20{margin:-10px}.layui-col-space20>*{padding:10px}.layui-col-space22{margin:-11px}.layui-col-space22>*{padding:11px}.layui-col-space24{margin:-12px}.layui-col-space24>*{padding:12px}.layui-col-space25{margin:-12.5px}.layui-col-space25>*{padding:12.5px}.layui-col-space26{margin:-13px}.layui-col-space26>*{padding:13px}.layui-col-space28{margin:-14px}.layui-col-space28>*{padding:14px}.layui-col-space30{margin:-15px}.layui-col-space30>*{padding:15px}.layui-btn,.layui-input,.layui-select,.layui-textarea,.layui-upload-button{outline:0;-webkit-appearance:none;transition:all .3s;-webkit-transition:all .3s;box-sizing:border-box}.layui-elem-quote{margin-bottom:10px;padding:15px;line-height:1.6;border-left:5px solid #5fb878;border-radius:0 2px 2px 0;background-color:#fafafa}.layui-quote-nm{border-style:solid;border-width:1px;border-left-width:5px;background:0 0}.layui-elem-field{margin-bottom:10px;padding:0;border-width:1px;border-style:solid}.layui-elem-field legend{margin-left:20px;padding:0 10px;font-size:20px;font-weight:300}.layui-field-title{margin:10px 0 20px;border-width:0;border-top-width:1px}.layui-field-box{padding:15px}.layui-field-title .layui-field-box{padding:10px 0}.layui-progress{position:relative;height:6px;border-radius:20px;background-color:#eee}.layui-progress-bar{position:absolute;left:0;top:0;width:0;max-width:100%;height:6px;border-radius:20px;text-align:right;background-color:#5fb878;transition:all .3s;-webkit-transition:all .3s}.layui-progress-big,.layui-progress-big .layui-progress-bar{height:18px;line-height:18px}.layui-progress-text{position:relative;top:-20px;line-height:18px;font-size:12px;color:#5f5f5f}.layui-progress-big .layui-progress-text{position:static;padding:0 10px;color:#fff}.layui-collapse{border-width:1px;border-style:solid;border-radius:2px}.layui-colla-content,.layui-colla-item{border-top-width:1px;border-top-style:solid}.layui-colla-item:first-child{border-top:none}.layui-colla-title{position:relative;height:42px;line-height:42px;padding:0 15px 0 35px;color:#333;background-color:#fafafa;cursor:pointer;font-size:14px;overflow:hidden}.layui-colla-content{display:none;padding:10px 15px;line-height:1.6;color:#5f5f5f}.layui-colla-icon{position:absolute;left:15px;top:0;font-size:14px}.layui-card{margin-bottom:15px;border-radius:2px;background-color:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}.layui-card:last-child{margin-bottom:0}.layui-card-header{position:relative;height:42px;line-height:42px;padding:0 15px;border-bottom:1px solid #f6f6f6;color:#333;border-radius:2px 2px 0 0;font-size:14px}.layui-card-body{position:relative;padding:10px 15px;line-height:24px}.layui-card-body[pad15]{padding:15px}.layui-card-body[pad20]{padding:20px}.layui-card-body .layui-table{margin:5px 0}.layui-card .layui-tab{margin:0}.layui-panel{position:relative;border-width:1px;border-style:solid;border-radius:2px;box-shadow:1px 1px 4px rgb(0 0 0 / 8%);background-color:#fff;color:#5f5f5f}.layui-panel-window{position:relative;padding:15px;border-radius:0;border-top:5px solid #eee;background-color:#fff}.layui-auxiliar-moving{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:0 0;z-index:9999999999}.layui-bg-red{background-color:#ff5722!important;color:#fff!important}.layui-bg-orange{background-color:#ffb800!important;color:#fff!important}.layui-bg-green{background-color:#009688!important;color:#fff!important}.layui-bg-cyan{background-color:#2f4056!important;color:#fff!important}.layui-bg-blue{background-color:#1e9fff!important;color:#fff!important}.layui-bg-black{background-color:#393d49!important;color:#fff!important}.layui-bg-gray{background-color:#fafafa!important;color:#5f5f5f!important}.layui-badge-rim,.layui-border,.layui-colla-content,.layui-colla-item,.layui-collapse,.layui-elem-field,.layui-form-pane .layui-form-item[pane],.layui-form-pane .layui-form-label,.layui-input,.layui-layedit,.layui-layedit-tool,.layui-panel,.layui-quote-nm,.layui-select,.layui-tab-bar,.layui-tab-card,.layui-tab-title,.layui-tab-title .layui-this:after,.layui-textarea{border-color:#eee}.layui-border{border-width:1px;border-style:solid;color:#5f5f5f!important}.layui-border-red{border-width:1px;border-style:solid;border-color:#ff5722!important;color:#ff5722!important}.layui-border-orange{border-width:1px;border-style:solid;border-color:#ffb800!important;color:#ffb800!important}.layui-border-green{border-width:1px;border-style:solid;border-color:#009688!important;color:#009688!important}.layui-border-cyan{border-width:1px;border-style:solid;border-color:#2f4056!important;color:#2f4056!important}.layui-border-blue{border-width:1px;border-style:solid;border-color:#1e9fff!important;color:#1e9fff!important}.layui-border-black{border-width:1px;border-style:solid;border-color:#393d49!important;color:#393d49!important}.layui-timeline-item:before{background-color:#eee}.layui-text{line-height:1.6;font-size:14px;color:#5f5f5f}.layui-text h1,.layui-text h2,.layui-text h3,.layui-text h4,.layui-text h5,.layui-text h6{font-weight:500;color:#333}.layui-text h1{font-size:32px}.layui-text h2{font-size:24px}.layui-text h3{font-size:18px}.layui-text h4{font-size:16px}.layui-text h5{font-size:14px}.layui-text h6{font-size:13px}.layui-text a:not(.layui-btn){color:#01aaed}.layui-text a:not(.layui-btn):hover{text-decoration:underline}.layui-text ol,.layui-text ul{padding:5px 0 5px 15px}.layui-text ul li{margin-top:5px;list-style-type:disc}.layui-text ol li{margin-top:5px;list-style-type:decimal}.layui-text em,.layui-word-aux{color:#999!important;padding-left:5px!important;padding-right:5px!important}.layui-text p{margin:15px 0}.layui-text p:first-child{margin-top:0}.layui-text p:last-child{margin-bottom:0}.layui-text blockquote:not(.layui-elem-quote){padding:5px 15px;border-left:5px solid #eee}.layui-text pre:not(.layui-code){padding:15px;font-family:Lucida Console,Consolas,Courier New;background-color:#fafafa}.layui-font-12{font-size:12px!important}.layui-font-14{font-size:14px!important}.layui-font-16{font-size:16px!important}.layui-font-18{font-size:18px!important}.layui-font-20{font-size:20px!important}.layui-font-red{color:#ff5722!important}.layui-font-orange{color:#ffb800!important}.layui-font-green{color:#009688!important}.layui-font-cyan{color:#2f4056!important}.layui-font-blue{color:#01aaed!important}.layui-font-black{color:#000!important}.layui-font-gray{color:#c2c2c2!important}.layui-btn{display:inline-block;vertical-align:middle;height:38px;line-height:38px;border:1px solid transparent;padding:0 18px;background-color:#009688;color:#fff;white-space:nowrap;text-align:center;font-size:14px;border-radius:2px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-btn:hover{opacity:.8;filter:alpha(opacity=80);color:#fff}.layui-btn:active{opacity:1;filter:alpha(opacity=100)}.layui-btn+.layui-btn{margin-left:10px}.layui-btn-container{font-size:0}.layui-btn-container .layui-btn{margin-right:10px;margin-bottom:10px}.layui-btn-container .layui-btn+.layui-btn{margin-left:0}.layui-table .layui-btn-container .layui-btn{margin-bottom:9px}.layui-btn-radius{border-radius:100px}.layui-btn .layui-icon{padding:0 2px;vertical-align:middle\0;vertical-align:bottom}.layui-btn-primary{border-color:#d2d2d2;background:0 0;color:#5f5f5f}.layui-btn-primary:hover{border-color:#009688;color:#333}.layui-btn-normal{background-color:#1e9fff}.layui-btn-warm{background-color:#ffb800}.layui-btn-danger{background-color:#ff5722}.layui-btn-checked{background-color:#5fb878}.layui-btn-disabled,.layui-btn-disabled:active,.layui-btn-disabled:hover{border-color:#eee!important;background-color:#fbfbfb!important;color:#d2d2d2!important;cursor:not-allowed!important;opacity:1}.layui-btn-lg{height:44px;line-height:44px;padding:0 25px;font-size:16px}.layui-btn-sm{height:30px;line-height:30px;padding:0 10px;font-size:12px}.layui-btn-xs{height:22px;line-height:22px;padding:0 5px;font-size:12px}.layui-btn-xs i{font-size:12px!important}.layui-btn-group{display:inline-block;vertical-align:middle;font-size:0}.layui-btn-group .layui-btn{margin-left:0!important;margin-right:0!important;border-left:1px solid rgba(255,255,255,.5);border-radius:0}.layui-btn-group .layui-btn-primary{border-left:none}.layui-btn-group .layui-btn-primary:hover{border-color:#d2d2d2;color:#009688}.layui-btn-group .layui-btn:first-child{border-left:none;border-radius:2px 0 0 2px}.layui-btn-group .layui-btn-primary:first-child{border-left:1px solid #d2d2d2}.layui-btn-group .layui-btn:last-child{border-radius:0 2px 2px 0}.layui-btn-group .layui-btn+.layui-btn{margin-left:0}.layui-btn-group+.layui-btn-group{margin-left:10px}.layui-btn-fluid{width:100%}.layui-input,.layui-select,.layui-textarea{height:38px;line-height:1.3;line-height:38px\9;border-width:1px;border-style:solid;background-color:#fff;color:rgba(0,0,0,.85);border-radius:2px}.layui-input::-webkit-input-placeholder,.layui-select::-webkit-input-placeholder,.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-input,.layui-textarea{display:block;width:100%;padding-left:10px}.layui-input:hover,.layui-textarea:hover{border-color:#eee!important}.layui-input:focus,.layui-textarea:focus{border-color:#d2d2d2!important}.layui-textarea{position:relative;min-height:100px;height:auto;line-height:20px;padding:6px 10px;resize:vertical}.layui-select{padding:0 10px}.layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select{display:none}.layui-form [lay-ignore]{display:initial}.layui-form-item{margin-bottom:15px;clear:both;*zoom:1}.layui-form-item:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-form-label{position:relative;float:left;display:block;padding:9px 15px;width:80px;font-weight:400;line-height:20px;text-align:right}.layui-form-label-col{display:block;float:none;padding:9px 0;line-height:20px;text-align:left}.layui-form-item .layui-inline{margin-bottom:5px;margin-right:10px}.layui-input-block,.layui-input-inline{position:relative}.layui-input-block{margin-left:110px;min-height:36px}.layui-input-inline{display:inline-block;vertical-align:middle}.layui-form-item .layui-input-inline{float:left;width:190px;margin-right:10px}.layui-form-text .layui-input-inline{width:auto}.layui-form-mid{position:relative;float:left;display:block;padding:9px 0!important;line-height:20px;margin-right:10px}.layui-form-danger+.layui-form-select .layui-input,.layui-form-danger:focus{border-color:#ff5722!important}.layui-form-select{position:relative}.layui-form-select .layui-input{padding-right:30px;cursor:pointer}.layui-form-select .layui-edge{position:absolute;right:10px;top:50%;margin-top:-3px;cursor:pointer;border-width:6px;border-top-color:#c2c2c2;border-top-style:solid;transition:all .3s;-webkit-transition:all .3s}.layui-form-select dl{display:none;position:absolute;left:0;top:42px;padding:5px 0;z-index:899;min-width:100%;border:1px solid #eee;max-height:300px;overflow-y:auto;background-color:#fff;border-radius:2px;box-shadow:1px 1px 4px rgb(0 0 0 / 8%);box-sizing:border-box}.layui-form-select dl dd,.layui-form-select dl dt{padding:0 10px;line-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-form-select dl dt{font-size:12px;color:#999}.layui-form-select dl dd{cursor:pointer}.layui-form-select dl dd:hover{background-color:#f6f6f6;-webkit-transition:.5s all;transition:.5s all}.layui-form-select .layui-select-group dd{padding-left:20px}.layui-form-select dl dd.layui-select-tips{padding-left:10px!important;color:#999}.layui-form-select dl dd.layui-this{background-color:#5fb878;color:#fff}.layui-form-select dl dd.layui-disabled{background-color:#fff}.layui-form-selected dl{display:block}.layui-form-selected .layui-edge{margin-top:-9px;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.layui-form-selected .layui-edge{margin-top:-3px\0}:root .layui-form-selected .layui-edge{margin-top:-9px\0/IE9}.layui-form-selectup dl{top:auto;bottom:42px}.layui-select-none{margin:5px 0;text-align:center;color:#999}.layui-select-disabled .layui-disabled{border-color:#eee!important}.layui-select-disabled .layui-edge{border-top-color:#d2d2d2}.layui-form-checkbox{position:relative;display:inline-block;vertical-align:middle;height:30px;line-height:30px;margin-right:10px;padding-right:30px;background-color:#fff;cursor:pointer;font-size:0;-webkit-transition:.1s linear;transition:.1s linear;box-sizing:border-box}.layui-form-checkbox *{display:inline-block;vertical-align:middle}.layui-form-checkbox span{padding:0 10px;height:100%;font-size:14px;border-radius:2px 0 0 2px;background-color:#d2d2d2;color:#fff;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.layui-form-checkbox:hover span{background-color:#c2c2c2}.layui-form-checkbox i{position:absolute;right:0;top:0;width:30px;height:28px;border:1px solid #d2d2d2;border-left:none;border-radius:0 2px 2px 0;color:#fff;font-size:20px;text-align:center}.layui-form-checkbox:hover i{border-color:#c2c2c2;color:#c2c2c2}.layui-form-checked,.layui-form-checked:hover{border-color:#5fb878}.layui-form-checked span,.layui-form-checked:hover span{background-color:#5fb878}.layui-form-checked i,.layui-form-checked:hover i{color:#5fb878}.layui-form-item .layui-form-checkbox{margin-top:4px}.layui-form-checkbox[lay-skin=primary]{height:auto!important;line-height:normal!important;min-width:18px;min-height:18px;border:none!important;margin-right:0;padding-left:28px;padding-right:0;background:0 0}.layui-form-checkbox[lay-skin=primary] span{padding-left:0;padding-right:15px;line-height:18px;background:0 0;color:#5f5f5f}.layui-form-checkbox[lay-skin=primary] i{right:auto;left:0;width:16px;height:16px;line-height:16px;border:1px solid #d2d2d2;font-size:12px;border-radius:2px;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-checkbox[lay-skin=primary]:hover i{border-color:#5fb878;color:#fff}.layui-form-checked[lay-skin=primary] i{border-color:#5fb878!important;background-color:#5fb878;color:#fff}.layui-checkbox-disabled[lay-skin=primary] span{background:0 0!important;color:#c2c2c2!important}.layui-form-checked.layui-checkbox-disabled[lay-skin=primary] i{background:#eee!important;border-color:#eee!important}.layui-checkbox-disabled[lay-skin=primary]:hover i{border-color:#d2d2d2}.layui-form-item .layui-form-checkbox[lay-skin=primary]{margin-top:10px}.layui-form-switch{position:relative;display:inline-block;vertical-align:middle;height:22px;line-height:22px;min-width:35px;padding:0 5px;margin-top:8px;border:1px solid #d2d2d2;border-radius:20px;cursor:pointer;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch i{position:absolute;left:5px;top:3px;width:16px;height:16px;border-radius:20px;background-color:#d2d2d2;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch em{position:relative;top:0;width:25px;margin-left:21px;padding:0!important;text-align:center!important;color:#999!important;font-style:normal!important;font-size:12px}.layui-form-onswitch{border-color:#5fb878;background-color:#5fb878}.layui-form-onswitch i{left:100%;margin-left:-21px;background-color:#fff}.layui-form-onswitch em{margin-left:5px;margin-right:21px;color:#fff!important}.layui-checkbox-disabled{border-color:#eee!important}.layui-checkbox-disabled span{background-color:#eee!important}.layui-checkbox-disabled i{border-color:#eee!important}.layui-checkbox-disabled em{color:#d2d2d2!important}.layui-checkbox-disabled:hover i{color:#fff!important}[lay-radio]{display:none}.layui-form-radio{display:inline-block;vertical-align:middle;line-height:28px;margin:6px 10px 0 0;padding-right:10px;cursor:pointer;font-size:0}.layui-form-radio *{display:inline-block;vertical-align:middle;font-size:14px}.layui-form-radio>i{margin-right:8px;font-size:22px;color:#c2c2c2}.layui-form-radio:hover *,.layui-form-radioed,.layui-form-radioed>i{color:#5fb878}.layui-radio-disabled>i{color:#eee!important}.layui-radio-disabled *{color:#c2c2c2!important}.layui-form-pane .layui-form-label{width:110px;padding:8px 15px;height:38px;line-height:20px;border-width:1px;border-style:solid;border-radius:2px 0 0 2px;text-align:center;background-color:#fafafa;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box}.layui-form-pane .layui-input-inline{margin-left:-1px}.layui-form-pane .layui-input-block{margin-left:110px;left:-1px}.layui-form-pane .layui-input{border-radius:0 2px 2px 0}.layui-form-pane .layui-form-text .layui-form-label{float:none;width:100%;border-radius:2px;box-sizing:border-box;text-align:left}.layui-form-pane .layui-form-text .layui-input-inline{display:block;margin:0;top:-1px;clear:both}.layui-form-pane .layui-form-text .layui-input-block{margin:0;left:0;top:-1px}.layui-form-pane .layui-form-text .layui-textarea{min-height:100px;border-radius:0 0 2px 2px}.layui-form-pane .layui-form-checkbox{margin:4px 0 4px 10px}.layui-form-pane .layui-form-radio,.layui-form-pane .layui-form-switch{margin-top:6px;margin-left:10px}.layui-form-pane .layui-form-item[pane]{position:relative;border-width:1px;border-style:solid}.layui-form-pane .layui-form-item[pane] .layui-form-label{position:absolute;left:0;top:0;height:100%;border-width:0;border-right-width:1px}.layui-form-pane .layui-form-item[pane] .layui-input-inline{margin-left:110px}@media screen and (max-width:450px){.layui-form-item .layui-form-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-form-item .layui-inline{display:block;margin-right:0;margin-bottom:20px;clear:both}.layui-form-item .layui-inline:after{content:'\20';clear:both;display:block;height:0}.layui-form-item .layui-input-inline{display:block;float:none;left:-3px;width:auto!important;margin:0 0 10px 112px}.layui-form-item .layui-input-inline+.layui-form-mid{margin-left:110px;top:-5px;padding:0}.layui-form-item .layui-form-checkbox{margin-right:5px;margin-bottom:5px}}.layui-layedit{border-width:1px;border-style:solid;border-radius:2px}.layui-layedit-tool{padding:3px 5px;border-bottom-width:1px;border-bottom-style:solid;font-size:0}.layedit-tool-fixed{position:fixed;top:0;border-top:1px solid #eee}.layui-layedit-tool .layedit-tool-mid,.layui-layedit-tool .layui-icon{display:inline-block;vertical-align:middle;text-align:center;font-size:14px}.layui-layedit-tool .layui-icon{position:relative;width:32px;height:30px;line-height:30px;margin:3px 5px;border-radius:2px;color:#777;cursor:pointer;border-radius:2px}.layui-layedit-tool .layui-icon:hover{color:#393d49}.layui-layedit-tool .layui-icon:active{color:#000}.layui-layedit-tool .layedit-tool-active{background-color:#eee;color:#000}.layui-layedit-tool .layui-disabled,.layui-layedit-tool .layui-disabled:hover{color:#d2d2d2;cursor:not-allowed}.layui-layedit-tool .layedit-tool-mid{width:1px;height:18px;margin:0 10px;background-color:#d2d2d2}.layedit-tool-html{width:50px!important;font-size:30px!important}.layedit-tool-b,.layedit-tool-code,.layedit-tool-help{font-size:16px!important}.layedit-tool-d,.layedit-tool-face,.layedit-tool-image,.layedit-tool-unlink{font-size:18px!important}.layedit-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layedit-tool-file{font-size:20px!important}.layedit-tool-file input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-layedit-iframe iframe{display:block;width:100%}#LAY_layedit_code{overflow:hidden}.layui-laypage{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;margin:10px 0;font-size:0}.layui-laypage>a:first-child,.layui-laypage>a:first-child em{border-radius:2px 0 0 2px}.layui-laypage>a:last-child,.layui-laypage>a:last-child em{border-radius:0 2px 2px 0}.layui-laypage>:first-child{margin-left:0!important}.layui-laypage>:last-child{margin-right:0!important}.layui-laypage a,.layui-laypage button,.layui-laypage input,.layui-laypage select,.layui-laypage span{border:1px solid #eee}.layui-laypage a,.layui-laypage span{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding:0 15px;height:28px;line-height:28px;margin:0 -1px 5px 0;background-color:#fff;color:#333;font-size:12px}.layui-laypage a:hover{color:#009688}.layui-laypage em{font-style:normal}.layui-laypage .layui-laypage-spr{color:#999;font-weight:700}.layui-laypage a{text-decoration:none}.layui-laypage .layui-laypage-curr{position:relative}.layui-laypage .layui-laypage-curr em{position:relative;color:#fff}.layui-laypage .layui-laypage-curr .layui-laypage-em{position:absolute;left:-1px;top:-1px;padding:1px;width:100%;height:100%;background-color:#009688}.layui-laypage-em{border-radius:2px}.layui-laypage-next em,.layui-laypage-prev em{font-family:Sim sun;font-size:16px}.layui-laypage .layui-laypage-count,.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh,.layui-laypage .layui-laypage-skip{margin-left:10px;margin-right:10px;padding:0;border:none}.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh{vertical-align:top}.layui-laypage .layui-laypage-refresh i{font-size:18px;cursor:pointer}.layui-laypage select{height:22px;padding:3px;border-radius:2px;cursor:pointer}.layui-laypage .layui-laypage-skip{height:30px;line-height:30px;color:#999}.layui-laypage button,.layui-laypage input{height:30px;line-height:30px;border-radius:2px;vertical-align:top;background-color:#fff;box-sizing:border-box}.layui-laypage input{display:inline-block;width:40px;margin:0 10px;padding:0 3px;text-align:center}.layui-laypage input:focus,.layui-laypage select:focus{border-color:#009688!important}.layui-laypage button{margin-left:10px;padding:0 10px;cursor:pointer}.layui-flow-more{margin:10px 0;text-align:center;color:#999;font-size:14px}.layui-flow-more a{height:32px;line-height:32px}.layui-flow-more a *{display:inline-block;vertical-align:top}.layui-flow-more a cite{padding:0 20px;border-radius:3px;background-color:#eee;color:#333;font-style:normal}.layui-flow-more a cite:hover{opacity:.8}.layui-flow-more a i{font-size:30px;color:#737383}.layui-table{width:100%;margin:10px 0;background-color:#fff;color:#5f5f5f}.layui-table tr{transition:all .3s;-webkit-transition:all .3s}.layui-table th{text-align:left;font-weight:400}.layui-table tbody tr:hover,.layui-table thead tr,.layui-table-click,.layui-table-header,.layui-table-hover,.layui-table-mend,.layui-table-patch,.layui-table-tool,.layui-table-total,.layui-table-total tr{background-color:#fafafa}.layui-table[lay-even] tr:nth-child(even){background-color:#f2f2f2}.layui-table td,.layui-table th,.layui-table-col-set,.layui-table-fixed-r,.layui-table-grid-down,.layui-table-header,.layui-table-page,.layui-table-tips-main,.layui-table-tool,.layui-table-total,.layui-table-view,.layui-table[lay-skin=line],.layui-table[lay-skin=row]{border-width:1px;border-style:solid;border-color:#eee}.layui-table td,.layui-table th{position:relative;padding:9px 15px;min-height:20px;line-height:20px;font-size:14px}.layui-table[lay-skin=line] td,.layui-table[lay-skin=line] th{border-width:0;border-bottom-width:1px}.layui-table[lay-skin=row] td,.layui-table[lay-skin=row] th{border-width:0;border-right-width:1px}.layui-table[lay-skin=nob] td,.layui-table[lay-skin=nob] th{border:none}.layui-table img{max-width:100px}.layui-table[lay-size=lg] td,.layui-table[lay-size=lg] th{padding-top:15px;padding-right:30px;padding-bottom:15px;padding-left:30px}.layui-table-view .layui-table[lay-size=lg] .layui-table-cell{height:50px;line-height:40px}.layui-table[lay-size=sm] td,.layui-table[lay-size=sm] th{padding-top:5px;padding-right:10px;padding-bottom:5px;padding-left:10px;font-size:12px}.layui-table-view .layui-table[lay-size=sm] .layui-table-cell{height:30px;line-height:20px;padding-top:5px;padding-right:5px}.layui-table[lay-data]{display:none}.layui-table-box{position:relative;overflow:hidden}.layui-table-view{margin:10px 0}.layui-table-view .layui-table{position:relative;width:auto;margin:0;border:0;border-collapse:separate}.layui-table-view .layui-table[lay-skin=line]{border-width:0;border-right-width:1px}.layui-table-view .layui-table[lay-skin=row]{border-width:0;border-bottom-width:1px}.layui-table-view .layui-table td,.layui-table-view .layui-table th{padding:0;border-top:none;border-left:none}.layui-table-view .layui-table th.layui-unselect .layui-table-cell span{cursor:pointer}.layui-table-view .layui-table td{cursor:default}.layui-table-view .layui-table td[data-edit=text]{cursor:text}.layui-table-view .layui-form-checkbox[lay-skin=primary] i{width:18px;height:18px}.layui-table-view .layui-form-radio{line-height:0;padding:0}.layui-table-view .layui-form-radio>i{margin:0;font-size:20px}.layui-table-init{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:110}.layui-table-init .layui-icon{position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px;font-size:30px;color:#c2c2c2}.layui-table-header{border-width:0;border-bottom-width:1px;overflow:hidden}.layui-table-header .layui-table{margin-bottom:-1px}.layui-table-column{position:relative;width:100%;min-height:41px;padding:8px 16px;border-width:0;border-bottom-width:1px}.layui-table-column .layui-btn-container{margin-bottom:-8px}.layui-table-column .layui-btn-container .layui-btn{margin-right:8px;margin-bottom:8px}.layui-table-tool .layui-inline[lay-event]{position:relative;width:26px;height:26px;padding:5px;line-height:16px;margin-right:10px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool .layui-inline[lay-event]:hover{border:1px solid #999}.layui-table-tool-temp{padding-right:120px}.layui-table-tool-self{position:absolute;right:17px;top:10px}.layui-table-tool .layui-table-tool-self .layui-inline[lay-event]{margin:0 0 0 10px}.layui-table-tool-panel{position:absolute;top:29px;left:-1px;padding:5px 0;min-width:150px;min-height:40px;border:1px solid #d2d2d2;text-align:left;overflow-y:auto;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-table-tool-panel li{padding:0 10px;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{width:100%}.layui-table-tool-panel li:hover{background-color:#f6f6f6}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{padding-left:28px}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i{position:absolute;left:0;top:0}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span{padding:0}.layui-table-tool .layui-table-tool-self .layui-table-tool-panel{left:auto;right:-1px}.layui-table-col-set{position:absolute;right:0;top:0;width:20px;height:100%;border-width:0;border-left-width:1px;background-color:#fff}.layui-table-sort{width:10px;height:20px;margin-left:5px;cursor:pointer!important}.layui-table-sort .layui-edge{position:absolute;left:5px;border-width:5px}.layui-table-sort .layui-table-sort-asc{top:3px;border-top:none;border-bottom-style:solid;border-bottom-color:#b2b2b2}.layui-table-sort .layui-table-sort-asc:hover{border-bottom-color:#5f5f5f}.layui-table-sort .layui-table-sort-desc{bottom:5px;border-bottom:none;border-top-style:solid;border-top-color:#b2b2b2}.layui-table-sort .layui-table-sort-desc:hover{border-top-color:#5f5f5f}.layui-table-sort[lay-sort=asc] .layui-table-sort-asc{border-bottom-color:#000}.layui-table-sort[lay-sort=desc] .layui-table-sort-desc{border-top-color:#000}.layui-table-cell{height:38px;line-height:28px;padding:6px 15px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.layui-table-cell .layui-form-checkbox[lay-skin=primary]{top:-1px;padding:0}.layui-table-cell .layui-table-link{color:#01aaed}.layui-table-cell .layui-btn{vertical-align:inherit}.layui-table-cell[align=center]{-webkit-box-pack:center}.layui-table-cell[align=right]{-webkit-box-pack:end}.laytable-cell-checkbox,.laytable-cell-numbers,.laytable-cell-radio,.laytable-cell-space{text-align:center;-webkit-box-pack:center}.layui-table-body{position:relative;overflow:auto;margin-right:-1px;margin-bottom:-1px}.layui-table-body .layui-none{line-height:26px;padding:30px 15px;text-align:center;color:#999}.layui-table-fixed{position:absolute;left:0;top:0;z-index:101}.layui-table-fixed .layui-table-body{overflow:hidden}.layui-table-fixed-l{box-shadow:1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r{left:auto;right:-1px;border-width:0;border-left-width:1px;box-shadow:-1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r .layui-table-header{position:relative;overflow:visible}.layui-table-mend{position:absolute;right:-49px;top:0;height:100%;width:50px}.layui-table-tool{position:relative;z-index:890;width:100%;min-height:50px;line-height:30px;padding:10px 15px;border-width:0;border-bottom-width:1px}.layui-table-tool .layui-btn-container{margin-bottom:-10px}.layui-table-total{margin-bottom:-1px;border-width:0;border-top-width:1px;overflow:hidden}.layui-table-page{z-index:880;border-width:0;border-top-width:1px;margin-bottom:-1px;white-space:nowrap;overflow:hidden}.layui-table-page>div{height:26px}.layui-table-page .layui-laypage{margin:0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span{height:26px;line-height:26px;margin-bottom:10px;border:none;background:0 0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span.layui-laypage-curr{padding:0 12px}.layui-table-page .layui-laypage span{margin-left:0;padding:0}.layui-table-page .layui-laypage .layui-laypage-prev{margin-left:-11px!important}.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em{left:0;top:0;padding:0}.layui-table-page .layui-laypage button,.layui-table-page .layui-laypage input{height:26px;line-height:26px}.layui-table-page .layui-laypage input{width:40px}.layui-table-page .layui-laypage button{padding:0 10px}.layui-table-page select{height:18px}.layui-table-pagebar{float:right;line-height:23px}.layui-table-pagebar .layui-btn-sm{margin-top:-1px}.layui-table-pagebar .layui-btn-xs{margin-top:2px}.layui-table-view select[lay-ignore]{display:inline-block}.layui-table-patch .layui-table-cell{padding:0;width:30px}.layui-table-edit{position:absolute;left:0;top:0;z-index:900;min-width:100%;min-height:100%;padding:5px 14px;border-radius:0;box-shadow:1px 1px 20px rgba(0,0,0,.15);background-color:#fff}.layui-table-edit:focus{border-color:#5fb878!important}input.layui-input.layui-table-edit{height:100%}select.layui-table-edit{padding:0 0 0 10px;border-color:#d2d2d2}.layui-table-view .layui-form-checkbox,.layui-table-view .layui-form-radio,.layui-table-view .layui-form-switch{top:0;margin:0;box-sizing:content-box}.layui-table-view .layui-form-checkbox{top:-1px;height:26px;line-height:26px}.layui-table-view .layui-form-checkbox i{height:26px}.layui-table-grid .layui-table-cell{overflow:visible}.layui-table-grid-down{position:absolute;top:0;right:0;width:26px;height:100%;padding:5px 0;border-width:0;border-left-width:1px;text-align:center;background-color:#fff;color:#999;cursor:pointer}.layui-table-grid-down .layui-icon{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.layui-table-grid-down:hover{background-color:#fbfbfb}body .layui-table-tips .layui-layer-content{background:0 0;padding:0;box-shadow:0 1px 6px rgba(0,0,0,.12)}.layui-table-tips-main{margin:-49px 0 0 -1px;max-height:150px;padding:8px 15px;font-size:14px;overflow-y:scroll;background-color:#fff;color:#5f5f5f}.layui-table-tips-c{position:absolute;right:-3px;top:-13px;width:20px;height:20px;padding:3px;cursor:pointer;background-color:#5f5f5f;border-radius:50%;color:#fff}.layui-table-tips-c:hover{background-color:#777}.layui-table-tips-c:before{position:relative;right:-2px}.layui-upload-file{display:none!important;opacity:.01;filter:Alpha(opacity=1)}.layui-upload-list{margin:10px 0}.layui-upload-choose{max-width:200px;padding:0 10px;color:#999;font-size:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-upload-drag{position:relative;display:inline-block;padding:30px;border:1px dashed #e2e2e2;background-color:#fff;text-align:center;cursor:pointer;color:#999}.layui-upload-drag .layui-icon{font-size:50px;color:#009688}.layui-upload-drag[lay-over]{border-color:#009688}.layui-upload-form{display:inline-block}.layui-upload-iframe{position:absolute;width:0;height:0;border:0;visibility:hidden}.layui-upload-wrap{position:relative;display:inline-block;vertical-align:middle}.layui-upload-wrap .layui-upload-file{display:block!important;position:absolute;left:0;top:0;z-index:10;font-size:100px;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-btn-container .layui-upload-choose{padding-left:0}.layui-menu{position:relative;margin:5px 0;background-color:#fff;box-sizing:border-box}.layui-menu *{box-sizing:border-box}.layui-menu li,.layui-menu-body-title a{padding:5px 15px}.layui-menu li{position:relative;margin:1px 0;width:calc(100% + 1px);line-height:26px;color:rgba(0,0,0,.8);font-size:14px;white-space:nowrap;cursor:pointer;transition:all .3s}.layui-menu li:hover{background-color:#f6f6f6}.layui-menu-item-parent:hover>.layui-menu-body-panel{display:block;animation-name:layui-fadein;animation-duration:.3s;animation-fill-mode:both;animation-delay:.2s}.layui-menu-item-group .layui-menu-body-title,.layui-menu-item-parent .layui-menu-body-title{padding-right:25px}.layui-menu .layui-menu-item-divider:hover,.layui-menu .layui-menu-item-group:hover,.layui-menu .layui-menu-item-none:hover{background:0 0;cursor:default}.layui-menu .layui-menu-item-group>ul{margin:5px 0 -5px}.layui-menu .layui-menu-item-group>.layui-menu-body-title{color:rgba(0,0,0,.35);user-select:none}.layui-menu .layui-menu-item-none{color:rgba(0,0,0,.35);cursor:default}.layui-menu .layui-menu-item-none{text-align:center}.layui-menu .layui-menu-item-divider{margin:5px 0;padding:0;height:0;line-height:0;border-bottom:1px solid #eee;overflow:hidden}.layui-menu .layui-menu-item-down:hover,.layui-menu .layui-menu-item-up:hover{cursor:pointer}.layui-menu .layui-menu-item-up>.layui-menu-body-title{color:rgba(0,0,0,.8)}.layui-menu .layui-menu-item-up>ul{visibility:hidden;height:0;overflow:hidden}.layui-menu .layui-menu-item-down:hover>.layui-menu-body-title>.layui-icon,.layui-menu .layui-menu-item-up>.layui-menu-body-title:hover>.layui-icon{color:#000}.layui-menu .layui-menu-item-down>ul{visibility:visible;height:auto}.layui-menu .layui-menu-item-checked,.layui-menu .layui-menu-item-checked2{background-color:#f6f6f6!important;color:#5fb878}.layui-menu .layui-menu-item-checked a,.layui-menu .layui-menu-item-checked2 a{color:#5fb878}.layui-menu .layui-menu-item-checked:after{position:absolute;right:0;top:0;bottom:0;border-right:3px solid #5fb878;content:""}.layui-menu-body-title{position:relative;overflow:hidden;text-overflow:ellipsis}.layui-menu-body-title a{display:block;margin:-5px -15px;color:rgba(0,0,0,.8)}.layui-menu-body-title a:hover{transition:all .3s}.layui-menu-body-title>.layui-icon{position:absolute;right:0;top:0;font-size:14px}.layui-menu-body-title>.layui-icon:hover{transition:all .3s}.layui-menu-body-title>.layui-icon-right{right:-1px}.layui-menu-body-panel{display:none;position:absolute;top:-7px;left:100%;z-index:1000;margin-left:13px;padding:5px 0}.layui-menu-body-panel:before{content:"";position:absolute;width:20px;left:-16px;top:0;bottom:0}.layui-menu-body-panel-left{left:auto;right:100%;margin:0 13px 0}.layui-menu-body-panel-left:before{left:auto;right:-16px}.layui-menu-lg li{line-height:32px}.layui-menu-lg .layui-menu-body-title a:hover,.layui-menu-lg li:hover{background:0 0;color:#5fb878}.layui-menu-lg li .layui-menu-body-panel{margin-left:14px}.layui-menu-lg li .layui-menu-body-panel-left{margin:0 15px 0}.layui-dropdown{position:absolute;left:-999999px;top:-999999px;z-index:77777777;margin:5px 0;min-width:100px}.layui-dropdown:before{content:"";position:absolute;width:100%;height:6px;left:0;top:-6px}.layui-nav{position:relative;padding:0 20px;background-color:#393d49;color:#fff;border-radius:2px;font-size:0;box-sizing:border-box}.layui-nav *{font-size:14px}.layui-nav .layui-nav-item{position:relative;display:inline-block;*display:inline;*zoom:1;vertical-align:middle;line-height:60px}.layui-nav .layui-nav-item a{display:block;padding:0 20px;color:#fff;color:rgba(255,255,255,.7);transition:all .3s;-webkit-transition:all .3s}.layui-nav .layui-this:after,.layui-nav-bar{content:"";position:absolute;left:0;top:0;width:0;height:5px;background-color:#5fb878;transition:all .2s;-webkit-transition:all .2s;pointer-events:none}.layui-nav-bar{z-index:1000}.layui-nav[lay-bar=disabled] .layui-nav-bar{display:none}.layui-nav .layui-nav-item a:hover,.layui-nav .layui-this a{color:#fff}.layui-nav .layui-this:after{top:auto;bottom:0;width:100%}.layui-nav-img{width:30px;height:30px;margin-right:10px;border-radius:50%}.layui-nav .layui-nav-more{position:absolute;top:0;right:3px;left:auto!important;margin-top:0;font-size:12px;cursor:pointer;transition:all .2s;-webkit-transition:all .2s}.layui-nav .layui-nav-mored,.layui-nav-itemed>a .layui-nav-more{transform:rotate(180deg)}.layui-nav-child{display:none;position:absolute;left:0;top:65px;min-width:100%;line-height:36px;padding:5px 0;box-shadow:0 2px 4px rgba(0,0,0,.12);border:1px solid #eee;background-color:#fff;z-index:100;border-radius:2px;white-space:nowrap}.layui-nav .layui-nav-child a{color:#5f5f5f;color:rgba(0,0,0,.8)}.layui-nav .layui-nav-child a:hover{background-color:#f6f6f6;color:rgba(0,0,0,.8)}.layui-nav-child dd{margin:1px 0;position:relative}.layui-nav-child dd.layui-this{background-color:#f6f6f6;color:#000}.layui-nav-child dd.layui-this:after{display:none}.layui-nav-child-r{left:auto;right:0}.layui-nav-child-c{text-align:center}.layui-nav-tree{width:200px;padding:0}.layui-nav-tree .layui-nav-item{display:block;width:100%;line-height:40px}.layui-nav-tree .layui-nav-item a{position:relative;height:40px;line-height:40px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-nav-tree .layui-nav-item>a{padding-top:5px;padding-bottom:5px}.layui-nav-tree .layui-nav-more{right:15px}.layui-nav-tree .layui-nav-item>a .layui-nav-more{padding:5px 0}.layui-nav-tree .layui-nav-bar{width:5px;height:0}.layui-side .layui-nav-tree .layui-nav-bar{width:2px}.layui-nav-tree .layui-nav-child dd.layui-this,.layui-nav-tree .layui-nav-child dd.layui-this a,.layui-nav-tree .layui-this,.layui-nav-tree .layui-this>a,.layui-nav-tree .layui-this>a:hover{background-color:#009688;color:#fff}.layui-nav-tree .layui-this:after{display:none}.layui-nav-itemed>a,.layui-nav-tree .layui-nav-title a,.layui-nav-tree .layui-nav-title a:hover{color:#fff!important}.layui-nav-tree .layui-nav-bar{background-color:#009688}.layui-nav-tree .layui-nav-child{position:relative;z-index:0;top:0;border:none;box-shadow:none}.layui-nav-tree .layui-nav-child dd{margin:0}.layui-nav-tree .layui-nav-child a{color:#fff;color:rgba(255,255,255,.7)}.layui-nav-tree .layui-nav-child,.layui-nav-tree .layui-nav-child a:hover{background:0 0;color:#fff}.layui-nav-itemed>.layui-nav-child{display:block;background-color:rgba(0,0,0,.3)!important}.layui-nav-itemed>.layui-nav-child>.layui-this>.layui-nav-child{display:block}.layui-nav-side{position:fixed;top:0;bottom:0;left:0;overflow-x:hidden;z-index:999}.layui-breadcrumb{visibility:hidden;font-size:0}.layui-breadcrumb>*{font-size:14px}.layui-breadcrumb a{color:#999!important}.layui-breadcrumb a:hover{color:#5fb878!important}.layui-breadcrumb a cite{color:#5f5f5f;font-style:normal}.layui-breadcrumb span[lay-separator]{margin:0 10px;color:#999}.layui-tab{margin:10px 0;text-align:left!important}.layui-tab[overflow]>.layui-tab-title{overflow:hidden}.layui-tab-title{position:relative;left:0;height:40px;white-space:nowrap;font-size:0;border-bottom-width:1px;border-bottom-style:solid;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;font-size:14px;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{position:relative;line-height:40px;min-width:65px;padding:0 15px;text-align:center;cursor:pointer}.layui-tab-title li a{display:block;padding:0 15px;margin:0 -15px}.layui-tab-title .layui-this{color:#000}.layui-tab-title .layui-this:after{position:absolute;left:0;top:0;content:"";width:100%;height:41px;border-width:1px;border-style:solid;border-bottom-color:#fff;border-radius:2px 2px 0 0;box-sizing:border-box;pointer-events:none}.layui-tab-bar{position:absolute;right:0;top:0;z-index:10;width:30px;height:39px;line-height:39px;border-width:1px;border-style:solid;border-radius:2px;text-align:center;background-color:#fff;cursor:pointer}.layui-tab-bar .layui-icon{position:relative;display:inline-block;top:3px;transition:all .3s;-webkit-transition:all .3s}.layui-tab-item{display:none}.layui-tab-more{padding-right:30px;height:auto!important;white-space:normal!important}.layui-tab-more li.layui-this:after{border-bottom-color:#eee;border-radius:2px}.layui-tab-more .layui-tab-bar .layui-icon{top:-2px;top:3px\0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}:root .layui-tab-more .layui-tab-bar .layui-icon{top:-2px\0/IE9}.layui-tab-content{padding:15px 0}.layui-tab-title li .layui-tab-close{position:relative;display:inline-block;width:18px;height:18px;line-height:20px;margin-left:8px;top:1px;text-align:center;font-size:14px;color:#c2c2c2;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li .layui-tab-close:hover{border-radius:2px;background-color:#ff5722;color:#fff}.layui-tab-brief>.layui-tab-title .layui-this{color:#009688}.layui-tab-brief>.layui-tab-more li.layui-this:after,.layui-tab-brief>.layui-tab-title .layui-this:after{border:none;border-radius:0;border-bottom:2px solid #5fb878}.layui-tab-brief[overflow]>.layui-tab-title .layui-this:after{top:-1px}.layui-tab-card{border-width:1px;border-style:solid;border-radius:2px;box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.layui-tab-card>.layui-tab-title{background-color:#fafafa}.layui-tab-card>.layui-tab-title li{margin-right:-1px;margin-left:-1px}.layui-tab-card>.layui-tab-title .layui-this{background-color:#fff}.layui-tab-card>.layui-tab-title .layui-this:after{border-top:none;border-width:1px;border-bottom-color:#fff}.layui-tab-card>.layui-tab-title .layui-tab-bar{height:40px;line-height:40px;border-radius:0;border-top:none;border-right:none}.layui-tab-card>.layui-tab-more .layui-this{background:0 0;color:#5fb878}.layui-tab-card>.layui-tab-more .layui-this:after{border:none}.layui-timeline{padding-left:5px}.layui-timeline-item{position:relative;padding-bottom:20px}.layui-timeline-axis{position:absolute;left:-5px;top:0;z-index:10;width:20px;height:20px;line-height:20px;background-color:#fff;color:#5fb878;border-radius:50%;text-align:center;cursor:pointer}.layui-timeline-axis:hover{color:#ff5722}.layui-timeline-item:before{content:"";position:absolute;left:5px;top:0;z-index:0;width:1px;height:100%}.layui-timeline-item:first-child:before{display:block}.layui-timeline-item:last-child:before{display:none}.layui-timeline-content{padding-left:25px}.layui-timeline-title{position:relative;margin-bottom:10px;line-height:22px}.layui-badge,.layui-badge-dot,.layui-badge-rim{position:relative;display:inline-block;padding:0 6px;font-size:12px;text-align:center;background-color:#ff5722;color:#fff;border-radius:2px}.layui-badge{height:18px;line-height:18px}.layui-badge-dot{width:8px;height:8px;padding:0;border-radius:50%}.layui-badge-rim{height:18px;line-height:18px;border-width:1px;border-style:solid;background-color:#fff;color:#5f5f5f}.layui-btn .layui-badge,.layui-btn .layui-badge-dot{margin-left:5px}.layui-nav .layui-badge,.layui-nav .layui-badge-dot{position:absolute;top:50%;margin:-5px 6px 0}.layui-nav .layui-badge{margin-top:-10px}.layui-tab-title .layui-badge,.layui-tab-title .layui-badge-dot{left:5px;top:-2px}.layui-carousel{position:relative;left:0;top:0;background-color:#f8f8f8}.layui-carousel>[carousel-item]{position:relative;width:100%;height:100%;overflow:hidden}.layui-carousel>[carousel-item]:before{position:absolute;content:'\e63d';left:50%;top:50%;width:100px;line-height:20px;margin:-10px 0 0 -50px;text-align:center;color:#c2c2c2;font-family:layui-icon!important;font-size:30px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-carousel>[carousel-item]>*{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f8f8f8;transition-duration:.3s;-webkit-transition-duration:.3s}.layui-carousel-updown>*{-webkit-transition:.3s ease-in-out up;transition:.3s ease-in-out up}.layui-carousel-arrow{display:none\0;opacity:0;position:absolute;left:10px;top:50%;margin-top:-18px;width:36px;height:36px;line-height:36px;text-align:center;font-size:20px;border:none 0;border-radius:50%;background-color:rgba(0,0,0,.2);color:#fff;-webkit-transition-duration:.3s;transition-duration:.3s;cursor:pointer}.layui-carousel-arrow[lay-type=add]{left:auto!important;right:10px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow{opacity:1;left:20px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel[lay-arrow=none] .layui-carousel-arrow{display:none}.layui-carousel-arrow:hover,.layui-carousel-ind ul:hover{background-color:rgba(0,0,0,.35)}.layui-carousel:hover .layui-carousel-arrow{display:block\0;opacity:1;left:20px}.layui-carousel:hover .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel-ind{position:relative;top:-35px;width:100%;line-height:0!important;text-align:center;font-size:0}.layui-carousel[lay-indicator=outside]{margin-bottom:30px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind{top:10px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul{background-color:rgba(0,0,0,.5)}.layui-carousel[lay-indicator=none] .layui-carousel-ind{display:none}.layui-carousel-ind ul{display:inline-block;padding:5px;background-color:rgba(0,0,0,.2);border-radius:10px;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li{display:inline-block;width:10px;height:10px;margin:0 3px;font-size:14px;background-color:#eee;background-color:rgba(255,255,255,.5);border-radius:50%;cursor:pointer;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li:hover{background-color:rgba(255,255,255,.7)}.layui-carousel-ind li.layui-this{background-color:#fff}.layui-carousel>[carousel-item]>.layui-carousel-next,.layui-carousel>[carousel-item]>.layui-carousel-prev,.layui-carousel>[carousel-item]>.layui-this{display:block}.layui-carousel>[carousel-item]>.layui-this{left:0}.layui-carousel>[carousel-item]>.layui-carousel-prev{left:-100%}.layui-carousel>[carousel-item]>.layui-carousel-next{left:100%}.layui-carousel>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel>[carousel-item]>.layui-carousel-prev.layui-carousel-right{left:0}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-left{left:-100%}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-right{left:100%}.layui-carousel[lay-anim=updown] .layui-carousel-arrow{left:50%!important;top:20px;margin:0 0 0 -18px}.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add]{top:auto!important;bottom:20px}.layui-carousel[lay-anim=updown] .layui-carousel-ind{position:absolute;top:50%;right:20px;width:auto;height:auto}.layui-carousel[lay-anim=updown] .layui-carousel-ind ul{padding:3px 5px}.layui-carousel[lay-anim=updown] .layui-carousel-ind li{display:block;margin:6px 0}.layui-carousel[lay-anim=updown]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next{top:100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-left{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-right{top:100%}.layui-carousel[lay-anim=fade]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev{opacity:0}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{opacity:1}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-right{opacity:0}.layui-fixbar{position:fixed;right:15px;bottom:15px;z-index:999999}.layui-fixbar li{width:50px;height:50px;line-height:50px;margin-bottom:1px;text-align:center;cursor:pointer;font-size:30px;background-color:#9f9f9f;color:#fff;border-radius:2px;opacity:.95}.layui-fixbar li:hover{opacity:.85}.layui-fixbar li:active{opacity:1}.layui-fixbar .layui-fixbar-top{display:none;font-size:40px}body .layui-util-face{border:none;background:0 0}body .layui-util-face .layui-layer-content{padding:0;background-color:#fff;color:#5f5f5f;box-shadow:none}.layui-util-face .layui-layer-TipsG{display:none}.layui-util-face ul{position:relative;width:372px;padding:10px;border:1px solid #d9d9d9;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.2)}.layui-util-face ul li{cursor:pointer;float:left;border:1px solid #e8e8e8;height:22px;width:26px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.layui-util-face ul li:hover{position:relative;z-index:2;border:1px solid #eb7350;background:#fff9ec}.layui-code{position:relative;margin:10px 0;padding:15px;line-height:20px;border:1px solid #eee;border-left-width:6px;background-color:#fafafa;color:#333;font-family:Courier New;font-size:12px}.layui-transfer-box,.layui-transfer-header,.layui-transfer-search{border-width:0;border-style:solid;border-color:#eee}.layui-transfer-box{position:relative;display:inline-block;vertical-align:middle;border-width:1px;width:200px;height:360px;border-radius:2px;background-color:#fff}.layui-transfer-box .layui-form-checkbox{width:100%;margin:0!important}.layui-transfer-header{height:38px;line-height:38px;padding:0 10px;border-bottom-width:1px}.layui-transfer-search{position:relative;padding:10px;border-bottom-width:1px}.layui-transfer-search .layui-input{height:32px;padding-left:30px;font-size:12px}.layui-transfer-search .layui-icon-search{position:absolute;left:20px;top:50%;margin-top:-8px;color:#5f5f5f}.layui-transfer-active{margin:0 15px;display:inline-block;vertical-align:middle}.layui-transfer-active .layui-btn{display:block;margin:0;padding:0 15px;background-color:#5fb878;border-color:#5fb878;color:#fff}.layui-transfer-active .layui-btn-disabled{background-color:#fbfbfb;border-color:#eee;color:#d2d2d2}.layui-transfer-active .layui-btn:first-child{margin-bottom:15px}.layui-transfer-active .layui-btn .layui-icon{margin:0;font-size:14px!important}.layui-transfer-data{padding:5px 0;overflow:auto}.layui-transfer-data li{height:32px;line-height:32px;padding:0 10px}.layui-transfer-data li:hover{background-color:#f6f6f6;transition:.5s all}.layui-transfer-data .layui-none{padding:15px 10px;text-align:center;color:#999}.layui-rate,.layui-rate *{display:inline-block;vertical-align:middle}.layui-rate{padding:10px 5px 10px 0;font-size:0}.layui-rate li i.layui-icon{font-size:20px;color:#ffb800}.layui-rate li i.layui-icon{margin-right:5px;transition:all .3s;-webkit-transition:all .3s}.layui-rate li i:hover{cursor:pointer;transform:scale(1.12);-webkit-transform:scale(1.12)}.layui-rate[readonly] li i:hover{cursor:default;transform:scale(1)}.layui-colorpicker{width:26px;height:26px;border:1px solid #eee;padding:5px;border-radius:2px;line-height:24px;display:inline-block;cursor:pointer;transition:all .3s;-webkit-transition:all .3s}.layui-colorpicker:hover{border-color:#d2d2d2}.layui-colorpicker.layui-colorpicker-lg{width:34px;height:34px;line-height:32px}.layui-colorpicker.layui-colorpicker-sm{width:24px;height:24px;line-height:22px}.layui-colorpicker.layui-colorpicker-xs{width:22px;height:22px;line-height:20px}.layui-colorpicker-trigger-bgcolor{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);border-radius:2px}.layui-colorpicker-trigger-span{display:block;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.15);border-radius:2px;text-align:center}.layui-colorpicker-trigger-i{display:inline-block;color:#fff;font-size:12px}.layui-colorpicker-trigger-i.layui-icon-close{color:#999}.layui-colorpicker-main{position:absolute;left:-999999px;top:-999999px;z-index:77777777;width:280px;margin:5px 0;padding:7px;background:#fff;border:1px solid #d2d2d2;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-colorpicker-main-wrapper{height:180px;position:relative}.layui-colorpicker-basis{width:260px;height:100%;position:relative}.layui-colorpicker-basis-white{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.layui-colorpicker-basis-black{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(0deg,#000,transparent)}.layui-colorpicker-basis-cursor{width:10px;height:10px;border:1px solid #fff;border-radius:50%;position:absolute;top:-3px;right:-3px;cursor:pointer}.layui-colorpicker-side{position:absolute;top:0;right:0;width:12px;height:100%;background:linear-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.layui-colorpicker-side-slider{width:100%;height:5px;box-shadow:0 0 1px #888;box-sizing:border-box;background:#fff;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;left:0}.layui-colorpicker-main-alpha{display:none;height:12px;margin-top:7px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-alpha-bgcolor{height:100%;position:relative}.layui-colorpicker-alpha-slider{width:5px;height:100%;box-shadow:0 0 1px #888;box-sizing:border-box;background:#fff;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;top:0}.layui-colorpicker-main-pre{padding-top:7px;font-size:0}.layui-colorpicker-pre{width:20px;height:20px;border-radius:2px;display:inline-block;margin-left:6px;margin-bottom:7px;cursor:pointer}.layui-colorpicker-pre:nth-child(11n+1){margin-left:0}.layui-colorpicker-pre-isalpha{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-pre.layui-this{box-shadow:0 0 3px 2px rgba(0,0,0,.15)}.layui-colorpicker-pre>div{height:100%;border-radius:2px}.layui-colorpicker-main-input{text-align:right;padding-top:7px}.layui-colorpicker-main-input .layui-btn-container .layui-btn{margin:0 0 0 10px}.layui-colorpicker-main-input div.layui-inline{float:left;margin-right:10px;font-size:14px}.layui-colorpicker-main-input input.layui-input{width:150px;height:30px;color:#5f5f5f}.layui-slider{height:4px;background:#eee;border-radius:3px;position:relative;cursor:pointer}.layui-slider-bar{border-radius:3px;position:absolute;height:100%}.layui-slider-step{position:absolute;top:0;width:4px;height:4px;border-radius:50%;background:#fff;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.layui-slider-wrap{width:36px;height:36px;position:absolute;top:-16px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10;text-align:center}.layui-slider-wrap-btn{width:12px;height:12px;border-radius:50%;background:#fff;display:inline-block;vertical-align:middle;cursor:pointer;transition:.3s}.layui-slider-wrap:after{content:"";height:100%;display:inline-block;vertical-align:middle}.layui-slider-wrap-btn.layui-slider-hover,.layui-slider-wrap-btn:hover{transform:scale(1.2)}.layui-slider-wrap-btn.layui-disabled:hover{transform:scale(1)!important}.layui-slider-tips{position:absolute;top:-42px;z-index:77777777;white-space:nowrap;display:none;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#fff;background:#000;border-radius:3px;height:25px;line-height:25px;padding:0 10px}.layui-slider-tips:after{content:"";position:absolute;bottom:-12px;left:50%;margin-left:-6px;width:0;height:0;border-width:6px;border-style:solid;border-color:#000 transparent transparent transparent}.layui-slider-input{width:70px;height:32px;border:1px solid #eee;border-radius:3px;font-size:16px;line-height:32px;position:absolute;right:0;top:-14px}.layui-slider-input-btn{position:absolute;top:0;right:0;width:20px;height:100%;border-left:1px solid #eee}.layui-slider-input-btn i{cursor:pointer;position:absolute;right:0;bottom:0;width:20px;height:50%;font-size:12px;line-height:16px;text-align:center;color:#999}.layui-slider-input-btn i:first-child{top:0;border-bottom:1px solid #eee}.layui-slider-input-txt{height:100%;font-size:14px}.layui-slider-input-txt input{height:100%;border:none}.layui-slider-input-btn i:hover{color:#009688}.layui-slider-vertical{width:4px;margin-left:33px}.layui-slider-vertical .layui-slider-bar{width:4px}.layui-slider-vertical .layui-slider-step{top:auto;left:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-wrap{top:auto;left:-16px;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-tips{top:auto;left:2px}@media \0screen{.layui-slider-wrap-btn{margin-left:-20px}.layui-slider-vertical .layui-slider-wrap-btn{margin-left:0;margin-bottom:-20px}.layui-slider-vertical .layui-slider-tips{margin-left:-8px}.layui-slider>span{margin-left:8px}}.layui-tree{line-height:22px}.layui-tree .layui-form-checkbox{margin:0!important}.layui-tree-set{width:100%;position:relative}.layui-tree-pack{display:none;padding-left:20px;position:relative}.layui-tree-line .layui-tree-pack{padding-left:27px}.layui-tree-line .layui-tree-set .layui-tree-set:after{content:"";position:absolute;top:14px;left:-9px;width:17px;height:0;border-top:1px dotted #c0c4cc}.layui-tree-entry{position:relative;padding:3px 0;height:20px;white-space:nowrap}.layui-tree-entry:hover{background-color:#eee}.layui-tree-line .layui-tree-entry:hover{background-color:rgba(0,0,0,0)}.layui-tree-line .layui-tree-entry:hover .layui-tree-txt{color:#999;text-decoration:underline;transition:.3s}.layui-tree-main{display:inline-block;vertical-align:middle;cursor:pointer;padding-right:10px}.layui-tree-line .layui-tree-set:before{content:"";position:absolute;top:0;left:-9px;width:0;height:100%;border-left:1px dotted #c0c4cc}.layui-tree-line .layui-tree-set.layui-tree-setLineShort:before{height:13px}.layui-tree-line .layui-tree-set.layui-tree-setHide:before{height:0}.layui-tree-iconClick{display:inline-block;vertical-align:middle;position:relative;height:20px;line-height:20px;margin:0 10px;color:#c0c4cc}.layui-tree-icon{height:12px;line-height:12px;width:12px;text-align:center;border:1px solid #c0c4cc}.layui-tree-iconClick .layui-icon{font-size:18px}.layui-tree-icon .layui-icon{font-size:12px;color:#5f5f5f}.layui-tree-iconArrow{padding:0 5px}.layui-tree-iconArrow:after{content:"";position:absolute;left:4px;top:3px;z-index:100;width:0;height:0;border-width:5px;border-style:solid;border-color:transparent transparent transparent #c0c4cc;transition:.5s}.layui-tree-spread>.layui-tree-entry .layui-tree-iconClick>.layui-tree-iconArrow:after{transform:rotate(90deg) translate(3px,4px)}.layui-tree-txt{display:inline-block;vertical-align:middle;color:#555}.layui-tree-search{margin-bottom:15px;color:#5f5f5f}.layui-tree-btnGroup{visibility:hidden;display:inline-block;vertical-align:middle;position:relative}.layui-tree-btnGroup .layui-icon{display:inline-block;vertical-align:middle;padding:0 2px;cursor:pointer}.layui-tree-btnGroup .layui-icon:hover{color:#999;transition:.3s}.layui-tree-entry:hover .layui-tree-btnGroup{visibility:visible}.layui-tree-editInput{position:relative;display:inline-block;vertical-align:middle;height:20px;line-height:20px;padding:0 3px;border:none;background-color:rgba(0,0,0,.05)}.layui-tree-emptyText{text-align:center;color:#999}.layui-anim{-webkit-animation-duration:.3s;-webkit-animation-fill-mode:both;animation-duration:.3s;animation-fill-mode:both}.layui-anim.layui-icon{display:inline-block}.layui-anim-loop{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.layui-trans,.layui-trans a{transition:all .2s;-webkit-transition:all .2s}@-webkit-keyframes layui-rotate{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes layui-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.layui-anim-rotate{-webkit-animation-name:layui-rotate;animation-name:layui-rotate;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes layui-up{from{-webkit-transform:translate3d(0,100%,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-up{from{transform:translate3d(0,100%,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-up{-webkit-animation-name:layui-up;animation-name:layui-up}@-webkit-keyframes layui-upbit{from{-webkit-transform:translate3d(0,15px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-upbit{from{transform:translate3d(0,15px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-upbit{-webkit-animation-name:layui-upbit;animation-name:layui-upbit}@keyframes layui-down{0%{opacity:.3;transform:translate3d(0,-100%,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-down{animation-name:layui-down}@keyframes layui-downbit{0%{opacity:.3;transform:translate3d(0,-5px,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-anim-downbit{animation-name:layui-downbit}@-webkit-keyframes layui-scale{0%{opacity:.3;-webkit-transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale{0%{opacity:.3;-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-ms-transform:scale(1);transform:scale(1)}}.layui-anim-scale{-webkit-animation-name:layui-scale;animation-name:layui-scale}@-webkit-keyframes layui-scale-spring{0%{opacity:.5;-webkit-transform:scale(.5)}80%{opacity:.8;-webkit-transform:scale(1.1)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale-spring{0%{opacity:.5;transform:scale(.5)}80%{opacity:.8;transform:scale(1.1)}100%{opacity:1;transform:scale(1)}}.layui-anim-scaleSpring{-webkit-animation-name:layui-scale-spring;animation-name:layui-scale-spring}@keyframes layui-scalesmall{0%{opacity:.3;transform:scale(1.5)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall{animation-name:layui-scalesmall}@keyframes layui-scalesmall-spring{0%{opacity:.3;transform:scale(1.5)}80%{opacity:.8;transform:scale(.9)}100%{opacity:1;transform:scale(1)}}.layui-anim-scalesmall-spring{animation-name:layui-scalesmall-spring}@-webkit-keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}@keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}.layui-anim-fadein{-webkit-animation-name:layui-fadein;animation-name:layui-fadein}@-webkit-keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}@keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}.layui-anim-fadeout{-webkit-animation-name:layui-fadeout;animation-name:layui-fadeout} \ No newline at end of file diff --git a/web-res/static/layui/css/modules/code.css b/web-res/static/layui/css/modules/code.css new file mode 100644 index 0000000..a2ff92a --- /dev/null +++ b/web-res/static/layui/css/modules/code.css @@ -0,0 +1 @@ +html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-view{display:block;position:relative;margin:10px 0;padding:0;border:1px solid #eee;border-left-width:6px;background-color:#fafafa;color:#333;font-family:Courier New;font-size:13px}.layui-code-title{position:relative;padding:0 10px;height:40px;line-height:40px;border-bottom:1px solid #eee;font-size:12px}.layui-code-title>.layui-code-about{position:absolute;right:10px;top:0;color:#b7b7b7}.layui-code-about>a{padding-left:10px}.layui-code-view>.layui-code-ol,.layui-code-view>.layui-code-ul{position:relative;overflow:auto}.layui-code-view>.layui-code-ol>li{position:relative;margin-left:45px;line-height:20px;padding:0 10px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view>.layui-code-ol>li:first-child,.layui-code-view>.layui-code-ul>li:first-child{padding-top:10px}.layui-code-view>.layui-code-ol>li:last-child,.layui-code-view>.layui-code-ul>li:last-child{padding-bottom:10px}.layui-code-view>.layui-code-ul>li{position:relative;line-height:20px;padding:0 10px;list-style-type:none;*list-style-type:none;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-dark{border:1px solid #0c0c0c;border-left-color:#3f3f3f;background-color:#0c0c0c;color:#c2be9e}.layui-code-dark>.layui-code-title{border-bottom:none}.layui-code-dark>.layui-code-ol>li,.layui-code-dark>.layui-code-ul>li{background-color:#3f3f3f;border-left:none}.layui-code-dark>.layui-code-ul>li{margin-left:6px}.layui-code-demo .layui-code{visibility:visible!important;margin:-15px;border-top:none;border-right:none;border-bottom:none}.layui-code-demo .layui-tab-content{padding:15px;border-top:none} \ No newline at end of file diff --git a/web-res/static/layui/css/modules/laydate/default/laydate.css b/web-res/static/layui/css/modules/laydate/default/laydate.css new file mode 100644 index 0000000..549ccb8 --- /dev/null +++ b/web-res/static/layui/css/modules/laydate/default/laydate.css @@ -0,0 +1 @@ +html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate,.layui-laydate *{box-sizing:border-box}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@keyframes laydate-downbit{0%{opacity:.3;transform:translate3d(0,-5px,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-laydate{animation-name:laydate-downbit}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;padding:0 5px;color:#999;font-size:18px;cursor:pointer}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-set-ym span{padding:0 10px;cursor:pointer}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content th{font-weight:400}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.laydate-day-holidays:before{position:absolute;left:0;top:0;font-size:12px;transform:scale(.7)}.laydate-day-holidays:before{content:'\4F11';color:#ff5722}.laydate-day-holidays[type=work]:before{content:'\73ED';color:inherit}.layui-laydate .layui-this .laydate-day-holidays:before{color:#fff}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px}.layui-laydate-footer span{display:inline-block;vertical-align:top;height:26px;line-height:24px;padding:0 10px;border:1px solid #c9c9c9;border-radius:2px;background-color:#fff;font-size:12px;cursor:pointer;white-space:nowrap;transition:all .3s}.layui-laydate-footer span:hover{color:#5fb878}.layui-laydate-footer span.layui-laydate-preview{cursor:default;border-color:transparent!important}.layui-laydate-footer span.layui-laydate-preview:hover{color:#666}.layui-laydate-footer span:first-child.layui-laydate-preview{padding-left:0}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{margin:0 0 0 -1px}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;box-sizing:border-box;background-color:#fff}.layui-laydate-list>li{position:relative;display:inline-block;width:33.3%;height:36px;line-height:36px;margin:3px 0;vertical-align:middle;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;height:30px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px;color:#ff5722}.layui-laydate-range{width:546px}.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content,.layui-laydate-range .laydate-main-list-1 .layui-laydate-header{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5fb878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#b5fff8}.laydate-selected:hover{background-color:#00f7de!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eee;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#ff5722}.laydate-day-mark::after{background-color:#5fb878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5fb878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} \ No newline at end of file diff --git a/web-res/static/layui/css/modules/layer/default/icon-ext.png b/web-res/static/layui/css/modules/layer/default/icon-ext.png new file mode 100644 index 0000000..bbbb669 Binary files /dev/null and b/web-res/static/layui/css/modules/layer/default/icon-ext.png differ diff --git a/web-res/static/layui/css/modules/layer/default/icon.png b/web-res/static/layui/css/modules/layer/default/icon.png new file mode 100644 index 0000000..3e17da8 Binary files /dev/null and b/web-res/static/layui/css/modules/layer/default/icon.png differ diff --git a/web-res/static/layui/css/modules/layer/default/layer.css b/web-res/static/layui/css/modules/layer/default/layer.css new file mode 100644 index 0000000..d5122e3 --- /dev/null +++ b/web-res/static/layui/css/modules/layer/default/layer.css @@ -0,0 +1 @@ +html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch}.layui-layer{top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #b2b2b2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) #eee center center no-repeat}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:50px;line-height:50px;border-bottom:1px solid #f0f0f0;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:17px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2e2d3c;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2d93ca}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1e9fff;background-color:#1e9fff;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:300px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8d8d8d;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #d3d4d3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476a7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #e9e7e7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#e9e7e7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#c9c5c5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92b8b1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:260px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:300px;padding:0 20px;text-align:center;cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:51px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{background:0 0;box-shadow:none}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgnext,.layui-layer-imgprev{position:fixed;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:30px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:30px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:fixed;left:0;right:0;bottom:0;width:100%;height:40px;line-height:40px;background-color:#000\9;filter:Alpha(opacity=60);background-color:rgba(2,0,0,.35);color:#fff;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}} \ No newline at end of file diff --git a/web-res/static/layui/css/modules/layer/default/loading-0.gif b/web-res/static/layui/css/modules/layer/default/loading-0.gif new file mode 100644 index 0000000..6f3c953 Binary files /dev/null and b/web-res/static/layui/css/modules/layer/default/loading-0.gif differ diff --git a/web-res/static/layui/css/modules/layer/default/loading-1.gif b/web-res/static/layui/css/modules/layer/default/loading-1.gif new file mode 100644 index 0000000..db3a483 Binary files /dev/null and b/web-res/static/layui/css/modules/layer/default/loading-1.gif differ diff --git a/web-res/static/layui/css/modules/layer/default/loading-2.gif b/web-res/static/layui/css/modules/layer/default/loading-2.gif new file mode 100644 index 0000000..5bb90fd Binary files /dev/null and b/web-res/static/layui/css/modules/layer/default/loading-2.gif differ diff --git a/web-res/static/layui/font-ext/demo.css b/web-res/static/layui/font-ext/demo.css new file mode 100644 index 0000000..a67054a --- /dev/null +++ b/web-res/static/layui/font-ext/demo.css @@ -0,0 +1,539 @@ +/* Logo 字体 */ +@font-face { + font-family: "iconfont logo"; + src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834'); + src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'), + url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'), + url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'), + url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg'); +} + +.logo { + font-family: "iconfont logo"; + font-size: 160px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +/* tabs */ +.nav-tabs { + position: relative; +} + +.nav-tabs .nav-more { + position: absolute; + right: 0; + bottom: 0; + height: 42px; + line-height: 42px; + color: #666; +} + +#tabs { + border-bottom: 1px solid #eee; +} + +#tabs li { + cursor: pointer; + width: 100px; + height: 40px; + line-height: 40px; + text-align: center; + font-size: 16px; + border-bottom: 2px solid transparent; + position: relative; + z-index: 1; + margin-bottom: -1px; + color: #666; +} + + +#tabs .active { + border-bottom-color: #f00; + color: #222; +} + +.tab-container .content { + display: none; +} + +/* 页面布局 */ +.main { + padding: 30px 100px; + width: 960px; + margin: 0 auto; +} + +.main .logo { + color: #333; + text-align: left; + margin-bottom: 30px; + line-height: 1; + height: 110px; + margin-top: -50px; + overflow: hidden; + *zoom: 1; +} + +.main .logo a { + font-size: 160px; + color: #333; +} + +.helps { + margin-top: 40px; +} + +.helps pre { + padding: 20px; + margin: 10px 0; + border: solid 1px #e7e1cd; + background-color: #fffdef; + overflow: auto; +} + +.icon_lists { + width: 100% !important; + overflow: hidden; + *zoom: 1; +} + +.icon_lists li { + width: 100px; + margin-bottom: 10px; + margin-right: 20px; + text-align: center; + list-style: none !important; + cursor: default; +} + +.icon_lists li .code-name { + line-height: 1.2; +} + +.icon_lists .icon { + display: block; + height: 100px; + line-height: 100px; + font-size: 42px; + margin: 10px auto; + color: #333; + -webkit-transition: font-size 0.25s linear, width 0.25s linear; + -moz-transition: font-size 0.25s linear, width 0.25s linear; + transition: font-size 0.25s linear, width 0.25s linear; +} + +.icon_lists .icon:hover { + font-size: 100px; +} + +.icon_lists .svg-icon { + /* 通过设置 font-size 来改变图标大小 */ + width: 1em; + /* 图标和文字相邻时,垂直对齐 */ + vertical-align: -0.15em; + /* 通过设置 color 来改变 SVG 的颜色/fill */ + fill: currentColor; + /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示 + normalize.css 中也包含这行 */ + overflow: hidden; +} + +.icon_lists li .name, +.icon_lists li .code-name { + color: #666; +} + +/* markdown 样式 */ +.markdown { + color: #666; + font-size: 14px; + line-height: 1.8; +} + +.highlight { + line-height: 1.5; +} + +.markdown img { + vertical-align: middle; + max-width: 100%; +} + +.markdown h1 { + color: #404040; + font-weight: 500; + line-height: 40px; + margin-bottom: 24px; +} + +.markdown h2, +.markdown h3, +.markdown h4, +.markdown h5, +.markdown h6 { + color: #404040; + margin: 1.6em 0 0.6em 0; + font-weight: 500; + clear: both; +} + +.markdown h1 { + font-size: 28px; +} + +.markdown h2 { + font-size: 22px; +} + +.markdown h3 { + font-size: 16px; +} + +.markdown h4 { + font-size: 14px; +} + +.markdown h5 { + font-size: 12px; +} + +.markdown h6 { + font-size: 12px; +} + +.markdown hr { + height: 1px; + border: 0; + background: #e9e9e9; + margin: 16px 0; + clear: both; +} + +.markdown p { + margin: 1em 0; +} + +.markdown>p, +.markdown>blockquote, +.markdown>.highlight, +.markdown>ol, +.markdown>ul { + width: 80%; +} + +.markdown ul>li { + list-style: circle; +} + +.markdown>ul li, +.markdown blockquote ul>li { + margin-left: 20px; + padding-left: 4px; +} + +.markdown>ul li p, +.markdown>ol li p { + margin: 0.6em 0; +} + +.markdown ol>li { + list-style: decimal; +} + +.markdown>ol li, +.markdown blockquote ol>li { + margin-left: 20px; + padding-left: 4px; +} + +.markdown code { + margin: 0 3px; + padding: 0 5px; + background: #eee; + border-radius: 3px; +} + +.markdown strong, +.markdown b { + font-weight: 600; +} + +.markdown>table { + border-collapse: collapse; + border-spacing: 0px; + empty-cells: show; + border: 1px solid #e9e9e9; + width: 95%; + margin-bottom: 24px; +} + +.markdown>table th { + white-space: nowrap; + color: #333; + font-weight: 600; +} + +.markdown>table th, +.markdown>table td { + border: 1px solid #e9e9e9; + padding: 8px 16px; + text-align: left; +} + +.markdown>table th { + background: #F7F7F7; +} + +.markdown blockquote { + font-size: 90%; + color: #999; + border-left: 4px solid #e9e9e9; + padding-left: 0.8em; + margin: 1em 0; +} + +.markdown blockquote p { + margin: 0; +} + +.markdown .anchor { + opacity: 0; + transition: opacity 0.3s ease; + margin-left: 8px; +} + +.markdown .waiting { + color: #ccc; +} + +.markdown h1:hover .anchor, +.markdown h2:hover .anchor, +.markdown h3:hover .anchor, +.markdown h4:hover .anchor, +.markdown h5:hover .anchor, +.markdown h6:hover .anchor { + opacity: 1; + display: inline-block; +} + +.markdown>br, +.markdown>p>br { + clear: both; +} + + +.hljs { + display: block; + background: white; + padding: 0.5em; + color: #333333; + overflow-x: auto; +} + +.hljs-comment, +.hljs-meta { + color: #969896; +} + +.hljs-string, +.hljs-variable, +.hljs-template-variable, +.hljs-strong, +.hljs-emphasis, +.hljs-quote { + color: #df5000; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-type { + color: #a71d5d; +} + +.hljs-literal, +.hljs-symbol, +.hljs-bullet, +.hljs-attribute { + color: #0086b3; +} + +.hljs-section, +.hljs-name { + color: #63a35c; +} + +.hljs-tag { + color: #333333; +} + +.hljs-title, +.hljs-attr, +.hljs-selector-id, +.hljs-selector-class, +.hljs-selector-attr, +.hljs-selector-pseudo { + color: #795da3; +} + +.hljs-addition { + color: #55a532; + background-color: #eaffea; +} + +.hljs-deletion { + color: #bd2c00; + background-color: #ffecec; +} + +.hljs-link { + text-decoration: underline; +} + +/* 代码高亮 */ +/* PrismJS 1.15.0 +https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */ +/** + * prism.js default theme for JavaScript, CSS and HTML + * Based on dabblet (http://dabblet.com) + * @author Lea Verou + */ +code[class*="language-"], +pre[class*="language-"] { + color: black; + background: none; + text-shadow: 0 1px white; + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + 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; +} + +pre[class*="language-"]::-moz-selection, +pre[class*="language-"] ::-moz-selection, +code[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection { + text-shadow: none; + background: #b3d4fc; +} + +pre[class*="language-"]::selection, +pre[class*="language-"] ::selection, +code[class*="language-"]::selection, +code[class*="language-"] ::selection { + text-shadow: none; + background: #b3d4fc; +} + +@media print { + + code[class*="language-"], + pre[class*="language-"] { + text-shadow: none; + } +} + +/* Code blocks */ +pre[class*="language-"] { + padding: 1em; + margin: .5em 0; + overflow: auto; +} + +:not(pre)>code[class*="language-"], +pre[class*="language-"] { + background: #f5f2f0; +} + +/* Inline code */ +:not(pre)>code[class*="language-"] { + padding: .1em; + border-radius: .3em; + white-space: normal; +} + +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: slategray; +} + +.token.punctuation { + color: #999; +} + +.namespace { + opacity: .7; +} + +.token.property, +.token.tag, +.token.boolean, +.token.number, +.token.constant, +.token.symbol, +.token.deleted { + color: #905; +} + +.token.selector, +.token.attr-name, +.token.string, +.token.char, +.token.builtin, +.token.inserted { + color: #690; +} + +.token.operator, +.token.entity, +.token.url, +.language-css .token.string, +.style .token.string { + color: #9a6e3a; + background: hsla(0, 0%, 100%, .5); +} + +.token.atrule, +.token.attr-value, +.token.keyword { + color: #07a; +} + +.token.function, +.token.class-name { + color: #DD4A68; +} + +.token.regex, +.token.important, +.token.variable { + color: #e90; +} + +.token.important, +.token.bold { + font-weight: bold; +} + +.token.italic { + font-style: italic; +} + +.token.entity { + cursor: help; +} diff --git a/web-res/static/layui/font-ext/demo_index.html b/web-res/static/layui/font-ext/demo_index.html new file mode 100644 index 0000000..1af43a1 --- /dev/null +++ b/web-res/static/layui/font-ext/demo_index.html @@ -0,0 +1,6674 @@ + + + + + iconfont Demo + + + + + + + + + + + + + +
                  +

                  + + +

                  + +
                  +
                  +
                    + +
                  • + +
                    切换
                    +
                    &#xe6b3;
                    +
                  • + +
                  • + +
                    关闭屏幕共享
                    +
                    &#xe6b2;
                    +
                  • + +
                  • + +
                    切换屏幕分享
                    +
                    &#xe6b1;
                    +
                  • + +
                  • + +
                    关闭摄像头
                    +
                    &#xe6b0;
                    +
                  • + +
                  • + +
                    warning
                    +
                    &#xe6ae;
                    +
                  • + +
                  • + +
                    成功
                    +
                    &#xe8c3;
                    +
                  • + +
                  • + +
                    失败
                    +
                    &#xe8c5;
                    +
                  • + +
                  • + +
                    warning
                    +
                    &#xed53;
                    +
                  • + +
                  • + +
                    info-fill
                    +
                    &#xe83d;
                    +
                  • + +
                  • + +
                    合并单元格
                    +
                    &#xe6ac;
                    +
                  • + +
                  • + +
                    取消合并
                    +
                    &#xe6ab;
                    +
                  • + +
                  • + +
                    远程控制
                    +
                    &#xe6aa;
                    +
                  • + +
                  • + +
                    远程控制
                    +
                    &#xe7d4;
                    +
                  • + +
                  • + +
                    删除线
                    +
                    &#xe6a9;
                    +
                  • + +
                  • + +
                    清除格式
                    +
                    &#xe794;
                    +
                  • + +
                  • + +
                    自动换行
                    +
                    &#xe95a;
                    +
                  • + +
                  • + +
                    垂直对齐-居下对齐
                    +
                    &#xe821;
                    +
                  • + +
                  • + +
                    垂直对齐-居上对齐
                    +
                    &#xe822;
                    +
                  • + +
                  • + +
                    垂直对齐-居中对齐
                    +
                    &#xe823;
                    +
                  • + +
                  • + +
                    背景色2
                    +
                    &#xe6a8;
                    +
                  • + +
                  • + +
                    缩小
                    +
                    &#xe6a6;
                    +
                  • + +
                  • + +
                    保存
                    +
                    &#xe6a5;
                    +
                  • + +
                  • + +
                    24gl-fileEmpty
                    +
                    &#xeabf;
                    +
                  • + +
                  • + +
                    20gl-repeat2
                    +
                    &#xea51;
                    +
                  • + +
                  • + +
                    刷新
                    +
                    &#xe6a4;
                    +
                  • + +
                  • + +
                    问好
                    +
                    &#xe6a3;
                    +
                  • + +
                  • + +
                    用户分组
                    +
                    &#xe6a2;
                    +
                  • + +
                  • + +
                    空间清理2
                    +
                    &#xe6a0;
                    +
                  • + +
                  • + +
                    操作记录
                    +
                    &#xe6a1;
                    +
                  • + +
                  • + +
                    加密
                    +
                    &#xe69f;
                    +
                  • + +
                  • + +
                    筛选
                    +
                    &#xe69d;
                    +
                  • + +
                  • + +
                    大模型
                    +
                    &#xe71e;
                    +
                  • + +
                  • + +
                    知识库
                    +
                    &#xe69b;
                    +
                  • + +
                  • + +
                    智能客服
                    +
                    &#xe697;
                    +
                  • + +
                  • + +
                    机器人
                    +
                    &#xe75e;
                    +
                  • + +
                  • + +
                    客服
                    +
                    &#xe699;
                    +
                  • + +
                  • + +
                    机器人
                    +
                    &#xe78f;
                    +
                  • + +
                  • + +
                    七牛云存储
                    +
                    &#xe69a;
                    +
                  • + +
                  • + +
                    名片
                    +
                    &#xe694;
                    +
                  • + +
                  • + +
                    名片_名片夹
                    +
                    &#xe695;
                    +
                  • + +
                  • + +
                    名片
                    +
                    &#xe696;
                    +
                  • + +
                  • + +
                    常用语
                    +
                    &#xe690;
                    +
                  • + +
                  • + +
                    常用语
                    +
                    &#xe693;
                    +
                  • + +
                  • + +
                    脚印
                    +
                    &#xe68e;
                    +
                  • + +
                  • + +
                    脚印
                    +
                    &#xeb83;
                    +
                  • + +
                  • + +
                    快捷消息
                    +
                    &#xe68d;
                    +
                  • + +
                  • + +
                    群聊
                    +
                    &#xe68b;
                    +
                  • + +
                  • + +
                    回滚
                    +
                    &#xe688;
                    +
                  • + +
                  • + +
                    减少
                    +
                    &#xe689;
                    +
                  • + +
                  • + +
                    增加
                    +
                    &#xe68a;
                    +
                  • + +
                  • + +
                    回滚
                    +
                    &#xee0f;
                    +
                  • + +
                  • + +
                    保存_o
                    +
                    &#xeb47;
                    +
                  • + +
                  • + +
                    number-axis
                    +
                    &#xe675;
                    +
                  • + +
                  • + +
                    cancel-full-screen
                    +
                    &#xe677;
                    +
                  • + +
                  • + +
                    right-align
                    +
                    &#xe678;
                    +
                  • + +
                  • + +
                    left-align
                    +
                    &#xe679;
                    +
                  • + +
                  • + +
                    middle-align
                    +
                    &#xe67b;
                    +
                  • + +
                  • + +
                    full-screen
                    +
                    &#xe67f;
                    +
                  • + +
                  • + +
                    字体标题
                    +
                    &#xec84;
                    +
                  • + +
                  • + +
                    字体缩小
                    +
                    &#xe680;
                    +
                  • + +
                  • + +
                    字体放大
                    +
                    &#xe681;
                    +
                  • + +
                  • + +
                    字体颜色
                    +
                    &#xe682;
                    +
                  • + +
                  • + +
                    符号列表
                    +
                    &#xe73d;
                    +
                  • + +
                  • + +
                    编号列表
                    +
                    &#xe73c;
                    +
                  • + +
                  • + +
                    加粗@3x
                    +
                    &#xe683;
                    +
                  • + +
                  • + +
                    下划线@3x
                    +
                    &#xe684;
                    +
                  • + +
                  • + +
                    倾斜
                    +
                    &#xe686;
                    +
                  • + +
                  • + +
                    放大展示
                    +
                    &#xe671;
                    +
                  • + +
                  • + +
                    我的-关于我们
                    +
                    &#xe672;
                    +
                  • + +
                  • + +
                    腾讯云
                    +
                    &#xe6f3;
                    +
                  • + +
                  • + +
                    阿里云
                    +
                    &#xecfe;
                    +
                  • + +
                  • + +
                    云服务器
                    +
                    &#xe673;
                    +
                  • + +
                  • + +
                    添加
                    +
                    &#xe6df;
                    +
                  • + +
                  • + +
                    撤回
                    +
                    &#xe670;
                    +
                  • + +
                  • + +
                    回复
                    +
                    &#xe66e;
                    +
                  • + +
                  • + +
                    表情
                    +
                    &#xee0e;
                    +
                  • + +
                  • + +
                    抓手抓起
                    +
                    &#xe6f0;
                    +
                  • + +
                  • + +
                    代办
                    +
                    &#xe674;
                    +
                  • + +
                  • + +
                    提示
                    +
                    &#xe66d;
                    +
                  • + +
                  • + +
                    开始
                    +
                    &#xe66c;
                    +
                  • + +
                  • + +
                    防护开启
                    +
                    &#xe66b;
                    +
                  • + +
                  • + +
                    输入
                    +
                    &#xe73a;
                    +
                  • + +
                  • + +
                    文字
                    +
                    &#xe66a;
                    +
                  • + +
                  • + +
                    类型
                    +
                    &#xe665;
                    +
                  • + +
                  • + +
                    字符
                    +
                    &#xe668;
                    +
                  • + +
                  • + +
                    导航栏-设置
                    +
                    &#xe6f6;
                    +
                  • + +
                  • + +
                    拉黑
                    +
                    &#xe662;
                    +
                  • + +
                  • + +
                    拉黑-1
                    +
                    &#xe664;
                    +
                  • + +
                  • + +
                    截屏
                    +
                    &#xe661;
                    +
                  • + +
                  • + +
                    放大
                    +
                    &#xe660;
                    +
                  • + +
                  • + +
                    解锁
                    +
                    &#xe65f;
                    +
                  • + +
                  • + +
                    开始
                    +
                    &#xe788;
                    +
                  • + +
                  • + +
                    上一步
                    +
                    &#xee0d;
                    +
                  • + +
                  • + +
                    下一步
                    +
                    &#xe65b;
                    +
                  • + +
                  • + +
                    设备检测
                    +
                    &#xe67c;
                    +
                  • + +
                  • + +
                    简介
                    +
                    &#xe764;
                    +
                  • + +
                  • + +
                    会议名称
                    +
                    &#xe65a;
                    +
                  • + +
                  • + +
                    文档
                    +
                    &#xe69c;
                    +
                  • + +
                  • + +
                    文档
                    +
                    &#xe67e;
                    +
                  • + +
                  • + +
                    会议记录
                    +
                    &#xe8a0;
                    +
                  • + +
                  • + +
                    会议列表
                    +
                    &#xe687;
                    +
                  • + +
                  • + +
                    加入池子
                    +
                    &#xe73b;
                    +
                  • + +
                  • + +
                    取消收藏
                    +
                    &#xe659;
                    +
                  • + +
                  • + +
                    收藏
                    +
                    &#xe604;
                    +
                  • + +
                  • + +
                    clear
                    +
                    &#xe6d1;
                    +
                  • + +
                  • + +
                    上传
                    +
                    &#xee0c;
                    +
                  • + +
                  • + +
                    预览
                    +
                    &#xe65c;
                    +
                  • + +
                  • + +
                    下载
                    +
                    &#xe65d;
                    +
                  • + +
                  • + +
                    收藏
                    +
                    &#xe65e;
                    +
                  • + +
                  • + +
                    chongmingm
                    +
                    &#xe667;
                    +
                  • + +
                  • + +
                    移动
                    +
                    &#xe698;
                    +
                  • + +
                  • + +
                    移动
                    +
                    &#xe63e;
                    +
                  • + +
                  • + +
                    文件夹,文件
                    +
                    &#xe69e;
                    +
                  • + +
                  • + +
                    新建文件夹
                    +
                    &#xe630;
                    +
                  • + +
                  • + +
                    语音
                    +
                    &#xe8f7;
                    +
                  • + +
                  • + +
                    直播
                    +
                    &#xe7d5;
                    +
                  • + +
                  • + +
                    语音消息
                    +
                    &#xe676;
                    +
                  • + +
                  • + +
                    导出
                    +
                    &#xe658;
                    +
                  • + +
                  • + +
                    删除
                    +
                    &#xe654;
                    +
                  • + +
                  • + +
                    导入
                    +
                    &#xe655;
                    +
                  • + +
                  • + +
                    取消置顶
                    +
                    &#xe6eb;
                    +
                  • + +
                  • + +
                    移除
                    +
                    &#xe6d6;
                    +
                  • + +
                  • + +
                    标记-01
                    +
                    &#xe652;
                    +
                  • + +
                  • + +
                    邀请
                    +
                    &#xe666;
                    +
                  • + +
                  • + +
                    免打扰
                    +
                    &#xe651;
                    +
                  • + +
                  • + +
                    置顶
                    +
                    &#xe704;
                    +
                  • + +
                  • + +
                    扫码
                    +
                    &#xe749;
                    +
                  • + +
                  • + +
                    上下线-上线
                    +
                    &#xee0b;
                    +
                  • + +
                  • + +
                    关闭
                    +
                    &#xe650;
                    +
                  • + +
                  • + +
                    上下线-下线
                    +
                    &#xe738;
                    +
                  • + +
                  • + +
                    群主
                    +
                    &#xe6ad;
                    +
                  • + +
                  • + +
                    点
                    +
                    &#xe648;
                    +
                  • + +
                  • + +
                    离线
                    +
                    &#xe64d;
                    +
                  • + +
                  • + +
                    加入
                    +
                    &#xe645;
                    +
                  • + +
                  • + +
                    上传下载
                    +
                    &#xe63b;
                    +
                  • + +
                  • + +
                    上传下载
                    +
                    &#xe63c;
                    +
                  • + +
                  • + +
                    IDP-文件传输
                    +
                    &#xe6c6;
                    +
                  • + +
                  • + +
                    创建群聊
                    +
                    &#xe62c;
                    +
                  • + +
                  • + +
                    视频会议创建
                    +
                    &#xea47;
                    +
                  • + +
                  • + +
                    fdcjjrcx
                    +
                    &#xe62d;
                    +
                  • + +
                  • + +
                    跟随系统-followsystem-line
                    +
                    &#xe629;
                    +
                  • + +
                  • + +
                    明亮模式
                    +
                    &#xe628;
                    +
                  • + +
                  • + +
                    暗黑
                    +
                    &#xe62b;
                    +
                  • + +
                  • + +
                    分享
                    +
                    &#xe6a7;
                    +
                  • + +
                  • + +
                    恢复
                    +
                    &#xe6c1;
                    +
                  • + +
                  • + +
                    已收藏
                    +
                    &#xe615;
                    +
                  • + +
                  • + +
                    收藏
                    +
                    &#xe60e;
                    +
                  • + +
                  • + +
                    C#语言
                    +
                    &#xee07;
                    +
                  • + +
                  • + +
                    APK
                    +
                    &#xee09;
                    +
                  • + +
                  • + +
                    java
                    +
                    &#xee0a;
                    +
                  • + +
                  • + +
                    exe
                    +
                    &#xedfa;
                    +
                  • + +
                  • + +
                    python
                    +
                    &#xedfb;
                    +
                  • + +
                  • + +
                    CONF
                    +
                    &#xedfc;
                    +
                  • + +
                  • + +
                    json
                    +
                    &#xe801;
                    +
                  • + +
                  • + +
                    javascript
                    +
                    &#xedfd;
                    +
                  • + +
                  • + +
                    csv
                    +
                    &#xedfe;
                    +
                  • + +
                  • + +
                    dll
                    +
                    &#xedff;
                    +
                  • + +
                  • + +
                    xml文件
                    +
                    &#xee00;
                    +
                  • + +
                  • + +
                    shell
                    +
                    &#xee01;
                    +
                  • + +
                  • + +
                    PHP
                    +
                    &#xee02;
                    +
                  • + +
                  • + +
                    cpp-copy
                    +
                    &#xee03;
                    +
                  • + +
                  • + +
                    iso
                    +
                    &#xee04;
                    +
                  • + +
                  • + +
                    HTML
                    +
                    &#xee05;
                    +
                  • + +
                  • + +
                    css
                    +
                    &#xee06;
                    +
                  • + +
                  • + +
                    完成
                    +
                    &#xe627;
                    +
                  • + +
                  • + +
                    处理中
                    +
                    &#xe6b9;
                    +
                  • + +
                  • + +
                    上传
                    +
                    &#xe635;
                    +
                  • + +
                  • + +
                    会议列表
                    +
                    &#xe86b;
                    +
                  • + +
                  • + +
                    预定
                    +
                    &#xe6c5;
                    +
                  • + +
                  • + +
                    远程控制
                    +
                    &#xe644;
                    +
                  • + +
                  • + +
                    通知公告
                    +
                    &#xe624;
                    +
                  • + +
                  • + +
                    列表模式
                    +
                    &#xe603;
                    +
                  • + +
                  • + +
                    会议
                    +
                    &#xe747;
                    +
                  • + +
                  • + +
                    收藏
                    +
                    &#xe605;
                    +
                  • + +
                  • + +
                    微信
                    +
                    &#xe634;
                    +
                  • + +
                  • + +
                    line up_8px
                    +
                    &#xe692;
                    +
                  • + +
                  • + +
                    qq
                    +
                    &#xe614;
                    +
                  • + +
                  • + +
                    回收站
                    +
                    &#xe602;
                    +
                  • + +
                  • + +
                    最近浏览
                    +
                    &#xe633;
                    +
                  • + +
                  • + +
                    群聊
                    +
                    &#xe622;
                    +
                  • + +
                  • + +
                    我的文件夹
                    +
                    &#xe685;
                    +
                  • + +
                  • + +
                    权限
                    +
                    &#xe612;
                    +
                  • + +
                  • + +
                    皮肤
                    +
                    &#xe647;
                    +
                  • + +
                  • + +
                    其他
                    +
                    &#xe6d5;
                    +
                  • + +
                  • + +
                    消息
                    +
                    &#xe60f;
                    +
                  • + +
                  • + +
                    菜单
                    +
                    &#xe607;
                    +
                  • + +
                  • + +
                    帐号
                    +
                    &#xe68c;
                    +
                  • + +
                  • + +
                    挂断
                    +
                    &#xe646;
                    +
                  • + +
                  • + +
                    视频
                    +
                    &#xe85f;
                    +
                  • + +
                  • + +
                    x
                    +
                    &#xe67d;
                    +
                  • + +
                  • + +
                    分享
                    +
                    &#xe739;
                    +
                  • + +
                  • + +
                    向上2
                    +
                    &#xe76e;
                    +
                  • + +
                  • + +
                    向下2
                    +
                    &#xe772;
                    +
                  • + +
                  • + +
                    向右1
                    +
                    &#xe775;
                    +
                  • + +
                  • + +
                    向左1
                    +
                    &#xe779;
                    +
                  • + +
                  • + +
                    成功
                    +
                    &#xe649;
                    +
                  • + +
                  • + +
                    失败
                    +
                    &#xe64a;
                    +
                  • + +
                  • + +
                    警告
                    +
                    &#xe6b6;
                    +
                  • + +
                  • + +
                    企业微信
                    +
                    &#xe621;
                    +
                  • + +
                  • + +
                    手机
                    +
                    &#xe63a;
                    +
                  • + +
                  • + +
                    3.1电话
                    +
                    &#xe600;
                    +
                  • + +
                  • + +
                    白板
                    +
                    &#xe61d;
                    +
                  • + +
                  • + +
                    m-富文本
                    +
                    &#xe7d3;
                    +
                  • + +
                  • + +
                    发起聊天
                    +
                    &#xe7da;
                    +
                  • + +
                  • + +
                    更多
                    +
                    &#xe719;
                    +
                  • + +
                  • + +
                    消息
                    +
                    &#xe618;
                    +
                  • + +
                  • + +
                    通讯录
                    +
                    &#xe6af;
                    +
                  • + +
                  • + +
                    设置
                    +
                    &#xe68f;
                    +
                  • + +
                  • + +
                    会议日程
                    +
                    &#xe636;
                    +
                  • + +
                  • + +
                    文件夹
                    +
                    &#xe601;
                    +
                  • + +
                  • + +
                    退出
                    +
                    &#xe637;
                    +
                  • + +
                  • + +
                    邮件
                    +
                    &#xe653;
                    +
                  • + +
                  • + +
                    添加
                    +
                    &#xe657;
                    +
                  • + +
                  • + +
                    消息提示
                    +
                    &#xe632;
                    +
                  • + +
                  • + +
                    发现
                    +
                    &#xe669;
                    +
                  • + +
                  • + +
                    复制
                    +
                    &#xe8b0;
                    +
                  • + +
                  • + +
                    gitee
                    +
                    &#xe631;
                    +
                  • + +
                  • + +
                    剪切
                    +
                    &#xe62f;
                    +
                  • + +
                  • + +
                    错误
                    +
                    &#xe62e;
                    +
                  • + +
                  • + +
                    个人中心
                    +
                    &#xe62a;
                    +
                  • + +
                  • + +
                    相机反转
                    +
                    &#xe6de;
                    +
                  • + +
                  • + +
                    老师
                    +
                    &#xe81f;
                    +
                  • + +
                  • + +
                    11navbar_观众
                    +
                    &#xe625;
                    +
                  • + +
                  • + +
                    214声波、语音消息
                    +
                    &#xe8c4;
                    +
                  • + +
                  • + +
                    语音
                    +
                    &#xe813;
                    +
                  • + +
                  • + +
                    翻转镜头
                    +
                    &#xe872;
                    +
                  • + +
                  • + +
                    网盘
                    +
                    &#xe63d;
                    +
                  • + +
                  • + +
                    密码
                    +
                    &#xe67a;
                    +
                  • + +
                  • + +
                    录制
                    +
                    &#xe741;
                    +
                  • + +
                  • + +
                    实物-画笔
                    +
                    &#xe753;
                    +
                  • + +
                  • + +
                    ai
                    +
                    &#xe623;
                    +
                  • + +
                  • + +
                    直播
                    +
                    &#xe74f;
                    +
                  • + +
                  • + +
                    挂断电话
                    +
                    &#xe61c;
                    +
                  • + +
                  • + +
                    关闭扬声器
                    +
                    &#xe61e;
                    +
                  • + +
                  • + +
                    麦克风
                    +
                    &#xe663;
                    +
                  • + +
                  • + +
                    屏幕共享
                    +
                    &#xe746;
                    +
                  • + +
                  • + +
                    摄像头
                    +
                    &#xeca6;
                    +
                  • + +
                  • + +
                    喇叭
                    +
                    &#xe61f;
                    +
                  • + +
                  • + +
                    关闭麦克风
                    +
                    &#xe643;
                    +
                  • + +
                  • + +
                    浏览器
                    +
                    &#xe6e8;
                    +
                  • + +
                  • + +
                    三角形
                    +
                    &#xe619;
                    +
                  • + +
                  • + +
                    向上三角形
                    +
                    &#xe70f;
                    +
                  • + +
                  • + +
                    星星
                    +
                    &#xe61a;
                    +
                  • + +
                  • + +
                    星星
                    +
                    &#xe639;
                    +
                  • + +
                  • + +
                    tx-fill-平行四边形
                    +
                    &#xe64c;
                    +
                  • + +
                  • + +
                    tx-fill-六边形
                    +
                    &#xe64b;
                    +
                  • + +
                  • + +
                    平行四边形
                    +
                    &#xedf9;
                    +
                  • + +
                  • + +
                    六边形
                    +
                    &#xe61b;
                    +
                  • + +
                  • + +
                    github
                    +
                    &#xe66f;
                    +
                  • + +
                  • + +
                    文件类型-Excel
                    +
                    &#xe602;
                    +
                  • + +
                  • + +
                    文件类型-文件夹
                    +
                    &#xe603;
                    +
                  • + +
                  • + +
                    文件类型-Word
                    +
                    &#xe605;
                    +
                  • + +
                  • + +
                    文件类型-PPT
                    +
                    &#xe606;
                    +
                  • + +
                  • + +
                    文件类型-音频
                    +
                    &#xe607;
                    +
                  • + +
                  • + +
                    文件类型-程序
                    +
                    &#xe608;
                    +
                  • + +
                  • + +
                    文件类型-视频
                    +
                    &#xe609;
                    +
                  • + +
                  • + +
                    文件类型-链接
                    +
                    &#xe60a;
                    +
                  • + +
                  • + +
                    文件类型-图片
                    +
                    &#xe60b;
                    +
                  • + +
                  • + +
                    文件类型-压缩包
                    +
                    &#xe60c;
                    +
                  • + +
                  • + +
                    文件类型-未知文件
                    +
                    &#xe60d;
                    +
                  • + +
                  • + +
                    文件类型-Pdf
                    +
                    &#xe610;
                    +
                  • + +
                  • + +
                    文件类型-Txt
                    +
                    &#xe611;
                    +
                  • + +
                  • + +
                    文件类型-WPS
                    +
                    &#xe612;
                    +
                  • + +
                  • + +
                    文件类型-数据库
                    +
                    &#xe613;
                    +
                  • + +
                  • + +
                    文件类型-3D
                    +
                    &#xe614;
                    +
                  • + +
                  • + +
                    文件类型-邮件
                    +
                    &#xe616;
                    +
                  • + +
                  • + +
                    文件类型-配置文件
                    +
                    &#xe617;
                    +
                  • + +
                  • + +
                    WIFI
                    +
                    &#xe700;
                    +
                  • + +
                  • + +
                    红包
                    +
                    &#xe656;
                    +
                  • + +
                  • + +
                    圆角矩形
                    +
                    &#xe64e;
                    +
                  • + +
                  • + +
                    圆形
                    +
                    &#xe64f;
                    +
                  • + +
                  • + +
                    橡皮擦
                    +
                    &#xe6b8;
                    +
                  • + +
                  • + +
                    文字
                    +
                    &#xe6ec;
                    +
                  • + +
                  • + +
                    矩形
                    +
                    &#xe620;
                    +
                  • + +
                  • + +
                    圆形
                    +
                    &#xe626;
                    +
                  • + +
                  • + +
                    下载
                    +
                    &#xe638;
                    +
                  • + +
                  • + +
                    图片
                    +
                    &#xe691;
                    +
                  • + +
                  • + +
                    工具
                    +
                    &#xe6cf;
                    +
                  • + +
                  • + +
                    5g
                    +
                    &#xe63f;
                    +
                  • + +
                  • + +
                    3g
                    +
                    &#xe640;
                    +
                  • + +
                  • + +
                    4g
                    +
                    &#xe641;
                    +
                  • + +
                  • + +
                    2g
                    +
                    &#xe642;
                    +
                  • + +
                  +
                  +

                  Unicode 引用

                  +
                  + +

                  Unicode 是字体在网页端最原始的应用方式,特点是:

                  +
                    +
                  • 支持按字体的方式去动态调整图标大小,颜色等等。
                  • +
                  • 默认情况下不支持多色,直接添加多色图标会自动去色。
                  • +
                  +
                  +

                  注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)

                  +
                  +

                  Unicode 使用步骤如下:

                  +

                  第一步:拷贝项目下面生成的 @font-face

                  +
                  @font-face {
                  +  font-family: 'iconfont';
                  +  src: url('iconfont.woff2?t=1746336417071') format('woff2'),
                  +       url('iconfont.woff?t=1746336417071') format('woff'),
                  +       url('iconfont.ttf?t=1746336417071') format('truetype');
                  +}
                  +
                  +

                  第二步:定义使用 iconfont 的样式

                  +
                  .iconfont {
                  +  font-family: "iconfont" !important;
                  +  font-size: 16px;
                  +  font-style: normal;
                  +  -webkit-font-smoothing: antialiased;
                  +  -moz-osx-font-smoothing: grayscale;
                  +}
                  +
                  +

                  第三步:挑选相应图标并获取字体编码,应用于页面

                  +
                  +<span class="iconfont">&#x33;</span>
                  +
                  +
                  +

                  "iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

                  +
                  +
                  +
                  +
                  +
                    + +
                  • + +
                    + 切换 +
                    +
                    .tl-rtc-app-icon-qiehuan +
                    +
                  • + +
                  • + +
                    + 关闭屏幕共享 +
                    +
                    .tl-rtc-app-icon-guanbipingmugongxiang +
                    +
                  • + +
                  • + +
                    + 切换屏幕分享 +
                    +
                    .tl-rtc-app-icon-svg +
                    +
                  • + +
                  • + +
                    + 关闭摄像头 +
                    +
                    .tl-rtc-app-icon-guanbishexiangtou +
                    +
                  • + +
                  • + +
                    + warning +
                    +
                    .tl-rtc-app-icon-warning1 +
                    +
                  • + +
                  • + +
                    + 成功 +
                    +
                    .tl-rtc-app-icon-chenggong +
                    +
                  • + +
                  • + +
                    + 失败 +
                    +
                    .tl-rtc-app-icon-shibai +
                    +
                  • + +
                  • + +
                    + warning +
                    +
                    .tl-rtc-app-icon-warning +
                    +
                  • + +
                  • + +
                    + info-fill +
                    +
                    .tl-rtc-app-icon-info-fill +
                    +
                  • + +
                  • + +
                    + 合并单元格 +
                    +
                    .tl-rtc-app-icon-hebingdanyuange1 +
                    +
                  • + +
                  • + +
                    + 取消合并 +
                    +
                    .tl-rtc-app-icon-a-22quxiaohebingdanyuange +
                    +
                  • + +
                  • + +
                    + 远程控制 +
                    +
                    .tl-rtc-app-icon-yuanchengkongzhi1 +
                    +
                  • + +
                  • + +
                    + 远程控制 +
                    +
                    .tl-rtc-app-icon-yuanchengkongzhi2 +
                    +
                  • + +
                  • + +
                    + 删除线 +
                    +
                    .tl-rtc-app-icon-strikethrough +
                    +
                  • + +
                  • + +
                    + 清除格式 +
                    +
                    .tl-rtc-app-icon-qingchugeshi +
                    +
                  • + +
                  • + +
                    + 自动换行 +
                    +
                    .tl-rtc-app-icon-zidonghuanhang +
                    +
                  • + +
                  • + +
                    + 垂直对齐-居下对齐 +
                    +
                    .tl-rtc-app-icon-chuizhiduiqi-juxiaduiqi +
                    +
                  • + +
                  • + +
                    + 垂直对齐-居上对齐 +
                    +
                    .tl-rtc-app-icon-chuizhiduiqi-jushangduiqi +
                    +
                  • + +
                  • + +
                    + 垂直对齐-居中对齐 +
                    +
                    .tl-rtc-app-icon-chuizhiduiqi-juzhongduiqi +
                    +
                  • + +
                  • + +
                    + 背景色2 +
                    +
                    .tl-rtc-app-icon-biankuangyanse +
                    +
                  • + +
                  • + +
                    + 缩小 +
                    +
                    .tl-rtc-app-icon-suoxiao +
                    +
                  • + +
                  • + +
                    + 保存 +
                    +
                    .tl-rtc-app-icon-baocun +
                    +
                  • + +
                  • + +
                    + 24gl-fileEmpty +
                    +
                    .tl-rtc-app-icon-a24gl-fileEmpty +
                    +
                  • + +
                  • + +
                    + 20gl-repeat2 +
                    +
                    .tl-rtc-app-icon-a20gl-repeat2 +
                    +
                  • + +
                  • + +
                    + 刷新 +
                    +
                    .tl-rtc-app-icon-shuaxin +
                    +
                  • + +
                  • + +
                    + 问好 +
                    +
                    .tl-rtc-app-icon-wenhao +
                    +
                  • + +
                  • + +
                    + 用户分组 +
                    +
                    .tl-rtc-app-icon-pingtaiiconhuizong_huaban1fuben5 +
                    +
                  • + +
                  • + +
                    + 空间清理2 +
                    +
                    .tl-rtc-app-icon-kongjianqingli +
                    +
                  • + +
                  • + +
                    + 操作记录 +
                    +
                    .tl-rtc-app-icon-caozuojilu1 +
                    +
                  • + +
                  • + +
                    + 加密 +
                    +
                    .tl-rtc-app-icon-jiami +
                    +
                  • + +
                  • + +
                    + 筛选 +
                    +
                    .tl-rtc-app-icon-shaixuan +
                    +
                  • + +
                  • + +
                    + 大模型 +
                    +
                    .tl-rtc-app-icon-damoxing +
                    +
                  • + +
                  • + +
                    + 知识库 +
                    +
                    .tl-rtc-app-icon-zhishi +
                    +
                  • + +
                  • + +
                    + 智能客服 +
                    +
                    .tl-rtc-app-icon-zhinengkefu +
                    +
                  • + +
                  • + +
                    + 机器人 +
                    +
                    .tl-rtc-app-icon-robot6 +
                    +
                  • + +
                  • + +
                    + 客服 +
                    +
                    .tl-rtc-app-icon-kefu +
                    +
                  • + +
                  • + +
                    + 机器人 +
                    +
                    .tl-rtc-app-icon-jiqiren +
                    +
                  • + +
                  • + +
                    + 七牛云存储 +
                    +
                    .tl-rtc-app-icon-qiniuyuncunchu +
                    +
                  • + +
                  • + +
                    + 名片 +
                    +
                    .tl-rtc-app-icon-mingpian +
                    +
                  • + +
                  • + +
                    + 名片_名片夹 +
                    +
                    .tl-rtc-app-icon-mingpian_mingpianjia-78 +
                    +
                  • + +
                  • + +
                    + 名片 +
                    +
                    .tl-rtc-app-icon-mingpian1 +
                    +
                  • + +
                  • + +
                    + 常用语 +
                    +
                    .tl-rtc-app-icon-changyongyu +
                    +
                  • + +
                  • + +
                    + 常用语 +
                    +
                    .tl-rtc-app-icon-changyongyu1 +
                    +
                  • + +
                  • + +
                    + 脚印 +
                    +
                    .tl-rtc-app-icon-jiaoyin +
                    +
                  • + +
                  • + +
                    + 脚印 +
                    +
                    .tl-rtc-app-icon-jiaoyin1 +
                    +
                  • + +
                  • + +
                    + 快捷消息 +
                    +
                    .tl-rtc-app-icon-huihua- +
                    +
                  • + +
                  • + +
                    + 群聊 +
                    +
                    .tl-rtc-app-icon-qunliao1 +
                    +
                  • + +
                  • + +
                    + 回滚 +
                    +
                    .tl-rtc-app-icon-huigun +
                    +
                  • + +
                  • + +
                    + 减少 +
                    +
                    .tl-rtc-app-icon-jianshao +
                    +
                  • + +
                  • + +
                    + 增加 +
                    +
                    .tl-rtc-app-icon-zengjia +
                    +
                  • + +
                  • + +
                    + 回滚 +
                    +
                    .tl-rtc-app-icon-huigun-copy +
                    +
                  • + +
                  • + +
                    + 保存_o +
                    +
                    .tl-rtc-app-icon-baocun_o +
                    +
                  • + +
                  • + +
                    + number-axis +
                    +
                    .tl-rtc-app-icon-shuzhou +
                    +
                  • + +
                  • + +
                    + cancel-full-screen +
                    +
                    .tl-rtc-app-icon-shouqiquanping +
                    +
                  • + +
                  • + +
                    + right-align +
                    +
                    .tl-rtc-app-icon-youduiqi +
                    +
                  • + +
                  • + +
                    + left-align +
                    +
                    .tl-rtc-app-icon-zuoduiqi +
                    +
                  • + +
                  • + +
                    + middle-align +
                    +
                    .tl-rtc-app-icon-juzhongduiqi +
                    +
                  • + +
                  • + +
                    + full-screen +
                    +
                    .tl-rtc-app-icon-quanping +
                    +
                  • + +
                  • + +
                    + 字体标题 +
                    +
                    .tl-rtc-app-icon-zitibiaoti +
                    +
                  • + +
                  • + +
                    + 字体缩小 +
                    +
                    .tl-rtc-app-icon-zitisuoxiao +
                    +
                  • + +
                  • + +
                    + 字体放大 +
                    +
                    .tl-rtc-app-icon-zitifangda +
                    +
                  • + +
                  • + +
                    + 字体颜色 +
                    +
                    .tl-rtc-app-icon-zitiyanse +
                    +
                  • + +
                  • + +
                    + 符号列表 +
                    +
                    .tl-rtc-app-icon-format_list_bulleted_black_24dp +
                    +
                  • + +
                  • + +
                    + 编号列表 +
                    +
                    .tl-rtc-app-icon-format_list_numbered_black_24dp +
                    +
                  • + +
                  • + +
                    + 加粗@3x +
                    +
                    .tl-rtc-app-icon-a-jiacu3x +
                    +
                  • + +
                  • + +
                    + 下划线@3x +
                    +
                    .tl-rtc-app-icon-a-xiahuaxian3x +
                    +
                  • + +
                  • + +
                    + 倾斜 +
                    +
                    .tl-rtc-app-icon-qingxie +
                    +
                  • + +
                  • + +
                    + 放大展示 +
                    +
                    .tl-rtc-app-icon-fangdazhanshi +
                    +
                  • + +
                  • + +
                    + 我的-关于我们 +
                    +
                    .tl-rtc-app-icon-wode-guanyuwomen +
                    +
                  • + +
                  • + +
                    + 腾讯云 +
                    +
                    .tl-rtc-app-icon-tengxunyun +
                    +
                  • + +
                  • + +
                    + 阿里云 +
                    +
                    .tl-rtc-app-icon-aliyun +
                    +
                  • + +
                  • + +
                    + 云服务器 +
                    +
                    .tl-rtc-app-icon-yunfuwuqi +
                    +
                  • + +
                  • + +
                    + 添加 +
                    +
                    .tl-rtc-app-icon-tianjia1 +
                    +
                  • + +
                  • + +
                    + 撤回 +
                    +
                    .tl-rtc-app-icon-chehui +
                    +
                  • + +
                  • + +
                    + 回复 +
                    +
                    .tl-rtc-app-icon-huifu1 +
                    +
                  • + +
                  • + +
                    + 表情 +
                    +
                    .tl-rtc-app-icon-biaoqing +
                    +
                  • + +
                  • + +
                    + 抓手抓起 +
                    +
                    .tl-rtc-app-icon-zhuashouzhuaqi +
                    +
                  • + +
                  • + +
                    + 代办 +
                    +
                    .tl-rtc-app-icon-daiban +
                    +
                  • + +
                  • + +
                    + 提示 +
                    +
                    .tl-rtc-app-icon-tishi +
                    +
                  • + +
                  • + +
                    + 开始 +
                    +
                    .tl-rtc-app-icon-kaishi1 +
                    +
                  • + +
                  • + +
                    + 防护开启 +
                    +
                    .tl-rtc-app-icon-fanghukaiqi +
                    +
                  • + +
                  • + +
                    + 输入 +
                    +
                    .tl-rtc-app-icon-shuru +
                    +
                  • + +
                  • + +
                    + 文字 +
                    +
                    .tl-rtc-app-icon-wenzi1 +
                    +
                  • + +
                  • + +
                    + 类型 +
                    +
                    .tl-rtc-app-icon-leixing +
                    +
                  • + +
                  • + +
                    + 字符 +
                    +
                    .tl-rtc-app-icon-zifu +
                    +
                  • + +
                  • + +
                    + 导航栏-设置 +
                    +
                    .tl-rtc-app-icon-a-fenzu32 +
                    +
                  • + +
                  • + +
                    + 拉黑 +
                    +
                    .tl-rtc-app-icon-lahei +
                    +
                  • + +
                  • + +
                    + 拉黑-1 +
                    +
                    .tl-rtc-app-icon-lahei-1 +
                    +
                  • + +
                  • + +
                    + 截屏 +
                    +
                    .tl-rtc-app-icon-jieping +
                    +
                  • + +
                  • + +
                    + 放大 +
                    +
                    .tl-rtc-app-icon-fangda +
                    +
                  • + +
                  • + +
                    + 解锁 +
                    +
                    .tl-rtc-app-icon-jiesuo +
                    +
                  • + +
                  • + +
                    + 开始 +
                    +
                    .tl-rtc-app-icon-kaishi +
                    +
                  • + +
                  • + +
                    + 上一步 +
                    +
                    .tl-rtc-app-icon-shangyibu-01 +
                    +
                  • + +
                  • + +
                    + 下一步 +
                    +
                    .tl-rtc-app-icon-xiayibu-01 +
                    +
                  • + +
                  • + +
                    + 设备检测 +
                    +
                    .tl-rtc-app-icon-shebeijiance +
                    +
                  • + +
                  • + +
                    + 简介 +
                    +
                    .tl-rtc-app-icon-jianjie +
                    +
                  • + +
                  • + +
                    + 会议名称 +
                    +
                    .tl-rtc-app-icon-huiyimingcheng +
                    +
                  • + +
                  • + +
                    + 文档 +
                    +
                    .tl-rtc-app-icon-wendang +
                    +
                  • + +
                  • + +
                    + 文档 +
                    +
                    .tl-rtc-app-icon-wendang1 +
                    +
                  • + +
                  • + +
                    + 会议记录 +
                    +
                    .tl-rtc-app-icon-huiyijilu +
                    +
                  • + +
                  • + +
                    + 会议列表 +
                    +
                    .tl-rtc-app-icon-huiyiliebiao +
                    +
                  • + +
                  • + +
                    + 加入池子 +
                    +
                    .tl-rtc-app-icon-jiaruchizi +
                    +
                  • + +
                  • + +
                    + 取消收藏 +
                    +
                    .tl-rtc-app-icon-ziyuan +
                    +
                  • + +
                  • + +
                    + 收藏 +
                    +
                    .tl-rtc-app-icon-shoucang3 +
                    +
                  • + +
                  • + +
                    + clear +
                    +
                    .tl-rtc-app-icon-clear +
                    +
                  • + +
                  • + +
                    + 上传 +
                    +
                    .tl-rtc-app-icon-shangchuan11 +
                    +
                  • + +
                  • + +
                    + 预览 +
                    +
                    .tl-rtc-app-icon-yulan +
                    +
                  • + +
                  • + +
                    + 下载 +
                    +
                    .tl-rtc-app-icon-xiazai- +
                    +
                  • + +
                  • + +
                    + 收藏 +
                    +
                    .tl-rtc-app-icon-shoucang2 +
                    +
                  • + +
                  • + +
                    + chongmingm +
                    +
                    .tl-rtc-app-icon-chongmingm +
                    +
                  • + +
                  • + +
                    + 移动 +
                    +
                    .tl-rtc-app-icon-yidong +
                    +
                  • + +
                  • + +
                    + 移动 +
                    +
                    .tl-rtc-app-icon-yidong1 +
                    +
                  • + +
                  • + +
                    + 文件夹,文件 +
                    +
                    .tl-rtc-app-icon-a-wenjianjiawenjian +
                    +
                  • + +
                  • + +
                    + 新建文件夹 +
                    +
                    .tl-rtc-app-icon-xinjianwenjianjia +
                    +
                  • + +
                  • + +
                    + 语音 +
                    +
                    .tl-rtc-app-icon-yuyin1 +
                    +
                  • + +
                  • + +
                    + 直播 +
                    +
                    .tl-rtc-app-icon-zhibo1 +
                    +
                  • + +
                  • + +
                    + 语音消息 +
                    +
                    .tl-rtc-app-icon-yuyinxiaoxi +
                    +
                  • + +
                  • + +
                    + 导出 +
                    +
                    .tl-rtc-app-icon-daochu +
                    +
                  • + +
                  • + +
                    + 删除 +
                    +
                    .tl-rtc-app-icon-shanchu +
                    +
                  • + +
                  • + +
                    + 导入 +
                    +
                    .tl-rtc-app-icon-daoru +
                    +
                  • + +
                  • + +
                    + 取消置顶 +
                    +
                    .tl-rtc-app-icon-quxiaozhiding +
                    +
                  • + +
                  • + +
                    + 移除 +
                    +
                    .tl-rtc-app-icon-yichu +
                    +
                  • + +
                  • + +
                    + 标记-01 +
                    +
                    .tl-rtc-app-icon-biaoji- +
                    +
                  • + +
                  • + +
                    + 邀请 +
                    +
                    .tl-rtc-app-icon-yaoqing +
                    +
                  • + +
                  • + +
                    + 免打扰 +
                    +
                    .tl-rtc-app-icon-miandarao +
                    +
                  • + +
                  • + +
                    + 置顶 +
                    +
                    .tl-rtc-app-icon-zhiding1 +
                    +
                  • + +
                  • + +
                    + 扫码 +
                    +
                    .tl-rtc-app-icon-saoma +
                    +
                  • + +
                  • + +
                    + 上下线-上线 +
                    +
                    .tl-rtc-app-icon-shangxiaxian-shangxian-copy +
                    +
                  • + +
                  • + +
                    + 关闭 +
                    +
                    .tl-rtc-app-icon-guanbi +
                    +
                  • + +
                  • + +
                    + 上下线-下线 +
                    +
                    .tl-rtc-app-icon-shangxiaxian-xiaxian +
                    +
                  • + +
                  • + +
                    + 群主 +
                    +
                    .tl-rtc-app-icon-qunzhu +
                    +
                  • + +
                  • + +
                    + 点 +
                    +
                    .tl-rtc-app-icon-dian +
                    +
                  • + +
                  • + +
                    + 离线 +
                    +
                    .tl-rtc-app-icon-lixian +
                    +
                  • + +
                  • + +
                    + 加入 +
                    +
                    .tl-rtc-app-icon-jiaru +
                    +
                  • + +
                  • + +
                    + 上传下载 +
                    +
                    .tl-rtc-app-icon-shangchuanxiazai +
                    +
                  • + +
                  • + +
                    + 上传下载 +
                    +
                    .tl-rtc-app-icon-shangchuanxiazai1 +
                    +
                  • + +
                  • + +
                    + IDP-文件传输 +
                    +
                    .tl-rtc-app-icon-wenjianchuanshu +
                    +
                  • + +
                  • + +
                    + 创建群聊 +
                    +
                    .tl-rtc-app-icon-chuangjianqunliao +
                    +
                  • + +
                  • + +
                    + 视频会议创建 +
                    +
                    .tl-rtc-app-icon-shipinhuiyichuangjian +
                    +
                  • + +
                  • + +
                    + fdcjjrcx +
                    +
                    .tl-rtc-app-icon-_detail_chest +
                    +
                  • + +
                  • + +
                    + 跟随系统-followsystem-line +
                    +
                    .tl-rtc-app-icon-gensuixitong-followsystem-line +
                    +
                  • + +
                  • + +
                    + 明亮模式 +
                    +
                    .tl-rtc-app-icon-mingliangmoshi +
                    +
                  • + +
                  • + +
                    + 暗黑 +
                    +
                    .tl-rtc-app-icon-anhei +
                    +
                  • + +
                  • + +
                    + 分享 +
                    +
                    .tl-rtc-app-icon-fenxiang1 +
                    +
                  • + +
                  • + +
                    + 恢复 +
                    +
                    .tl-rtc-app-icon-huifu +
                    +
                  • + +
                  • + +
                    + 已收藏 +
                    +
                    .tl-rtc-app-icon-yishoucang +
                    +
                  • + +
                  • + +
                    + 收藏 +
                    +
                    .tl-rtc-app-icon-shoucang1 +
                    +
                  • + +
                  • + +
                    + C#语言 +
                    +
                    .tl-rtc-app-icon-Cyuyan +
                    +
                  • + +
                  • + +
                    + APK +
                    +
                    .tl-rtc-app-icon-APK +
                    +
                  • + +
                  • + +
                    + java +
                    +
                    .tl-rtc-app-icon-java-copy +
                    +
                  • + +
                  • + +
                    + exe +
                    +
                    .tl-rtc-app-icon-exe +
                    +
                  • + +
                  • + +
                    + python +
                    +
                    .tl-rtc-app-icon-python +
                    +
                  • + +
                  • + +
                    + CONF +
                    +
                    .tl-rtc-app-icon-CONF +
                    +
                  • + +
                  • + +
                    + json +
                    +
                    .tl-rtc-app-icon-json +
                    +
                  • + +
                  • + +
                    + javascript +
                    +
                    .tl-rtc-app-icon-javascript +
                    +
                  • + +
                  • + +
                    + csv +
                    +
                    .tl-rtc-app-icon-csv +
                    +
                  • + +
                  • + +
                    + dll +
                    +
                    .tl-rtc-app-icon-dll +
                    +
                  • + +
                  • + +
                    + xml文件 +
                    +
                    .tl-rtc-app-icon-xmlwenjian +
                    +
                  • + +
                  • + +
                    + shell +
                    +
                    .tl-rtc-app-icon-shell +
                    +
                  • + +
                  • + +
                    + PHP +
                    +
                    .tl-rtc-app-icon-PHP +
                    +
                  • + +
                  • + +
                    + cpp-copy +
                    +
                    .tl-rtc-app-icon-cpp-copy +
                    +
                  • + +
                  • + +
                    + iso +
                    +
                    .tl-rtc-app-icon-iso +
                    +
                  • + +
                  • + +
                    + HTML +
                    +
                    .tl-rtc-app-icon-HTML +
                    +
                  • + +
                  • + +
                    + css +
                    +
                    .tl-rtc-app-icon-css-copy +
                    +
                  • + +
                  • + +
                    + 完成 +
                    +
                    .tl-rtc-app-icon-wancheng +
                    +
                  • + +
                  • + +
                    + 处理中 +
                    +
                    .tl-rtc-app-icon-chulizhong +
                    +
                  • + +
                  • + +
                    + 上传 +
                    +
                    .tl-rtc-app-icon-shangchuan +
                    +
                  • + +
                  • + +
                    + 会议列表 +
                    +
                    .tl-rtc-app-icon-huiyiliebiao1 +
                    +
                  • + +
                  • + +
                    + 预定 +
                    +
                    .tl-rtc-app-icon-yuding +
                    +
                  • + +
                  • + +
                    + 远程控制 +
                    +
                    .tl-rtc-app-icon-yuanchengkongzhi +
                    +
                  • + +
                  • + +
                    + 通知公告 +
                    +
                    .tl-rtc-app-icon-a-tongzhigonggao3x +
                    +
                  • + +
                  • + +
                    + 列表模式 +
                    +
                    .tl-rtc-app-icon-liebiaomoshi +
                    +
                  • + +
                  • + +
                    + 会议 +
                    +
                    .tl-rtc-app-icon-huiyi +
                    +
                  • + +
                  • + +
                    + 收藏 +
                    +
                    .tl-rtc-app-icon-shoucang +
                    +
                  • + +
                  • + +
                    + 微信 +
                    +
                    .tl-rtc-app-icon-weixin +
                    +
                  • + +
                  • + +
                    + line up_8px +
                    +
                    .tl-rtc-app-icon-lineup +
                    +
                  • + +
                  • + +
                    + qq +
                    +
                    .tl-rtc-app-icon-qq +
                    +
                  • + +
                  • + +
                    + 回收站 +
                    +
                    .tl-rtc-app-icon-huishouzhan +
                    +
                  • + +
                  • + +
                    + 最近浏览 +
                    +
                    .tl-rtc-app-icon-zuijinliulan +
                    +
                  • + +
                  • + +
                    + 群聊 +
                    +
                    .tl-rtc-app-icon-qunliao +
                    +
                  • + +
                  • + +
                    + 我的文件夹 +
                    +
                    .tl-rtc-app-icon-wodewenjianjia +
                    +
                  • + +
                  • + +
                    + 权限 +
                    +
                    .tl-rtc-app-icon-quanxian +
                    +
                  • + +
                  • + +
                    + 皮肤 +
                    +
                    .tl-rtc-app-icon-pifu +
                    +
                  • + +
                  • + +
                    + 其他 +
                    +
                    .tl-rtc-app-icon-qita +
                    +
                  • + +
                  • + +
                    + 消息 +
                    +
                    .tl-rtc-app-icon-xiaoxi1 +
                    +
                  • + +
                  • + +
                    + 菜单 +
                    +
                    .tl-rtc-app-icon-caidan +
                    +
                  • + +
                  • + +
                    + 帐号 +
                    +
                    .tl-rtc-app-icon-zhanghao +
                    +
                  • + +
                  • + +
                    + 挂断 +
                    +
                    .tl-rtc-app-icon-guaduan +
                    +
                  • + +
                  • + +
                    + 视频 +
                    +
                    .tl-rtc-app-icon-shipin +
                    +
                  • + +
                  • + +
                    + x +
                    +
                    .tl-rtc-app-icon-x +
                    +
                  • + +
                  • + +
                    + 分享 +
                    +
                    .tl-rtc-app-icon-fenxiang +
                    +
                  • + +
                  • + +
                    + 向上2 +
                    +
                    .tl-rtc-app-icon-xiangshang2 +
                    +
                  • + +
                  • + +
                    + 向下2 +
                    +
                    .tl-rtc-app-icon-xiangxia2 +
                    +
                  • + +
                  • + +
                    + 向右1 +
                    +
                    .tl-rtc-app-icon-xiangyou1 +
                    +
                  • + +
                  • + +
                    + 向左1 +
                    +
                    .tl-rtc-app-icon-xiangzuo1 +
                    +
                  • + +
                  • + +
                    + 成功 +
                    +
                    .tl-rtc-app-icon-70chenggong +
                    +
                  • + +
                  • + +
                    + 失败 +
                    +
                    .tl-rtc-app-icon-71shibai +
                    +
                  • + +
                  • + +
                    + 警告 +
                    +
                    .tl-rtc-app-icon-jinggao +
                    +
                  • + +
                  • + +
                    + 企业微信 +
                    +
                    .tl-rtc-app-icon-qiyeweixin +
                    +
                  • + +
                  • + +
                    + 手机 +
                    +
                    .tl-rtc-app-icon-shouji +
                    +
                  • + +
                  • + +
                    + 3.1电话 +
                    +
                    .tl-rtc-app-icon-31dianhua +
                    +
                  • + +
                  • + +
                    + 白板 +
                    +
                    .tl-rtc-app-icon-baiban +
                    +
                  • + +
                  • + +
                    + m-富文本 +
                    +
                    .tl-rtc-app-icon-m-fuwenben +
                    +
                  • + +
                  • + +
                    + 发起聊天 +
                    +
                    .tl-rtc-app-icon-faqiliaotian +
                    +
                  • + +
                  • + +
                    + 更多 +
                    +
                    .tl-rtc-app-icon-gengduo +
                    +
                  • + +
                  • + +
                    + 消息 +
                    +
                    .tl-rtc-app-icon-xiaoxi +
                    +
                  • + +
                  • + +
                    + 通讯录 +
                    +
                    .tl-rtc-app-icon-tongxunlu +
                    +
                  • + +
                  • + +
                    + 设置 +
                    +
                    .tl-rtc-app-icon-shezhi +
                    +
                  • + +
                  • + +
                    + 会议日程 +
                    +
                    .tl-rtc-app-icon-huiyiricheng +
                    +
                  • + +
                  • + +
                    + 文件夹 +
                    +
                    .tl-rtc-app-icon-wenjianjia +
                    +
                  • + +
                  • + +
                    + 退出 +
                    +
                    .tl-rtc-app-icon-tuichu +
                    +
                  • + +
                  • + +
                    + 邮件 +
                    +
                    .tl-rtc-app-icon-youjian1 +
                    +
                  • + +
                  • + +
                    + 添加 +
                    +
                    .tl-rtc-app-icon-tianjia +
                    +
                  • + +
                  • + +
                    + 消息提示 +
                    +
                    .tl-rtc-app-icon-icon +
                    +
                  • + +
                  • + +
                    + 发现 +
                    +
                    .tl-rtc-app-icon-faxian +
                    +
                  • + +
                  • + +
                    + 复制 +
                    +
                    .tl-rtc-app-icon-fuzhi +
                    +
                  • + +
                  • + +
                    + gitee +
                    +
                    .tl-rtc-app-icon-gitee +
                    +
                  • + +
                  • + +
                    + 剪切 +
                    +
                    .tl-rtc-app-icon-jianqie +
                    +
                  • + +
                  • + +
                    + 错误 +
                    +
                    .tl-rtc-app-icon-cuowu +
                    +
                  • + +
                  • + +
                    + 个人中心 +
                    +
                    .tl-rtc-app-icon-gerenzhongxin +
                    +
                  • + +
                  • + +
                    + 相机反转 +
                    +
                    .tl-rtc-app-icon-xiangjifanzhuan +
                    +
                  • + +
                  • + +
                    + 老师 +
                    +
                    .tl-rtc-app-icon-laoshi +
                    +
                  • + +
                  • + +
                    + 11navbar_观众 +
                    +
                    .tl-rtc-app-icon-navbar_guanzhong +
                    +
                  • + +
                  • + +
                    + 214声波、语音消息 +
                    +
                    .tl-rtc-app-icon-shengboyuyinxiaoxi +
                    +
                  • + +
                  • + +
                    + 语音 +
                    +
                    .tl-rtc-app-icon-yuyin +
                    +
                  • + +
                  • + +
                    + 翻转镜头 +
                    +
                    .tl-rtc-app-icon-fanzhuanjingtou +
                    +
                  • + +
                  • + +
                    + 网盘 +
                    +
                    .tl-rtc-app-icon-wangpan +
                    +
                  • + +
                  • + +
                    + 密码 +
                    +
                    .tl-rtc-app-icon-mima +
                    +
                  • + +
                  • + +
                    + 录制 +
                    +
                    .tl-rtc-app-icon-luzhi +
                    +
                  • + +
                  • + +
                    + 实物-画笔 +
                    +
                    .tl-rtc-app-icon-shiwu-huabi +
                    +
                  • + +
                  • + +
                    + ai +
                    +
                    .tl-rtc-app-icon-24px2x +
                    +
                  • + +
                  • + +
                    + 直播 +
                    +
                    .tl-rtc-app-icon-zhibo +
                    +
                  • + +
                  • + +
                    + 挂断电话 +
                    +
                    .tl-rtc-app-icon-guaduandianhua +
                    +
                  • + +
                  • + +
                    + 关闭扬声器 +
                    +
                    .tl-rtc-app-icon-guanbiyangshengqi +
                    +
                  • + +
                  • + +
                    + 麦克风 +
                    +
                    .tl-rtc-app-icon-maikefeng-XDY +
                    +
                  • + +
                  • + +
                    + 屏幕共享 +
                    +
                    .tl-rtc-app-icon-pingmugongxiang +
                    +
                  • + +
                  • + +
                    + 摄像头 +
                    +
                    .tl-rtc-app-icon-shexiangtou +
                    +
                  • + +
                  • + +
                    + 喇叭 +
                    +
                    .tl-rtc-app-icon-laba +
                    +
                  • + +
                  • + +
                    + 关闭麦克风 +
                    +
                    .tl-rtc-app-icon-guanbimaikefeng +
                    +
                  • + +
                  • + +
                    + 浏览器 +
                    +
                    .tl-rtc-app-icon-liulanqi +
                    +
                  • + +
                  • + +
                    + 三角形 +
                    +
                    .tl-rtc-app-icon-sanjiaoxing +
                    +
                  • + +
                  • + +
                    + 向上三角形 +
                    +
                    .tl-rtc-app-icon-xiangshangsanjiaoxing +
                    +
                  • + +
                  • + +
                    + 星星 +
                    +
                    .tl-rtc-app-icon-xingxing +
                    +
                  • + +
                  • + +
                    + 星星 +
                    +
                    .tl-rtc-app-icon-xingxing1 +
                    +
                  • + +
                  • + +
                    + tx-fill-平行四边形 +
                    +
                    .tl-rtc-app-icon-tx-fill-pinghangsibianxing +
                    +
                  • + +
                  • + +
                    + tx-fill-六边形 +
                    +
                    .tl-rtc-app-icon-tx-fill-liubianxing +
                    +
                  • + +
                  • + +
                    + 平行四边形 +
                    +
                    .tl-rtc-app-icon-pinghangsibianxing +
                    +
                  • + +
                  • + +
                    + 六边形 +
                    +
                    .tl-rtc-app-icon-hexagon +
                    +
                  • + +
                  • + +
                    + github +
                    +
                    .tl-rtc-app-icon-github +
                    +
                  • + +
                  • + +
                    + 文件类型-Excel +
                    +
                    .tl-rtc-app-icon-Excel +
                    +
                  • + +
                  • + +
                    + 文件类型-文件夹 +
                    +
                    .tl-rtc-app-icon-File +
                    +
                  • + +
                  • + +
                    + 文件类型-Word +
                    +
                    .tl-rtc-app-icon-Word +
                    +
                  • + +
                  • + +
                    + 文件类型-PPT +
                    +
                    .tl-rtc-app-icon-PPT +
                    +
                  • + +
                  • + +
                    + 文件类型-音频 +
                    +
                    .tl-rtc-app-icon-music +
                    +
                  • + +
                  • + +
                    + 文件类型-程序 +
                    +
                    .tl-rtc-app-icon-chengxu +
                    +
                  • + +
                  • + +
                    + 文件类型-视频 +
                    +
                    .tl-rtc-app-icon-shipin1 +
                    +
                  • + +
                  • + +
                    + 文件类型-链接 +
                    +
                    .tl-rtc-app-icon-lianjiewenjian +
                    +
                  • + +
                  • + +
                    + 文件类型-图片 +
                    +
                    .tl-rtc-app-icon-tupian +
                    +
                  • + +
                  • + +
                    + 文件类型-压缩包 +
                    +
                    .tl-rtc-app-icon-yasuobao +
                    +
                  • + +
                  • + +
                    + 文件类型-未知文件 +
                    +
                    .tl-rtc-app-icon-weizhiwenjian +
                    +
                  • + +
                  • + +
                    + 文件类型-Pdf +
                    +
                    .tl-rtc-app-icon-Pdf +
                    +
                  • + +
                  • + +
                    + 文件类型-Txt +
                    +
                    .tl-rtc-app-icon-txt1 +
                    +
                  • + +
                  • + +
                    + 文件类型-WPS +
                    +
                    .tl-rtc-app-icon-WPS +
                    +
                  • + +
                  • + +
                    + 文件类型-数据库 +
                    +
                    .tl-rtc-app-icon-shujuku +
                    +
                  • + +
                  • + +
                    + 文件类型-3D +
                    +
                    .tl-rtc-app-icon-a-3D +
                    +
                  • + +
                  • + +
                    + 文件类型-邮件 +
                    +
                    .tl-rtc-app-icon-youjian +
                    +
                  • + +
                  • + +
                    + 文件类型-配置文件 +
                    +
                    .tl-rtc-app-icon-peizhiwenjian +
                    +
                  • + +
                  • + +
                    + WIFI +
                    +
                    .tl-rtc-app-icon-WIFI +
                    +
                  • + +
                  • + +
                    + 红包 +
                    +
                    .tl-rtc-app-icon-hongbao +
                    +
                  • + +
                  • + +
                    + 圆角矩形 +
                    +
                    .tl-rtc-app-icon-yuanjiao-rect +
                    +
                  • + +
                  • + +
                    + 圆形 +
                    +
                    .tl-rtc-app-icon-circle +
                    +
                  • + +
                  • + +
                    + 橡皮擦 +
                    +
                    .tl-rtc-app-icon-xiangpica +
                    +
                  • + +
                  • + +
                    + 文字 +
                    +
                    .tl-rtc-app-icon-wenzi +
                    +
                  • + +
                  • + +
                    + 矩形 +
                    +
                    .tl-rtc-app-icon-juxing +
                    +
                  • + +
                  • + +
                    + 圆形 +
                    +
                    .tl-rtc-app-icon-yuanxing +
                    +
                  • + +
                  • + +
                    + 下载 +
                    +
                    .tl-rtc-app-icon-xiazai +
                    +
                  • + +
                  • + +
                    + 图片 +
                    +
                    .tl-rtc-app-icon-tupian_huaban +
                    +
                  • + +
                  • + +
                    + 工具 +
                    +
                    .tl-rtc-app-icon-gongju +
                    +
                  • + +
                  • + +
                    + 5g +
                    +
                    .tl-rtc-app-icon-five-g +
                    +
                  • + +
                  • + +
                    + 3g +
                    +
                    .tl-rtc-app-icon-three-g +
                    +
                  • + +
                  • + +
                    + 4g +
                    +
                    .tl-rtc-app-icon-four-g +
                    +
                  • + +
                  • + +
                    + 2g +
                    +
                    .tl-rtc-app-icon-two-g +
                    +
                  • + +
                  +
                  +

                  font-class 引用

                  +
                  + +

                  font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。

                  +

                  与 Unicode 使用方式相比,具有如下特点:

                  +
                    +
                  • 相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。
                  • +
                  • 因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。
                  • +
                  +

                  使用步骤如下:

                  +

                  第一步:引入项目下面生成的 fontclass 代码:

                  +
                  <link rel="stylesheet" href="./iconfont.css">
                  +
                  +

                  第二步:挑选相应图标并获取类名,应用于页面:

                  +
                  <span class="iconfont tl-rtc-app-icon-xxx"></span>
                  +
                  +
                  +

                  " + iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

                  +
                  +
                  +
                  +
                  +
                    + +
                  • + +
                    切换
                    +
                    #tl-rtc-app-icon-qiehuan
                    +
                  • + +
                  • + +
                    关闭屏幕共享
                    +
                    #tl-rtc-app-icon-guanbipingmugongxiang
                    +
                  • + +
                  • + +
                    切换屏幕分享
                    +
                    #tl-rtc-app-icon-svg
                    +
                  • + +
                  • + +
                    关闭摄像头
                    +
                    #tl-rtc-app-icon-guanbishexiangtou
                    +
                  • + +
                  • + +
                    warning
                    +
                    #tl-rtc-app-icon-warning1
                    +
                  • + +
                  • + +
                    成功
                    +
                    #tl-rtc-app-icon-chenggong
                    +
                  • + +
                  • + +
                    失败
                    +
                    #tl-rtc-app-icon-shibai
                    +
                  • + +
                  • + +
                    warning
                    +
                    #tl-rtc-app-icon-warning
                    +
                  • + +
                  • + +
                    info-fill
                    +
                    #tl-rtc-app-icon-info-fill
                    +
                  • + +
                  • + +
                    合并单元格
                    +
                    #tl-rtc-app-icon-hebingdanyuange1
                    +
                  • + +
                  • + +
                    取消合并
                    +
                    #tl-rtc-app-icon-a-22quxiaohebingdanyuange
                    +
                  • + +
                  • + +
                    远程控制
                    +
                    #tl-rtc-app-icon-yuanchengkongzhi1
                    +
                  • + +
                  • + +
                    远程控制
                    +
                    #tl-rtc-app-icon-yuanchengkongzhi2
                    +
                  • + +
                  • + +
                    删除线
                    +
                    #tl-rtc-app-icon-strikethrough
                    +
                  • + +
                  • + +
                    清除格式
                    +
                    #tl-rtc-app-icon-qingchugeshi
                    +
                  • + +
                  • + +
                    自动换行
                    +
                    #tl-rtc-app-icon-zidonghuanhang
                    +
                  • + +
                  • + +
                    垂直对齐-居下对齐
                    +
                    #tl-rtc-app-icon-chuizhiduiqi-juxiaduiqi
                    +
                  • + +
                  • + +
                    垂直对齐-居上对齐
                    +
                    #tl-rtc-app-icon-chuizhiduiqi-jushangduiqi
                    +
                  • + +
                  • + +
                    垂直对齐-居中对齐
                    +
                    #tl-rtc-app-icon-chuizhiduiqi-juzhongduiqi
                    +
                  • + +
                  • + +
                    背景色2
                    +
                    #tl-rtc-app-icon-biankuangyanse
                    +
                  • + +
                  • + +
                    缩小
                    +
                    #tl-rtc-app-icon-suoxiao
                    +
                  • + +
                  • + +
                    保存
                    +
                    #tl-rtc-app-icon-baocun
                    +
                  • + +
                  • + +
                    24gl-fileEmpty
                    +
                    #tl-rtc-app-icon-a24gl-fileEmpty
                    +
                  • + +
                  • + +
                    20gl-repeat2
                    +
                    #tl-rtc-app-icon-a20gl-repeat2
                    +
                  • + +
                  • + +
                    刷新
                    +
                    #tl-rtc-app-icon-shuaxin
                    +
                  • + +
                  • + +
                    问好
                    +
                    #tl-rtc-app-icon-wenhao
                    +
                  • + +
                  • + +
                    用户分组
                    +
                    #tl-rtc-app-icon-pingtaiiconhuizong_huaban1fuben5
                    +
                  • + +
                  • + +
                    空间清理2
                    +
                    #tl-rtc-app-icon-kongjianqingli
                    +
                  • + +
                  • + +
                    操作记录
                    +
                    #tl-rtc-app-icon-caozuojilu1
                    +
                  • + +
                  • + +
                    加密
                    +
                    #tl-rtc-app-icon-jiami
                    +
                  • + +
                  • + +
                    筛选
                    +
                    #tl-rtc-app-icon-shaixuan
                    +
                  • + +
                  • + +
                    大模型
                    +
                    #tl-rtc-app-icon-damoxing
                    +
                  • + +
                  • + +
                    知识库
                    +
                    #tl-rtc-app-icon-zhishi
                    +
                  • + +
                  • + +
                    智能客服
                    +
                    #tl-rtc-app-icon-zhinengkefu
                    +
                  • + +
                  • + +
                    机器人
                    +
                    #tl-rtc-app-icon-robot6
                    +
                  • + +
                  • + +
                    客服
                    +
                    #tl-rtc-app-icon-kefu
                    +
                  • + +
                  • + +
                    机器人
                    +
                    #tl-rtc-app-icon-jiqiren
                    +
                  • + +
                  • + +
                    七牛云存储
                    +
                    #tl-rtc-app-icon-qiniuyuncunchu
                    +
                  • + +
                  • + +
                    名片
                    +
                    #tl-rtc-app-icon-mingpian
                    +
                  • + +
                  • + +
                    名片_名片夹
                    +
                    #tl-rtc-app-icon-mingpian_mingpianjia-78
                    +
                  • + +
                  • + +
                    名片
                    +
                    #tl-rtc-app-icon-mingpian1
                    +
                  • + +
                  • + +
                    常用语
                    +
                    #tl-rtc-app-icon-changyongyu
                    +
                  • + +
                  • + +
                    常用语
                    +
                    #tl-rtc-app-icon-changyongyu1
                    +
                  • + +
                  • + +
                    脚印
                    +
                    #tl-rtc-app-icon-jiaoyin
                    +
                  • + +
                  • + +
                    脚印
                    +
                    #tl-rtc-app-icon-jiaoyin1
                    +
                  • + +
                  • + +
                    快捷消息
                    +
                    #tl-rtc-app-icon-huihua-
                    +
                  • + +
                  • + +
                    群聊
                    +
                    #tl-rtc-app-icon-qunliao1
                    +
                  • + +
                  • + +
                    回滚
                    +
                    #tl-rtc-app-icon-huigun
                    +
                  • + +
                  • + +
                    减少
                    +
                    #tl-rtc-app-icon-jianshao
                    +
                  • + +
                  • + +
                    增加
                    +
                    #tl-rtc-app-icon-zengjia
                    +
                  • + +
                  • + +
                    回滚
                    +
                    #tl-rtc-app-icon-huigun-copy
                    +
                  • + +
                  • + +
                    保存_o
                    +
                    #tl-rtc-app-icon-baocun_o
                    +
                  • + +
                  • + +
                    number-axis
                    +
                    #tl-rtc-app-icon-shuzhou
                    +
                  • + +
                  • + +
                    cancel-full-screen
                    +
                    #tl-rtc-app-icon-shouqiquanping
                    +
                  • + +
                  • + +
                    right-align
                    +
                    #tl-rtc-app-icon-youduiqi
                    +
                  • + +
                  • + +
                    left-align
                    +
                    #tl-rtc-app-icon-zuoduiqi
                    +
                  • + +
                  • + +
                    middle-align
                    +
                    #tl-rtc-app-icon-juzhongduiqi
                    +
                  • + +
                  • + +
                    full-screen
                    +
                    #tl-rtc-app-icon-quanping
                    +
                  • + +
                  • + +
                    字体标题
                    +
                    #tl-rtc-app-icon-zitibiaoti
                    +
                  • + +
                  • + +
                    字体缩小
                    +
                    #tl-rtc-app-icon-zitisuoxiao
                    +
                  • + +
                  • + +
                    字体放大
                    +
                    #tl-rtc-app-icon-zitifangda
                    +
                  • + +
                  • + +
                    字体颜色
                    +
                    #tl-rtc-app-icon-zitiyanse
                    +
                  • + +
                  • + +
                    符号列表
                    +
                    #tl-rtc-app-icon-format_list_bulleted_black_24dp
                    +
                  • + +
                  • + +
                    编号列表
                    +
                    #tl-rtc-app-icon-format_list_numbered_black_24dp
                    +
                  • + +
                  • + +
                    加粗@3x
                    +
                    #tl-rtc-app-icon-a-jiacu3x
                    +
                  • + +
                  • + +
                    下划线@3x
                    +
                    #tl-rtc-app-icon-a-xiahuaxian3x
                    +
                  • + +
                  • + +
                    倾斜
                    +
                    #tl-rtc-app-icon-qingxie
                    +
                  • + +
                  • + +
                    放大展示
                    +
                    #tl-rtc-app-icon-fangdazhanshi
                    +
                  • + +
                  • + +
                    我的-关于我们
                    +
                    #tl-rtc-app-icon-wode-guanyuwomen
                    +
                  • + +
                  • + +
                    腾讯云
                    +
                    #tl-rtc-app-icon-tengxunyun
                    +
                  • + +
                  • + +
                    阿里云
                    +
                    #tl-rtc-app-icon-aliyun
                    +
                  • + +
                  • + +
                    云服务器
                    +
                    #tl-rtc-app-icon-yunfuwuqi
                    +
                  • + +
                  • + +
                    添加
                    +
                    #tl-rtc-app-icon-tianjia1
                    +
                  • + +
                  • + +
                    撤回
                    +
                    #tl-rtc-app-icon-chehui
                    +
                  • + +
                  • + +
                    回复
                    +
                    #tl-rtc-app-icon-huifu1
                    +
                  • + +
                  • + +
                    表情
                    +
                    #tl-rtc-app-icon-biaoqing
                    +
                  • + +
                  • + +
                    抓手抓起
                    +
                    #tl-rtc-app-icon-zhuashouzhuaqi
                    +
                  • + +
                  • + +
                    代办
                    +
                    #tl-rtc-app-icon-daiban
                    +
                  • + +
                  • + +
                    提示
                    +
                    #tl-rtc-app-icon-tishi
                    +
                  • + +
                  • + +
                    开始
                    +
                    #tl-rtc-app-icon-kaishi1
                    +
                  • + +
                  • + +
                    防护开启
                    +
                    #tl-rtc-app-icon-fanghukaiqi
                    +
                  • + +
                  • + +
                    输入
                    +
                    #tl-rtc-app-icon-shuru
                    +
                  • + +
                  • + +
                    文字
                    +
                    #tl-rtc-app-icon-wenzi1
                    +
                  • + +
                  • + +
                    类型
                    +
                    #tl-rtc-app-icon-leixing
                    +
                  • + +
                  • + +
                    字符
                    +
                    #tl-rtc-app-icon-zifu
                    +
                  • + +
                  • + +
                    导航栏-设置
                    +
                    #tl-rtc-app-icon-a-fenzu32
                    +
                  • + +
                  • + +
                    拉黑
                    +
                    #tl-rtc-app-icon-lahei
                    +
                  • + +
                  • + +
                    拉黑-1
                    +
                    #tl-rtc-app-icon-lahei-1
                    +
                  • + +
                  • + +
                    截屏
                    +
                    #tl-rtc-app-icon-jieping
                    +
                  • + +
                  • + +
                    放大
                    +
                    #tl-rtc-app-icon-fangda
                    +
                  • + +
                  • + +
                    解锁
                    +
                    #tl-rtc-app-icon-jiesuo
                    +
                  • + +
                  • + +
                    开始
                    +
                    #tl-rtc-app-icon-kaishi
                    +
                  • + +
                  • + +
                    上一步
                    +
                    #tl-rtc-app-icon-shangyibu-01
                    +
                  • + +
                  • + +
                    下一步
                    +
                    #tl-rtc-app-icon-xiayibu-01
                    +
                  • + +
                  • + +
                    设备检测
                    +
                    #tl-rtc-app-icon-shebeijiance
                    +
                  • + +
                  • + +
                    简介
                    +
                    #tl-rtc-app-icon-jianjie
                    +
                  • + +
                  • + +
                    会议名称
                    +
                    #tl-rtc-app-icon-huiyimingcheng
                    +
                  • + +
                  • + +
                    文档
                    +
                    #tl-rtc-app-icon-wendang
                    +
                  • + +
                  • + +
                    文档
                    +
                    #tl-rtc-app-icon-wendang1
                    +
                  • + +
                  • + +
                    会议记录
                    +
                    #tl-rtc-app-icon-huiyijilu
                    +
                  • + +
                  • + +
                    会议列表
                    +
                    #tl-rtc-app-icon-huiyiliebiao
                    +
                  • + +
                  • + +
                    加入池子
                    +
                    #tl-rtc-app-icon-jiaruchizi
                    +
                  • + +
                  • + +
                    取消收藏
                    +
                    #tl-rtc-app-icon-ziyuan
                    +
                  • + +
                  • + +
                    收藏
                    +
                    #tl-rtc-app-icon-shoucang3
                    +
                  • + +
                  • + +
                    clear
                    +
                    #tl-rtc-app-icon-clear
                    +
                  • + +
                  • + +
                    上传
                    +
                    #tl-rtc-app-icon-shangchuan11
                    +
                  • + +
                  • + +
                    预览
                    +
                    #tl-rtc-app-icon-yulan
                    +
                  • + +
                  • + +
                    下载
                    +
                    #tl-rtc-app-icon-xiazai-
                    +
                  • + +
                  • + +
                    收藏
                    +
                    #tl-rtc-app-icon-shoucang2
                    +
                  • + +
                  • + +
                    chongmingm
                    +
                    #tl-rtc-app-icon-chongmingm
                    +
                  • + +
                  • + +
                    移动
                    +
                    #tl-rtc-app-icon-yidong
                    +
                  • + +
                  • + +
                    移动
                    +
                    #tl-rtc-app-icon-yidong1
                    +
                  • + +
                  • + +
                    文件夹,文件
                    +
                    #tl-rtc-app-icon-a-wenjianjiawenjian
                    +
                  • + +
                  • + +
                    新建文件夹
                    +
                    #tl-rtc-app-icon-xinjianwenjianjia
                    +
                  • + +
                  • + +
                    语音
                    +
                    #tl-rtc-app-icon-yuyin1
                    +
                  • + +
                  • + +
                    直播
                    +
                    #tl-rtc-app-icon-zhibo1
                    +
                  • + +
                  • + +
                    语音消息
                    +
                    #tl-rtc-app-icon-yuyinxiaoxi
                    +
                  • + +
                  • + +
                    导出
                    +
                    #tl-rtc-app-icon-daochu
                    +
                  • + +
                  • + +
                    删除
                    +
                    #tl-rtc-app-icon-shanchu
                    +
                  • + +
                  • + +
                    导入
                    +
                    #tl-rtc-app-icon-daoru
                    +
                  • + +
                  • + +
                    取消置顶
                    +
                    #tl-rtc-app-icon-quxiaozhiding
                    +
                  • + +
                  • + +
                    移除
                    +
                    #tl-rtc-app-icon-yichu
                    +
                  • + +
                  • + +
                    标记-01
                    +
                    #tl-rtc-app-icon-biaoji-
                    +
                  • + +
                  • + +
                    邀请
                    +
                    #tl-rtc-app-icon-yaoqing
                    +
                  • + +
                  • + +
                    免打扰
                    +
                    #tl-rtc-app-icon-miandarao
                    +
                  • + +
                  • + +
                    置顶
                    +
                    #tl-rtc-app-icon-zhiding1
                    +
                  • + +
                  • + +
                    扫码
                    +
                    #tl-rtc-app-icon-saoma
                    +
                  • + +
                  • + +
                    上下线-上线
                    +
                    #tl-rtc-app-icon-shangxiaxian-shangxian-copy
                    +
                  • + +
                  • + +
                    关闭
                    +
                    #tl-rtc-app-icon-guanbi
                    +
                  • + +
                  • + +
                    上下线-下线
                    +
                    #tl-rtc-app-icon-shangxiaxian-xiaxian
                    +
                  • + +
                  • + +
                    群主
                    +
                    #tl-rtc-app-icon-qunzhu
                    +
                  • + +
                  • + +
                    点
                    +
                    #tl-rtc-app-icon-dian
                    +
                  • + +
                  • + +
                    离线
                    +
                    #tl-rtc-app-icon-lixian
                    +
                  • + +
                  • + +
                    加入
                    +
                    #tl-rtc-app-icon-jiaru
                    +
                  • + +
                  • + +
                    上传下载
                    +
                    #tl-rtc-app-icon-shangchuanxiazai
                    +
                  • + +
                  • + +
                    上传下载
                    +
                    #tl-rtc-app-icon-shangchuanxiazai1
                    +
                  • + +
                  • + +
                    IDP-文件传输
                    +
                    #tl-rtc-app-icon-wenjianchuanshu
                    +
                  • + +
                  • + +
                    创建群聊
                    +
                    #tl-rtc-app-icon-chuangjianqunliao
                    +
                  • + +
                  • + +
                    视频会议创建
                    +
                    #tl-rtc-app-icon-shipinhuiyichuangjian
                    +
                  • + +
                  • + +
                    fdcjjrcx
                    +
                    #tl-rtc-app-icon-_detail_chest
                    +
                  • + +
                  • + +
                    跟随系统-followsystem-line
                    +
                    #tl-rtc-app-icon-gensuixitong-followsystem-line
                    +
                  • + +
                  • + +
                    明亮模式
                    +
                    #tl-rtc-app-icon-mingliangmoshi
                    +
                  • + +
                  • + +
                    暗黑
                    +
                    #tl-rtc-app-icon-anhei
                    +
                  • + +
                  • + +
                    分享
                    +
                    #tl-rtc-app-icon-fenxiang1
                    +
                  • + +
                  • + +
                    恢复
                    +
                    #tl-rtc-app-icon-huifu
                    +
                  • + +
                  • + +
                    已收藏
                    +
                    #tl-rtc-app-icon-yishoucang
                    +
                  • + +
                  • + +
                    收藏
                    +
                    #tl-rtc-app-icon-shoucang1
                    +
                  • + +
                  • + +
                    C#语言
                    +
                    #tl-rtc-app-icon-Cyuyan
                    +
                  • + +
                  • + +
                    APK
                    +
                    #tl-rtc-app-icon-APK
                    +
                  • + +
                  • + +
                    java
                    +
                    #tl-rtc-app-icon-java-copy
                    +
                  • + +
                  • + +
                    exe
                    +
                    #tl-rtc-app-icon-exe
                    +
                  • + +
                  • + +
                    python
                    +
                    #tl-rtc-app-icon-python
                    +
                  • + +
                  • + +
                    CONF
                    +
                    #tl-rtc-app-icon-CONF
                    +
                  • + +
                  • + +
                    json
                    +
                    #tl-rtc-app-icon-json
                    +
                  • + +
                  • + +
                    javascript
                    +
                    #tl-rtc-app-icon-javascript
                    +
                  • + +
                  • + +
                    csv
                    +
                    #tl-rtc-app-icon-csv
                    +
                  • + +
                  • + +
                    dll
                    +
                    #tl-rtc-app-icon-dll
                    +
                  • + +
                  • + +
                    xml文件
                    +
                    #tl-rtc-app-icon-xmlwenjian
                    +
                  • + +
                  • + +
                    shell
                    +
                    #tl-rtc-app-icon-shell
                    +
                  • + +
                  • + +
                    PHP
                    +
                    #tl-rtc-app-icon-PHP
                    +
                  • + +
                  • + +
                    cpp-copy
                    +
                    #tl-rtc-app-icon-cpp-copy
                    +
                  • + +
                  • + +
                    iso
                    +
                    #tl-rtc-app-icon-iso
                    +
                  • + +
                  • + +
                    HTML
                    +
                    #tl-rtc-app-icon-HTML
                    +
                  • + +
                  • + +
                    css
                    +
                    #tl-rtc-app-icon-css-copy
                    +
                  • + +
                  • + +
                    完成
                    +
                    #tl-rtc-app-icon-wancheng
                    +
                  • + +
                  • + +
                    处理中
                    +
                    #tl-rtc-app-icon-chulizhong
                    +
                  • + +
                  • + +
                    上传
                    +
                    #tl-rtc-app-icon-shangchuan
                    +
                  • + +
                  • + +
                    会议列表
                    +
                    #tl-rtc-app-icon-huiyiliebiao1
                    +
                  • + +
                  • + +
                    预定
                    +
                    #tl-rtc-app-icon-yuding
                    +
                  • + +
                  • + +
                    远程控制
                    +
                    #tl-rtc-app-icon-yuanchengkongzhi
                    +
                  • + +
                  • + +
                    通知公告
                    +
                    #tl-rtc-app-icon-a-tongzhigonggao3x
                    +
                  • + +
                  • + +
                    列表模式
                    +
                    #tl-rtc-app-icon-liebiaomoshi
                    +
                  • + +
                  • + +
                    会议
                    +
                    #tl-rtc-app-icon-huiyi
                    +
                  • + +
                  • + +
                    收藏
                    +
                    #tl-rtc-app-icon-shoucang
                    +
                  • + +
                  • + +
                    微信
                    +
                    #tl-rtc-app-icon-weixin
                    +
                  • + +
                  • + +
                    line up_8px
                    +
                    #tl-rtc-app-icon-lineup
                    +
                  • + +
                  • + +
                    qq
                    +
                    #tl-rtc-app-icon-qq
                    +
                  • + +
                  • + +
                    回收站
                    +
                    #tl-rtc-app-icon-huishouzhan
                    +
                  • + +
                  • + +
                    最近浏览
                    +
                    #tl-rtc-app-icon-zuijinliulan
                    +
                  • + +
                  • + +
                    群聊
                    +
                    #tl-rtc-app-icon-qunliao
                    +
                  • + +
                  • + +
                    我的文件夹
                    +
                    #tl-rtc-app-icon-wodewenjianjia
                    +
                  • + +
                  • + +
                    权限
                    +
                    #tl-rtc-app-icon-quanxian
                    +
                  • + +
                  • + +
                    皮肤
                    +
                    #tl-rtc-app-icon-pifu
                    +
                  • + +
                  • + +
                    其他
                    +
                    #tl-rtc-app-icon-qita
                    +
                  • + +
                  • + +
                    消息
                    +
                    #tl-rtc-app-icon-xiaoxi1
                    +
                  • + +
                  • + +
                    菜单
                    +
                    #tl-rtc-app-icon-caidan
                    +
                  • + +
                  • + +
                    帐号
                    +
                    #tl-rtc-app-icon-zhanghao
                    +
                  • + +
                  • + +
                    挂断
                    +
                    #tl-rtc-app-icon-guaduan
                    +
                  • + +
                  • + +
                    视频
                    +
                    #tl-rtc-app-icon-shipin
                    +
                  • + +
                  • + +
                    x
                    +
                    #tl-rtc-app-icon-x
                    +
                  • + +
                  • + +
                    分享
                    +
                    #tl-rtc-app-icon-fenxiang
                    +
                  • + +
                  • + +
                    向上2
                    +
                    #tl-rtc-app-icon-xiangshang2
                    +
                  • + +
                  • + +
                    向下2
                    +
                    #tl-rtc-app-icon-xiangxia2
                    +
                  • + +
                  • + +
                    向右1
                    +
                    #tl-rtc-app-icon-xiangyou1
                    +
                  • + +
                  • + +
                    向左1
                    +
                    #tl-rtc-app-icon-xiangzuo1
                    +
                  • + +
                  • + +
                    成功
                    +
                    #tl-rtc-app-icon-70chenggong
                    +
                  • + +
                  • + +
                    失败
                    +
                    #tl-rtc-app-icon-71shibai
                    +
                  • + +
                  • + +
                    警告
                    +
                    #tl-rtc-app-icon-jinggao
                    +
                  • + +
                  • + +
                    企业微信
                    +
                    #tl-rtc-app-icon-qiyeweixin
                    +
                  • + +
                  • + +
                    手机
                    +
                    #tl-rtc-app-icon-shouji
                    +
                  • + +
                  • + +
                    3.1电话
                    +
                    #tl-rtc-app-icon-31dianhua
                    +
                  • + +
                  • + +
                    白板
                    +
                    #tl-rtc-app-icon-baiban
                    +
                  • + +
                  • + +
                    m-富文本
                    +
                    #tl-rtc-app-icon-m-fuwenben
                    +
                  • + +
                  • + +
                    发起聊天
                    +
                    #tl-rtc-app-icon-faqiliaotian
                    +
                  • + +
                  • + +
                    更多
                    +
                    #tl-rtc-app-icon-gengduo
                    +
                  • + +
                  • + +
                    消息
                    +
                    #tl-rtc-app-icon-xiaoxi
                    +
                  • + +
                  • + +
                    通讯录
                    +
                    #tl-rtc-app-icon-tongxunlu
                    +
                  • + +
                  • + +
                    设置
                    +
                    #tl-rtc-app-icon-shezhi
                    +
                  • + +
                  • + +
                    会议日程
                    +
                    #tl-rtc-app-icon-huiyiricheng
                    +
                  • + +
                  • + +
                    文件夹
                    +
                    #tl-rtc-app-icon-wenjianjia
                    +
                  • + +
                  • + +
                    退出
                    +
                    #tl-rtc-app-icon-tuichu
                    +
                  • + +
                  • + +
                    邮件
                    +
                    #tl-rtc-app-icon-youjian1
                    +
                  • + +
                  • + +
                    添加
                    +
                    #tl-rtc-app-icon-tianjia
                    +
                  • + +
                  • + +
                    消息提示
                    +
                    #tl-rtc-app-icon-icon
                    +
                  • + +
                  • + +
                    发现
                    +
                    #tl-rtc-app-icon-faxian
                    +
                  • + +
                  • + +
                    复制
                    +
                    #tl-rtc-app-icon-fuzhi
                    +
                  • + +
                  • + +
                    gitee
                    +
                    #tl-rtc-app-icon-gitee
                    +
                  • + +
                  • + +
                    剪切
                    +
                    #tl-rtc-app-icon-jianqie
                    +
                  • + +
                  • + +
                    错误
                    +
                    #tl-rtc-app-icon-cuowu
                    +
                  • + +
                  • + +
                    个人中心
                    +
                    #tl-rtc-app-icon-gerenzhongxin
                    +
                  • + +
                  • + +
                    相机反转
                    +
                    #tl-rtc-app-icon-xiangjifanzhuan
                    +
                  • + +
                  • + +
                    老师
                    +
                    #tl-rtc-app-icon-laoshi
                    +
                  • + +
                  • + +
                    11navbar_观众
                    +
                    #tl-rtc-app-icon-navbar_guanzhong
                    +
                  • + +
                  • + +
                    214声波、语音消息
                    +
                    #tl-rtc-app-icon-shengboyuyinxiaoxi
                    +
                  • + +
                  • + +
                    语音
                    +
                    #tl-rtc-app-icon-yuyin
                    +
                  • + +
                  • + +
                    翻转镜头
                    +
                    #tl-rtc-app-icon-fanzhuanjingtou
                    +
                  • + +
                  • + +
                    网盘
                    +
                    #tl-rtc-app-icon-wangpan
                    +
                  • + +
                  • + +
                    密码
                    +
                    #tl-rtc-app-icon-mima
                    +
                  • + +
                  • + +
                    录制
                    +
                    #tl-rtc-app-icon-luzhi
                    +
                  • + +
                  • + +
                    实物-画笔
                    +
                    #tl-rtc-app-icon-shiwu-huabi
                    +
                  • + +
                  • + +
                    ai
                    +
                    #tl-rtc-app-icon-24px2x
                    +
                  • + +
                  • + +
                    直播
                    +
                    #tl-rtc-app-icon-zhibo
                    +
                  • + +
                  • + +
                    挂断电话
                    +
                    #tl-rtc-app-icon-guaduandianhua
                    +
                  • + +
                  • + +
                    关闭扬声器
                    +
                    #tl-rtc-app-icon-guanbiyangshengqi
                    +
                  • + +
                  • + +
                    麦克风
                    +
                    #tl-rtc-app-icon-maikefeng-XDY
                    +
                  • + +
                  • + +
                    屏幕共享
                    +
                    #tl-rtc-app-icon-pingmugongxiang
                    +
                  • + +
                  • + +
                    摄像头
                    +
                    #tl-rtc-app-icon-shexiangtou
                    +
                  • + +
                  • + +
                    喇叭
                    +
                    #tl-rtc-app-icon-laba
                    +
                  • + +
                  • + +
                    关闭麦克风
                    +
                    #tl-rtc-app-icon-guanbimaikefeng
                    +
                  • + +
                  • + +
                    浏览器
                    +
                    #tl-rtc-app-icon-liulanqi
                    +
                  • + +
                  • + +
                    三角形
                    +
                    #tl-rtc-app-icon-sanjiaoxing
                    +
                  • + +
                  • + +
                    向上三角形
                    +
                    #tl-rtc-app-icon-xiangshangsanjiaoxing
                    +
                  • + +
                  • + +
                    星星
                    +
                    #tl-rtc-app-icon-xingxing
                    +
                  • + +
                  • + +
                    星星
                    +
                    #tl-rtc-app-icon-xingxing1
                    +
                  • + +
                  • + +
                    tx-fill-平行四边形
                    +
                    #tl-rtc-app-icon-tx-fill-pinghangsibianxing
                    +
                  • + +
                  • + +
                    tx-fill-六边形
                    +
                    #tl-rtc-app-icon-tx-fill-liubianxing
                    +
                  • + +
                  • + +
                    平行四边形
                    +
                    #tl-rtc-app-icon-pinghangsibianxing
                    +
                  • + +
                  • + +
                    六边形
                    +
                    #tl-rtc-app-icon-hexagon
                    +
                  • + +
                  • + +
                    github
                    +
                    #tl-rtc-app-icon-github
                    +
                  • + +
                  • + +
                    文件类型-Excel
                    +
                    #tl-rtc-app-icon-Excel
                    +
                  • + +
                  • + +
                    文件类型-文件夹
                    +
                    #tl-rtc-app-icon-File
                    +
                  • + +
                  • + +
                    文件类型-Word
                    +
                    #tl-rtc-app-icon-Word
                    +
                  • + +
                  • + +
                    文件类型-PPT
                    +
                    #tl-rtc-app-icon-PPT
                    +
                  • + +
                  • + +
                    文件类型-音频
                    +
                    #tl-rtc-app-icon-music
                    +
                  • + +
                  • + +
                    文件类型-程序
                    +
                    #tl-rtc-app-icon-chengxu
                    +
                  • + +
                  • + +
                    文件类型-视频
                    +
                    #tl-rtc-app-icon-shipin1
                    +
                  • + +
                  • + +
                    文件类型-链接
                    +
                    #tl-rtc-app-icon-lianjiewenjian
                    +
                  • + +
                  • + +
                    文件类型-图片
                    +
                    #tl-rtc-app-icon-tupian
                    +
                  • + +
                  • + +
                    文件类型-压缩包
                    +
                    #tl-rtc-app-icon-yasuobao
                    +
                  • + +
                  • + +
                    文件类型-未知文件
                    +
                    #tl-rtc-app-icon-weizhiwenjian
                    +
                  • + +
                  • + +
                    文件类型-Pdf
                    +
                    #tl-rtc-app-icon-Pdf
                    +
                  • + +
                  • + +
                    文件类型-Txt
                    +
                    #tl-rtc-app-icon-txt1
                    +
                  • + +
                  • + +
                    文件类型-WPS
                    +
                    #tl-rtc-app-icon-WPS
                    +
                  • + +
                  • + +
                    文件类型-数据库
                    +
                    #tl-rtc-app-icon-shujuku
                    +
                  • + +
                  • + +
                    文件类型-3D
                    +
                    #tl-rtc-app-icon-a-3D
                    +
                  • + +
                  • + +
                    文件类型-邮件
                    +
                    #tl-rtc-app-icon-youjian
                    +
                  • + +
                  • + +
                    文件类型-配置文件
                    +
                    #tl-rtc-app-icon-peizhiwenjian
                    +
                  • + +
                  • + +
                    WIFI
                    +
                    #tl-rtc-app-icon-WIFI
                    +
                  • + +
                  • + +
                    红包
                    +
                    #tl-rtc-app-icon-hongbao
                    +
                  • + +
                  • + +
                    圆角矩形
                    +
                    #tl-rtc-app-icon-yuanjiao-rect
                    +
                  • + +
                  • + +
                    圆形
                    +
                    #tl-rtc-app-icon-circle
                    +
                  • + +
                  • + +
                    橡皮擦
                    +
                    #tl-rtc-app-icon-xiangpica
                    +
                  • + +
                  • + +
                    文字
                    +
                    #tl-rtc-app-icon-wenzi
                    +
                  • + +
                  • + +
                    矩形
                    +
                    #tl-rtc-app-icon-juxing
                    +
                  • + +
                  • + +
                    圆形
                    +
                    #tl-rtc-app-icon-yuanxing
                    +
                  • + +
                  • + +
                    下载
                    +
                    #tl-rtc-app-icon-xiazai
                    +
                  • + +
                  • + +
                    图片
                    +
                    #tl-rtc-app-icon-tupian_huaban
                    +
                  • + +
                  • + +
                    工具
                    +
                    #tl-rtc-app-icon-gongju
                    +
                  • + +
                  • + +
                    5g
                    +
                    #tl-rtc-app-icon-five-g
                    +
                  • + +
                  • + +
                    3g
                    +
                    #tl-rtc-app-icon-three-g
                    +
                  • + +
                  • + +
                    4g
                    +
                    #tl-rtc-app-icon-four-g
                    +
                  • + +
                  • + +
                    2g
                    +
                    #tl-rtc-app-icon-two-g
                    +
                  • + +
                  +
                  +

                  Symbol 引用

                  +
                  + +

                  这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 + 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:

                  +
                    +
                  • 支持多色图标了,不再受单色限制。
                  • +
                  • 通过一些技巧,支持像字体那样,通过 font-size, color 来调整样式。
                  • +
                  • 兼容性较差,支持 IE9+,及现代浏览器。
                  • +
                  • 浏览器渲染 SVG 的性能一般,还不如 png。
                  • +
                  +

                  使用步骤如下:

                  +

                  第一步:引入项目下面生成的 symbol 代码:

                  +
                  <script src="./iconfont.js"></script>
                  +
                  +

                  第二步:加入通用 CSS 代码(引入一次就行):

                  +
                  <style>
                  +.icon {
                  +  width: 1em;
                  +  height: 1em;
                  +  vertical-align: -0.15em;
                  +  fill: currentColor;
                  +  overflow: hidden;
                  +}
                  +</style>
                  +
                  +

                  第三步:挑选相应图标并获取类名,应用于页面:

                  +
                  <svg class="icon" aria-hidden="true">
                  +  <use xlink:href="#icon-xxx"></use>
                  +</svg>
                  +
                  +
                  +
                  + +
                  +
                  + + + diff --git a/web-res/static/layui/font-ext/iconfont.css b/web-res/static/layui/font-ext/iconfont.css new file mode 100644 index 0000000..96fb293 --- /dev/null +++ b/web-res/static/layui/font-ext/iconfont.css @@ -0,0 +1,1143 @@ +@font-face { + font-family: "iconfont"; /* Project id 4147343 */ + src: url('iconfont.woff2?t=1746336417071') format('woff2'), + url('iconfont.woff?t=1746336417071') format('woff'), + url('iconfont.ttf?t=1746336417071') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.tl-rtc-app-icon-qiehuan:before { + content: "\e6b3"; +} + +.tl-rtc-app-icon-guanbipingmugongxiang:before { + content: "\e6b2"; +} + +.tl-rtc-app-icon-svg:before { + content: "\e6b1"; +} + +.tl-rtc-app-icon-guanbishexiangtou:before { + content: "\e6b0"; +} + +.tl-rtc-app-icon-warning1:before { + content: "\e6ae"; +} + +.tl-rtc-app-icon-chenggong:before { + content: "\e8c3"; +} + +.tl-rtc-app-icon-shibai:before { + content: "\e8c5"; +} + +.tl-rtc-app-icon-warning:before { + content: "\ed53"; +} + +.tl-rtc-app-icon-info-fill:before { + content: "\e83d"; +} + +.tl-rtc-app-icon-hebingdanyuange1:before { + content: "\e6ac"; +} + +.tl-rtc-app-icon-a-22quxiaohebingdanyuange:before { + content: "\e6ab"; +} + +.tl-rtc-app-icon-yuanchengkongzhi1:before { + content: "\e6aa"; +} + +.tl-rtc-app-icon-yuanchengkongzhi2:before { + content: "\e7d4"; +} + +.tl-rtc-app-icon-strikethrough:before { + content: "\e6a9"; +} + +.tl-rtc-app-icon-qingchugeshi:before { + content: "\e794"; +} + +.tl-rtc-app-icon-zidonghuanhang:before { + content: "\e95a"; +} + +.tl-rtc-app-icon-chuizhiduiqi-juxiaduiqi:before { + content: "\e821"; +} + +.tl-rtc-app-icon-chuizhiduiqi-jushangduiqi:before { + content: "\e822"; +} + +.tl-rtc-app-icon-chuizhiduiqi-juzhongduiqi:before { + content: "\e823"; +} + +.tl-rtc-app-icon-biankuangyanse:before { + content: "\e6a8"; +} + +.tl-rtc-app-icon-suoxiao:before { + content: "\e6a6"; +} + +.tl-rtc-app-icon-baocun:before { + content: "\e6a5"; +} + +.tl-rtc-app-icon-a24gl-fileEmpty:before { + content: "\eabf"; +} + +.tl-rtc-app-icon-a20gl-repeat2:before { + content: "\ea51"; +} + +.tl-rtc-app-icon-shuaxin:before { + content: "\e6a4"; +} + +.tl-rtc-app-icon-wenhao:before { + content: "\e6a3"; +} + +.tl-rtc-app-icon-pingtaiiconhuizong_huaban1fuben5:before { + content: "\e6a2"; +} + +.tl-rtc-app-icon-kongjianqingli:before { + content: "\e6a0"; +} + +.tl-rtc-app-icon-caozuojilu1:before { + content: "\e6a1"; +} + +.tl-rtc-app-icon-jiami:before { + content: "\e69f"; +} + +.tl-rtc-app-icon-shaixuan:before { + content: "\e69d"; +} + +.tl-rtc-app-icon-damoxing:before { + content: "\e71e"; +} + +.tl-rtc-app-icon-zhishi:before { + content: "\e69b"; +} + +.tl-rtc-app-icon-zhinengkefu:before { + content: "\e697"; +} + +.tl-rtc-app-icon-robot6:before { + content: "\e75e"; +} + +.tl-rtc-app-icon-kefu:before { + content: "\e699"; +} + +.tl-rtc-app-icon-jiqiren:before { + content: "\e78f"; +} + +.tl-rtc-app-icon-qiniuyuncunchu:before { + content: "\e69a"; +} + +.tl-rtc-app-icon-mingpian:before { + content: "\e694"; +} + +.tl-rtc-app-icon-mingpian_mingpianjia-78:before { + content: "\e695"; +} + +.tl-rtc-app-icon-mingpian1:before { + content: "\e696"; +} + +.tl-rtc-app-icon-changyongyu:before { + content: "\e690"; +} + +.tl-rtc-app-icon-changyongyu1:before { + content: "\e693"; +} + +.tl-rtc-app-icon-jiaoyin:before { + content: "\e68e"; +} + +.tl-rtc-app-icon-jiaoyin1:before { + content: "\eb83"; +} + +.tl-rtc-app-icon-huihua-:before { + content: "\e68d"; +} + +.tl-rtc-app-icon-qunliao1:before { + content: "\e68b"; +} + +.tl-rtc-app-icon-huigun:before { + content: "\e688"; +} + +.tl-rtc-app-icon-jianshao:before { + content: "\e689"; +} + +.tl-rtc-app-icon-zengjia:before { + content: "\e68a"; +} + +.tl-rtc-app-icon-huigun-copy:before { + content: "\ee0f"; +} + +.tl-rtc-app-icon-baocun_o:before { + content: "\eb47"; +} + +.tl-rtc-app-icon-shuzhou:before { + content: "\e675"; +} + +.tl-rtc-app-icon-shouqiquanping:before { + content: "\e677"; +} + +.tl-rtc-app-icon-youduiqi:before { + content: "\e678"; +} + +.tl-rtc-app-icon-zuoduiqi:before { + content: "\e679"; +} + +.tl-rtc-app-icon-juzhongduiqi:before { + content: "\e67b"; +} + +.tl-rtc-app-icon-quanping:before { + content: "\e67f"; +} + +.tl-rtc-app-icon-zitibiaoti:before { + content: "\ec84"; +} + +.tl-rtc-app-icon-zitisuoxiao:before { + content: "\e680"; +} + +.tl-rtc-app-icon-zitifangda:before { + content: "\e681"; +} + +.tl-rtc-app-icon-zitiyanse:before { + content: "\e682"; +} + +.tl-rtc-app-icon-format_list_bulleted_black_24dp:before { + content: "\e73d"; +} + +.tl-rtc-app-icon-format_list_numbered_black_24dp:before { + content: "\e73c"; +} + +.tl-rtc-app-icon-a-jiacu3x:before { + content: "\e683"; +} + +.tl-rtc-app-icon-a-xiahuaxian3x:before { + content: "\e684"; +} + +.tl-rtc-app-icon-qingxie:before { + content: "\e686"; +} + +.tl-rtc-app-icon-fangdazhanshi:before { + content: "\e671"; +} + +.tl-rtc-app-icon-wode-guanyuwomen:before { + content: "\e672"; +} + +.tl-rtc-app-icon-tengxunyun:before { + content: "\e6f3"; +} + +.tl-rtc-app-icon-aliyun:before { + content: "\ecfe"; +} + +.tl-rtc-app-icon-yunfuwuqi:before { + content: "\e673"; +} + +.tl-rtc-app-icon-tianjia1:before { + content: "\e6df"; +} + +.tl-rtc-app-icon-chehui:before { + content: "\e670"; +} + +.tl-rtc-app-icon-huifu1:before { + content: "\e66e"; +} + +.tl-rtc-app-icon-biaoqing:before { + content: "\ee0e"; +} + +.tl-rtc-app-icon-zhuashouzhuaqi:before { + content: "\e6f0"; +} + +.tl-rtc-app-icon-daiban:before { + content: "\e674"; +} + +.tl-rtc-app-icon-tishi:before { + content: "\e66d"; +} + +.tl-rtc-app-icon-kaishi1:before { + content: "\e66c"; +} + +.tl-rtc-app-icon-fanghukaiqi:before { + content: "\e66b"; +} + +.tl-rtc-app-icon-shuru:before { + content: "\e73a"; +} + +.tl-rtc-app-icon-wenzi1:before { + content: "\e66a"; +} + +.tl-rtc-app-icon-leixing:before { + content: "\e665"; +} + +.tl-rtc-app-icon-zifu:before { + content: "\e668"; +} + +.tl-rtc-app-icon-a-fenzu32:before { + content: "\e6f6"; +} + +.tl-rtc-app-icon-lahei:before { + content: "\e662"; +} + +.tl-rtc-app-icon-lahei-1:before { + content: "\e664"; +} + +.tl-rtc-app-icon-jieping:before { + content: "\e661"; +} + +.tl-rtc-app-icon-fangda:before { + content: "\e660"; +} + +.tl-rtc-app-icon-jiesuo:before { + content: "\e65f"; +} + +.tl-rtc-app-icon-kaishi:before { + content: "\e788"; +} + +.tl-rtc-app-icon-shangyibu-01:before { + content: "\ee0d"; +} + +.tl-rtc-app-icon-xiayibu-01:before { + content: "\e65b"; +} + +.tl-rtc-app-icon-shebeijiance:before { + content: "\e67c"; +} + +.tl-rtc-app-icon-jianjie:before { + content: "\e764"; +} + +.tl-rtc-app-icon-huiyimingcheng:before { + content: "\e65a"; +} + +.tl-rtc-app-icon-wendang:before { + content: "\e69c"; +} + +.tl-rtc-app-icon-wendang1:before { + content: "\e67e"; +} + +.tl-rtc-app-icon-huiyijilu:before { + content: "\e8a0"; +} + +.tl-rtc-app-icon-huiyiliebiao:before { + content: "\e687"; +} + +.tl-rtc-app-icon-jiaruchizi:before { + content: "\e73b"; +} + +.tl-rtc-app-icon-ziyuan:before { + content: "\e659"; +} + +.tl-rtc-app-icon-shoucang3:before { + content: "\e604"; +} + +.tl-rtc-app-icon-clear:before { + content: "\e6d1"; +} + +.tl-rtc-app-icon-shangchuan11:before { + content: "\ee0c"; +} + +.tl-rtc-app-icon-yulan:before { + content: "\e65c"; +} + +.tl-rtc-app-icon-xiazai-:before { + content: "\e65d"; +} + +.tl-rtc-app-icon-shoucang2:before { + content: "\e65e"; +} + +.tl-rtc-app-icon-chongmingm:before { + content: "\e667"; +} + +.tl-rtc-app-icon-yidong:before { + content: "\e698"; +} + +.tl-rtc-app-icon-yidong1:before { + content: "\e63e"; +} + +.tl-rtc-app-icon-a-wenjianjiawenjian:before { + content: "\e69e"; +} + +.tl-rtc-app-icon-xinjianwenjianjia:before { + content: "\e630"; +} + +.tl-rtc-app-icon-yuyin1:before { + content: "\e8f7"; +} + +.tl-rtc-app-icon-zhibo1:before { + content: "\e7d5"; +} + +.tl-rtc-app-icon-yuyinxiaoxi:before { + content: "\e676"; +} + +.tl-rtc-app-icon-daochu:before { + content: "\e658"; +} + +.tl-rtc-app-icon-shanchu:before { + content: "\e654"; +} + +.tl-rtc-app-icon-daoru:before { + content: "\e655"; +} + +.tl-rtc-app-icon-quxiaozhiding:before { + content: "\e6eb"; +} + +.tl-rtc-app-icon-yichu:before { + content: "\e6d6"; +} + +.tl-rtc-app-icon-biaoji-:before { + content: "\e652"; +} + +.tl-rtc-app-icon-yaoqing:before { + content: "\e666"; +} + +.tl-rtc-app-icon-miandarao:before { + content: "\e651"; +} + +.tl-rtc-app-icon-zhiding1:before { + content: "\e704"; +} + +.tl-rtc-app-icon-saoma:before { + content: "\e749"; +} + +.tl-rtc-app-icon-shangxiaxian-shangxian-copy:before { + content: "\ee0b"; +} + +.tl-rtc-app-icon-guanbi:before { + content: "\e650"; +} + +.tl-rtc-app-icon-shangxiaxian-xiaxian:before { + content: "\e738"; +} + +.tl-rtc-app-icon-qunzhu:before { + content: "\e6ad"; +} + +.tl-rtc-app-icon-dian:before { + content: "\e648"; +} + +.tl-rtc-app-icon-lixian:before { + content: "\e64d"; +} + +.tl-rtc-app-icon-jiaru:before { + content: "\e645"; +} + +.tl-rtc-app-icon-shangchuanxiazai:before { + content: "\e63b"; +} + +.tl-rtc-app-icon-shangchuanxiazai1:before { + content: "\e63c"; +} + +.tl-rtc-app-icon-wenjianchuanshu:before { + content: "\e6c6"; +} + +.tl-rtc-app-icon-chuangjianqunliao:before { + content: "\e62c"; +} + +.tl-rtc-app-icon-shipinhuiyichuangjian:before { + content: "\ea47"; +} + +.tl-rtc-app-icon-_detail_chest:before { + content: "\e62d"; +} + +.tl-rtc-app-icon-gensuixitong-followsystem-line:before { + content: "\e629"; +} + +.tl-rtc-app-icon-mingliangmoshi:before { + content: "\e628"; +} + +.tl-rtc-app-icon-anhei:before { + content: "\e62b"; +} + +.tl-rtc-app-icon-fenxiang1:before { + content: "\e6a7"; +} + +.tl-rtc-app-icon-huifu:before { + content: "\e6c1"; +} + +.tl-rtc-app-icon-yishoucang:before { + content: "\e615"; +} + +.tl-rtc-app-icon-shoucang1:before { + content: "\e60e"; +} + +.tl-rtc-app-icon-Cyuyan:before { + content: "\ee07"; +} + +.tl-rtc-app-icon-APK:before { + content: "\ee09"; +} + +.tl-rtc-app-icon-java-copy:before { + content: "\ee0a"; +} + +.tl-rtc-app-icon-exe:before { + content: "\edfa"; +} + +.tl-rtc-app-icon-python:before { + content: "\edfb"; +} + +.tl-rtc-app-icon-CONF:before { + content: "\edfc"; +} + +.tl-rtc-app-icon-json:before { + content: "\e801"; +} + +.tl-rtc-app-icon-javascript:before { + content: "\edfd"; +} + +.tl-rtc-app-icon-csv:before { + content: "\edfe"; +} + +.tl-rtc-app-icon-dll:before { + content: "\edff"; +} + +.tl-rtc-app-icon-xmlwenjian:before { + content: "\ee00"; +} + +.tl-rtc-app-icon-shell:before { + content: "\ee01"; +} + +.tl-rtc-app-icon-PHP:before { + content: "\ee02"; +} + +.tl-rtc-app-icon-cpp-copy:before { + content: "\ee03"; +} + +.tl-rtc-app-icon-iso:before { + content: "\ee04"; +} + +.tl-rtc-app-icon-HTML:before { + content: "\ee05"; +} + +.tl-rtc-app-icon-css-copy:before { + content: "\ee06"; +} + +.tl-rtc-app-icon-wancheng:before { + content: "\e627"; +} + +.tl-rtc-app-icon-chulizhong:before { + content: "\e6b9"; +} + +.tl-rtc-app-icon-shangchuan:before { + content: "\e635"; +} + +.tl-rtc-app-icon-huiyiliebiao1:before { + content: "\e86b"; +} + +.tl-rtc-app-icon-yuding:before { + content: "\e6c5"; +} + +.tl-rtc-app-icon-yuanchengkongzhi:before { + content: "\e644"; +} + +.tl-rtc-app-icon-a-tongzhigonggao3x:before { + content: "\e624"; +} + +.tl-rtc-app-icon-liebiaomoshi:before { + content: "\e603"; +} + +.tl-rtc-app-icon-huiyi:before { + content: "\e747"; +} + +.tl-rtc-app-icon-shoucang:before { + content: "\e605"; +} + +.tl-rtc-app-icon-weixin:before { + content: "\e634"; +} + +.tl-rtc-app-icon-lineup:before { + content: "\e692"; +} + +.tl-rtc-app-icon-qq:before { + content: "\e614"; +} + +.tl-rtc-app-icon-huishouzhan:before { + content: "\e602"; +} + +.tl-rtc-app-icon-zuijinliulan:before { + content: "\e633"; +} + +.tl-rtc-app-icon-qunliao:before { + content: "\e622"; +} + +.tl-rtc-app-icon-wodewenjianjia:before { + content: "\e685"; +} + +.tl-rtc-app-icon-quanxian:before { + content: "\e612"; +} + +.tl-rtc-app-icon-pifu:before { + content: "\e647"; +} + +.tl-rtc-app-icon-qita:before { + content: "\e6d5"; +} + +.tl-rtc-app-icon-xiaoxi1:before { + content: "\e60f"; +} + +.tl-rtc-app-icon-caidan:before { + content: "\e607"; +} + +.tl-rtc-app-icon-zhanghao:before { + content: "\e68c"; +} + +.tl-rtc-app-icon-guaduan:before { + content: "\e646"; +} + +.tl-rtc-app-icon-shipin:before { + content: "\e85f"; +} + +.tl-rtc-app-icon-x:before { + content: "\e67d"; +} + +.tl-rtc-app-icon-fenxiang:before { + content: "\e739"; +} + +.tl-rtc-app-icon-xiangshang2:before { + content: "\e76e"; +} + +.tl-rtc-app-icon-xiangxia2:before { + content: "\e772"; +} + +.tl-rtc-app-icon-xiangyou1:before { + content: "\e775"; +} + +.tl-rtc-app-icon-xiangzuo1:before { + content: "\e779"; +} + +.tl-rtc-app-icon-70chenggong:before { + content: "\e649"; +} + +.tl-rtc-app-icon-71shibai:before { + content: "\e64a"; +} + +.tl-rtc-app-icon-jinggao:before { + content: "\e6b6"; +} + +.tl-rtc-app-icon-qiyeweixin:before { + content: "\e621"; +} + +.tl-rtc-app-icon-shouji:before { + content: "\e63a"; +} + +.tl-rtc-app-icon-31dianhua:before { + content: "\e600"; +} + +.tl-rtc-app-icon-baiban:before { + content: "\e61d"; +} + +.tl-rtc-app-icon-m-fuwenben:before { + content: "\e7d3"; +} + +.tl-rtc-app-icon-faqiliaotian:before { + content: "\e7da"; +} + +.tl-rtc-app-icon-gengduo:before { + content: "\e719"; +} + +.tl-rtc-app-icon-xiaoxi:before { + content: "\e618"; +} + +.tl-rtc-app-icon-tongxunlu:before { + content: "\e6af"; +} + +.tl-rtc-app-icon-shezhi:before { + content: "\e68f"; +} + +.tl-rtc-app-icon-huiyiricheng:before { + content: "\e636"; +} + +.tl-rtc-app-icon-wenjianjia:before { + content: "\e601"; +} + +.tl-rtc-app-icon-tuichu:before { + content: "\e637"; +} + +.tl-rtc-app-icon-youjian1:before { + content: "\e653"; +} + +.tl-rtc-app-icon-tianjia:before { + content: "\e657"; +} + +.tl-rtc-app-icon-icon:before { + content: "\e632"; +} + +.tl-rtc-app-icon-faxian:before { + content: "\e669"; +} + +.tl-rtc-app-icon-fuzhi:before { + content: "\e8b0"; +} + +.tl-rtc-app-icon-gitee:before { + content: "\e631"; +} + +.tl-rtc-app-icon-jianqie:before { + content: "\e62f"; +} + +.tl-rtc-app-icon-cuowu:before { + content: "\e62e"; +} + +.tl-rtc-app-icon-gerenzhongxin:before { + content: "\e62a"; +} + +.tl-rtc-app-icon-xiangjifanzhuan:before { + content: "\e6de"; +} + +.tl-rtc-app-icon-laoshi:before { + content: "\e81f"; +} + +.tl-rtc-app-icon-navbar_guanzhong:before { + content: "\e625"; +} + +.tl-rtc-app-icon-shengboyuyinxiaoxi:before { + content: "\e8c4"; +} + +.tl-rtc-app-icon-yuyin:before { + content: "\e813"; +} + +.tl-rtc-app-icon-fanzhuanjingtou:before { + content: "\e872"; +} + +.tl-rtc-app-icon-wangpan:before { + content: "\e63d"; +} + +.tl-rtc-app-icon-mima:before { + content: "\e67a"; +} + +.tl-rtc-app-icon-luzhi:before { + content: "\e741"; +} + +.tl-rtc-app-icon-shiwu-huabi:before { + content: "\e753"; +} + +.tl-rtc-app-icon-24px2x:before { + content: "\e623"; +} + +.tl-rtc-app-icon-zhibo:before { + content: "\e74f"; +} + +.tl-rtc-app-icon-guaduandianhua:before { + content: "\e61c"; +} + +.tl-rtc-app-icon-guanbiyangshengqi:before { + content: "\e61e"; +} + +.tl-rtc-app-icon-maikefeng-XDY:before { + content: "\e663"; +} + +.tl-rtc-app-icon-pingmugongxiang:before { + content: "\e746"; +} + +.tl-rtc-app-icon-shexiangtou:before { + content: "\eca6"; +} + +.tl-rtc-app-icon-laba:before { + content: "\e61f"; +} + +.tl-rtc-app-icon-guanbimaikefeng:before { + content: "\e643"; +} + +.tl-rtc-app-icon-liulanqi:before { + content: "\e6e8"; +} + +.tl-rtc-app-icon-sanjiaoxing:before { + content: "\e619"; +} + +.tl-rtc-app-icon-xiangshangsanjiaoxing:before { + content: "\e70f"; +} + +.tl-rtc-app-icon-xingxing:before { + content: "\e61a"; +} + +.tl-rtc-app-icon-xingxing1:before { + content: "\e639"; +} + +.tl-rtc-app-icon-tx-fill-pinghangsibianxing:before { + content: "\e64c"; +} + +.tl-rtc-app-icon-tx-fill-liubianxing:before { + content: "\e64b"; +} + +.tl-rtc-app-icon-pinghangsibianxing:before { + content: "\edf9"; +} + +.tl-rtc-app-icon-hexagon:before { + content: "\e61b"; +} + +.tl-rtc-app-icon-github:before { + content: "\e66f"; +} + +.tl-rtc-app-icon-Excel:before { + content: "\e602"; +} + +.tl-rtc-app-icon-File:before { + content: "\e603"; +} + +.tl-rtc-app-icon-Word:before { + content: "\e605"; +} + +.tl-rtc-app-icon-PPT:before { + content: "\e606"; +} + +.tl-rtc-app-icon-music:before { + content: "\e607"; +} + +.tl-rtc-app-icon-chengxu:before { + content: "\e608"; +} + +.tl-rtc-app-icon-shipin1:before { + content: "\e609"; +} + +.tl-rtc-app-icon-lianjiewenjian:before { + content: "\e60a"; +} + +.tl-rtc-app-icon-tupian:before { + content: "\e60b"; +} + +.tl-rtc-app-icon-yasuobao:before { + content: "\e60c"; +} + +.tl-rtc-app-icon-weizhiwenjian:before { + content: "\e60d"; +} + +.tl-rtc-app-icon-Pdf:before { + content: "\e610"; +} + +.tl-rtc-app-icon-txt1:before { + content: "\e611"; +} + +.tl-rtc-app-icon-WPS:before { + content: "\e612"; +} + +.tl-rtc-app-icon-shujuku:before { + content: "\e613"; +} + +.tl-rtc-app-icon-a-3D:before { + content: "\e614"; +} + +.tl-rtc-app-icon-youjian:before { + content: "\e616"; +} + +.tl-rtc-app-icon-peizhiwenjian:before { + content: "\e617"; +} + +.tl-rtc-app-icon-WIFI:before { + content: "\e700"; +} + +.tl-rtc-app-icon-hongbao:before { + content: "\e656"; +} + +.tl-rtc-app-icon-yuanjiao-rect:before { + content: "\e64e"; +} + +.tl-rtc-app-icon-circle:before { + content: "\e64f"; +} + +.tl-rtc-app-icon-xiangpica:before { + content: "\e6b8"; +} + +.tl-rtc-app-icon-wenzi:before { + content: "\e6ec"; +} + +.tl-rtc-app-icon-juxing:before { + content: "\e620"; +} + +.tl-rtc-app-icon-yuanxing:before { + content: "\e626"; +} + +.tl-rtc-app-icon-xiazai:before { + content: "\e638"; +} + +.tl-rtc-app-icon-tupian_huaban:before { + content: "\e691"; +} + +.tl-rtc-app-icon-gongju:before { + content: "\e6cf"; +} + +.tl-rtc-app-icon-five-g:before { + content: "\e63f"; +} + +.tl-rtc-app-icon-three-g:before { + content: "\e640"; +} + +.tl-rtc-app-icon-four-g:before { + content: "\e641"; +} + +.tl-rtc-app-icon-two-g:before { + content: "\e642"; +} + diff --git a/web-res/static/layui/font-ext/iconfont.js b/web-res/static/layui/font-ext/iconfont.js new file mode 100644 index 0000000..4b5eddb --- /dev/null +++ b/web-res/static/layui/font-ext/iconfont.js @@ -0,0 +1 @@ +window._iconfont_svg_string_4147343='',(l=>{var c=(a=(a=document.getElementsByTagName("script"))[a.length-1]).getAttribute("data-injectcss"),a=a.getAttribute("data-disable-injectsvg");if(!a){var h,t,p,i,o,z=function(c,a){a.parentNode.insertBefore(c,a)};if(c&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}h=function(){var c,a=document.createElement("div");a.innerHTML=l._iconfont_svg_string_4147343,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(c=document.body).firstChild?z(a,c.firstChild):c.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(p=h,i=l.document,o=!1,s(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,v())})}function v(){o||(o=!0,p())}function s(){try{i.documentElement.doScroll("left")}catch(c){return void setTimeout(s,50)}v()}})(window); \ No newline at end of file diff --git a/web-res/static/layui/font-ext/iconfont.json b/web-res/static/layui/font-ext/iconfont.json new file mode 100644 index 0000000..461ba93 --- /dev/null +++ b/web-res/static/layui/font-ext/iconfont.json @@ -0,0 +1,1983 @@ +{ + "id": "4147343", + "name": "无色图标", + "font_family": "iconfont", + "css_prefix_text": "tl-rtc-app-icon-", + "description": "", + "glyphs": [ + { + "icon_id": "5485638", + "name": "切换", + "font_class": "qiehuan", + "unicode": "e6b3", + "unicode_decimal": 59059 + }, + { + "icon_id": "14850020", + "name": "关闭屏幕共享", + "font_class": "guanbipingmugongxiang", + "unicode": "e6b2", + "unicode_decimal": 59058 + }, + { + "icon_id": "13211081", + "name": "切换屏幕分享", + "font_class": "svg", + "unicode": "e6b1", + "unicode_decimal": 59057 + }, + { + "icon_id": "10217470", + "name": "关闭摄像头", + "font_class": "guanbishexiangtou", + "unicode": "e6b0", + "unicode_decimal": 59056 + }, + { + "icon_id": "10147138", + "name": "warning", + "font_class": "warning1", + "unicode": "e6ae", + "unicode_decimal": 59054 + }, + { + "icon_id": "11372757", + "name": "成功", + "font_class": "chenggong", + "unicode": "e8c3", + "unicode_decimal": 59587 + }, + { + "icon_id": "11372770", + "name": "失败", + "font_class": "shibai", + "unicode": "e8c5", + "unicode_decimal": 59589 + }, + { + "icon_id": "29650025", + "name": "warning", + "font_class": "warning", + "unicode": "ed53", + "unicode_decimal": 60755 + }, + { + "icon_id": "34453007", + "name": "info-fill", + "font_class": "info-fill", + "unicode": "e83d", + "unicode_decimal": 59453 + }, + { + "icon_id": "5243442", + "name": "合并单元格", + "font_class": "hebingdanyuange1", + "unicode": "e6ac", + "unicode_decimal": 59052 + }, + { + "icon_id": "39139459", + "name": "取消合并", + "font_class": "a-22quxiaohebingdanyuange", + "unicode": "e6ab", + "unicode_decimal": 59051 + }, + { + "icon_id": "5799831", + "name": "远程控制", + "font_class": "yuanchengkongzhi1", + "unicode": "e6aa", + "unicode_decimal": 59050 + }, + { + "icon_id": "30849212", + "name": "远程控制", + "font_class": "yuanchengkongzhi2", + "unicode": "e7d4", + "unicode_decimal": 59348 + }, + { + "icon_id": "19657879", + "name": "删除线", + "font_class": "strikethrough", + "unicode": "e6a9", + "unicode_decimal": 59049 + }, + { + "icon_id": "6690703", + "name": "清除格式", + "font_class": "qingchugeshi", + "unicode": "e794", + "unicode_decimal": 59284 + }, + { + "icon_id": "33860043", + "name": "自动换行", + "font_class": "zidonghuanhang", + "unicode": "e95a", + "unicode_decimal": 59738 + }, + { + "icon_id": "38010126", + "name": "垂直对齐-居下对齐", + "font_class": "chuizhiduiqi-juxiaduiqi", + "unicode": "e821", + "unicode_decimal": 59425 + }, + { + "icon_id": "38010127", + "name": "垂直对齐-居上对齐", + "font_class": "chuizhiduiqi-jushangduiqi", + "unicode": "e822", + "unicode_decimal": 59426 + }, + { + "icon_id": "38010128", + "name": "垂直对齐-居中对齐", + "font_class": "chuizhiduiqi-juzhongduiqi", + "unicode": "e823", + "unicode_decimal": 59427 + }, + { + "icon_id": "15557331", + "name": "背景色2", + "font_class": "biankuangyanse", + "unicode": "e6a8", + "unicode_decimal": 59048 + }, + { + "icon_id": "29786301", + "name": "缩小", + "font_class": "suoxiao", + "unicode": "e6a6", + "unicode_decimal": 59046 + }, + { + "icon_id": "1004713", + "name": "保存", + "font_class": "baocun", + "unicode": "e6a5", + "unicode_decimal": 59045 + }, + { + "icon_id": "7594808", + "name": "24gl-fileEmpty", + "font_class": "a24gl-fileEmpty", + "unicode": "eabf", + "unicode_decimal": 60095 + }, + { + "icon_id": "7593834", + "name": "20gl-repeat2", + "font_class": "a20gl-repeat2", + "unicode": "ea51", + "unicode_decimal": 59985 + }, + { + "icon_id": "4431966", + "name": "刷新", + "font_class": "shuaxin", + "unicode": "e6a4", + "unicode_decimal": 59044 + }, + { + "icon_id": "3185528", + "name": "问好", + "font_class": "wenhao", + "unicode": "e6a3", + "unicode_decimal": 59043 + }, + { + "icon_id": "18892310", + "name": "用户分组", + "font_class": "pingtaiiconhuizong_huaban1fuben5", + "unicode": "e6a2", + "unicode_decimal": 59042 + }, + { + "icon_id": "1667781", + "name": "空间清理2", + "font_class": "kongjianqingli", + "unicode": "e6a0", + "unicode_decimal": 59040 + }, + { + "icon_id": "11337992", + "name": "操作记录", + "font_class": "caozuojilu1", + "unicode": "e6a1", + "unicode_decimal": 59041 + }, + { + "icon_id": "12217885", + "name": "加密", + "font_class": "jiami", + "unicode": "e69f", + "unicode_decimal": 59039 + }, + { + "icon_id": "19488919", + "name": "筛选", + "font_class": "shaixuan", + "unicode": "e69d", + "unicode_decimal": 59037 + }, + { + "icon_id": "43277329", + "name": "大模型", + "font_class": "damoxing", + "unicode": "e71e", + "unicode_decimal": 59166 + }, + { + "icon_id": "7319076", + "name": "知识库", + "font_class": "zhishi", + "unicode": "e69b", + "unicode_decimal": 59035 + }, + { + "icon_id": "2059669", + "name": "智能客服", + "font_class": "zhinengkefu", + "unicode": "e697", + "unicode_decimal": 59031 + }, + { + "icon_id": "39848988", + "name": "机器人", + "font_class": "robot6", + "unicode": "e75e", + "unicode_decimal": 59230 + }, + { + "icon_id": "6366905", + "name": "客服", + "font_class": "kefu", + "unicode": "e699", + "unicode_decimal": 59033 + }, + { + "icon_id": "8435907", + "name": "机器人", + "font_class": "jiqiren", + "unicode": "e78f", + "unicode_decimal": 59279 + }, + { + "icon_id": "23587462", + "name": "七牛云存储", + "font_class": "qiniuyuncunchu", + "unicode": "e69a", + "unicode_decimal": 59034 + }, + { + "icon_id": "10633906", + "name": "名片", + "font_class": "mingpian", + "unicode": "e694", + "unicode_decimal": 59028 + }, + { + "icon_id": "14219935", + "name": "名片_名片夹", + "font_class": "mingpian_mingpianjia-78", + "unicode": "e695", + "unicode_decimal": 59029 + }, + { + "icon_id": "23169793", + "name": "名片", + "font_class": "mingpian1", + "unicode": "e696", + "unicode_decimal": 59030 + }, + { + "icon_id": "19816737", + "name": "常用语", + "font_class": "changyongyu", + "unicode": "e690", + "unicode_decimal": 59024 + }, + { + "icon_id": "35065771", + "name": "常用语", + "font_class": "changyongyu1", + "unicode": "e693", + "unicode_decimal": 59027 + }, + { + "icon_id": "1376728", + "name": "脚印", + "font_class": "jiaoyin", + "unicode": "e68e", + "unicode_decimal": 59022 + }, + { + "icon_id": "36581256", + "name": "脚印", + "font_class": "jiaoyin1", + "unicode": "eb83", + "unicode_decimal": 60291 + }, + { + "icon_id": "11346297", + "name": "快捷消息", + "font_class": "huihua-", + "unicode": "e68d", + "unicode_decimal": 59021 + }, + { + "icon_id": "11013332", + "name": "群聊", + "font_class": "qunliao1", + "unicode": "e68b", + "unicode_decimal": 59019 + }, + { + "icon_id": "3304637", + "name": "回滚", + "font_class": "huigun", + "unicode": "e688", + "unicode_decimal": 59016 + }, + { + "icon_id": "5392436", + "name": "减少", + "font_class": "jianshao", + "unicode": "e689", + "unicode_decimal": 59017 + }, + { + "icon_id": "5392465", + "name": "增加", + "font_class": "zengjia", + "unicode": "e68a", + "unicode_decimal": 59018 + }, + { + "icon_id": "43112722", + "name": "回滚", + "font_class": "huigun-copy", + "unicode": "ee0f", + "unicode_decimal": 60943 + }, + { + "icon_id": "5387745", + "name": "保存_o", + "font_class": "baocun_o", + "unicode": "eb47", + "unicode_decimal": 60231 + }, + { + "icon_id": "5978786", + "name": "number-axis", + "font_class": "shuzhou", + "unicode": "e675", + "unicode_decimal": 58997 + }, + { + "icon_id": "5978810", + "name": "cancel-full-screen", + "font_class": "shouqiquanping", + "unicode": "e677", + "unicode_decimal": 58999 + }, + { + "icon_id": "5978811", + "name": "right-align", + "font_class": "youduiqi", + "unicode": "e678", + "unicode_decimal": 59000 + }, + { + "icon_id": "5978816", + "name": "left-align", + "font_class": "zuoduiqi", + "unicode": "e679", + "unicode_decimal": 59001 + }, + { + "icon_id": "5978831", + "name": "middle-align", + "font_class": "juzhongduiqi", + "unicode": "e67b", + "unicode_decimal": 59003 + }, + { + "icon_id": "5978835", + "name": "full-screen", + "font_class": "quanping", + "unicode": "e67f", + "unicode_decimal": 59007 + }, + { + "icon_id": "6337469", + "name": "字体标题", + "font_class": "zitibiaoti", + "unicode": "ec84", + "unicode_decimal": 60548 + }, + { + "icon_id": "8137611", + "name": "字体缩小", + "font_class": "zitisuoxiao", + "unicode": "e680", + "unicode_decimal": 59008 + }, + { + "icon_id": "8137645", + "name": "字体放大", + "font_class": "zitifangda", + "unicode": "e681", + "unicode_decimal": 59009 + }, + { + "icon_id": "12891384", + "name": "字体颜色", + "font_class": "zitiyanse", + "unicode": "e682", + "unicode_decimal": 59010 + }, + { + "icon_id": "24206643", + "name": "符号列表", + "font_class": "format_list_bulleted_black_24dp", + "unicode": "e73d", + "unicode_decimal": 59197 + }, + { + "icon_id": "24206645", + "name": "编号列表", + "font_class": "format_list_numbered_black_24dp", + "unicode": "e73c", + "unicode_decimal": 59196 + }, + { + "icon_id": "27556853", + "name": "加粗@3x", + "font_class": "a-jiacu3x", + "unicode": "e683", + "unicode_decimal": 59011 + }, + { + "icon_id": "27556868", + "name": "下划线@3x", + "font_class": "a-xiahuaxian3x", + "unicode": "e684", + "unicode_decimal": 59012 + }, + { + "icon_id": "40268564", + "name": "倾斜", + "font_class": "qingxie", + "unicode": "e686", + "unicode_decimal": 59014 + }, + { + "icon_id": "19652324", + "name": "放大展示", + "font_class": "fangdazhanshi", + "unicode": "e671", + "unicode_decimal": 58993 + }, + { + "icon_id": "17542187", + "name": "我的-关于我们", + "font_class": "wode-guanyuwomen", + "unicode": "e672", + "unicode_decimal": 58994 + }, + { + "icon_id": "12839545", + "name": "腾讯云", + "font_class": "tengxunyun", + "unicode": "e6f3", + "unicode_decimal": 59123 + }, + { + "icon_id": "36086904", + "name": "阿里云", + "font_class": "aliyun", + "unicode": "ecfe", + "unicode_decimal": 60670 + }, + { + "icon_id": "10569671", + "name": "云服务器", + "font_class": "yunfuwuqi", + "unicode": "e673", + "unicode_decimal": 58995 + }, + { + "icon_id": "6852284", + "name": "添加", + "font_class": "tianjia1", + "unicode": "e6df", + "unicode_decimal": 59103 + }, + { + "icon_id": "12097377", + "name": "撤回", + "font_class": "chehui", + "unicode": "e670", + "unicode_decimal": 58992 + }, + { + "icon_id": "11729725", + "name": "回复", + "font_class": "huifu1", + "unicode": "e66e", + "unicode_decimal": 58990 + }, + { + "icon_id": "42957347", + "name": "表情", + "font_class": "biaoqing", + "unicode": "ee0e", + "unicode_decimal": 60942 + }, + { + "icon_id": "39084111", + "name": "抓手抓起", + "font_class": "zhuashouzhuaqi", + "unicode": "e6f0", + "unicode_decimal": 59120 + }, + { + "icon_id": "2212387", + "name": "代办", + "font_class": "daiban", + "unicode": "e674", + "unicode_decimal": 58996 + }, + { + "icon_id": "5392449", + "name": "提示", + "font_class": "tishi", + "unicode": "e66d", + "unicode_decimal": 58989 + }, + { + "icon_id": "4954913", + "name": "开始", + "font_class": "kaishi1", + "unicode": "e66c", + "unicode_decimal": 58988 + }, + { + "icon_id": "1761429", + "name": "防护开启", + "font_class": "fanghukaiqi", + "unicode": "e66b", + "unicode_decimal": 58987 + }, + { + "icon_id": "10274326", + "name": "输入", + "font_class": "shuru", + "unicode": "e73a", + "unicode_decimal": 59194 + }, + { + "icon_id": "10064728", + "name": "文字", + "font_class": "wenzi1", + "unicode": "e66a", + "unicode_decimal": 58986 + }, + { + "icon_id": "14692444", + "name": "类型", + "font_class": "leixing", + "unicode": "e665", + "unicode_decimal": 58981 + }, + { + "icon_id": "38316753", + "name": "字符", + "font_class": "zifu", + "unicode": "e668", + "unicode_decimal": 58984 + }, + { + "icon_id": "37171464", + "name": "导航栏-设置", + "font_class": "a-fenzu32", + "unicode": "e6f6", + "unicode_decimal": 59126 + }, + { + "icon_id": "40355486", + "name": "拉黑", + "font_class": "lahei", + "unicode": "e662", + "unicode_decimal": 58978 + }, + { + "icon_id": "42033682", + "name": "拉黑-1", + "font_class": "lahei-1", + "unicode": "e664", + "unicode_decimal": 58980 + }, + { + "icon_id": "13333840", + "name": "截屏", + "font_class": "jieping", + "unicode": "e661", + "unicode_decimal": 58977 + }, + { + "icon_id": "2312417", + "name": "放大", + "font_class": "fangda", + "unicode": "e660", + "unicode_decimal": 58976 + }, + { + "icon_id": "12796975", + "name": "解锁", + "font_class": "jiesuo", + "unicode": "e65f", + "unicode_decimal": 58975 + }, + { + "icon_id": "20447299", + "name": "开始", + "font_class": "kaishi", + "unicode": "e788", + "unicode_decimal": 59272 + }, + { + "icon_id": "42270894", + "name": "上一步", + "font_class": "shangyibu-01", + "unicode": "ee0d", + "unicode_decimal": 60941 + }, + { + "icon_id": "29548280", + "name": "下一步", + "font_class": "xiayibu-01", + "unicode": "e65b", + "unicode_decimal": 58971 + }, + { + "icon_id": "37851679", + "name": "设备检测", + "font_class": "shebeijiance", + "unicode": "e67c", + "unicode_decimal": 59004 + }, + { + "icon_id": "4580319", + "name": "简介", + "font_class": "jianjie", + "unicode": "e764", + "unicode_decimal": 59236 + }, + { + "icon_id": "20187557", + "name": "会议名称", + "font_class": "huiyimingcheng", + "unicode": "e65a", + "unicode_decimal": 58970 + }, + { + "icon_id": "16365901", + "name": "文档", + "font_class": "wendang", + "unicode": "e69c", + "unicode_decimal": 59036 + }, + { + "icon_id": "31947088", + "name": "文档", + "font_class": "wendang1", + "unicode": "e67e", + "unicode_decimal": 59006 + }, + { + "icon_id": "41005014", + "name": "会议记录", + "font_class": "huiyijilu", + "unicode": "e8a0", + "unicode_decimal": 59552 + }, + { + "icon_id": "42228444", + "name": "会议列表", + "font_class": "huiyiliebiao", + "unicode": "e687", + "unicode_decimal": 59015 + }, + { + "icon_id": "15993153", + "name": "加入池子", + "font_class": "jiaruchizi", + "unicode": "e73b", + "unicode_decimal": 59195 + }, + { + "icon_id": "8966255", + "name": "取消收藏", + "font_class": "ziyuan", + "unicode": "e659", + "unicode_decimal": 58969 + }, + { + "icon_id": "28016614", + "name": "收藏", + "font_class": "shoucang3", + "unicode": "e604", + "unicode_decimal": 58884 + }, + { + "icon_id": "586799", + "name": "clear", + "font_class": "clear", + "unicode": "e6d1", + "unicode_decimal": 59089 + }, + { + "icon_id": "42193812", + "name": "上传", + "font_class": "shangchuan11", + "unicode": "ee0c", + "unicode_decimal": 60940 + }, + { + "icon_id": "6180901", + "name": "预览", + "font_class": "yulan", + "unicode": "e65c", + "unicode_decimal": 58972 + }, + { + "icon_id": "6941977", + "name": "下载", + "font_class": "xiazai-", + "unicode": "e65d", + "unicode_decimal": 58973 + }, + { + "icon_id": "22357086", + "name": "收藏", + "font_class": "shoucang2", + "unicode": "e65e", + "unicode_decimal": 58974 + }, + { + "icon_id": "8449963", + "name": "chongmingm", + "font_class": "chongmingm", + "unicode": "e667", + "unicode_decimal": 58983 + }, + { + "icon_id": "7429924", + "name": "移动", + "font_class": "yidong", + "unicode": "e698", + "unicode_decimal": 59032 + }, + { + "icon_id": "19131374", + "name": "移动", + "font_class": "yidong1", + "unicode": "e63e", + "unicode_decimal": 58942 + }, + { + "icon_id": "27229314", + "name": "文件夹,文件", + "font_class": "a-wenjianjiawenjian", + "unicode": "e69e", + "unicode_decimal": 59038 + }, + { + "icon_id": "31160256", + "name": "新建文件夹", + "font_class": "xinjianwenjianjia", + "unicode": "e630", + "unicode_decimal": 58928 + }, + { + "icon_id": "3640135", + "name": "语音", + "font_class": "yuyin1", + "unicode": "e8f7", + "unicode_decimal": 59639 + }, + { + "icon_id": "8798014", + "name": "直播", + "font_class": "zhibo1", + "unicode": "e7d5", + "unicode_decimal": 59349 + }, + { + "icon_id": "27953835", + "name": "语音消息", + "font_class": "yuyinxiaoxi", + "unicode": "e676", + "unicode_decimal": 58998 + }, + { + "icon_id": "3101152", + "name": "导出", + "font_class": "daochu", + "unicode": "e658", + "unicode_decimal": 58968 + }, + { + "icon_id": "1459151", + "name": "删除", + "font_class": "shanchu", + "unicode": "e654", + "unicode_decimal": 58964 + }, + { + "icon_id": "3278355", + "name": "导入", + "font_class": "daoru", + "unicode": "e655", + "unicode_decimal": 58965 + }, + { + "icon_id": "8606080", + "name": "取消置顶", + "font_class": "quxiaozhiding", + "unicode": "e6eb", + "unicode_decimal": 59115 + }, + { + "icon_id": "6851369", + "name": "移除", + "font_class": "yichu", + "unicode": "e6d6", + "unicode_decimal": 59094 + }, + { + "icon_id": "13251669", + "name": "标记-01", + "font_class": "biaoji-", + "unicode": "e652", + "unicode_decimal": 58962 + }, + { + "icon_id": "1301389", + "name": "邀请", + "font_class": "yaoqing", + "unicode": "e666", + "unicode_decimal": 58982 + }, + { + "icon_id": "4096184", + "name": "免打扰", + "font_class": "miandarao", + "unicode": "e651", + "unicode_decimal": 58961 + }, + { + "icon_id": "4933249", + "name": "置顶", + "font_class": "zhiding1", + "unicode": "e704", + "unicode_decimal": 59140 + }, + { + "icon_id": "577354", + "name": "扫码", + "font_class": "saoma", + "unicode": "e749", + "unicode_decimal": 59209 + }, + { + "icon_id": "41519948", + "name": "上下线-上线", + "font_class": "shangxiaxian-shangxian-copy", + "unicode": "ee0b", + "unicode_decimal": 60939 + }, + { + "icon_id": "16364317", + "name": "关闭", + "font_class": "guanbi", + "unicode": "e650", + "unicode_decimal": 58960 + }, + { + "icon_id": "30705982", + "name": "上下线-下线", + "font_class": "shangxiaxian-xiaxian", + "unicode": "e738", + "unicode_decimal": 59192 + }, + { + "icon_id": "3461828", + "name": "群主", + "font_class": "qunzhu", + "unicode": "e6ad", + "unicode_decimal": 59053 + }, + { + "icon_id": "1920286", + "name": "点", + "font_class": "dian", + "unicode": "e648", + "unicode_decimal": 58952 + }, + { + "icon_id": "6903296", + "name": "离线", + "font_class": "lixian", + "unicode": "e64d", + "unicode_decimal": 58957 + }, + { + "icon_id": "34813635", + "name": "加入", + "font_class": "jiaru", + "unicode": "e645", + "unicode_decimal": 58949 + }, + { + "icon_id": "7925744", + "name": "上传下载", + "font_class": "shangchuanxiazai", + "unicode": "e63b", + "unicode_decimal": 58939 + }, + { + "icon_id": "7927162", + "name": "上传下载", + "font_class": "shangchuanxiazai1", + "unicode": "e63c", + "unicode_decimal": 58940 + }, + { + "icon_id": "10906396", + "name": "IDP-文件传输", + "font_class": "wenjianchuanshu", + "unicode": "e6c6", + "unicode_decimal": 59078 + }, + { + "icon_id": "2593625", + "name": "创建群聊", + "font_class": "chuangjianqunliao", + "unicode": "e62c", + "unicode_decimal": 58924 + }, + { + "icon_id": "26876074", + "name": "视频会议创建", + "font_class": "shipinhuiyichuangjian", + "unicode": "ea47", + "unicode_decimal": 59975 + }, + { + "icon_id": "5078451", + "name": "fdcjjrcx", + "font_class": "_detail_chest", + "unicode": "e62d", + "unicode_decimal": 58925 + }, + { + "icon_id": "30243501", + "name": "跟随系统-followsystem-line", + "font_class": "gensuixitong-followsystem-line", + "unicode": "e629", + "unicode_decimal": 58921 + }, + { + "icon_id": "381723", + "name": "明亮模式", + "font_class": "mingliangmoshi", + "unicode": "e628", + "unicode_decimal": 58920 + }, + { + "icon_id": "33468421", + "name": "暗黑", + "font_class": "anhei", + "unicode": "e62b", + "unicode_decimal": 58923 + }, + { + "icon_id": "15346600", + "name": "分享", + "font_class": "fenxiang1", + "unicode": "e6a7", + "unicode_decimal": 59047 + }, + { + "icon_id": "423642", + "name": "恢复", + "font_class": "huifu", + "unicode": "e6c1", + "unicode_decimal": 59073 + }, + { + "icon_id": "9526824", + "name": "已收藏", + "font_class": "yishoucang", + "unicode": "e615", + "unicode_decimal": 58901 + }, + { + "icon_id": "5057246", + "name": "收藏", + "font_class": "shoucang1", + "unicode": "e60e", + "unicode_decimal": 58894 + }, + { + "icon_id": "40577212", + "name": "C#语言", + "font_class": "Cyuyan", + "unicode": "ee07", + "unicode_decimal": 60935 + }, + { + "icon_id": "40577214", + "name": "APK", + "font_class": "APK", + "unicode": "ee09", + "unicode_decimal": 60937 + }, + { + "icon_id": "40577218", + "name": "java", + "font_class": "java-copy", + "unicode": "ee0a", + "unicode_decimal": 60938 + }, + { + "icon_id": "40577188", + "name": "exe", + "font_class": "exe", + "unicode": "edfa", + "unicode_decimal": 60922 + }, + { + "icon_id": "40577192", + "name": "python", + "font_class": "python", + "unicode": "edfb", + "unicode_decimal": 60923 + }, + { + "icon_id": "40577195", + "name": "CONF", + "font_class": "CONF", + "unicode": "edfc", + "unicode_decimal": 60924 + }, + { + "icon_id": "22910183", + "name": "json", + "font_class": "json", + "unicode": "e801", + "unicode_decimal": 59393 + }, + { + "icon_id": "40577196", + "name": "javascript", + "font_class": "javascript", + "unicode": "edfd", + "unicode_decimal": 60925 + }, + { + "icon_id": "40577197", + "name": "csv", + "font_class": "csv", + "unicode": "edfe", + "unicode_decimal": 60926 + }, + { + "icon_id": "40577200", + "name": "dll", + "font_class": "dll", + "unicode": "edff", + "unicode_decimal": 60927 + }, + { + "icon_id": "40577202", + "name": "xml文件", + "font_class": "xmlwenjian", + "unicode": "ee00", + "unicode_decimal": 60928 + }, + { + "icon_id": "40577203", + "name": "shell", + "font_class": "shell", + "unicode": "ee01", + "unicode_decimal": 60929 + }, + { + "icon_id": "40577204", + "name": "PHP", + "font_class": "PHP", + "unicode": "ee02", + "unicode_decimal": 60930 + }, + { + "icon_id": "40577205", + "name": "cpp-copy", + "font_class": "cpp-copy", + "unicode": "ee03", + "unicode_decimal": 60931 + }, + { + "icon_id": "40577206", + "name": "iso", + "font_class": "iso", + "unicode": "ee04", + "unicode_decimal": 60932 + }, + { + "icon_id": "40577208", + "name": "HTML", + "font_class": "HTML", + "unicode": "ee05", + "unicode_decimal": 60933 + }, + { + "icon_id": "40577210", + "name": "css", + "font_class": "css-copy", + "unicode": "ee06", + "unicode_decimal": 60934 + }, + { + "icon_id": "1163342", + "name": "完成", + "font_class": "wancheng", + "unicode": "e627", + "unicode_decimal": 58919 + }, + { + "icon_id": "20587071", + "name": "处理中", + "font_class": "chulizhong", + "unicode": "e6b9", + "unicode_decimal": 59065 + }, + { + "icon_id": "16364331", + "name": "上传", + "font_class": "shangchuan", + "unicode": "e635", + "unicode_decimal": 58933 + }, + { + "icon_id": "30617884", + "name": "会议列表", + "font_class": "huiyiliebiao1", + "unicode": "e86b", + "unicode_decimal": 59499 + }, + { + "icon_id": "3529032", + "name": "预定", + "font_class": "yuding", + "unicode": "e6c5", + "unicode_decimal": 59077 + }, + { + "icon_id": "20955715", + "name": "远程控制", + "font_class": "yuanchengkongzhi", + "unicode": "e644", + "unicode_decimal": 58948 + }, + { + "icon_id": "29635299", + "name": "通知公告", + "font_class": "a-tongzhigonggao3x", + "unicode": "e624", + "unicode_decimal": 58916 + }, + { + "icon_id": "201552", + "name": "列表模式", + "font_class": "liebiaomoshi", + "unicode": "e603", + "unicode_decimal": 58883 + }, + { + "icon_id": "2792489", + "name": "会议", + "font_class": "huiyi", + "unicode": "e747", + "unicode_decimal": 59207 + }, + { + "icon_id": "172696", + "name": "收藏", + "font_class": "shoucang", + "unicode": "e605", + "unicode_decimal": 58885 + }, + { + "icon_id": "933713", + "name": "微信", + "font_class": "weixin", + "unicode": "e634", + "unicode_decimal": 58932 + }, + { + "icon_id": "2072844", + "name": "line up_8px", + "font_class": "lineup", + "unicode": "e692", + "unicode_decimal": 59026 + }, + { + "icon_id": "8989633", + "name": "qq", + "font_class": "qq", + "unicode": "e614", + "unicode_decimal": 58900 + }, + { + "icon_id": "6013853", + "name": "回收站", + "font_class": "huishouzhan", + "unicode": "e602", + "unicode_decimal": 58882 + }, + { + "icon_id": "6234420", + "name": "最近浏览", + "font_class": "zuijinliulan", + "unicode": "e633", + "unicode_decimal": 58931 + }, + { + "icon_id": "6683278", + "name": "群聊", + "font_class": "qunliao", + "unicode": "e622", + "unicode_decimal": 58914 + }, + { + "icon_id": "11367465", + "name": "我的文件夹", + "font_class": "wodewenjianjia", + "unicode": "e685", + "unicode_decimal": 59013 + }, + { + "icon_id": "736503", + "name": "权限", + "font_class": "quanxian", + "unicode": "e612", + "unicode_decimal": 58898 + }, + { + "icon_id": "4251744", + "name": "皮肤", + "font_class": "pifu", + "unicode": "e647", + "unicode_decimal": 58951 + }, + { + "icon_id": "8430121", + "name": "其他", + "font_class": "qita", + "unicode": "e6d5", + "unicode_decimal": 59093 + }, + { + "icon_id": "9148582", + "name": "消息", + "font_class": "xiaoxi1", + "unicode": "e60f", + "unicode_decimal": 58895 + }, + { + "icon_id": "9384062", + "name": "菜单", + "font_class": "caidan", + "unicode": "e607", + "unicode_decimal": 58887 + }, + { + "icon_id": "10570303", + "name": "帐号", + "font_class": "zhanghao", + "unicode": "e68c", + "unicode_decimal": 59020 + }, + { + "icon_id": "6291978", + "name": "挂断", + "font_class": "guaduan", + "unicode": "e646", + "unicode_decimal": 58950 + }, + { + "icon_id": "16399024", + "name": "视频", + "font_class": "shipin", + "unicode": "e85f", + "unicode_decimal": 59487 + }, + { + "icon_id": "18957389", + "name": "x", + "font_class": "x", + "unicode": "e67d", + "unicode_decimal": 59005 + }, + { + "icon_id": "577337", + "name": "分享", + "font_class": "fenxiang", + "unicode": "e739", + "unicode_decimal": 59193 + }, + { + "icon_id": "577395", + "name": "向上2", + "font_class": "xiangshang2", + "unicode": "e76e", + "unicode_decimal": 59246 + }, + { + "icon_id": "577399", + "name": "向下2", + "font_class": "xiangxia2", + "unicode": "e772", + "unicode_decimal": 59250 + }, + { + "icon_id": "577402", + "name": "向右1", + "font_class": "xiangyou1", + "unicode": "e775", + "unicode_decimal": 59253 + }, + { + "icon_id": "577406", + "name": "向左1", + "font_class": "xiangzuo1", + "unicode": "e779", + "unicode_decimal": 59257 + }, + { + "icon_id": "582602", + "name": "成功", + "font_class": "70chenggong", + "unicode": "e649", + "unicode_decimal": 58953 + }, + { + "icon_id": "582603", + "name": "失败", + "font_class": "71shibai", + "unicode": "e64a", + "unicode_decimal": 58954 + }, + { + "icon_id": "1684788", + "name": "警告", + "font_class": "jinggao", + "unicode": "e6b6", + "unicode_decimal": 59062 + }, + { + "icon_id": "22032561", + "name": "企业微信", + "font_class": "qiyeweixin", + "unicode": "e621", + "unicode_decimal": 58913 + }, + { + "icon_id": "5386020", + "name": "手机", + "font_class": "shouji", + "unicode": "e63a", + "unicode_decimal": 58938 + }, + { + "icon_id": "201577", + "name": "3.1电话", + "font_class": "31dianhua", + "unicode": "e600", + "unicode_decimal": 58880 + }, + { + "icon_id": "12290471", + "name": "白板", + "font_class": "baiban", + "unicode": "e61d", + "unicode_decimal": 58909 + }, + { + "icon_id": "21027300", + "name": "m-富文本", + "font_class": "m-fuwenben", + "unicode": "e7d3", + "unicode_decimal": 59347 + }, + { + "icon_id": "4553723", + "name": "发起聊天", + "font_class": "faqiliaotian", + "unicode": "e7da", + "unicode_decimal": 59354 + }, + { + "icon_id": "3538385", + "name": "更多", + "font_class": "gengduo", + "unicode": "e719", + "unicode_decimal": 59161 + }, + { + "icon_id": "2681719", + "name": "消息", + "font_class": "xiaoxi", + "unicode": "e618", + "unicode_decimal": 58904 + }, + { + "icon_id": "18664716", + "name": "通讯录", + "font_class": "tongxunlu", + "unicode": "e6af", + "unicode_decimal": 59055 + }, + { + "icon_id": "666885", + "name": "设置", + "font_class": "shezhi", + "unicode": "e68f", + "unicode_decimal": 59023 + }, + { + "icon_id": "6429413", + "name": "会议日程", + "font_class": "huiyiricheng", + "unicode": "e636", + "unicode_decimal": 58934 + }, + { + "icon_id": "1126", + "name": "文件夹", + "font_class": "wenjianjia", + "unicode": "e601", + "unicode_decimal": 58881 + }, + { + "icon_id": "826162", + "name": "退出", + "font_class": "tuichu", + "unicode": "e637", + "unicode_decimal": 58935 + }, + { + "icon_id": "4251773", + "name": "邮件", + "font_class": "youjian1", + "unicode": "e653", + "unicode_decimal": 58963 + }, + { + "icon_id": "16165587", + "name": "添加", + "font_class": "tianjia", + "unicode": "e657", + "unicode_decimal": 58967 + }, + { + "icon_id": "340501", + "name": "消息提示", + "font_class": "icon", + "unicode": "e632", + "unicode_decimal": 58930 + }, + { + "icon_id": "6548530", + "name": "发现", + "font_class": "faxian", + "unicode": "e669", + "unicode_decimal": 58985 + }, + { + "icon_id": "11372665", + "name": "复制", + "font_class": "fuzhi", + "unicode": "e8b0", + "unicode_decimal": 59568 + }, + { + "icon_id": "26267572", + "name": "gitee", + "font_class": "gitee", + "unicode": "e631", + "unicode_decimal": 58929 + }, + { + "icon_id": "1117", + "name": "剪切", + "font_class": "jianqie", + "unicode": "e62f", + "unicode_decimal": 58927 + }, + { + "icon_id": "9826657", + "name": "错误", + "font_class": "cuowu", + "unicode": "e62e", + "unicode_decimal": 58926 + }, + { + "icon_id": "10199157", + "name": "个人中心", + "font_class": "gerenzhongxin", + "unicode": "e62a", + "unicode_decimal": 58922 + }, + { + "icon_id": "3405264", + "name": "相机反转", + "font_class": "xiangjifanzhuan", + "unicode": "e6de", + "unicode_decimal": 59102 + }, + { + "icon_id": "22960451", + "name": "老师", + "font_class": "laoshi", + "unicode": "e81f", + "unicode_decimal": 59423 + }, + { + "icon_id": "11341738", + "name": "11navbar_观众", + "font_class": "navbar_guanzhong", + "unicode": "e625", + "unicode_decimal": 58917 + }, + { + "icon_id": "1727449", + "name": "214声波、语音消息", + "font_class": "shengboyuyinxiaoxi", + "unicode": "e8c4", + "unicode_decimal": 59588 + }, + { + "icon_id": "17605450", + "name": "语音", + "font_class": "yuyin", + "unicode": "e813", + "unicode_decimal": 59411 + }, + { + "icon_id": "2076200", + "name": "翻转镜头", + "font_class": "fanzhuanjingtou", + "unicode": "e872", + "unicode_decimal": 59506 + }, + { + "icon_id": "564213", + "name": "网盘", + "font_class": "wangpan", + "unicode": "e63d", + "unicode_decimal": 58941 + }, + { + "icon_id": "1134325", + "name": "密码", + "font_class": "mima", + "unicode": "e67a", + "unicode_decimal": 59002 + }, + { + "icon_id": "4933362", + "name": "录制", + "font_class": "luzhi", + "unicode": "e741", + "unicode_decimal": 59201 + }, + { + "icon_id": "4933398", + "name": "实物-画笔", + "font_class": "shiwu-huabi", + "unicode": "e753", + "unicode_decimal": 59219 + }, + { + "icon_id": "15053872", + "name": "ai", + "font_class": "24px2x", + "unicode": "e623", + "unicode_decimal": 58915 + }, + { + "icon_id": "11520120", + "name": "直播", + "font_class": "zhibo", + "unicode": "e74f", + "unicode_decimal": 59215 + }, + { + "icon_id": "1231602", + "name": "挂断电话", + "font_class": "guaduandianhua", + "unicode": "e61c", + "unicode_decimal": 58908 + }, + { + "icon_id": "1374721", + "name": "关闭扬声器", + "font_class": "guanbiyangshengqi", + "unicode": "e61e", + "unicode_decimal": 58910 + }, + { + "icon_id": "1780714", + "name": "麦克风", + "font_class": "maikefeng-XDY", + "unicode": "e663", + "unicode_decimal": 58979 + }, + { + "icon_id": "4933368", + "name": "屏幕共享", + "font_class": "pingmugongxiang", + "unicode": "e746", + "unicode_decimal": 59206 + }, + { + "icon_id": "6776384", + "name": "摄像头", + "font_class": "shexiangtou", + "unicode": "eca6", + "unicode_decimal": 60582 + }, + { + "icon_id": "14191058", + "name": "喇叭", + "font_class": "laba", + "unicode": "e61f", + "unicode_decimal": 58911 + }, + { + "icon_id": "26661601", + "name": "关闭麦克风", + "font_class": "guanbimaikefeng", + "unicode": "e643", + "unicode_decimal": 58947 + }, + { + "icon_id": "25853325", + "name": "浏览器", + "font_class": "liulanqi", + "unicode": "e6e8", + "unicode_decimal": 59112 + }, + { + "icon_id": "3101162", + "name": "三角形", + "font_class": "sanjiaoxing", + "unicode": "e619", + "unicode_decimal": 58905 + }, + { + "icon_id": "6874514", + "name": "向上三角形", + "font_class": "xiangshangsanjiaoxing", + "unicode": "e70f", + "unicode_decimal": 59151 + }, + { + "icon_id": "8727201", + "name": "星星", + "font_class": "xingxing", + "unicode": "e61a", + "unicode_decimal": 58906 + }, + { + "icon_id": "10715456", + "name": "星星", + "font_class": "xingxing1", + "unicode": "e639", + "unicode_decimal": 58937 + }, + { + "icon_id": "14718685", + "name": "tx-fill-平行四边形", + "font_class": "tx-fill-pinghangsibianxing", + "unicode": "e64c", + "unicode_decimal": 58956 + }, + { + "icon_id": "14718689", + "name": "tx-fill-六边形", + "font_class": "tx-fill-liubianxing", + "unicode": "e64b", + "unicode_decimal": 58955 + }, + { + "icon_id": "22383635", + "name": "平行四边形", + "font_class": "pinghangsibianxing", + "unicode": "edf9", + "unicode_decimal": 60921 + }, + { + "icon_id": "27938688", + "name": "六边形", + "font_class": "hexagon", + "unicode": "e61b", + "unicode_decimal": 58907 + }, + { + "icon_id": "14401714", + "name": "github", + "font_class": "github", + "unicode": "e66f", + "unicode_decimal": 58991 + }, + { + "icon_id": "22725966", + "name": "文件类型-Excel", + "font_class": "Excel", + "unicode": "e602", + "unicode_decimal": 58882 + }, + { + "icon_id": "22735864", + "name": "文件类型-文件夹", + "font_class": "File", + "unicode": "e603", + "unicode_decimal": 58883 + }, + { + "icon_id": "22735865", + "name": "文件类型-Word", + "font_class": "Word", + "unicode": "e605", + "unicode_decimal": 58885 + }, + { + "icon_id": "22735866", + "name": "文件类型-PPT", + "font_class": "PPT", + "unicode": "e606", + "unicode_decimal": 58886 + }, + { + "icon_id": "22735867", + "name": "文件类型-音频", + "font_class": "music", + "unicode": "e607", + "unicode_decimal": 58887 + }, + { + "icon_id": "22761828", + "name": "文件类型-程序", + "font_class": "chengxu", + "unicode": "e608", + "unicode_decimal": 58888 + }, + { + "icon_id": "22761829", + "name": "文件类型-视频", + "font_class": "shipin1", + "unicode": "e609", + "unicode_decimal": 58889 + }, + { + "icon_id": "22761830", + "name": "文件类型-链接", + "font_class": "lianjiewenjian", + "unicode": "e60a", + "unicode_decimal": 58890 + }, + { + "icon_id": "22761831", + "name": "文件类型-图片", + "font_class": "tupian", + "unicode": "e60b", + "unicode_decimal": 58891 + }, + { + "icon_id": "22761832", + "name": "文件类型-压缩包", + "font_class": "yasuobao", + "unicode": "e60c", + "unicode_decimal": 58892 + }, + { + "icon_id": "22761833", + "name": "文件类型-未知文件", + "font_class": "weizhiwenjian", + "unicode": "e60d", + "unicode_decimal": 58893 + }, + { + "icon_id": "22761836", + "name": "文件类型-Pdf", + "font_class": "Pdf", + "unicode": "e610", + "unicode_decimal": 58896 + }, + { + "icon_id": "22761837", + "name": "文件类型-Txt", + "font_class": "txt1", + "unicode": "e611", + "unicode_decimal": 58897 + }, + { + "icon_id": "22767524", + "name": "文件类型-WPS", + "font_class": "WPS", + "unicode": "e612", + "unicode_decimal": 58898 + }, + { + "icon_id": "22767526", + "name": "文件类型-数据库", + "font_class": "shujuku", + "unicode": "e613", + "unicode_decimal": 58899 + }, + { + "icon_id": "22767545", + "name": "文件类型-3D", + "font_class": "a-3D", + "unicode": "e614", + "unicode_decimal": 58900 + }, + { + "icon_id": "22770102", + "name": "文件类型-邮件", + "font_class": "youjian", + "unicode": "e616", + "unicode_decimal": 58902 + }, + { + "icon_id": "22770103", + "name": "文件类型-配置文件", + "font_class": "peizhiwenjian", + "unicode": "e617", + "unicode_decimal": 58903 + }, + { + "icon_id": "1906325", + "name": "WIFI", + "font_class": "WIFI", + "unicode": "e700", + "unicode_decimal": 59136 + }, + { + "icon_id": "683275", + "name": "红包", + "font_class": "hongbao", + "unicode": "e656", + "unicode_decimal": 58966 + }, + { + "icon_id": "755610", + "name": "圆角矩形", + "font_class": "yuanjiao-rect", + "unicode": "e64e", + "unicode_decimal": 58958 + }, + { + "icon_id": "755612", + "name": "圆形", + "font_class": "circle", + "unicode": "e64f", + "unicode_decimal": 58959 + }, + { + "icon_id": "1057040", + "name": "橡皮擦", + "font_class": "xiangpica", + "unicode": "e6b8", + "unicode_decimal": 59064 + }, + { + "icon_id": "4890393", + "name": "文字", + "font_class": "wenzi", + "unicode": "e6ec", + "unicode_decimal": 59116 + }, + { + "icon_id": "10048835", + "name": "矩形", + "font_class": "juxing", + "unicode": "e620", + "unicode_decimal": 58912 + }, + { + "icon_id": "10048847", + "name": "圆形", + "font_class": "yuanxing", + "unicode": "e626", + "unicode_decimal": 58918 + }, + { + "icon_id": "10715450", + "name": "下载", + "font_class": "xiazai", + "unicode": "e638", + "unicode_decimal": 58936 + }, + { + "icon_id": "12706985", + "name": "图片", + "font_class": "tupian_huaban", + "unicode": "e691", + "unicode_decimal": 59025 + }, + { + "icon_id": "15718632", + "name": "工具", + "font_class": "gongju", + "unicode": "e6cf", + "unicode_decimal": 59087 + }, + { + "icon_id": "22272771", + "name": "5g", + "font_class": "five-g", + "unicode": "e63f", + "unicode_decimal": 58943 + }, + { + "icon_id": "22272772", + "name": "3g", + "font_class": "three-g", + "unicode": "e640", + "unicode_decimal": 58944 + }, + { + "icon_id": "22272775", + "name": "4g", + "font_class": "four-g", + "unicode": "e641", + "unicode_decimal": 58945 + }, + { + "icon_id": "22272787", + "name": "2g", + "font_class": "two-g", + "unicode": "e642", + "unicode_decimal": 58946 + } + ] +} diff --git a/web-res/static/layui/font-ext/iconfont.ttf b/web-res/static/layui/font-ext/iconfont.ttf new file mode 100644 index 0000000..913b550 Binary files /dev/null and b/web-res/static/layui/font-ext/iconfont.ttf differ diff --git a/web-res/static/layui/font-ext/iconfont.woff b/web-res/static/layui/font-ext/iconfont.woff new file mode 100644 index 0000000..821704e Binary files /dev/null and b/web-res/static/layui/font-ext/iconfont.woff differ diff --git a/web-res/static/layui/font-ext/iconfont.woff2 b/web-res/static/layui/font-ext/iconfont.woff2 new file mode 100644 index 0000000..d697220 Binary files /dev/null and b/web-res/static/layui/font-ext/iconfont.woff2 differ diff --git a/web-res/static/layui/font/iconfont.eot b/web-res/static/layui/font/iconfont.eot new file mode 100644 index 0000000..622d7ec Binary files /dev/null and b/web-res/static/layui/font/iconfont.eot differ diff --git a/web-res/static/layui/font/iconfont.svg b/web-res/static/layui/font/iconfont.svg new file mode 100644 index 0000000..999ca1f --- /dev/null +++ b/web-res/static/layui/font/iconfont.svg @@ -0,0 +1,554 @@ + + + + + +Created by iconfont + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web-res/static/layui/font/iconfont.ttf b/web-res/static/layui/font/iconfont.ttf new file mode 100644 index 0000000..06e30f9 Binary files /dev/null and b/web-res/static/layui/font/iconfont.ttf differ diff --git a/web-res/static/layui/font/iconfont.woff b/web-res/static/layui/font/iconfont.woff new file mode 100644 index 0000000..66a1783 Binary files /dev/null and b/web-res/static/layui/font/iconfont.woff differ diff --git a/web-res/static/layui/font/iconfont.woff2 b/web-res/static/layui/font/iconfont.woff2 new file mode 100644 index 0000000..47e9980 Binary files /dev/null and b/web-res/static/layui/font/iconfont.woff2 differ diff --git a/web-res/static/layui/images/face/0.gif b/web-res/static/layui/images/face/0.gif new file mode 100644 index 0000000..af3a91b Binary files /dev/null and b/web-res/static/layui/images/face/0.gif differ diff --git a/web-res/static/layui/images/face/1.gif b/web-res/static/layui/images/face/1.gif new file mode 100644 index 0000000..0f07096 Binary files /dev/null and b/web-res/static/layui/images/face/1.gif differ diff --git a/web-res/static/layui/images/face/2.gif b/web-res/static/layui/images/face/2.gif new file mode 100644 index 0000000..0043571 Binary files /dev/null and b/web-res/static/layui/images/face/2.gif differ diff --git a/web-res/static/layui/images/face/3.gif b/web-res/static/layui/images/face/3.gif new file mode 100644 index 0000000..b1888be Binary files /dev/null and b/web-res/static/layui/images/face/3.gif differ diff --git a/web-res/static/layui/images/face/4.gif b/web-res/static/layui/images/face/4.gif new file mode 100644 index 0000000..3329740 Binary files /dev/null and b/web-res/static/layui/images/face/4.gif differ diff --git a/web-res/static/layui/images/face/5.gif b/web-res/static/layui/images/face/5.gif new file mode 100644 index 0000000..c56f895 Binary files /dev/null and b/web-res/static/layui/images/face/5.gif differ diff --git a/web-res/static/layui/images/face/6.gif b/web-res/static/layui/images/face/6.gif new file mode 100644 index 0000000..9ea0d78 Binary files /dev/null and b/web-res/static/layui/images/face/6.gif differ diff --git a/web-res/static/layui/layui.js b/web-res/static/layui/layui.js new file mode 100644 index 0000000..12fb871 --- /dev/null +++ b/web-res/static/layui/layui.js @@ -0,0 +1,23 @@ +/** 2.7.4 | MIT Licensed */;!function(d){"use strict";var t,h=d.document,m={modules:{},status:{},timeout:10,event:{}},r=function(){this.v="2.7.4"},e=d.LAYUI_GLOBAL||{},v=(t=h.currentScript?h.currentScript.src:function(){for(var t,e=h.scripts,o=e.length-1,r=o;01e3*m.timeout/4?g(s+" is not a valid module","error"):void(m.status[s]?y():setTimeout(r,4))}())}function y(){e.push(layui[s]),11e3*m.timeout/4?g(s+" is not a valid module","error"):void("string"==typeof m.modules[s]&&m.status[s]?y():setTimeout(f,4))}():((n=h.createElement("script"))["async"]=!0,n.charset="utf-8",n.src=i+((u=!0===m.version?m.v||(new Date).getTime():m.version||"")?"?v="+u:""),l.appendChild(n),!n.attachEvent||n.attachEvent.toString&&n.attachEvent.toString().indexOf("[native code")<0||b?n.addEventListener("load",function(t){p(t,i)},!1):n.attachEvent("onreadystatechange",function(t){p(t,i)}),m.modules[s]=i)),a},r.prototype.disuse=function(t){var o=this;return t=o.isArray(t)?t:[t],o.each(t,function(t,e){m.status[e],delete o[e],delete N[e],delete o.modules[e],delete m.status[e],delete m.modules[e]}),o},r.prototype.getStyle=function(t,e){t=t.currentStyle||d.getComputedStyle(t,null);return t[t.getPropertyValue?"getPropertyValue":"getAttribute"](e)},r.prototype.link=function(o,r,t){var n=this,e=h.getElementsByTagName("head")[0],i=h.createElement("link"),t=((t="string"==typeof r?r:t)||o).replace(/\.|\//g,""),a=i.id="layuicss-"+t,u="creating",l=0;return i.rel="stylesheet",i.href=o+(m.debug?"?v="+(new Date).getTime():""),i.media="all",h.getElementById(a)||e.appendChild(i),"function"==typeof r&&function s(t){var e=h.getElementById(a);return++l>1e3*m.timeout/100?g(o+" timeout"):void(1989===parseInt(n.getStyle(e,"width"))?(t===u&&e.removeAttribute("lay-status"),e.getAttribute("lay-status")===u?setTimeout(s,100):r()):(e.setAttribute("lay-status",u),setTimeout(function(){s(u)},100)))}(),n},r.prototype.addcss=function(t,e,o){return layui.link(m.dir+"css/"+t,e,o)},m.callback={},r.prototype.factory=function(t){if(layui[t])return"function"==typeof m.callback[t]?m.callback[t]:null},r.prototype.img=function(t,e,o){var r=new Image;if(r.src=t,r.complete)return e(r);r.onload=function(){r.onload=null,"function"==typeof e&&e(r)},r.onerror=function(t){r.onerror=null,"function"==typeof o&&o(t)}},r.prototype.config=function(t){for(var e in t=t||{})m[e]=t[e];return this},r.prototype.modules=function(){var t,e={};for(t in N)e[t]=N[t];return e}(),r.prototype.extend=function(t){for(var e in t=t||{})this[e]||this.modules[e]?g(e+" Module already exists","error"):this.modules[e]=t[e];return this},r.prototype.router=r.prototype.hash=function(t){var o={path:[],search:{},hash:((t=t||location.hash).match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(t)&&(t=t.replace(/^#\//,""),o.href="/"+t,t=t.replace(/([^#])(#.*$)/,"$1").split("/")||[],this.each(t,function(t,e){/^\w+=/.test(e)?(e=e.split("="),o.search[e[0]]=e[1]):o.path.push(e)})),o},r.prototype.url=function(t){var n,e,o=this;return{pathname:(t?((t.match(/\.[^.]+?\/.+/)||[])[0]||"").replace(/^[^\/]+/,"").replace(/\?.+/,""):location.pathname).replace(/^\//,"").split("/"),search:(n={},e=(t?((t.match(/\?.+/)||[])[0]||"").replace(/\#.+/,""):location.search).replace(/^\?+/,"").split("&"),o.each(e,function(t,e){var o=e.indexOf("="),r=o<0?e.substr(0,e.length):0!==o&&e.substr(0,o);r&&(n[r]=0(l.innerHeight||f.documentElement.clientHeight)},h.position=function(t,e,n){var o,i,r,c,u,a,s;e&&(n=n||{},t!==f&&t!==h("body")[0]||(n.clickType="right"),u="right"!==n.clickType&&t?t.getBoundingClientRect():{left:(u=n.e||l.event||{}).clientX,top:u.clientY,right:u.clientX,bottom:u.clientY},a=e.offsetWidth,s=e.offsetHeight,o=function(t){return f.body[t=t?"scrollLeft":"scrollTop"]|f.documentElement[t]},r=u.left,c=u.bottom,"center"===n.align?r-=(a-t.offsetWidth)/2:"right"===n.align&&(r=r-a+t.offsetWidth),(r=r+a+5>(i=function(t){return f.documentElement[t?"clientWidth":"clientHeight"]})("width")?i("width")-a-5:r)<5&&(r=5),c+s+5>i()&&(u.top>s+5?c=u.top-s-10:"right"===n.clickType?(c=i()-s-10)<0&&(c=0):c=5),(a=n.position)&&(e.style.position=a),e.style.left=r+("fixed"===a?0:o(1))+"px",e.style.top=c+("fixed"===a?0:o())+"px",h.hasScrollbar()||(s=e.getBoundingClientRect(),!n.SYSTEM_RELOAD&&s.bottom+5>i()&&(n.SYSTEM_RELOAD=!0,setTimeout(function(){h.position(t,e,n)},50))))},h.options=function(t,e){t=h(t),e=e||"lay-options";try{return new Function("return "+(t.attr(e)||"{}"))()}catch(n){return hint.error("parseerror\uff1a"+n,"error"),{}}},h.isTopElem=function(n){var t=[f,h("body")[0]],o=!1;return h.each(t,function(t,e){if(e===n)return o=!0}),o},i.addStr=function(n,t){return n=n.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),h.each(t,function(t,e){new RegExp("\\b"+e+"\\b").test(n)||(n=n+" "+e)}),n.replace(/^\s|\s$/,"")},i.removeStr=function(n,t){return n=n.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),h.each(t,function(t,e){e=new RegExp("\\b"+e+"\\b");e.test(n)&&(n=n.replace(e,""))}),n.replace(/\s+/," ").replace(/^\s|\s$/,"")},i.prototype.find=function(o){var i=this,r=0,c=[],u="object"==typeof o;return this.each(function(t,e){for(var n=u?e.contains(o):e.querySelectorAll(o||null);r]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},error:function(e,r){var n="Laytpl Error: ";return"object"==typeof console&&console.error(n+e+"\n"+(r||"")),n+e}},l=a.exp,r=function(e){this.tpl=e},n=(r.pt=r.prototype,window.errors=0,r.pt.parse=function(e,r){var n=e,c=l("^"+p.open+"#",""),t=l(p.close+"$","");e='"use strict";var view = "'+(e=e.replace(/\s+|\r|\t|\n/g," ").replace(l(p.open+"#"),p.open+"# ").replace(l(p.close+"}"),"} "+p.close).replace(/\\/g,"\\\\").replace(l(p.open+"!(.+?)!"+p.close),function(e){return e=e.replace(l("^"+p.open+"!"),"").replace(l("!"+p.close),"").replace(l(p.open+"|"+p.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(a.query(),function(e){return'";'+(e=e.replace(c,"").replace(t,"")).replace(/\\(.)/g,"$1")+';view+="'}).replace(a.query(1),function(e){var r='"+laytpl.escape(';return e.replace(/\s/g,"")===p.open+p.close?"":(e=e.replace(l(p.open+"|"+p.close),""),/^=/.test(e)?e=e.replace(/^=/,""):/^-/.test(e)&&(e=e.replace(/^-/,""),r='"+('),r+e.replace(/\\(.)/g,"$1")+')+"')}))+'";return view;';try{return this.cache=e=new Function("d, laytpl",e),e(r,a)}catch(o){return delete this.cache,a.error(o,n)}},r.pt.render=function(e,r){var n=this;return e?(e=n.cache?n.cache(e,a):n.parse(n.tpl,e),r?void r(e):e):a.error("no data")},function(e){return"string"!=typeof e?a.error("Template not found"):new r(e)});n.config=function(e){for(var r in e=e||{})p[r]=e[r]},n.v="1.2.0",e("laytpl",n)});layui.define(function(e){"use strict";var n=document,u="getElementById",c="getElementsByTagName",a="layui-disabled",t=function(e){var a=this;a.config=e||{},a.config.index=++o.index,a.render(!0)},o=(t.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return e.elem.length===undefined?2:3},t.prototype.view=function(){var t,i,r=this.config,n=r.groups="groups"in r?Number(r.groups)||0:5,u=(r.layout="object"==typeof r.layout?r.layout:["prev","page","next"],r.count=Number(r.count)||0,r.curr=Number(r.curr)||1,r.limits="object"==typeof r.limits?r.limits:[10,20,30,40,50],r.limit=Number(r.limit)||10,r.pages=Math.ceil(r.count/r.limit)||1,r.curr>r.pages?r.curr=r.pages:r.curr<1&&(r.curr=1),n<0?n=1:n>r.pages&&(n=r.pages),r.prev="prev"in r?r.prev:"上一页",r.next="next"in r?r.next:"下一页",r.pages>n?Math.ceil((r.curr+(1'+r.prev+"":"",page:function(){var e=[];if(r.count<1)return"";1'+(r.first||1)+"");var a=Math.floor((n-1)/2),t=1r.pages?r.pages:a:n;for(i-t…');t<=i;t++)t===r.curr?e.push('"+t+""):e.push(''+t+"");return r.pages>n&&r.pages>i&&!1!==r.last&&(i+1…'),0!==n)&&e.push(''+(r.last||r.pages)+""),e.join("")}(),next:r.next?''+r.next+"":"",count:'\u5171 '+r.count+" \u6761",limit:(t=['"),refresh:['','',""].join(""),skip:['到第','','页',""].join("")};return['
                  ',(i=[],layui.each(r.layout,function(e,a){s[a]&&i.push(s[a])}),i.join("")),"
                  "].join("")},t.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,n=e[c]("button")[0],u=e[c]("input")[0],e=e[c]("select")[0],s=function(){var e=Number(u.value.replace(/\s|\D/g,""));e&&(i.curr=e,t.render())};if(a)return s();for(var l=0,p=r.length;li.pages||(i.curr=e,t.render())});e&&o.on(e,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),n&&o.on(n,"click",function(){s()})}},t.prototype.skip=function(t){var i,e;t&&(i=this,e=t[c]("input")[0])&&o.on(e,"keyup",function(e){var a=this.value,e=e.keyCode;/^(37|38|39|40)$/.test(e)||(/\D/.test(a)&&(this.value=a.replace(/\D/,"")),13===e&&i.jump(t,!0))})},t.prototype.render=function(e){var a=this,t=a.config,i=a.type(),r=a.view(),i=(2===i?t.elem&&(t.elem.innerHTML=r):3===i?t.elem.html(r):n[u](t.elem)&&(n[u](t.elem).innerHTML=r),t.jump&&t.jump(t,e),n[u]("layui-laypage-"+t.index));a.jump(i),t.hash&&!e&&(location.hash="!"+t.hash+"="+t.curr),a.skip(i)},{render:function(e){return new t(e).index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(a,e,t){return a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1),this}});e("laypage",o)});!function(i,r){"use strict";var n=i.layui&&layui.define,l={getPath:i.lay&&lay.getPath?lay.getPath:"",link:function(e,t,a){u.path&&i.lay&&lay.layui&&lay.layui.link(u.path+e,t,a)}},e=i.LAYUI_GLOBAL||{},u={v:"5.3.1",config:{weekStart:0},index:i.laydate&&i.laydate.v?1e5:0,path:e.laydate_dir||l.getPath,set:function(e){var t=this;return t.config=lay.extend({},t.config,e),t},ready:function(e){var t="laydate",a=(n?"modules/laydate/":"theme/")+"default/laydate.css?v="+u.v;return n?layui.addcss(a,e,t):l.link(a,e,t),this}},s=function(){var t=this,e=t.config.id;return{hint:function(e){t.hint.call(t,e)},refresh:function(e){t.refresh.call(t,e)},prevYear:function(e){lay.each(t.elemHeader,function(e,t){t[0].click()})},prevMonth:function(e){lay.each(t.elemHeader,function(e,t){t[1].click()})},nextMonth:function(e){lay.each(t.elemHeader,function(e,t){t[3].click()})},nextYear:function(e){u.each(t.elemHeader,function(e,t){t[4].click()})},config:(s.that[e]=t).config}},a="laydate",w="layui-this",x="laydate-disabled",h=[100,2e5],p="layui-laydate-static",M="layui-laydate-list",o="layui-laydate-hint",E=".laydate-btns-confirm",k="laydate-time-text",C="laydate-btns-time",f="layui-laydate-preview",g=function(e){var t=this;t.index=++u.index,t.config=lay.extend({},t.config,u.config,e),(e=t.config).id="id"in e?e.id:t.index,u.ready(function(){t.init()})},y="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s";s.formatArr=function(e){return(e||"").match(new RegExp(y+"|.","g"))||[]},g.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},g.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"click",show:!1,showBottom:!0,isPreview:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},holidays:null,zIndex:null,done:null,change:null},g.prototype.lang=function(){var e={cn:{weeks:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],time:["\u65f6","\u5206","\u79d2"],timeTips:"\u9009\u62e9\u65f6\u95f4",startTime:"\u5f00\u59cb\u65f6\u95f4",endTime:"\u7ed3\u675f\u65f6\u95f4",dateTips:"\u8fd4\u56de\u65e5\u671f",month:["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u5341\u4e8c"],tools:{confirm:"\u786e\u5b9a",clear:"\u6e05\u7a7a",now:"\u73b0\u5728"},timeout:"\u7ed3\u675f\u65f6\u95f4\u4e0d\u80fd\u65e9\u4e8e\u5f00\u59cb\u65f6\u95f4
                  \u8bf7\u91cd\u65b0\u9009\u62e9",invalidDate:"\u4e0d\u5728\u6709\u6548\u65e5\u671f\u6216\u65f6\u95f4\u8303\u56f4\u5185",formatError:["\u65e5\u671f\u683c\u5f0f\u4e0d\u5408\u6cd5
                  \u5fc5\u987b\u9075\u5faa\u4e0b\u8ff0\u683c\u5f0f\uff1a
                  ","
                  \u5df2\u4e3a\u4f60\u91cd\u7f6e"],preview:"\u5f53\u524d\u9009\u4e2d\u7684\u7ed3\u679c"},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"},timeout:"End time cannot be less than start Time
                  Please re-select",invalidDate:"Invalid date",formatError:["The date format error
                  Must be followed\uff1a
                  ","
                  It has been reset"],preview:"The selected result"}};return e[this.config.lang]||e.cn},g.prototype.refresh=function(){var e=this,t=e.config,a=t.dateTime,t="static"===t.position,n=new Date;e.config.value&&(n=new Date(e.config.value.replace(/-/g,"/"))),lay.extend(a,e.systemDate(n),{hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds()}),e.setValue(e.parse()).remove(),t&&e.calendar(),e.done(null,"change")},g.prototype.init=function(){var r=this,o=r.config,e="static"===o.position,t={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};o.elem=lay(o.elem),o.eventElem=lay(o.eventElem),o.elem[0]&&(r.rangeStr=o.range?"string"==typeof o.range?o.range:"-":"","array"===layui.type(o.range)&&(r.rangeElem=[lay(o.range[0]),lay(o.range[1])]),t[o.type]||(i.console&&console.error&&console.error("laydate type error:'"+o.type+"' is not supported"),o.type="date"),o.format===t.date&&(o.format=t[o.type]||t.date),r.format=s.formatArr(o.format),o.weekStart&&!/^[0-6]$/.test(o.weekStart)&&(t=r.lang(),o.weekStart=t.weeks.indexOf(o.weekStart),-1===o.weekStart)&&(o.weekStart=0),r.EXP_IF="",r.EXP_SPLIT="",lay.each(r.format,function(e,t){e=new RegExp(y).test(t)?"\\d{"+(new RegExp(y).test(r.format[0===e?e+1:e-1]||"")?/^yyyy|y$/.test(t)?4:t.length:/^yyyy$/.test(t)?"1,4":/^y$/.test(t)?"1,308":"1,2")+"}":"\\"+t;r.EXP_IF=r.EXP_IF+e,r.EXP_SPLIT=r.EXP_SPLIT+"("+e+")"}),r.EXP_IF_ONE=new RegExp("^"+r.EXP_IF+"$"),r.EXP_IF=new RegExp("^"+(o.range?r.EXP_IF+"\\s\\"+r.rangeStr+"\\s"+r.EXP_IF:r.EXP_IF)+"$"),r.EXP_SPLIT=new RegExp("^"+r.EXP_SPLIT+"$",""),r.isInput(o.elem[0])||"focus"===o.trigger&&(o.trigger="click"),o.elem.attr("lay-key")||(o.elem.attr("lay-key",r.index),o.eventElem.attr("lay-key",r.index)),o.mark=lay.extend({},o.calendar&&"cn"===o.lang?{"0-1-1":"\u5143\u65e6","0-2-14":"\u60c5\u4eba","0-3-8":"\u5987\u5973","0-3-12":"\u690d\u6811","0-4-1":"\u611a\u4eba","0-5-1":"\u52b3\u52a8","0-5-4":"\u9752\u5e74","0-6-1":"\u513f\u7ae5","0-9-10":"\u6559\u5e08","0-10-1":"\u56fd\u5e86","0-12-25":"\u5723\u8bde"}:{},o.mark),lay.each(["min","max"],function(e,t){var a=[],n=[];if("number"==typeof o[t])var i=o[t],l=new Date,l=r.newDate({year:l.getFullYear(),month:l.getMonth(),date:l.getDate(),hours:"23",minutes:"59",seconds:"59"}).getTime(),i=new Date(i?i<864e5?l+864e5*i:i:l),a=[i.getFullYear(),i.getMonth()+1,i.getDate()],n=[i.getHours(),i.getMinutes(),i.getSeconds()];else if("string"==typeof o[t])a=(o[t].match(/\d+-\d+-\d+/)||[""])[0].split("-"),n=(o[t].match(/\d+:\d+:\d+/)||[""])[0].split(":");else if("object"==typeof o[t])return o[t];o[t]={year:0|a[0]||(new Date).getFullYear(),month:a[1]?(0|a[1])-1:(new Date).getMonth(),date:0|a[2]||(new Date).getDate(),hours:0|n[0],minutes:0|n[1],seconds:0|n[2]}}),r.elemID="layui-laydate"+o.elem.attr("lay-key"),(o.show||e)&&r.render(),e||r.events(),o.value)&&o.isInitValue&&("date"===layui.type(o.value)?r.setValue(r.parse(0,r.systemDate(o.value))):r.setValue(o.value))},g.prototype.render=function(){var n,e,t=this,o=t.config,s=t.lang(),i="static"===o.position,a=t.elem=lay.elem("div",{id:t.elemID,"class":["layui-laydate",o.range?" layui-laydate-range":"",i?" "+p:"",o.theme&&"default"!==o.theme&&!/^#/.test(o.theme)?" laydate-theme-"+o.theme:""].join("")}),y=t.elemMain=[],d=t.elemHeader=[],m=t.elemCont=[],c=t.table=[],l=t.footer=lay.elem("div",{"class":"layui-laydate-footer"});o.zIndex&&(a.style.zIndex=o.zIndex),lay.each(new Array(2),function(e){if(!o.range&&0'+s.timeTips+""),!o.range&&"datetime"===o.type||e.push(''),lay.each(o.btns,function(e,t){var a=s.tools[t]||"btn";o.range&&"now"===t||(i&&"clear"===t&&(a="cn"===o.lang?"\u91cd\u7f6e":"Reset"),n.push(''+a+""))}),e.push('"),e.join(""))),lay.each(y,function(e,t){a.appendChild(t)}),o.showBottom&&a.appendChild(l),/^#/.test(o.theme)&&(e=lay.elem("style"),l=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,t.elemID).replace(/{{theme}}/g,o.theme),"styleSheet"in e?(e.setAttribute("type","text/css"),e.styleSheet.cssText=l):e.innerHTML=l,lay(a).addClass("laydate-theme-molv"),a.appendChild(e)),t.remove(g.thisElemDate),u.thisId=o.id,i?o.elem.append(a):(r.body.appendChild(a),t.position()),t.checkDate().calendar(null,0,"init"),t.changeEvent(),g.thisElemDate=t.elemID,"function"==typeof o.ready&&o.ready(lay.extend({},o.dateTime,{month:o.dateTime.month+1})),t.preview()},g.prototype.remove=function(e){var t=this,a=t.config,n=lay("#"+(e||t.elemID));return n[0]&&!n.hasClass(p)&&t.checkDate(function(){n.remove(),delete u.thisId,"function"==typeof a.close&&a.close(t)}),t},g.prototype.position=function(){var e=this.config;return lay.position(this.bindElem||e.elem[0],this.elem,{position:e.position}),this},g.prototype.hint=function(e){var t=this,a=(t.config,lay.elem("div",{"class":o}));t.elem&&(a.innerHTML=e||"",lay(t.elem).find("."+o).remove(),t.elem.appendChild(a),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){lay(t.elem).find("."+o).remove()},3e3))},g.prototype.getAsYM=function(e,t,a){return a?t--:t++,t<0&&(t=11,e--),11h[1]&&(e.year=h[1],o=!0),11t&&(e.date=t,o=!0)},c=function(n,i,l){var r=["startTime","endTime"];i=(i.match(s.EXP_SPLIT)||[]).slice(1),l=l||0,y.range&&(s[r[l]]=s[r[l]]||{}),lay.each(s.format,function(e,t){var a=parseFloat(i[e]);i[e].lengthn(y.max)?l=y.dateTime=lay.extend({},y.max):n(l)n(y.max))&&(s.endDate=lay.extend({},y.max)),e&&e()),s},g.prototype.mark=function(e,a){var n,t=this.config;return lay.each(t.mark,function(e,t){e=e.split("-");e[0]!=a[0]&&0!=e[0]||e[1]!=a[1]&&0!=e[1]||e[2]!=a[2]||(n=t||a[2])}),n&&e.html(''+n+""),this},g.prototype.holidays=function(n,i){var e=this.config,l=["","work"];return"array"===layui.type(e.holidays)&&lay.each(e.holidays,function(a,e){lay.each(e,function(e,t){t===n.attr("lay-ymd")&&n.html('"+i[2]+"")})}),this},g.prototype.limit=function(e,t,a,i){var l=this,n=l.config,r={},a=n[41h[1]&&(s.year=h[1],o.hint(d.invalidDate)),o.firstDate||(o.firstDate=lay.extend({},s)),y.setFullYear(s.year,s.month,1),i=(y.getDay()+(7-n.weekStart))%7,l=u.getEndDate(s.month||12,s.year),r=u.getEndDate(s.month+1,s.year),lay.each(c,function(e,t){var a=[s.year,s.month],n=0;(t=lay(t)).removeAttr("class"),e"+d.time[t]+"

                    "];lay.each(new Array(e),function(e){n.push(""+lay.digit(e,2)+"")}),a.innerHTML=n.join("")+"
                  ",m.appendChild(a)}),l()),p&&h.removeChild(p),h.prepend(m),"year"===t||"month"===t?(lay(o.elemMain[n]).addClass("laydate-ym-show"),lay(m).find("li").on("click",function(){var e=0|lay(this).attr("lay-ym");lay(this).hasClass(x)||(0===n?(y[t]=e,o.limit(lay(o.footer).find(E),null,0)):o.endDate[t]=e,"year"===s.type||"month"===s.type?(lay(m).find("."+w).removeClass(w),lay(this).addClass(w),"month"===s.type&&"year"===t&&(o.listYM[n][0]=e,a&&((n?o.endDate:y).year=e),o.list("month",n))):(o.checkDate("limit").calendar(null,n),o.closeList()),o.setBtnStatus(),s.range||("month"===s.type&&"month"===t||"year"===s.type&&"year"===t)&&o.setValue(o.parse()).remove().done(),o.done(null,"change"),lay(o.footer).find("."+C).removeClass(x))})):(e=lay.elem("span",{"class":k}),r=function(){lay(m).find("ol").each(function(e){var a=this,t=lay(a).find("li");a.scrollTop=30*(o[D][T[e]]-2),a.scrollTop<=0&&t.each(function(e,t){if(!lay(this).hasClass(x))return a.scrollTop=30*(e-2),!0})})},u=lay(c[2]).find("."+k),r(),e.innerHTML=s.range?[d.startTime,d.endTime][n]:d.timeTips,lay(o.elemMain[n]).addClass("laydate-time-show"),u[0]&&u.remove(),c[2].appendChild(e),lay(m).find("ol").each(function(t){var a=this;lay(a).find("li").on("click",function(){var e=0|this.innerHTML;lay(this).hasClass(x)||(s.range?o[D][T[t]]=e:y[T[t]]=e,lay(a).find("."+w).removeClass(w),lay(this).addClass(w),l(),r(),!o.endDate&&"time"!==s.type||o.done(null,"change"),o.setBtnStatus())})})),o},g.prototype.listYM=[],g.prototype.closeList=function(){var a=this;a.config;lay.each(a.elemCont,function(e,t){lay(this).find("."+M).remove(),lay(a.elemMain[e]).removeClass("laydate-ym-show laydate-time-show")}),lay(a.elem).find("."+k).remove()},g.prototype.setBtnStatus=function(e,t,a){var n=this,i=n.config,l=n.lang(),r=lay(n.footer).find(E);i.range&&"time"!==i.type&&(t=t||i.dateTime,a=a||n.endDate,i=n.newDate(t).getTime()>n.newDate(a).getTime(),n.limit(null,t)||n.limit(null,a)?r.addClass(x):r[i?"addClass":"removeClass"](x),e)&&i&&n.hint("string"==typeof e?l.timeout.replace(/\u65e5\u671f/g,e):l.timeout)},g.prototype.parse=function(e,t){var a=this,n=a.config,t=t||("end"==e?lay.extend({},a.endDate,a.endTime):n.range?lay.extend({},n.dateTime,a.startTime):n.dateTime),t=u.parse(t,a.format,1);return n.range&&e===undefined?t+" "+a.rangeStr+" "+a.parse("end"):t},g.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},g.prototype.setValue=function(e){var t=this,a=t.config,n=t.bindElem||a.elem[0];return"static"!==a.position&&(e=e||"",t.isInput(n)?lay(n).val(e):(a=t.rangeElem)?("array"!==layui.type(e)&&(e=e.split(" "+t.rangeStr+" ")),a[0].val(e[0]||""),a[1].val(e[1]||"")):(0===lay(n).find("*").length&&lay(n).html(e),lay(n).attr("lay-date",e))),t},g.prototype.preview=function(){var e,t=this,a=t.config;a.isPreview&&(e=lay(t.elem).find("."+f),a=!a.range||t.endDate?t.parse():"",e.html(a).css({color:"#5FB878"}),setTimeout(function(){e.css({color:"#666"})},300))},g.prototype.done=function(e,t){var a=this,n=a.config,i=lay.extend({},lay.extend(n.dateTime,a.startTime)),l=lay.extend({},lay.extend(a.endDate,a.endTime));return lay.each([i,l],function(e,t){"month"in t&&lay.extend(t,{month:t.month+1})}),a.preview(),e=e||[a.parse(),i,l],"function"==typeof n[t||"done"]&&n[t||"done"].apply(n,e),a},g.prototype.choose=function(e,t){var a=this,n=a.config,i=a.thisDateTime(t),l=(lay(a.elem).find("td"),{year:0|(l=e.attr("lay-ymd").split("-"))[0],month:(0|l[1])-1,date:0|l[2]});e.hasClass(x)||(lay.extend(i,l),n.range?(lay.each(["startTime","endTime"],function(e,t){a[t]=a[t]||{hours:e?23:0,minutes:e?59:0,seconds:e?59:0}}),a.calendar(null,t).done(null,"change")):"static"===n.position?a.calendar().done().done(null,"change"):"date"===n.type?a.setValue(a.parse()).remove().done():"datetime"===n.type&&a.calendar().done(null,"change"))},g.prototype.tool=function(e,t){var a=this,n=a.config,i=a.lang(),l=n.dateTime,r="static"===n.position,o={datetime:function(){lay(e).hasClass(x)||(a.list("time",0),n.range&&a.list("time",1),lay(e).attr("lay-type","date").html(a.lang().dateTips))},date:function(){a.closeList(),lay(e).attr("lay-type","datetime").html(a.lang().timeTips)},clear:function(){r&&(lay.extend(l,a.firstDate),a.calendar()),n.range&&(delete n.dateTime,delete a.endDate,delete a.startTime,delete a.endTime),a.setValue("").remove(),a.done(["",{},{}])},now:function(){var e=new Date;lay.extend(l,a.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),a.setValue(a.parse()).remove(),r&&a.calendar(),a.done()},confirm:function(){if(n.range){if(lay(e).hasClass(x))return a.hint("time"===n.type?i.timeout.replace(/\u65e5\u671f/g,"\u65f6\u95f4"):i.timeout)}else if(lay(e).hasClass(x))return a.hint(i.invalidDate);a.setValue(a.parse()).remove(),a.done()}};o[t]&&o[t]()},g.prototype.change=function(n){var i=this,l=i.config,r=i.thisDateTime(n),o=l.range&&("year"===l.type||"month"===l.type),s=i.elemCont[n||0],y=i.listYM[n],e=function(e){var t=lay(s).find(".laydate-year-list")[0],a=lay(s).find(".laydate-month-list")[0];return t&&(y[0]=e?y[0]-15:y[0]+15,i.list("year",n)),a&&(e?y[0]--:y[0]++,i.list("month",n)),(t||a)&&(lay.extend(r,{year:y[0]}),o&&(r.year=y[0]),l.range||i.done(null,"change"),l.range||i.limit(lay(i.footer).find(E),{year:y[0]})),i.setBtnStatus(),t||a};return{prevYear:function(){e("sub")||(r.year--,i.checkDate("limit").calendar(null,n),i.done(null,"change"))},prevMonth:function(){var e=i.getAsYM(r.year,r.month,"sub");lay.extend(r,{year:e[0],month:e[1]}),i.checkDate("limit").calendar(null,n),i.done(null,"change")},nextMonth:function(){var e=i.getAsYM(r.year,r.month);lay.extend(r,{year:e[0],month:e[1]}),i.checkDate("limit").calendar(null,n),i.done(null,"change")},nextYear:function(){e()||(r.year++,i.checkDate("limit").calendar(null,n),i.done(null,"change"))}}},g.prototype.changeEvent=function(){var i=this;i.config;lay(i.elem).on("click",function(e){lay.stope(e)}).on("mousedown",function(e){lay.stope(e)}),lay.each(i.elemHeader,function(n,e){lay(e[0]).on("click",function(e){i.change(n).prevYear()}),lay(e[1]).on("click",function(e){i.change(n).prevMonth()}),lay(e[2]).find("span").on("click",function(e){var t=lay(this),a=t.attr("lay-ym"),t=t.attr("lay-type");a&&(a=a.split("-"),i.listYM[n]=[0|a[0],0|a[1]],i.list(t,n),lay(i.footer).find("."+C).addClass(x))}),lay(e[3]).on("click",function(e){i.change(n).nextMonth()}),lay(e[4]).on("click",function(e){i.change(n).nextYear()})}),lay.each(i.table,function(e,t){lay(t).find("td").on("click",function(){i.choose(lay(this),e)})}),lay(i.footer).find("span").on("click",function(){var e=lay(this).attr("lay-type");i.tool(this,e)})},g.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())||/INPUT|TEXTAREA/.test(e.tagName)},g.prototype.events=function(){var a=this,n=a.config,e=function(e,t){e.on(n.trigger,function(){u.thisId!==n.id&&(t&&(a.bindElem=this),a.render())})};n.elem[0]&&!n.elem[0].eventHandler&&(e(n.elem,"bind"),e(n.eventElem),n.elem[0].eventHandler=!0)},s.that={},s.getThis=function(e){var t=s.that[e];return!t&&n&&layui.hint().error(e?a+" instance with ID '"+e+"' not found":"ID argument required"),t},l.run=function(n){n(r).on("mousedown",function(e){var t,a;u.thisId&&(t=s.getThis(u.thisId))&&(a=t.config,e.target!==a.elem[0])&&e.target!==a.eventElem[0]&&e.target!==n(a.closeStop)[0]&&t.remove()}).on("keydown",function(e){var t;u.thisId&&(t=s.getThis(u.thisId))&&"static"!==t.config.position&&13===e.keyCode&&n("#"+t.elemID)[0]&&t.elemID===g.thisElemDate&&(e.preventDefault(),n(t.footer).find(E)[0].click())}),n(i).on("resize",function(){if(u.thisId){var e=s.getThis(u.thisId);if(e)return!(!e.elem||!n(".layui-laydate")[0])&&void e.position()}})},u.render=function(e){e=new g(e);return s.call(e)},u.parse=function(a,n,i){return a=a||{},n=((n="string"==typeof n?s.formatArr(n):n)||[]).concat(),lay.each(n,function(e,t){/yyyy|y/.test(t)?n[e]=lay.digit(a.year,t.length):/MM|M/.test(t)?n[e]=lay.digit(a.month+(i||0),t.length):/dd|d/.test(t)?n[e]=lay.digit(a.date,t.length):/HH|H/.test(t)?n[e]=lay.digit(a.hours,t.length):/mm|m/.test(t)?n[e]=lay.digit(a.minutes,t.length):/ss|s/.test(t)&&(n[e]=lay.digit(a.seconds,t.length))}),n.join("")},u.getEndDate=function(e,t){var a=new Date;return a.setFullYear(t||a.getFullYear(),e||a.getMonth()+1,1),new Date(a.getTime()-864e5).getDate()},u.close=function(e){lay("#"+(e?"layui-laydate"+e:g.thisElemDate)).remove()},n?(u.ready(),layui.define("lay",function(e){u.path=layui.cache.dir,l.run(lay),e(a,u)})):"function"==typeof define&&define.amd?define(function(){return l.run(lay),u}):(u.ready(),l.run(i.lay),i.laydate=u)}(window,window.document);!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(T,M){var f=[],g=T.document,c=f.slice,O=f.concat,R=f.push,P=f.indexOf,B={},W=B.toString,m=B.hasOwnProperty,y={},e="1.12.4",C=function(e,t){return new C.fn.init(e,t)},I=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,$=/^-ms-/,z=/-([\da-z])/gi,X=function(e,t){return t.toUpperCase()};function U(e){var t=!!e&&"length"in e&&e.length,n=C.type(e);return"function"!==n&&!C.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+a+")"+a+"*"),ee=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),te=new RegExp(G),ne=new RegExp("^"+s+"$"),f={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},re=/^(?:input|select|textarea|button)$/i,ie=/^h\d$/i,c=/^[^{]+\{\s*\[native \w/,oe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ae=/[+~]/,se=/'|\\/g,d=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig"),p=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)},ue=function(){C()};try{D.apply(n=V.call(v.childNodes),v.childNodes),n[v.childNodes.length].nodeType}catch(F){D={apply:n.length?function(e,t){U.apply(e,V.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function H(e,t,n,r){var i,o,a,s,u,l,c,f,d=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:v)!==E&&C(t),t=t||E,N)){if(11!==p&&(l=oe.exec(e)))if(i=l[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&y(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return D.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&g.getElementsByClassName&&t.getElementsByClassName)return D.apply(n,t.getElementsByClassName(i)),n}if(g.qsa&&!A[e+" "]&&(!m||!m.test(e))){if(1!==p)d=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(se,"\\$&"):t.setAttribute("id",s=k),o=(c=w(e)).length,u=ne.test(s)?"#"+s:"[id='"+s+"']";o--;)c[o]=u+" "+_(c[o]);f=c.join(","),d=ae.test(e)&&de(t.parentNode)||t}if(f)try{return D.apply(n,d.querySelectorAll(f)),n}catch(h){}finally{s===k&&t.removeAttribute("id")}}}return P(e.replace(L,"$1"),t,n,r)}function le(){var n=[];function r(e,t){return n.push(e+" ")>b.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function q(e){return e[k]=!0,e}function h(e){var t=E.createElement("div");try{return!!e(t)}catch(F){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function x(a){return q(function(o){return o=+o,q(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function de(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in g=H.support={},O=H.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},C=H.setDocument=function(e){var e=e?e.ownerDocument||e:v;return e!==E&&9===e.nodeType&&e.documentElement&&(t=(E=e).documentElement,N=!O(E),(e=E.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ue,!1):e.attachEvent&&e.attachEvent("onunload",ue)),g.attributes=h(function(e){return e.className="i",!e.getAttribute("className")}),g.getElementsByTagName=h(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),g.getElementsByClassName=c.test(E.getElementsByClassName),g.getById=h(function(e){return t.appendChild(e).id=k,!E.getElementsByName||!E.getElementsByName(k).length}),g.getById?(b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N)return(e=t.getElementById(e))?[e]:[]},b.filter.ID=function(e){var t=e.replace(d,p);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(d,p);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),b.find.TAG=g.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):g.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=g.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&N)return t.getElementsByClassName(e)},r=[],m=[],(g.qsa=c.test(E.querySelectorAll))&&(h(function(e){t.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+a+"*(?:value|"+Y+")"),e.querySelectorAll("[id~="+k+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||m.push(".#.+[+~]")}),h(function(e){var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+a+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(g.matchesSelector=c.test(i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector))&&h(function(e){g.disconnectedMatch=i.call(e,"div"),i.call(e,"[s!='']:x"),r.push("!=",G)}),m=m.length&&new RegExp(m.join("|")),r=r.length&&new RegExp(r.join("|")),e=c.test(t.compareDocumentPosition),y=e||c.test(t.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=e?function(e,t){var n;return e===t?(l=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===E||e.ownerDocument===v&&y(v,e)?-1:t===E||t.ownerDocument===v&&y(v,t)?1:u?j(u,e)-j(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===E?-1:t===E?1:i?-1:o?1:u?j(u,e)-j(u,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]===v?-1:s[r]===v?1:0}),E},H.matches=function(e,t){return H(e,null,null,t)},H.matchesSelector=function(e,t){if((e.ownerDocument||e)!==E&&C(e),t=t.replace(ee,"='$1']"),g.matchesSelector&&N&&!A[t+" "]&&(!r||!r.test(t))&&(!m||!m.test(t)))try{var n=i.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(F){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(d,p),e[3]=(e[3]||e[4]||e[5]||"").replace(d,p),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||H.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&H.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return f.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&te.test(n)&&(t=(t=w(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(d,p).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=H.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1(?:<\/\1>|)$/,G=/^.[^:#\[\.,]*$/;function K(e,n,r){if(C.isFunction(n))return C.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return C.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(G.test(n))return C.filter(n,e,r);n=C.filter(n,e)}return C.grep(e,function(e){return-1)[^>]*|#([\w-]*))$/,ee=((C.fn.init=function(e,t,n){if(e){if(n=n||Q,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):C.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(C):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),C.makeArray(e,this));if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Z.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),J.test(r[1])&&C.isPlainObject(t))for(var r in t)C.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r])}else{if((n=g.getElementById(r[2]))&&n.parentNode){if(n.id!==r[2])return Q.find(e);this.length=1,this[0]=n}this.context=g,this.selector=e}}return this}).prototype=C.fn,Q=C(g),/^(?:parents|prev(?:Until|All))/),te={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t,n=C(e,this),r=n.length;return this.filter(function(){for(t=0;t
                  a",y.leadingWhitespace=3===S.firstChild.nodeType,y.tbody=!S.getElementsByTagName("tbody").length,y.htmlSerialize=!!S.getElementsByTagName("link").length,y.html5Clone="<:nav>"!==g.createElement("nav").cloneNode(!0).outerHTML,q.type="checkbox",q.checked=!0,k.appendChild(q),y.appendChecked=q.checked,S.innerHTML="",y.noCloneChecked=!!S.cloneNode(!0).lastChild.defaultValue,k.appendChild(S),(q=g.createElement("input")).setAttribute("type","radio"),q.setAttribute("checked","checked"),q.setAttribute("name","t"),S.appendChild(q),y.checkClone=S.cloneNode(!0).cloneNode(!0).lastChild.checked,y.noCloneEvent=!!S.addEventListener,S[C.expando]=1,y.attributes=!S.getAttribute(C.expando);var x={option:[1,""],legend:[1,"
                  ","
                  "],area:[1,"",""],param:[1,"",""],thead:[1,"","
                  "],tr:[2,"","
                  "],col:[2,"","
                  "],td:[3,"","
                  "],_default:y.htmlSerialize?[0,"",""]:[1,"X
                  ","
                  "]};function b(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||C.nodeName(r,t)?o.push(r):C.merge(o,b(r,t));return t===undefined||t&&C.nodeName(e,t)?C.merge([e],o):o}function we(e,t){for(var n,r=0;null!=(n=e[r]);r++)C._data(n,"globalEval",!t||C._data(t[r],"globalEval"))}x.optgroup=x.option,x.tbody=x.tfoot=x.colgroup=x.caption=x.thead,x.th=x.td;var Te=/<|&#?\w+;/,Ce=/"!==f[1]||Ce.test(a)?0:u:u.firstChild)&&a.childNodes.length;o--;)C.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(C.merge(h,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=p.lastChild}else h.push(t.createTextNode(a));for(u&&p.removeChild(u),y.appendChecked||C.grep(b(h,"input"),Ee),g=0;a=h[g++];)if(r&&-1]","i"),Pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Be=/\s*$/g,ze=be(g).appendChild(g.createElement("div"));function Xe(e,t){return C.nodeName(e,"table")&&C.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ue(e){return e.type=(null!==C.find.attr(e,"type"))+"/"+e.type,e}function Ve(e){var t=Ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ye(e,t){if(1===t.nodeType&&C.hasData(e)){var n,r,i,e=C._data(e),o=C._data(t,e),a=e.events;if(a)for(n in delete o.handle,o.events={},a)for(r=0,i=a[n].length;r")},clone:function(e,t,n){var r,i,o,a,s,u=C.contains(e.ownerDocument,e);if(y.html5Clone||C.isXMLDoc(e)||!Re.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ze.innerHTML=e.outerHTML,ze.removeChild(o=ze.firstChild)),!(y.noCloneEvent&&y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(r=b(o),s=b(e),a=0;null!=(i=s[a]);++a)if(r[a]){f=c=l=p=d=void 0;var l,c,f,d=i,p=r[a];if(1===p.nodeType){if(l=p.nodeName.toLowerCase(),!y.noCloneEvent&&p[C.expando]){for(c in(f=C._data(p)).events)C.removeEvent(p,c,f.handle);p.removeAttribute(C.expando)}"script"===l&&p.text!==d.text?(Ue(p).text=d.text,Ve(p)):"object"===l?(p.parentNode&&(p.outerHTML=d.outerHTML),y.html5Clone&&d.innerHTML&&!C.trim(p.innerHTML)&&(p.innerHTML=d.innerHTML)):"input"===l&&ge.test(d.type)?(p.defaultChecked=p.checked=d.checked,p.value!==d.value&&(p.value=d.value)):"option"===l?p.defaultSelected=p.selected=d.defaultSelected:"input"!==l&&"textarea"!==l||(p.defaultValue=d.defaultValue)}}if(t)if(n)for(s=s||b(e),r=r||b(o),a=0;null!=(i=s[a]);a++)Ye(i,r[a]);else Ye(e,o);return 0<(r=b(o,"script")).length&&we(r,!u&&b(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,o,a=0,s=C.expando,u=C.cache,l=y.attributes,c=C.event.special;null!=(n=e[a]);a++)if((t||v(n))&&(o=(i=n[s])&&u[i])){if(o.events)for(r in o.events)c[r]?C.event.remove(n,r):C.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeAttribute?n[s]=undefined:n.removeAttribute(s),f.push(i))}}}),C.fn.extend({domManip:w,detach:function(e){return Je(this,e,!0)},remove:function(e){return Je(this,e)},text:function(e){return d(this,function(e){return e===undefined?C.text(this):this.empty().append((this[0]&&this[0].ownerDocument||g).createTextNode(e))},null,e,arguments.length)},append:function(){return w(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Xe(this,e).appendChild(e)})},prepend:function(){return w(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Xe(this,e)).insertBefore(e,t.firstChild)})},before:function(){return w(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return w(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&C.cleanData(b(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&C.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return d(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(Oe,""):undefined;if("string"==typeof e&&!Be.test(e)&&(y.htmlSerialize||!Re.test(e))&&(y.leadingWhitespace||!ve.test(e))&&!x[(me.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n")).appendTo(t.documentElement))[0].contentWindow||Ge[0].contentDocument).document).write(),t.close(),n=Qe(e,t),Ge.detach()),Ke[e]=n),n}var n,et,tt,nt,rt,it,ot,a,at=/^margin/,st=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),ut=function(e,t,n,r){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,r||[]),t)e.style[i]=o[i];return r},lt=g.documentElement;function t(){var e,t=g.documentElement;t.appendChild(ot),a.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=tt=it=!1,et=rt=!0,T.getComputedStyle&&(e=T.getComputedStyle(a),n="1%"!==(e||{}).top,it="2px"===(e||{}).marginLeft,tt="4px"===(e||{width:"4px"}).width,a.style.marginRight="50%",et="4px"===(e||{marginRight:"4px"}).marginRight,(e=a.appendChild(g.createElement("div"))).style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",rt=!parseFloat((T.getComputedStyle(e)||{}).marginRight),a.removeChild(e)),a.style.display="none",(nt=0===a.getClientRects().length)&&(a.style.display="",a.innerHTML="
                  t
                  ",a.childNodes[0].style.borderCollapse="separate",(e=a.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",nt=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",nt=0===e[0].offsetHeight),t.removeChild(ot)}ot=g.createElement("div"),(a=g.createElement("div")).style&&(a.style.cssText="float:left;opacity:.5",y.opacity="0.5"===a.style.opacity,y.cssFloat=!!a.style.cssFloat,a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===a.style.backgroundClip,(ot=g.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.innerHTML="",ot.appendChild(a),y.boxSizing=""===a.style.boxSizing||""===a.style.MozBoxSizing||""===a.style.WebkitBoxSizing,C.extend(y,{reliableHiddenOffsets:function(){return null==n&&t(),nt},boxSizingReliable:function(){return null==n&&t(),tt},pixelMarginRight:function(){return null==n&&t(),et},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),rt},reliableMarginLeft:function(){return null==n&&t(),it}}));var l,p,ct=/^(top|right|bottom|left)$/;function ft(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}T.getComputedStyle?(l=function(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:T).getComputedStyle(e)},p=function(e,t,n){var r,i,o=e.style;return""!==(i=(n=n||l(e))?n.getPropertyValue(t)||n[t]:undefined)&&i!==undefined||C.contains(e.ownerDocument,e)||(i=C.style(e,t)),n&&!y.pixelMarginRight()&&st.test(i)&&at.test(t)&&(e=o.width,t=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=i,i=n.width,o.width=e,o.minWidth=t,o.maxWidth=r),i===undefined?i:i+""}):lt.currentStyle&&(l=function(e){return e.currentStyle},p=function(e,t,n){var r,i,o,a=e.style;return null==(n=(n=n||l(e))?n[t]:undefined)&&a&&a[t]&&(n=a[t]),st.test(n)&&!ct.test(t)&&(r=a.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),a.left="fontSize"===t?"1em":n,n=a.pixelLeft+"px",a.left=r,o)&&(i.left=o),n===undefined?n:n+""||"auto"});var dt=/alpha\([^)]*\)/i,pt=/opacity\s*=\s*([^)]*)/i,ht=/^(none|table(?!-c[ea]).+)/,gt=new RegExp("^("+e+")(.*)$","i"),mt={position:"absolute",visibility:"hidden",display:"block"},yt={letterSpacing:"0",fontWeight:"400"},vt=["Webkit","O","Moz","ms"],xt=g.createElement("div").style;function bt(e){if(e in xt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=vt.length;n--;)if((e=vt[n]+t)in xt)return e}function wt(e,t){for(var n,r,i,o=[],a=0,s=e.length;a
                  a",F=q.getElementsByTagName("a")[0],k.setAttribute("type","checkbox"),q.appendChild(k),(F=q.getElementsByTagName("a")[0]).style.cssText="top:1px",y.getSetAttribute="t"!==q.className,y.style=/top/.test(F.getAttribute("style")),y.hrefNormalized="/a"===F.getAttribute("href"),y.checkOn=!!k.value,y.optSelected=e.selected,y.enctype=!!g.createElement("form").enctype,S.disabled=!0,y.optDisabled=!e.disabled,(k=g.createElement("input")).setAttribute("value",""),y.input=""===k.getAttribute("value"),k.value="t",k.setAttribute("type","radio"),y.radioValue="t"===k.value;var Lt=/\r/g,Ht=/[\x20\t\r\n\f]+/g;C.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=C.isFunction(t),this.each(function(e){1!==this.nodeType||(null==(e=r?t.call(this,e,C(this).val()):t)?e="":"number"==typeof e?e+="":C.isArray(e)&&(e=C.map(e,function(e){return null==e?"":e+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,e,"value")!==undefined)||(this.value=e)})):i?(n=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&(e=n.get(i,"value"))!==undefined?e:"string"==typeof(e=i.value)?e.replace(Lt,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:C.trim(C.text(e)).replace(Ht," ")}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,i="select-one"===e.type||r<0,o=i?null:[],a=i?r+1:n.length,s=r<0?a:i?r:0;s").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this)},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.filters.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,n){var r,i,o,a,s=C.css(e,"position"),u=C(e),l={};"static"===s&&(e.style.position="relative"),o=u.offset(),r=C.css(e,"top"),a=C.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1'+(o?n.title[0]:n.title)+"
                  ":"";return n.zIndex=a,t([n.shade?'
                  ':"",'
                  '+(e&&2!=n.type?"":o)+'
                  '+(0==n.type&&-1!==n.icon?'':"")+((1!=n.type||!e)&&n.content||"")+'
                  '+(i=s?'':"",n.closeBtn&&(i+='ဆ'),i)+""+(n.btn?function(){var e="";"string"==typeof n.btn&&(n.btn=[n.btn]);for(var t=0,i=n.btn.length;t'+n.btn[t]+"";return'
                  '+e+"
                  "}():"")+(n.resize?'':"")+"
                  "],o,h('
                  ')),this},t.pt.creat=function(){var e,n=this,a=n.config,o=n.index,s="object"==typeof(l=a.content),r=h("body");if(!a.id||!h("#"+a.id)[0]){switch("string"==typeof a.area&&(a.area="auto"===a.area?["",""]:[a.area,""]),a.shift&&(a.anim=a.shift),6==m.ie&&(a.fixed=!1),a.type){case 0:a.btn="btn"in a?a.btn:c.btn[0],m.closeAll("dialog");break;case 2:var l=a.content=s?a.content:[a.content||"","auto"];a.content='';break;case 3:delete a.title,delete a.closeBtn,-1===a.icon&&a.icon,m.closeAll("loading");break;case 4:s||(a.content=[a.content,"body"]),a.follow=a.content[1],a.content=a.content[0]+'',delete a.title,a.tips="object"==typeof a.tips?a.tips:[a.tips,!0],a.tipsMore||m.closeAll("tips")}n.vessel(s,function(e,t,i){r.append(e[0]),s?2==a.type||4==a.type?h("body").append(e[1]):l.parents("."+d[0])[0]||(l.data("display",l.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),h("#"+d[0]+o).find("."+d[5]).before(t)):r.append(e[1]),h("#"+d.MOVE)[0]||r.append(c.moveElem=i),n.layero=h("#"+d[0]+o),n.shadeo=h("#"+d.SHADE+o),a.scrollbar||d.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),n.shadeo.css({"background-color":a.shade[1]||"#000",opacity:a.shade[0]||a.shade}),2==a.type&&6==m.ie&&n.layero.find("iframe").attr("src",l[0]),4==a.type?n.tips():(n.offset(),parseInt(c.getStyle(document.getElementById(d.MOVE),"z-index"))||(n.layero.css("visibility","hidden"),m.ready(function(){n.offset(),n.layero.css("visibility","visible")}))),a.fixed&&f.on("resize",function(){n.offset(),(/^\d+%$/.test(a.area[0])||/^\d+%$/.test(a.area[1]))&&n.auto(o),4==a.type&&n.tips()}),a.time<=0||setTimeout(function(){m.close(n.index)},a.time),n.move().callback(),d.anim[a.anim]&&(e="layer-anim "+d.anim[a.anim],n.layero.addClass(e).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){h(this).removeClass(e)})),a.isOutAnim&&n.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){var t=this.config,i=h("#"+d[0]+e),n=(""===t.area[0]&&0t.maxWidth)&&i.width(t.maxWidth),[i.innerWidth(),i.innerHeight()]),a=i.find(d[1]).outerHeight()||0,o=i.find("."+d[6]).outerHeight()||0,e=function(e){(e=i.find(e)).height(n[1]-a-o-2*(0|parseFloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0t.maxHeight?(n[1]=t.maxHeight,e("."+d[5])):t.fixed&&n[1]>=f.height()&&(n[1]=f.height(),e("."+d[5])):e("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,i=e.layero,n=[i.outerWidth(),i.outerHeight()],a="object"==typeof t.offset;e.offsetTop=(f.height()-n[1])/2,e.offsetLeft=(f.width()-n[0])/2,a?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=f.width()-n[0]:"b"===t.offset?e.offsetTop=f.height()-n[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=f.height()-n[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=f.width()-n[0]):"rb"===t.offset?(e.offsetTop=f.height()-n[1],e.offsetLeft=f.width()-n[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?f.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?f.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=f.scrollTop(),e.offsetLeft+=f.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=f.height()-(i.find(d[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},t.pt.tips=function(){var e=this.config,t=this.layero,i=[t.outerWidth(),t.outerHeight()],n=h(e.follow),a={width:(n=n[0]?n:h("body")).outerWidth(),height:n.outerHeight(),top:n.offset().top,left:n.offset().left},o=t.find(".layui-layer-TipsG"),n=e.tips[0];e.tips[1]||o.remove(),a.autoLeft=function(){0":'',o=i.success;return delete i.success,m.open(h.extend({type:1,btn:["确定","取消"],content:t,skin:"layui-layer-prompt"+g("prompt"),maxWidth:f.width(),success:function(e){(a=e.find(".layui-layer-input")).val(i.value||"").focus(),"function"==typeof o&&o(e)},resize:!1,yes:function(e){var t=a.val();""===t?a.focus():t.length>(i.maxlength||500)?m.tips("最多输入"+(i.maxlength||500)+"个字数",a,{tips:1}):n&&n(t,e,a)}},i))},m.tab=function(n){var a=(n=n||{}).tab||{},o="layui-this",s=n.success;return delete n.success,m.open(h.extend({type:1,skin:"layui-layer-tab"+g("tab"),resize:!1,title:function(){var e=a.length,t=1,i="";if(0'+a[0].title+"";t"+a[t].title+"";return i}(),content:'
                    '+function(){var e=a.length,t=1,i="";if(0'+(a[0].content||"no content")+"";t'+(a[t].content||"no content")+"";return i}()+"
                  ",success:function(e){var t=e.find(".layui-layer-title").children(),i=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var e=h(this),t=e.index();e.addClass(o).siblings().removeClass(o),i.eq(t).show().siblings().hide(),"function"==typeof n.change&&n.change(t)}),"function"==typeof s&&s(e)}},n))},m.photos=function(i,e,n){var a={};if((i=i||{}).photos){var t=!("string"==typeof i.photos||i.photos instanceof h),o=t?i.photos:{},s=o.data||[],r=o.start||0,l=(a.imgIndex=1+(0|r),i.img=i.img||"img",i.success);if(delete i.success,t){if(0===s.length)return m.msg("没有图片")}else{var f=h(i.photos),c=function(){s=[],f.find(i.img).each(function(e){var t=h(this);t.attr("layer-index",e),s.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(c(),0===s.length)return;if(e||f.on("click",i.img,function(){c();var e=h(this).attr("layer-index");m.photos(h.extend(i,{photos:{start:e,data:s,tab:i.tab},full:i.full}),!0)}),!e)return}a.imgprev=function(e){a.imgIndex--,a.imgIndex<1&&(a.imgIndex=s.length),a.tabimg(e)},a.imgnext=function(e,t){a.imgIndex++,a.imgIndex>s.length&&(a.imgIndex=1,t)||a.tabimg(e)},a.keyup=function(e){var t;a.end||(t=e.keyCode,e.preventDefault(),37===t?a.imgprev(!0):39===t?a.imgnext(!0):27===t&&m.close(a.index))},a.tabimg=function(e){if(!(s.length<=1))return o.start=a.imgIndex-1,m.close(a.index),m.photos(i,!0,e)},a.event=function(){a.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),a.imgprev(!0)}),a.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),a.imgnext(!0)}),h(document).on("keyup",a.keyup)},a.loadi=m.load(1,{shade:!("shade"in i)&&.9,scrollbar:!1});var t=s[r].src,d=function(e){var t;m.close(a.loadi),n&&(i.anim=-1),a.index=m.open(h.extend({type:1,id:"layui-layer-photos",area:(e=[e.width,e.height],t=[h(p).width()-100,h(p).height()-100],!i.full&&(t[0]'+(s[r].alt||'+(1
                  '+(s[r].alt||"")+""+a.imgIndex+" / "+s.length+"
                  ":"")+"
                  ",success:function(e,t){a.bigimg=e.find(".layui-layer-phimg"),a.imgsee=e.find(".layui-layer-imgbar"),a.event(e),i.tab&&i.tab(s[r],e),"function"==typeof l&&l(e)},end:function(){a.end=!0,h(document).off("keyup",a.keyup)}},i))},u=function(){m.close(a.loadi),m.msg("当前图片地址异常
                  是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1',t.bar1?'
                • '+l[0]+"
                • ":"",t.bar2?'
                • '+l[1]+"
                • ":"",'
                • '+l[2]+"
                • ",""].join("")),c=l.find("."+o),g=function(){a.scrollTop()>=t.showHeight?e||(c.show(),e=1):e&&(c.hide(),e=0)};u("."+n)[0]||("object"==typeof t.css&&l.css(t.css),r.append(l),g(),l.find("li").on("click",function(){var e=u(this).attr("lay-type");"top"===e&&u("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,e)}),a.on("scroll",function(){clearTimeout(i),i=setTimeout(function(){g()},100)}))},countdown:function(e,t,i){var n=this,o="function"==typeof t,a=new Date(e).getTime(),r=new Date(!t||o?(new Date).getTime():t).getTime(),a=a-r,l=[Math.floor(a/864e5),Math.floor(a/36e5)%24,Math.floor(a/6e4)%60,Math.floor(a/1e3)%60],o=(o&&(i=t),setTimeout(function(){n.countdown(e,r+1e3,i)},1e3));return i&&i(0]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},unescape:function(e){return e!==undefined&&null!==e||(e=""),(e+="").replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">").replace(/\'/g,"'").replace(/\"/g,'"')},toVisibleArea:function(e){var t,i,n,o,a,r,l,c;(e=u.extend({margin:160,duration:200,type:"y"},e)).scrollElem[0]&&e.thisElem[0]&&(t=e.scrollElem,l=e.thisElem,n=(a="y"===e.type)?"top":"left",o=t[i=a?"scrollTop":"scrollLeft"](),a=t[a?"height":"width"](),r=t.offset()[n],c={},(l=l.offset()[n]-r)>a-e.margin||l."+f,x=function(e){var i=this;i.index=++p.index,i.config=s.extend({},i.config,p.config,e),i.init()};x.prototype.config={trigger:"click",content:"",className:"",style:"",show:!1,isAllowSpread:!0,isSpreadItem:!0,data:[],delay:300},x.prototype.reload=function(e){var i=this;i.config=s.extend({},i.config,e),i.init(!0)},x.prototype.init=function(e){var i,t=this,n=t.config,l=n.elem=s(n.elem);return 1",(t="href"in i?''+a+"":a,n?'
                  '+t+("parent"===o?'':"group"===o&&u.isAllowSpread?'':"")+"
                  ":'
                  '+t+"
                  "),""].join(""))).data("item",i),n&&(l=s('
                  '),t=s("
                    "),"parent"===o?(l.append(d(t,i.child)),a.append(l)):a.append(d(t,i.child))),r.append(a))}),r},t=['
                    ',"
                    "].join("");!(e="contextmenu"!==u.trigger&&!lay.isTopElem(u.elem[0])?e:!0)&&u.elem.data(r+"_opened")||(n.elemView=s(t),n.elemView.append(u.content||(e=s('
                      '),0no menu'),e)),u.className&&n.elemView.addClass(u.className),u.style&&n.elemView.attr("style",u.style),p.thisId=u.id,n.remove(),i.append(n.elemView),u.elem.data(r+"_opened",!0),n.position(),(y.prevElem=n.elemView).data("prevElem",u.elem),n.elemView.find(".layui-menu").on(a,function(e){layui.stope(e)}),n.elemView.find(".layui-menu li").on("click",function(e){var i=s(this),t=i.data("item")||{};t.child&&0n.width()&&(t.addClass(V),(i=t[0].getBoundingClientRect()).left<0)&&t.removeClass(V),i.bottom>n.height())&&t.eq(0).css("margin-top",-(i.bottom-n.height()))}).on("mouseleave",t,function(e){var i=s(this).children("."+C);i.removeClass(V),i.css("margin-top",0)}),p.close=function(e){e=y.getThis(e);return e?(e.remove(),y.call(e)):this},p.reload=function(e,i){e=y.getThis(e);return e?(e.reload(i),y.call(e)):this},p.render=function(e){e=new x(e);return y.call(e)},e(o,p)});layui.define("jquery",function(e){"use strict";var h=layui.$,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var i=this;return i.config=h.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,a,e,i)}},a="slider",c="layui-disabled",y="layui-slider-bar",g="layui-slider-wrap",b="layui-slider-wrap-btn",x="layui-slider-tips",T="layui-slider-input-txt",w="layui-slider-hover",i=function(e){var i=this;i.index=++t.index,i.config=h.extend({},i.config,t.config,e),i.render()};i.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},i.prototype.render=function(){var a,n=this,l=n.config,e=(l.step<1&&(l.step=1),l.maxl.min?i:l.min,l.value[1]=s>l.min?s:l.min,l.value[0]=l.value[0]>l.max?l.max:l.value[0],l.value[1]=l.value[1]>l.max?l.max:l.value[1],i=Math.floor((l.value[0]-l.min)/(l.max-l.min)*100),t=(s=Math.floor((l.value[1]-l.min)/(l.max-l.min)*100))-i+"%",i+="%",s+="%"):("object"==typeof l.value&&(l.value=Math.min.apply(null,l.value)),l.valuel.max&&(l.value=l.max),t=Math.floor((l.value-l.min)/(l.max-l.min)*100)+"%"),l.disabled?"#c2c2c2":l.theme),i='
                      '+(l.tips?'
                      ':"")+'
                      '+(l.range?'
                      ':"")+"
                      ",t=h(l.elem),s=t.next(".layui-slider");if(s[0]&&s.remove(),n.elemTemp=h(i),l.range?(n.elemTemp.find("."+g).eq(0).data("value",l.value[0]),n.elemTemp.find("."+g).eq(1).data("value",l.value[1])):n.elemTemp.find("."+g).data("value",l.value),t.html(n.elemTemp),"vertical"===l.type&&n.elemTemp.height(l.height+"px"),l.showstep){for(var r=(l.max-l.min)/l.step,o="",u=1;u<1+r;u++){var d=100*u/r;d<100&&(o+='
                      ')}n.elemTemp.append(o)}l.input&&!l.range&&(e=h('
                      '),t.css("position","relative"),t.append(e),t.find("."+T).children("input").val(l.value),"vertical"===l.type?e.css({left:0,top:-48}):n.elemTemp.css("margin-right",e.outerWidth()+15)),l.disabled?(n.elemTemp.addClass(c),n.elemTemp.find("."+b).addClass(c)):n.slide(),n.elemTemp.find("."+b).on("mouseover",function(){var e="vertical"===l.type?l.height:n.elemTemp[0].offsetWidth,i=n.elemTemp.find("."+g),t=("vertical"===l.type?e-h(this).parent()[0].offsetTop-i.height():h(this).parent()[0].offsetLeft)/e*100,i=h(this).parent().data("value"),e=l.setTips?l.setTips(i):i;n.elemTemp.find("."+x).html(e),clearTimeout(a),a=setTimeout(function(){"vertical"===l.type?n.elemTemp.find("."+x).css({bottom:t+"%","margin-bottom":"20px",display:"inline-block"}):n.elemTemp.find("."+x).css({left:t+"%",display:"inline-block"})},300)}).on("mouseout",function(){clearTimeout(a),n.elemTemp.find("."+x).css("display","none")})},i.prototype.slide=function(e,i,t){var r=this.config,o=this.elemTemp,u=function(){return"vertical"===r.type?r.height:o[0].offsetWidth},d=o.find("."+g),s=o.next(".layui-slider-input"),c=s.children("."+T).children("input").val(),m=100/((r.max-r.min)/Math.ceil(r.step)),v=function(e,i){e=100<(e=100t[1]&&t.reverse(),r.change&&r.change(r.range?t:n)},p=function(e){var i=e/u()*100/m,t=Math.round(i)*m;return t=e==u()?Math.ceil(i)*m:t},f=h(['
                      u()?u():i)/u()*100/m;v(i,l),s.addClass(w),o.find("."+x).show(),e.preventDefault()},i=function(){s.removeClass(w),o.find("."+x).hide()},t=function(){i&&i(),f.remove()},h("#LAY-slider-moving")[0]||h("body").append(f),f.on("mousemove",e),f.on("mouseup",t).on("mouseleave",t)})}),o.on("click",function(e){var i,t=h("."+b);!t.is(event.target)&&0===t.has(event.target).length&&t.length&&(i=(t=(t=(t="vertical"===r.type?u()-e.clientY+h(this).offset().top:e.clientX-h(this).offset().left)<0?0:t)>u()?u():t)/u()*100/m,t=r.range?"vertical"===r.type?Math.abs(t-parseInt(h(d[0]).css("bottom")))>Math.abs(t-parseInt(h(d[1]).css("bottom")))?1:0:Math.abs(t-d[0].offsetLeft)>Math.abs(t-d[1].offsetLeft)?1:0:0,v(i,t),e.preventDefault())}),s.children(".layui-slider-input-btn").children("i").each(function(i){h(this).on("click",function(){c=s.children("."+T).children("input").val();var e=((c=1==i?c-r.stepr.max?r.max:Number(c)+r.step)-r.min)/(r.max-r.min)*100/m;v(e,0)})});var a=function(){var e=this.value,e=(e=(e=(e=isNaN(e)?0:e)r.max?r.max:e,((this.value=e)-r.min)/(r.max-r.min)*100/m);v(e,0)};s.children("."+T).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),a.call(this))}).on("change",a)},i.prototype.events=function(){this.config},t.render=function(e){e=new i(e);return function(){var t=this,a=t.config;return{setValue:function(e,i){return a.value=e,t.slide("set",e,i||0)},config:a}}.call(e)},e(a,t)});layui.define(["jquery","lay"],function(e){"use strict";var y=layui.jquery,o=layui.lay,r=layui.device().mobile?"click":"mousedown",i={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var i=this;return i.config=y.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},n="layui-colorpicker",t=".layui-colorpicker-main",k="layui-colorpicker-trigger-span",m="layui-colorpicker-side-slider",x="layui-colorpicker-basis",P="layui-colorpicker-alpha-bgcolor",C="layui-colorpicker-alpha-slider",B="layui-colorpicker-basis-cursor",w="layui-colorpicker-main-input",D=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),n=r-o;return i.b=r,i.s=0!=r?255*n/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/n:e.g==r?i.h=2+(e.b-e.r)/n:i.h=4+(e.r-e.g)/n:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},I=function(e){var i,o={},r=e.h,n=255*e.s/100,e=255*e.b/100;return 0==n?o.r=o.g=o.b=e:(e=r%60*((i=e)-(n=(255-n)*e/255))/60,(r=360==r?0:r)<60?(o.r=i,o.b=n,o.g=n+e):r<120?(o.g=i,o.b=n,o.r=i-e):r<180?(o.g=i,o.r=n,o.b=n+e):r<240?(o.b=i,o.r=n,o.g=i-e):r<300?(o.b=i,o.g=n,o.r=n+e):r<360?(o.r=i,o.g=n,o.b=i-e):(o.r=0,o.g=0,o.b=0)),{r:Math.round(o.r),g:Math.round(o.g),b:Math.round(o.b)}},u=function(e){var e=I(e),o=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];return y.each(o,function(e,i){1==i.length&&(o[e]="0"+i)}),o.join("")},j=function(e){e=e.match(/[0-9]{1,3}/g)||[];return{r:e[0],g:e[1],b:e[2]}},E=y(window),l=y(document),c=function(e){this.index=++i.index,this.config=y.extend({},this.config,i.config,e),this.render()};c.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},c.prototype.render=function(){var e=this,i=e.config,o=y(['
                      ',"",'',"',"","","
                      "].join("")),r=y(i.elem);i.size&&o.addClass("layui-colorpicker-"+i.size),r.addClass("layui-inline").html(e.elemColorBox=o),e.color=e.elemColorBox.find("."+k)[0].style.background,e.events()},c.prototype.renderPicker=function(){var o,e=this,i=e.config,r=e.elemColorBox[0],i=e.elemPicker=y(['
                      ','
                      ','
                      ','
                      ','
                      ','
                      ',"
                      ",'
                      ','
                      ',"
                      ","
                      ",'
                      ','
                      ','
                      ',"
                      ","
                      ",i.predefine?(o=['
                      '],layui.each(i.colors,function(e,i){o.push(['
                      ','
                      ',"
                      "].join(""))}),o.push("
                      "),o.join("")):"",'
                      ','
                      ','',"
                      ",'
                      ','','',"","
                      "].join(""));e.elemColorBox.find("."+k)[0];y(t)[0]&&y(t).data("index")==e.index?e.removePicker(c.thisElemInd):(e.removePicker(c.thisElemInd),y("body").append(i)),c.thisElemInd=e.index,c.thisColor=r.style.background,e.position(),e.pickerEvents()},c.prototype.removePicker=function(e){this.config;return y("#layui-colorpicker"+(e||this.index)).remove(),this},c.prototype.position=function(){var e=this,i=e.config;return o.position(e.bindElem||e.elemColorBox[0],e.elemPicker[0],{position:i.position,align:"center"}),e},c.prototype.val=function(){var e,i=this,o=(i.config,i.elemColorBox.find("."+k)),r=i.elemPicker.find("."+w),n=o[0].style.backgroundColor;n?(e=D(j(n)),o=o.attr("lay-type"),i.select(e.h,e.s,e.b),"torgb"===o&&r.find("input").val(n),"rgba"===o&&(e=j(n),3==(n.match(/[0-9]{1,3}/g)||[]).length?(r.find("input").val("rgba("+e.r+", "+e.g+", "+e.b+", 1)"),i.elemPicker.find("."+C).css("left",280)):(r.find("input").val(n),o=280*n.slice(n.lastIndexOf(",")+1,n.length-1),i.elemPicker.find("."+C).css("left",o)),i.elemPicker.find("."+P)[0].style.background="linear-gradient(to right, rgba("+e.r+", "+e.g+", "+e.b+", 0), rgb("+e.r+", "+e.g+", "+e.b+"))")):(i.select(0,100,100),r.find("input").val(""),i.elemPicker.find("."+P)[0].style.background="",i.elemPicker.find("."+C).css("left",280))},c.prototype.side=function(){var n=this,t=n.config,l=n.elemColorBox.find("."+k),c=l.attr("lay-type"),a=n.elemPicker.find(".layui-colorpicker-side"),e=n.elemPicker.find("."+m),s=n.elemPicker.find("."+x),r=n.elemPicker.find("."+B),f=n.elemPicker.find("."+P),u=n.elemPicker.find("."+C),d=e[0].offsetTop/180*360,p=100-(r[0].offsetTop+3)/180*100,g=(r[0].offsetLeft+3)/260*100,h=Math.round(u[0].offsetLeft/280*100)/100,i=(n.elemColorBox.find(".layui-colorpicker-trigger-i"),n.elemPicker.find(".layui-colorpicker-pre").children("div")),v=function(e,i,o,r){n.select(e,i,o);e=I({h:e,s:i,b:o});l[0].style.background="rgb("+e.r+", "+e.g+", "+e.b+")","torgb"===c&&n.elemPicker.find("."+w).find("input").val("rgb("+e.r+", "+e.g+", "+e.b+")"),"rgba"===c&&(u.css("left",280*r),n.elemPicker.find("."+w).find("input").val("rgba("+e.r+", "+e.g+", "+e.b+", "+r+")"),l[0].style.background="rgba("+e.r+", "+e.g+", "+e.b+", "+r+")",f[0].style.background="linear-gradient(to right, rgba("+e.r+", "+e.g+", "+e.b+", 0), rgb("+e.r+", "+e.g+", "+e.b+"))"),t.change&&t.change(n.elemPicker.find("."+w).find("input").val())},o=y(['
                      '].join("")),b=function(e){y("#LAY-colorpicker-moving")[0]||y("body").append(o),o.on("mousemove",e),o.on("mouseup",function(){o.remove()}).on("mouseleave",function(){o.remove()})};e.on("mousedown",function(e){var r=this.offsetTop,n=e.clientY;b(function(e){var i=r+(e.clientY-n),o=a[0].offsetHeight,o=(i=o<(i=i<0?0:i)?o:i)/180*360;v(d=o,g,p,h),e.preventDefault()}),e.preventDefault()}),a.on("click",function(e){var i=e.clientY-y(this).offset().top,i=(i=(i=i<0?0:i)>this.offsetHeight?this.offsetHeight:i)/180*360;v(d=i,g,p,h),e.preventDefault()}),r.on("mousedown",function(e){var t=this.offsetTop,l=this.offsetLeft,c=e.clientY,a=e.clientX;layui.stope(e),b(function(e){var i=t+(e.clientY-c),o=l+(e.clientX-a),r=s[0].offsetHeight-3,n=s[0].offsetWidth-3,n=((o=n<(o=o<-3?-3:o)?n:o)+3)/260*100,o=100-((i=r<(i=i<-3?-3:i)?r:i)+3)/180*100;v(d,g=n,p=o,h),e.preventDefault()}),e.preventDefault()}),s.on("mousedown",function(e){var i=e.clientY-y(this).offset().top-3+E.scrollTop(),o=e.clientX-y(this).offset().left-3+E.scrollLeft(),o=((i=i<-3?-3:i)>this.offsetHeight-3&&(i=this.offsetHeight-3),((o=(o=o<-3?-3:o)>this.offsetWidth-3?this.offsetWidth-3:o)+3)/260*100),i=100-(i+3)/180*100;v(d,g=o,p=i,h),layui.stope(e),e.preventDefault(),r.trigger(e,"mousedown")}),u.on("mousedown",function(e){var r=this.offsetLeft,n=e.clientX;b(function(e){var i=r+(e.clientX-n),o=f[0].offsetWidth,o=(o<(i=i<0?0:i)&&(i=o),Math.round(i/280*100)/100);v(d,g,p,h=o),e.preventDefault()}),e.preventDefault()}),f.on("click",function(e){var i=e.clientX-y(this).offset().left,i=((i=i<0?0:i)>this.offsetWidth&&(i=this.offsetWidth),Math.round(i/280*100)/100);v(d,g,p,h=i),e.preventDefault()}),i.each(function(){y(this).on("click",function(){y(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e=this.style.backgroundColor,i=D(j(e)),o=e.slice(e.lastIndexOf(",")+1,e.length-1);d=i.h,g=i.s,p=i.b,3==(e.match(/[0-9]{1,3}/g)||[]).length&&(o=1),h=o,v(i.h,i.s,i.b,o)})})},c.prototype.select=function(e,i,o,r){var n=this,t=(n.config,u({h:e,s:100,b:100})),l=u({h:e,s:i,b:o}),e=e/360*180,o=180-o/100*180-3,i=i/100*260-3;n.elemPicker.find("."+m).css("top",e),n.elemPicker.find("."+x)[0].style.background="#"+t,n.elemPicker.find("."+B).css({top:o,left:i}),"change"!==r&&n.elemPicker.find("."+w).find("input").val("#"+l)},c.prototype.pickerEvents=function(){var c=this,a=c.config,s=c.elemColorBox.find("."+k),f=c.elemPicker.find("."+w+" input"),o={clear:function(e){s[0].style.background="",c.color="",a.done&&a.done(""),c.removePicker()},confirm:function(e,i){var o,r,n=f.val(),t=n,l={};-1>16,g:(65280&o)>>8,b:255&o},l=D(r),s[0].style.background=t="#"+u(l)),"change"===i?(c.select(l.h,l.s,l.b,i),a.change&&a.change(t)):(c.color=n,a.done&&a.done(n),c.removePicker())}};c.elemPicker.on("click","*[colorpicker-events]",function(){var e=y(this),i=e.attr("colorpicker-events");o[i]&&o[i].call(this,e)}),f.on("keyup",function(e){var i=y(this);o.confirm.call(this,i,13===e.keyCode?null:"change")})},c.prototype.events=function(){var i=this,e=i.config,o=i.elemColorBox.find("."+k);i.elemColorBox.on("click",function(){i.renderPicker(),y(t)[0]&&(i.val(),i.side())}),e.elem[0]&&!i.elemColorBox[0].eventHandler&&(l.on(r,function(e){y(e.target).hasClass(n)||y(e.target).parents("."+n)[0]||y(e.target).hasClass(t.replace(/\./g,""))||y(e.target).parents(t)[0]||i.elemPicker&&(i.color&&(e=D(j(i.color)),i.select(e.h,e.s,e.b)),o[0].style.background=i.color||"",i.removePicker())}),E.on("resize",function(){if(!i.elemPicker||!y(t)[0])return!1;i.position()}),i.elemColorBox[0].eventHandler=!0)},i.render=function(e){e=new c(e);return function(){return{config:this.config}}.call(e)},e("colorpicker",i)});layui.define("jquery",function(t){"use strict";var u=layui.$,d=(layui.hint(),layui.device()),c="element",r="layui-this",y="layui-show",i=function(){this.config={}},h=(i.prototype.set=function(t){return u.extend(!0,this.config,t),this},i.prototype.on=function(t,i){return layui.onevent.call(this,c,t,i)},i.prototype.tabAdd=function(t,i){var a,t=u(".layui-tab[lay-filter="+t+"]"),e=t.children(".layui-tab-title"),l=e.children(".layui-tab-bar"),t=t.children(".layui-tab-content"),n=""+(i.title||"unnaming")+"";return l[0]?l.before(n):e.append(n),t.append('
                      '+(i.content||"")+"
                      "),C.hideTabMore(!0),C.tabAuto(),this},i.prototype.tabDelete=function(t,i){t=u(".layui-tab[lay-filter="+t+"]").children(".layui-tab-title").find('>li[lay-id="'+i+'"]');return C.tabDelete(null,t),this},i.prototype.tabChange=function(t,i){t=u(".layui-tab[lay-filter="+t+"]").children(".layui-tab-title").find('>li[lay-id="'+i+'"]');return C.tabClick.call(t[0],null,null,t),this},i.prototype.tab=function(a){a=a||{},e.on("click",a.headerElem,function(t){var i=u(this).index();C.tabClick.call(this,t,i,null,a)})},i.prototype.progress=function(t,i){var a="layui-progress",t=u("."+a+"[lay-filter="+t+"]").find("."+a+"-bar"),a=t.find("."+a+"-text");return t.css("width",i).attr("lay-percent",i),a.text(i),this},".layui-nav"),f="layui-nav-item",l="layui-nav-bar",p="layui-nav-tree",b="layui-nav-child",v="layui-nav-more",m="layui-anim layui-anim-upbit",C={tabClick:function(t,i,a,e){e=e||{};var a=a||u(this),i=i||a.parent().children("li").index(a),l=e.headerElem?a.parent():a.parents(".layui-tab").eq(0),e=e.bodyElem?u(e.bodyElem):l.children(".layui-tab-content").children(".layui-tab-item"),n=a.find("a"),n="javascript:;"!==n.attr("href")&&"_blank"===n.attr("target"),s="string"==typeof a.attr("lay-unselect"),o=l.attr("lay-filter");n||s||(a.addClass(r).siblings().removeClass(r),e.eq(i).addClass(y).siblings().removeClass(y)),layui.event.call(this,c,"tab("+o+")",{elem:l,index:i})},tabDelete:function(t,i){var i=i||u(this).parent(),a=i.index(),e=i.parents(".layui-tab").eq(0),l=e.children(".layui-tab-content").children(".layui-tab-item"),n=e.attr("lay-filter");i.hasClass(r)&&(i.next()[0]?C.tabClick.call(i.next()[0],null,a+1):i.prev()[0]&&C.tabClick.call(i.prev()[0],null,a-1)),i.remove(),l.eq(a).remove(),setTimeout(function(){C.tabAuto()},50),layui.event.call(this,c,"tabDelete("+n+")",{elem:e,index:a})},tabAuto:function(){var e="layui-tab-bar",l="layui-tab-close",n=this;u(".layui-tab").each(function(){var t=u(this),i=t.children(".layui-tab-title"),a=(t.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),a=u('');n===window&&8!=d.ie&&C.hideTabMore(!0),t.attr("lay-allowClose")&&i.find("li").each(function(){var t,i=u(this);i.find("."+l)[0]||((t=u('')).on("click",C.tabDelete),i.append(t))}),"string"!=typeof t.attr("lay-unauto")&&(i.prop("scrollWidth")>i.outerWidth()+1?i.find("."+e)[0]||(i.append(a),t.attr("overflow",""),a.on("click",function(t){i[this.title?"removeClass":"addClass"]("layui-tab-more"),this.title=this.title?"":"\u6536\u7f29"})):(i.find("."+e).remove(),t.removeAttr("overflow")))})},hideTabMore:function(t){var i=u(".layui-tab-title");!0!==t&&"tabmore"===u(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=u(this),i=t.parents(h),a=i.attr("lay-filter"),e=t.parent(),l=t.siblings("."+b),n="string"==typeof e.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||n||l[0]||(i.find("."+r).removeClass(r),e.addClass(r)),i.hasClass(p)&&(l.removeClass(m),l[0])&&(e["none"===l.css("display")?"addClass":"removeClass"](f+"ed"),"all"===i.attr("lay-shrink"))&&e.siblings().removeClass(f+"ed"),layui.event.call(this,c,"nav("+a+")",t)},collapse:function(){var t=u(this),i=t.find(".layui-colla-icon"),a=t.siblings(".layui-colla-content"),e=t.parents(".layui-collapse").eq(0),l=e.attr("lay-filter"),n="none"===a.css("display");"string"==typeof e.attr("lay-accordion")&&((e=e.children(".layui-colla-item").children("."+y)).siblings(".layui-colla-title").children(".layui-colla-icon").html(""),e.removeClass(y)),a[n?"addClass":"removeClass"](y),i.html(n?"":""),layui.event.call(this,c,"collapse("+l+")",{title:t,content:a,show:n})}},a=(i.prototype.render=i.prototype.init=function(t,i){var a=i?'[lay-filter="'+i+'"]':"",i={tab:function(){C.tabAuto.call({})},nav:function(){var s={},o={},c={},r="layui-nav-title";u(h+a).each(function(t){var i=u(this),a=u(''),e=i.find("."+f);i.find("."+l)[0]||(i.append(a),(i.hasClass(p)?e.find("dd,>."+r):e).on("mouseenter",function(){!function(t,i,a){var e,l=u(this),n=l.find("."+b);i.hasClass(p)?n[0]||(e=l.children("."+r),t.css({top:l.offset().top-i.offset().top,height:(e[0]?e:l).outerHeight(),opacity:1})):(n.addClass(m),n.hasClass("layui-nav-child-c")&&n.css({left:-(n.outerWidth()-l.width())/2}),n[0]?t.css({left:t.position().left+t.width()/2,width:0,opacity:0}):t.css({left:l.position().left+parseFloat(l.css("marginLeft")),top:l.position().top+l.height()-t.height()}),s[a]=setTimeout(function(){t.css({width:n[0]?0:l.width(),opacity:n[0]?0:1})},d.ie&&d.ie<10?0:200),clearTimeout(c[a]),"block"===n.css("display")&&clearTimeout(o[a]),o[a]=setTimeout(function(){n.addClass(y),l.find("."+v).addClass(v+"d")},300))}.call(this,a,i,t)}).on("mouseleave",function(){i.hasClass(p)?a.css({height:0,opacity:0}):(clearTimeout(o[t]),o[t]=setTimeout(function(){i.find("."+b).removeClass(y),i.find("."+v).removeClass(v+"d")},300))}),i.on("mouseleave",function(){clearTimeout(s[t]),c[t]=setTimeout(function(){i.hasClass(p)||a.css({width:0,left:a.position().left+a.width()/2,opacity:0})},200)})),e.find("a").each(function(){var t=u(this);t.parent();t.siblings("."+b)[0]&&!t.children("."+v)[0]&&t.append(''),t.off("click",C.clickThis).on("click",C.clickThis)})})},breadcrumb:function(){u(".layui-breadcrumb"+a).each(function(){var t=u(this),i="lay-separator",a=t.attr(i)||"/",e=t.find("a");e.next("span["+i+"]")[0]||(e.each(function(t){t!==e.length-1&&u(this).after(""+a+"")}),t.css("visibility","visible"))})},progress:function(){var e="layui-progress";u("."+e+a).each(function(){var t=u(this),i=t.find(".layui-progress-bar"),a=i.attr("lay-percent");i.css("width",/^.+\/.+$/.test(a)?100*new Function("return "+a)()+"%":a),t.attr("lay-showPercent")&&setTimeout(function(){i.html(''+a+"")},350)})},collapse:function(){u(".layui-collapse"+a).each(function(){u(this).find(".layui-colla-item").each(function(){var t=u(this),i=t.find(".layui-colla-title"),t="none"===t.find(".layui-colla-content").css("display");i.find(".layui-colla-icon").remove(),i.append(''+(t?"":"")+""),i.off("click",C.collapse).on("click",C.collapse)})})}};return i[t]?i[t]():layui.each(i,function(t,i){i()})},new i),e=u(document);u(function(){a.render()});e.on("click",".layui-tab-title li",C.tabClick),e.on("click",C.hideTabMore),u(window).on("resize",C.tabAuto),t(c,a)});layui.define("layer",function(e){"use strict";var v=layui.$,r=(layui.layer,layui.hint()),y=layui.device(),i={config:{},set:function(e){var t=this;return t.config=v.extend({},t.config,e),t},on:function(e,t){return layui.onevent.call(this,n,e,t)}},n="upload",o="layui-upload-file",a="layui-upload-form",F="layui-upload-iframe",b="layui-upload-choose",x=function(e){var t=this;t.config=v.extend({},t.config,i.config,e),t.render()};x.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",force:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},x.prototype.render=function(e){var t=this;(e=t.config).elem=v(e.elem),e.bindAction=v(e.bindAction),t.file(),t.events()},x.prototype.file=function(){var e=this,t=e.config,i=e.elemFile=v(['"].join("")),n=t.elem.next();(n.hasClass(o)||n.hasClass(a))&&n.remove(),y.ie&&y.ie<10&&t.elem.wrap('
                      '),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(i),y.ie&&y.ie<10&&e.initIE()},x.prototype.initIE=function(){var i,e=this.config,t=v(''),n=v(['
                      ',"
                      "].join(""));v("#"+F)[0]||v("body").append(t),e.elem.next().hasClass(a)||(this.elemFile.wrap(n),e.elem.next("."+a).append((i=[],layui.each(e.data,function(e,t){t="function"==typeof t?t():t,i.push('')}),i.join(""))))},x.prototype.msg=function(e){window.subModule.$emit("component-popup-add-toast-msg",{type:"warning",message:e})},x.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},x.prototype.preview=function(n){window.FileReader&&layui.each(this.chooseFiles,function(e,t){var i=new FileReader;i.readAsDataURL(t),i.onload=function(){n&&n(e,t,this.result)}})},x.prototype.upload=function(i,e){var n,o,t,a,l=this,r=l.config,u=l.elemFile[0],c=function(){var t=0,o=0,e=i||l.files||l.chooseFiles||u.files,a=function(){r.multiple&&t+o===l.fileLength&&"function"==typeof r.allDone&&r.allDone({total:l.fileLength,successful:t,failed:o})};layui.each(e,function(i,e){var n=new FormData,e=(n.append(r.field,e),layui.each(r.data,function(e,t){t="function"==typeof t?t():t,n.append(e,t)}),{url:r.url,type:"post",data:n,contentType:!1,processData:!1,dataType:"json",headers:r.headers||{},success:function(e){t++,f(i,e),a()},error:function(e){o++,l.msg("Request URL is abnormal: "+(e.statusText||"error")),p(i),a()}});"function"==typeof r.progress&&(e.xhr=function(){var e=v.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){var t;e.lengthComputable&&(t=Math.floor(e.loaded/e.total*100),r.progress(t,(r.item||r.elem)[0],e,i))}),e}),v.ajax(e)})},s=function(){var n=v("#"+F);l.elemFile.parent().submit(),clearInterval(x.timer),x.timer=setInterval(function(){var e,t=n.contents().find("body");try{e=t.text()}catch(i){l.msg("Cross-domain requests are not supported"),clearInterval(x.timer),p()}e&&(clearInterval(x.timer),t.html(""),f(0,e))},30)},f=function(e,t){if(l.elemFile.next("."+b).remove(),u.value="","json"===r.force&&"object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},l.msg("Please return JSON data format")}"function"==typeof r.done&&r.done(t,e||0,function(e){l.upload(e)})},p=function(e){r.auto&&(u.value=""),"function"==typeof r.error&&r.error(e||0,function(e){l.upload(e)})},d=r.exts,m=(o=[],layui.each(i||l.chooseFiles,function(e,t){o.push(t.name)}),o),h={preview:function(e){l.preview(e)},upload:function(e,t){var i={};i[e]=t,l.upload(i)},pushFile:function(){return l.files=l.files||{},layui.each(l.chooseFiles,function(e,t){l.files[e]=t}),l.files},resetFile:function(e,t,i){t=new File([t],i);l.files=l.files||{},l.files[e]=t},clearAllFile:function(){l.files={}}},g={file:"\u6587\u4ef6",images:"\u56fe\u7247",video:"\u89c6\u9891",audio:"\u97f3\u9891"}[r.accept]||"\u6587\u4ef6",m=0===m.length?u.value.match(/[^\/\\]+\..+/g)||[]:m;if(0!==m.length){switch(r.accept){case"file":layui.each(m,function(e,t){if(d&&!RegExp(".\\.("+d+")$","i").test(escape(t)))return n=!0});break;case"video":layui.each(m,function(e,t){if(!RegExp(".\\.("+(d||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(t)))return n=!0});break;case"audio":layui.each(m,function(e,t){if(!RegExp(".\\.("+(d||"mp3|wav|mid")+")$","i").test(escape(t)))return n=!0});break;default:layui.each(m,function(e,t){if(!RegExp(".\\.("+(d||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(t)))return n=!0})}if(n)return l.msg("\u9009\u62e9\u7684"+g+"\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"),u.value="";if("choose"!==e&&!r.auto||(r.choose&&r.choose(h),"choose"!==e)){if(l.fileLength=(t=0,g=i||l.files||l.chooseFiles||u.files,layui.each(g,function(){t++}),t),r.number&&l.fileLength>r.number)return l.msg("\u540c\u65f6\u6700\u591a\u53ea\u80fd\u4e0a\u4f20: "+r.number+" \u4e2a\u6587\u4ef6
                      \u60a8\u5f53\u524d\u5df2\u7ecf\u9009\u62e9\u4e86: "+l.fileLength+" \u4e2a\u6587\u4ef6");if(01024*r.size&&(t=1<=(t=r.size/1024)?t.toFixed(2)+"MB":r.size+"KB",u.value="",a=t)}),a)return l.msg("\u6587\u4ef6\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 "+a);if(!r.before||!1!==r.before(h))y.ie?(9'+e+"")};o.elem.off("upload.start").on("upload.start",function(){var e=v(this),t=e.attr("lay-data");if(t)try{t=new Function("return "+t)(),n.config=v.extend({},o,t)}catch(i){r.error("Upload element property lay-data configuration item has a syntax error: "+t)}n.config.item=e,n.elemFile[0].click()}),y.ie&&y.ie<10||o.elem.off("upload.over").on("upload.over",function(){v(this).attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){v(this).removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(e,t){var i=v(this),t=t.originalEvent.dataTransfer.files||[];i.removeAttr("lay-over"),a(t),o.auto?n.upload():l(t)}),n.elemFile.off("upload.change").on("upload.change",function(){var e=this.files||[];a(e),o.auto?n.upload():l(e)}),o.bindAction.off("upload.action").on("upload.action",function(){n.upload()}),o.elem.data("haveEvents")||(n.elemFile.on("change",function(){v(this).trigger("upload.change")}),o.elem.on("click",function(){n.isFile()||v(this).trigger("upload.start")}),o.drag&&o.elem.on("dragover",function(e){e.preventDefault(),v(this).trigger("upload.over")}).on("dragleave",function(e){v(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),v(this).trigger("upload.drop",e)}),o.bindAction.on("click",function(){v(this).trigger("upload.action")}),o.elem.data("haveEvents",!0))},i.render=function(e){e=new x(e);return function(){var t=this;return{upload:function(e){t.upload.call(t,e)},reload:function(e){t.reload.call(t,e)},config:t.config}}.call(e)},e(n,i)});layui.define("layer",function(e){"use strict";var C=layui.$,h=layui.layer,l=layui.hint(),w=(layui.device(),"form"),s=".layui-form",T="layui-this",$="layui-hide",E="layui-disabled",t=function(){this.config={verify:{required:[/[\S]+/,"\u5fc5\u586b\u9879\u4e0d\u80fd\u4e3a\u7a7a"],phone:[/^1\d{10}$/,"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e"],url:[/^(#|(http(s?)):\/\/|\/\/)[^\s]+\.[^\s]+$/,"\u94fe\u63a5\u683c\u5f0f\u4e0d\u6b63\u786e"],number:function(e){if(!e||isNaN(e))return"\u53ea\u80fd\u586b\u5199\u6570\u5b57"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"\u65e5\u671f\u683c\u5f0f\u4e0d\u6b63\u786e"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7"]},autocomplete:null}},i=(t.prototype.set=function(e){return C.extend(!0,this.config,e),this},t.prototype.verify=function(e){return C.extend(!0,this.config.verify,e),this},t.prototype.getFormElem=function(e){return C(s+(e?'[lay-filter="'+e+'"]':""))},t.prototype.on=function(e,t){return layui.onevent.call(this,w,e,t)},t.prototype.val=function(e,i){return this.getFormElem(e).each(function(e,t){var a=C(this);layui.each(i,function(e,t){var i,e=a.find('[name="'+e+'"]');e[0]&&("checkbox"===(i=e[0].type)?e[0].checked=t:"radio"===i?e.each(function(){this.value==t&&(this.checked=!0)}):e.val(t))})}),r.render(null,e),this.getValue(e)},t.prototype.getValue=function(e,t){t=t||this.getFormElem(e);var a={},n={},e=t.find("input,select,textarea");return layui.each(e,function(e,t){var i;C(this);t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name&&(/^.*\[\]$/.test(t.name)&&(i=t.name.match(/^(.*)\[\]$/g)[0],a[i]=0|a[i],i=t.name.replace(/^(.*)\[\]$/,"$1["+a[i]+++"]")),/^checkbox|radio$/.test(t.type)&&!t.checked||(n[i||t.name]=t.value))}),n},t.prototype.render=function(e,t){var i=this.config,a=C(s+(t?'[lay-filter="'+t+'"]':"")),n={input:function(e){e=e||a.find("input,textarea");i.autocomplete&&e.attr("autocomplete",i.autocomplete)},select:function(e){var p,c="\u8bf7\u9009\u62e9",m="layui-form-select",g="layui-select-title",k="layui-select-none",x="",e=e||a.find("select"),b=function(e,t){C(e.target).parent().hasClass(g)&&!t||(C("."+m).removeClass(m+"ed "+m+"up"),p&&x&&p.val(x)),p=null},u=function(a,e,t){var o,r,i,n,s,l,c=C(this),u=a.find("."+g),d=u.find("input"),f=a.find("dl"),h=f.children("dd"),y=f.children("dt"),v=this.selectedIndex;e||(r=c.attr("lay-search"),i=function(){var e=a.offset().top+a.outerHeight()+5-q.scrollTop(),t=f.outerHeight();v=c[0].selectedIndex,a.addClass(m+"ed"),h.removeClass($),y.removeClass($),o=null,h.eq(v).addClass(T).siblings().removeClass(T),e+t>q.height()&&t<=e&&a.addClass(m+"up"),s()},n=function(e){a.removeClass(m+"ed "+m+"up"),d.blur(),o=null,e||l(d.val(),function(e){var t=c[0].selectedIndex;e&&(x=C(c[0].options[t]).html(),0===t&&x===d.attr("placeholder")&&(x=""),d.val(x||""))})},s=function(){var e,t,i=f.children("dd."+T);i[0]&&(e=i.position().top,t=f.height(),i=i.height(),t\u65e0\u5339\u914d\u9879

                      '):f.find("."+k).remove()},"keyup"),""===t&&f.find("."+k).remove(),s()}).on("blur",function(e){var t=c[0].selectedIndex;p=d,x=C(c[0].options[t]).html(),0===t&&x===d.attr("placeholder")&&(x=""),setTimeout(function(){l(d.val(),function(e){x||d.val("")},"blur")},200)}),h.on("click",function(){var e=C(this),t=e.attr("lay-value"),i=c.attr("lay-filter");return e.hasClass(E)||(e.hasClass("layui-select-tips")?d.val(""):(d.val(e.text()),e.addClass(T)),e.siblings().removeClass(T),c.val(t).removeClass("layui-form-danger"),layui.event.call(this,w,"select("+i+")",{elem:c[0],value:t,othis:a}),n(!0)),!1}),a.find("dl>dt").on("click",function(e){return!1}),C(document).off("click",b).on("click",b))};e.each(function(e,t){var i=C(this),a=i.next("."+m),n=this.disabled,l=t.value,r=C(t.options[t.selectedIndex]),t=t.options[0];if("string"==typeof i.attr("lay-ignore"))return i.show();var o,s="string"==typeof i.attr("lay-search"),t=t&&!t.value&&t.innerHTML||c,r=C(['
                      ','
                      ','','
                      ','
                      ',(t=i.find("*"),o=[],layui.each(t,function(e,t){0!==e||t.value?"optgroup"===t.tagName.toLowerCase()?o.push("
                      "+t.label+"
                      "):o.push('
                      '+C.trim(t.innerHTML)+"
                      "):o.push('
                      '+C.trim(t.innerHTML||c)+"
                      ")}),0===o.length&&o.push('
                      \u6ca1\u6709\u9009\u9879
                      '),o.join("")+"
                      "),"
                      "].join(""));a[0]&&a.remove(),i.after(r),u.call(this,r,n,s)})},checkbox:function(e){var s={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},e=e||a.find("input[type=checkbox]");e.each(function(e,t){var i=C(this),a=i.attr("lay-skin"),n=(i.attr("lay-text")||"").split("|"),l=this.disabled,r=s[a="switch"===a?"_"+a:a]||s.checkbox;if("string"==typeof i.attr("lay-ignore"))return i.show();var o=i.next("."+r[0]),t=C(['
                      ",(l={checkbox:[t.title.replace(/\s/g,"")?""+t.title+"":"",''].join(""),_switch:""+((t.checked?n[0]:n[1])||"")+""})[a]||l.checkbox,"
                      "].join(""));o[0]&&o.remove(),i.after(t),function(i,a){var n=C(this);i.on("click",function(){var e=n.attr("lay-filter"),t=(n.attr("lay-text")||"").split("|");n[0].disabled||(n[0].checked?(n[0].checked=!1,i.removeClass(a[1]).find("em").text(t[1])):(n[0].checked=!0,i.addClass(a[1]).find("em").text(t[0])),layui.event.call(n[0],w,a[2]+"("+e+")",{elem:n[0],value:n[0].value,othis:i}))})}.call(this,t,r)})},radio:function(e){var r="layui-form-radio",o=["",""],e=e||a.find("input[type=radio]");e.each(function(e,t){var i=C(this),a=i.next("."+r),n=this.disabled;if("string"==typeof i.attr("lay-ignore"))return i.show();a[0]&&a.remove();n=C(['
                      ',''+o[t.checked?0:1]+"","
                      "+(a=t.title||"",a="string"==typeof i.next().attr("lay-radio")?i.next().html():a)+"
                      ","
                      "].join(""));i.after(n),function(a){var n=C(this),l="layui-anim-scaleSpring";a.on("click",function(){var e=n[0].name,t=n.parents(s),i=n.attr("lay-filter"),e=t.find("input[name="+e.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(e,function(){var e=C(this).next("."+r);this.checked=!1,e.removeClass(r+"ed"),e.find(".layui-icon").removeClass(l).html(o[1])}),n[0].checked=!0,a.addClass(r+"ed"),a.find(".layui-icon").addClass(l).html(o[0]),layui.event.call(n[0],w,"radio("+i+")",{elem:n[0],value:n[0].value,othis:a}))})}.call(this,n)})}};return"object"===layui.type(e)?e.each(function(e,t){var i=C(t);i.closest(s).length&&("SELECT"===t.tagName?n.select(i):"INPUT"===t.tagName&&("checkbox"===(t=t.type)||"radio"===t?n[t](i):n.input(i)))}):e?n[e]?n[e]():l.error('\u4e0d\u652f\u6301\u7684 "'+e+'" \u8868\u5355\u6e32\u67d3'):layui.each(n,function(e,t){t()}),this},t.prototype.validate=function(e){var u=null,d=r.config.verify,f="layui-form-danger";return!(e=C(e))[0]||(e.attr("lay-verify")!==undefined||!1!==this.validate(e.find("*[lay-verify]")))&&(layui.each(e,function(e,r){var o=C(this),t=(o.attr("lay-verify")||"").split("|"),s=o.attr("lay-verType"),c=o.val();if(o.removeClass(f),layui.each(t,function(e,t){var i="",a=d[t];if(a){var n="function"==typeof a?i=a(c,r):!a[0].test(c),l="select"===r.tagName.toLowerCase()||/^checkbox|radio$/.test(r.type),i=i||a[1];if("required"===t&&(i=o.attr("lay-reqText")||i),n)return"tips"===s?h.tips(i,"string"!=typeof o.attr("lay-ignore")&&l?o.next():o,{tips:1}):"alert"===s?h.alert(i,{title:"\u63d0\u793a",shadeClose:!0}):/\bstring|number\b/.test(typeof i)&&h.msg(i,{icon:5,shift:6}),setTimeout(function(){(l?o.next().find("input"):r).focus()},7),o.addClass(f),u=!0}}),u)return u}),!u)},t.prototype.submit=function(e,t){var i={},a=C(this),e="string"==typeof e?e:a.attr("lay-filter"),n=this.getFormElem?this.getFormElem(e):a.parents(s).eq(0),l=n.find("*[lay-verify]");return!!r.validate(l)&&(i=r.getValue(null,n),l={elem:this.getFormElem?window.event&&window.event.target:this,form:(this.getFormElem?n:a.parents("form"))[0],field:i},"function"==typeof t&&t(l),layui.event.call(this,w,"submit("+e+")",l))}),r=new t,t=C(document),q=C(window);C(function(){r.render()}),t.on("reset",s,function(){var e=C(this).attr("lay-filter");setTimeout(function(){r.render(null,e)},50)}),t.on("submit",s,i).on("click","*[lay-submit]",i),e(w,r)});layui.define(["laytpl","laypage","form","util"],function(e){"use strict";var m=layui.$,v=layui.laytpl,d=layui.laypage,g=layui.layer,y=layui.form,h=layui.util,f=layui.hint(),p=layui.device(),b={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX",disabledName:"LAY_DISABLED"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var t=this;return t.config=m.extend({},t.config,e),t},on:function(e,t){return layui.onevent.call(this,C,e,t)}},x=function(){var a=this,e=a.config,i=e.id||e.index;return i&&(x.that[i]=a,x.config[i]=e),{config:e,reload:function(e,t){a.reload.call(a,e,t)},reloadData:function(e,t){b.reloadData(i,e,t)},setColsWidth:function(){a.setColsWidth.call(a)},resize:function(){a.resize.call(a)}}},l=function(e){var t=x.config[e];return t||f.error(e?"The table instance with ID '"+e+"' not found":"ID argument required"),t||null},k=function(e){var t=this.config||{},a=(e=e||{}).item3,i=e.content,t=(t.escape&&(i=h.escape(i)),e.text&&a.exportTemplet||a.templet||a.toolbar);return t&&(i="function"==typeof t?t.call(a,e.tplData,e.obj):v(m(t).html()||String(i)).render(e.tplData)),e.text?m("
                      "+i+"
                      ").text():i},C="table",w="layui-hide",r="layui-hide-v",c="layui-none",s="layui-table-view",u=".layui-table-header",T=".layui-table-body",N=".layui-table-pageview",L=".layui-table-sort",D="layui-table-edit",E="layui-table-hover",A="layui-table-col-special",j="LAY_TABLE_MOVE_DICT",t=function(e){return['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',(e=e||{}).fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':"","{{# var isSort = !(item2.colGroup) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
                      ','
                      ','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{-item2.title||""}}',"{{# if(isSort){ }}",'',"{{# } }}","{{# } }}","
                      ","
                      "].join("")},a=['',"","
                      "].join(""),R=[,"{{# if(d.data.toolbar){ }}",'
                      ','
                      ','
                      ',"
                      ","{{# } }}",'
                      ',"{{# if(d.data.loading){ }}",'
                      ','',"
                      ","{{# } }}","{{# var left, right; }}",'
                      ',t(),"
                      ",'
                      ',a,"
                      ","{{# if(left){ }}",'
                      ','
                      ',t({fixed:!0}),"
                      ",'
                      ',a,"
                      ","
                      ","{{# }; }}","{{# if(right){ }}",'
                      ','
                      ',t({fixed:"right"}),'
                      ',"
                      ",'
                      ',a,"
                      ","
                      ","{{# }; }}","
                      ","{{# if(d.data.totalRow){ }}",'
                      ','','',"
                      ","
                      ","{{# } }}",'
                      ','
                      ',"
                      ",""].join(""),_=m(window),S=m(document),i=function(e){this.index=++b.index,this.config=m.extend({},this.config,b.config,e),this.render()},F=(i.prototype.config={limit:10,loading:!0,escape:!0,cellMinWidth:60,editTrigger:"click",defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"\u65e0\u6570\u636e"}},i.prototype.render=function(e){var t=this,a=t.config;if(a.elem=m(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||t.index,a.request=m.extend({pageName:"page",limitName:"limit"},a.request),a.response=m.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",totalRowName:"totalRow",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,t.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return t;if("reloadData"===e)return t.pullData(t.page,{type:"reloadData"});a.height&&/^full-\d+$/.test(a.height)&&(t.fullHeightGap=a.height.split("-")[1],a.height=_.height()-t.fullHeightGap),t.setInit();var i,l,e=a.elem,n=e.next("."+s),o=t.elem=m("
                      ");o.addClass((i=[s,s+"-"+t.index,"layui-form","layui-border-box"],a.className&&i.push(a.className),i.join(" "))).attr({"lay-filter":"LAY-TABLE-FORM-DF-"+t.index,"lay-id":a.id,style:(i=[],a.width&&i.push("width:"+a.width+"px;"),a.height&&i.push("height:"+a.height+"px;"),i.join(""))}).html(v(R).render({data:a,index:t.index})),a.index=t.index,t.key=a.id||a.index,n[0]&&n.remove(),e.after(o),t.layTool=o.find(".layui-table-tool"),t.layBox=o.find(".layui-table-box"),t.layHeader=o.find(u),t.layMain=o.find(".layui-table-main"),t.layBody=o.find(T),t.layFixed=o.find(".layui-table-fixed"),t.layFixLeft=o.find(".layui-table-fixed-l"),t.layFixRight=o.find(".layui-table-fixed-r"),t.layTotal=o.find(".layui-table-total"),t.layPage=o.find(".layui-table-page"),t.renderToolbar(),t.renderPagebar(),t.fullSize(),1
                      ','
                      ','
                      '].join(""),a=this.layTool.find(".layui-table-tool-temp"),i=("default"===e.toolbar?a.html(t):"string"==typeof e.toolbar&&(t=m(e.toolbar).html()||"")&&a.html(v(t).render(e)),{filter:{title:"\u7b5b\u9009\u5217",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"\u5bfc\u51fa",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"\u6253\u5370",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}}),l=[];"object"==typeof e.defaultToolbar&&layui.each(e.defaultToolbar,function(e,t){t="string"==typeof t?i[t]:t;t&&l.push('
                      ')}),this.layTool.find(".layui-table-tool-self").html(l.join(""))},i.prototype.renderPagebar=function(){var e,t=this.config,a=this.layPagebar=m('
                      ');t.pagebar&&((e=m(t.pagebar).html()||"")&&a.append(v(e).render(t)),this.layPage.append(a))},i.prototype.setParentCol=function(e,t){var a=this.config,i=this.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),l=parseInt(i.attr("colspan"))||0;i[0]&&(t=t.split("-"),t=a.cols[t[0]][t[1]],e?l--:l++,i.attr("colspan",l),i[l<1?"addClass":"removeClass"](w),t.colspan=l,t.hide=l<1,a=i.data("parentkey"))&&this.setParentCol(e,a)},i.prototype.setColsPatch=function(){var a=this,e=a.config;layui.each(e.cols,function(e,t){layui.each(t,function(e,t){t.hide&&a.setParentCol(t.hide,t.parentKey)})})},i.prototype.setColsWidth=function(){var t,a,i=this,o=i.config,l=0,d=0,r=0,c=0,s=i.setInit("width"),e=(i.eachCols(function(e,t){t.hide||l++}),s=s-("line"===o.skin||"nob"===o.skin?2:l+1)-i.getScrollWidth(i.layMain[0])-1,function(n){layui.each(o.cols,function(e,l){layui.each(l,function(e,t){var a=0,i=t.minWidth||o.cellMinWidth;t?t.colGroup||t.hide||(n?r&&r'+(e||"Error")+"
                      ");a[0]&&(t.layNone.remove(),a.remove()),t.layFixed.addClass(w),t.layMain.find("tbody").html(""),t.layMain.append(t.layNone=e),t.layTotal.addClass(r),t.layPage.find(N).addClass(r),b.cache[t.key]=[],t.syncCheckAll()},i.prototype.page=1,i.prototype.pullData=function(t,a){var e,i=this,l=i.config,n=l.request,o=l.response,d=function(){"object"==typeof l.initSort&&i.sort(l.initSort.field,l.initSort.type)};a=a||{},"function"==typeof l.before&&l.before(l),i.startTime=(new Date).getTime(),l.url?((e={})[n.pageName]=t,e[n.limitName]=l.limit,n=m.extend(e,l.where),l.contentType&&0==l.contentType.indexOf("application/json")&&(n=JSON.stringify(n)),i.loading(),m.ajax({type:l.method||"get",url:l.url,contentType:l.contentType,data:n,dataType:l.dataType||"json",jsonpCallback:l.jsonpCallback,headers:l.headers||{},success:function(e){(e="function"==typeof l.parseData?l.parseData(e)||e:e)[o.statusName]!=o.statusCode?(i.renderForm(),i.errorView(e[o.msgName]||'\u8fd4\u56de\u7684\u6570\u636e\u4e0d\u7b26\u5408\u89c4\u8303\uff0c\u6b63\u786e\u7684\u6210\u529f\u72b6\u6001\u7801\u5e94\u4e3a\uff1a"'+o.statusName+'": '+o.statusCode)):(i.renderData({res:e,curr:t,count:e[o.countName],type:a.type}),d(),l.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof l.done&&l.done(e,t,e[o.countName])},error:function(e,t){i.errorView("\u8bf7\u6c42\u5f02\u5e38\uff0c\u9519\u8bef\u63d0\u793a\uff1a"+t),i.renderForm(),i.setColsWidth(),"function"==typeof l.error&&l.error(e,t)}})):"array"===layui.type(l.data)&&(e=t*l.limit-l.limit,(n={})[o.dataName]=l.data.concat().splice(e,l.limit),n[o.countName]=l.data.length,"object"==typeof l.totalRow&&(n[o.totalRowName]=m.extend({},l.totalRow)),i.renderData({res:n,curr:t,count:n[o.countName],type:a.type}),d(),i.setColsWidth(),"function"==typeof l.done)&&l.done(n,t,n[o.countName])},i.prototype.eachCols=function(e){return b.eachCols(null,e,this.config.cols),this},i.prototype.renderData=function(e){var u=this,y=u.config,t=e.res,l=e.curr,a=e.count,n=e.sort,i=t[y.response.dataName]||[],t=t[y.response.totalRowName],h=[],f=[],p=[],o=function(){var s;if(y.HAS_SET_COLS_PATCH||u.setColsPatch(),y.HAS_SET_COLS_PATCH=!0,!n&&u.sortKey)return u.sort(u.sortKey.field,u.sortKey.sort,!0);layui.each(i,function(o,d){var a=[],i=[],r=[],c=o+y.limit*(l-1)+1;"array"===layui.type(d)&&0===d.length||(n||(d[b.config.indexName]=o),u.eachCols(function(e,l){var e=l.field||e,t=y.index+"-"+l.key,n=d[e];n!==undefined&&null!==n||(n=""),l.colGroup||(t=['','
                      "+function(){var e,t=m.extend(!0,{LAY_INDEX:c,LAY_COL:l},d),a=b.config.checkName,i=b.config.disabledName;switch(l.type){case"checkbox":return'";case"radio":return t[a]&&(s=o),'';case"numbers":return c}return l.toolbar?v(m(l.toolbar).html()||"").render(t):k.call(u,{item3:l,content:n,tplData:t})}(),"
                      "].join(""),a.push(t),l.fixed&&"right"!==l.fixed&&i.push(t),"right"===l.fixed&&r.push(t))}),h.push(''+a.join("")+""),f.push(''+i.join("")+""),p.push(''+r.join("")+""))}),"fixed"===y.scrollPos&&"reloadData"===e.type||u.layBody.scrollTop(0),"reset"===y.scrollPos&&u.layBody.scrollLeft(0),u.layMain.find("."+c).remove(),u.layMain.find("tbody").html(h.join("")),u.layFixLeft.find("tbody").html(f.join("")),u.layFixRight.find("tbody").html(p.join("")),u.renderForm(),"number"==typeof s&&u.setThisRowChecked(s),u.syncCheckAll(),u.fullSize(),u.haveInit?u.scrollPatch():setTimeout(function(){u.scrollPatch()},50),u.haveInit=!0,g.close(u.tipsIndex)};return b.cache[u.key]=i,u.layTotal[0==i.length?"addClass":"removeClass"](r),u.layPage[y.page||y.pagebar?"removeClass":"addClass"](w),u.layPage.find(N)[!y.page||0==a||0===i.length&&1==l?"addClass":"removeClass"](r),0===i.length?(u.renderForm(),u.errorView(y.text.none)):(u.layFixLeft.removeClass(w),n?o():(o(),u.renderTotal(i,t),u.layTotal&&u.layTotal.removeClass(w),void(y.page&&(y.page=m.extend({elem:"layui-table-page"+y.index,count:a,limit:y.limit,limits:y.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(u.page=e.curr,y.limit=e.limit,u.pullData(e.curr))}},y.page),y.page.count=a,d.render(y.page)))))},i.prototype.renderTotal=function(e,o){var d,r=this,c=r.config,s={};c.totalRow&&(layui.each(e,function(e,i){"array"===layui.type(i)&&0===i.length||r.eachCols(function(e,t){var e=t.field||e,a=i[e];t.totalRow&&(s[e]=(s[e]||0)+(parseFloat(a)||0))})}),r.dataTotal={},d=[],r.eachCols(function(e,t){var a,e=t.field||e,i=o&&o[t.field],l=(a=t.totalRowText||"",n="totalRowDecimals"in t?t.totalRowDecimals:2,n=parseFloat(s[e]).toFixed(n),(l={LAY_COL:t})[e]=n,n=t.totalRow&&k.call(r,{item3:t,content:n,tplData:l})||a,i||n),n=['','
                      "+("string"==typeof(a=t.totalRow||c.totalRow)?v(a).render(m.extend({TOTAL_NUMS:i||s[e],LAY_COL:t},t)):l),"
                      "].join("");t.field&&(r.dataTotal[e]=l),d.push(n)}),r.layTotal.find("tbody").html(""+d.join("")+""))},i.prototype.getColElem=function(e,t){var a=this.config;return e.eq(0).find(".laytable-cell-"+a.index+"-"+t+":eq(0)")},i.prototype.renderForm=function(e){this.config;var t=this.elem.attr("lay-filter");y.render(e,t)},i.prototype.setThisRowChecked=function(e){this.config;var t="layui-table-click";this.layBody.find('tr[data-index="'+e+'"]').addClass(t).siblings("tr").removeClass(t)},i.prototype.sort=function(l,e,t,a){var i,n=this,o={},d=n.config,r=d.elem.attr("lay-filter"),c=b.cache[n.key];"string"==typeof l&&(s=l,n.layHeader.find("th").each(function(e,t){var a=m(this),i=a.data("field");if(i===l)return l=a,s=i,!1}));try{var s=s||l.data("field"),u=l.data("key");if(n.sortKey&&!t&&s===n.sortKey.field&&e===n.sortKey.sort)return;var y=n.layHeader.find("th .laytable-cell-"+u).find(L);n.layHeader.find("th").find(L).removeAttr("lay-sort"),y.attr("lay-sort",e||null),n.layFixed.find("th")}catch(h){f.error("Table modules: sort field '"+s+"' not matched")}n.sortKey={field:s,sort:e},d.autoSort&&("asc"===e?i=layui.sort(c,s):"desc"===e?i=layui.sort(c,s,!0):(i=layui.sort(c,b.config.indexName),delete n.sortKey,delete d.initSort)),o[d.response.dataName]=i||c,n.renderData({res:o,curr:n.page,count:n.count,sort:!0}),a&&(d.initSort={field:s,type:e},layui.event.call(l,C,"sort("+r+")",d.initSort))},i.prototype.loading=function(e){var t=this;t.config.loading&&(e?(t.layInit&&t.layInit.remove(),delete t.layInit,t.layBox.find(".layui-table-init").remove()):(t.layInit=m(['
                      ','',"
                      "].join("")),t.layBox.append(t.layInit)))},i.prototype.setCheckData=function(e,t){var a=this.config,i=b.cache[this.key];i[e]&&"array"!==layui.type(i[e])&&(i[e][a.checkName]=t)},i.prototype.syncCheckAll=function(){var e=this,i=e.config,t=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(a){return e.eachCols(function(e,t){"checkbox"===t.type&&(t[i.checkName]=a)}),a};t[0]&&(b.checkStatus(e.key).isAll?(t[0].checked||(t.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(t[0].checked&&(t.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},i.prototype.getCssRule=function(a,i){var e=this.elem.find("style")[0],e=e.sheet||e.styleSheet||{},e=e.cssRules||e.rules;layui.each(e,function(e,t){if(t.selectorText===".laytable-cell-"+a)return i(t),!0})},i.prototype.fullSize=function(){var e=this,t=e.config,a=t.height;e.fullHeightGap&&(a=_.height()-e.fullHeightGap,e.elem.css("height",a=a<135?135:a)),a&&(a=parseFloat(a)-(e.layHeader.outerHeight()||38),t.toolbar&&(a-=e.layTool.outerHeight()||50),t.totalRow&&(a-=e.layTotal.outerHeight()||40),(t.page||t.pagebar)&&(a-=e.layPage.outerHeight()||43),e.layMain.outerHeight(a))},i.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:((e=document.createElement("div")).style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},i.prototype.scrollPatch=function(){var e=this,t=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),i=e.layMain.height()-e.layMain.prop("clientHeight"),l=(e.getScrollWidth(e.layMain[0]),t.outerWidth()-e.layMain.width()),n=function(e){var t;a&&i?(e=e.eq(0)).find(".layui-table-patch")[0]||((t=m('
                      ')).find("div").css({width:a}),e.find("tr").append(t)):e.find(".layui-table-patch").remove()};n(e.layHeader),n(e.layTotal);n=e.layMain.height()-i;e.layFixed.find(T).css("height",t.height()>=n?n:"auto"),e.layFixRight[0');a.html(t),r.height&&a.css("max-height",r.height-(s.layTool.outerHeight()||50)),i.find(".layui-table-tool-panel")[0]||i.append(a),s.renderForm(),a.on("click",function(e){layui.stope(e)}),e.done&&e.done(a,t)};switch(layui.stope(e),S.trigger("table.tool.panel.remove"),g.close(s.tipsIndex),t){case"LAYTABLE_COLS":l({list:(a=[],s.eachCols(function(e,t){t.field&&"normal"==t.type&&a.push('
                    • ')}),a.join("")),done:function(){y.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var e=m(e.elem),i=this.checked,l=e.data("key"),n=e.data("parentkey");layui.each(r.cols,function(a,e){layui.each(e,function(e,t){a+"-"+e===l&&(e=t.hide,t.hide=!i,s.elem.find('*[data-key="'+r.index+"-"+l+'"]')[i?"removeClass":"addClass"](w),e!=t.hide&&s.setParentCol(!i,n),s.resize())})})})}});break;case"LAYTABLE_EXPORT":p.ie?g.tips("\u5bfc\u51fa\u529f\u80fd\u4e0d\u652f\u6301 IE\uff0c\u8bf7\u7528 Chrome \u7b49\u9ad8\u7ea7\u6d4f\u89c8\u5668\u5bfc\u51fa",this,{tips:3}):l({list:['
                    • \u5bfc\u51fa csv \u683c\u5f0f\u6587\u4ef6
                    • ','
                    • \u5bfc\u51fa xls \u683c\u5f0f\u6587\u4ef6
                    • '].join(""),done:function(e,t){t.on("click",function(){var e=m(this).data("type");b.exportFile.call(s,r.id,null,e)})}});break;case"LAYTABLE_PRINT":var n=window.open("about:blank","_blank"),o=[""].join(""),d=m(s.layHeader.html());d.append(s.layMain.find("table").html()),d.append(s.layTotal.find("table").html()),d.find("th.layui-table-patch").remove(),d.find("thead>tr>th."+A).filter(function(e,t){return!m(t).children(".laytable-cell-group").length}).remove(),d.find("tbody>tr>td."+A).remove(),n.document.write(o+d.prop("outerHTML")),n.document.close(),n.print(),n.close()}layui.event.call(this,C,"toolbar("+c+")",m.extend({event:t,config:r},{}))}),s.layPagebar.on("click","*[lay-event]",function(e){var t=m(this).attr("lay-event");layui.event.call(this,C,"pagebar("+c+")",m.extend({event:t,config:r},{}))}),e.on("mousemove",function(e){var t=m(this),a=t.offset().left,e=e.clientX-a;t.data("unresize")||x.eventMoveElem||(l.allowResize=t.width()-e<=10,i.css("cursor",l.allowResize?"col-resize":""))}).on("mouseleave",function(){m(this);x.eventMoveElem||i.css("cursor","")}).on("mousedown",function(e){var t,a=m(this);l.allowResize&&(t=a.data("key"),e.preventDefault(),l.offset=[e.clientX,e.clientY],s.getCssRule(t,function(e){var t=e.style.width||a.outerWidth();l.rule=e,l.ruleWidth=parseFloat(t),l.minWidth=a.data("minwidth")||r.cellMinWidth}),a.data(j,l),x.eventMoveElem=a)}),x.docEvent||S.on("mousemove",function(e){var t;x.eventMoveElem&&(t=x.eventMoveElem.data(j)||{},x.eventMoveElem.data("resizing",1),e.preventDefault(),t.rule)&&((e=t.ruleWidth+e.clientX-t.offset[0])':''))[0].value=t.data("content")||i.text(),t.find("."+D)[0]||t.append(a),a.focus(),layui.stope(e))}).on("mouseenter","td",function(){a.call(this)}).on("mouseleave","td",function(){a.call(this,"hide")}),"layui-table-grid-down"),a=function(e){var t=m(this),a=t.children(u);t.data("off")||(e?t.find(".layui-table-grid-down").remove():!(a.prop("scrollWidth")>a.outerWidth()||0
                      '))},d=(s.layBody.on("click","."+o,function(e){var t=m(this).parent().children(u);s.tipsIndex=g.tips(['
                      ',t.html(),"
                      ",''].join(""),t[0],{tips:[3,""],time:-1,anim:-1,maxWidth:p.ios||p.android?300:s.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){g.close(t)})}}),layui.stope(e)}),function(e){var t=m(this),a=t.parents("tr").eq(0).data("index");layui.event.call(this,C,(e||"tool")+"("+c+")",n.call(this,{event:t.attr("lay-event")})),s.setThisRowChecked(a)});s.layBody.on("click","*[lay-event]",function(){return d.call(this),!1}).on("dblclick","*[lay-event]",function(){return d.call(this,"toolDouble"),!1}),s.layMain.on("scroll",function(){var e=m(this),t=e.scrollLeft(),e=e.scrollTop();s.layHeader.scrollLeft(t),s.layTotal.scrollLeft(t),s.layFixed.find(T).scrollTop(e),g.close(s.tipsIndex)}),_.on("resize",function(){s.resize()})},S.on("click",function(){S.trigger("table.remove.tool.panel")}),S.on("table.remove.tool.panel",function(){m(".layui-table-tool-panel").remove()}),b.init=function(a,i){i=i||{};var e=m(a?'table[lay-filter="'+a+'"]':".layui-table[lay-data]"),d="Table element property lay-data configuration item has a syntax error: ";return e.each(function(){var e=m(this),t=e.attr("lay-data");try{t=new Function("return "+t)()}catch(l){f.error(d+t,"error")}var n=[],o=m.extend({elem:this,cols:[],data:[],skin:e.attr("lay-skin"),size:e.attr("lay-size"),even:"string"==typeof e.attr("lay-even")},b.config,i,t);a&&e.hide(),e.find("thead>tr").each(function(i){o.cols[i]=[],m(this).children().each(function(e){var t=m(this),a=t.attr("lay-data");try{a=new Function("return "+a)()}catch(l){return f.error(d+a)}t=m.extend({title:t.text(),colspan:t.attr("colspan")||1,rowspan:t.attr("rowspan")||1},a);t.colspan<2&&n.push(t),o.cols[i].push(t)})}),e.find("tbody>tr").each(function(e){var a=m(this),l={};a.children("td").each(function(e,t){var a=m(this),i=a.data("field");if(i)return l[i]=a.html()}),layui.each(n,function(e,t){e=a.children("td").eq(e);l[t.field]=e.html()}),o.data[e]=l}),b.render(o)}),this},x.that={},x.config={},function(a,i,e,l){var n,o;l.colGroup&&(n=0,a++,l.CHILD_COLS=[],o=e+(parseInt(l.rowspan)||1),layui.each(i[o],function(e,t){t.parentKey?t.parentKey===l.key&&(t.PARENT_COL_INDEX=a,l.CHILD_COLS.push(t),F(a,i,o,t)):t.PARENT_COL_INDEX||1<=n&&n==(l.colspan||1)||(t.PARENT_COL_INDEX=a,l.CHILD_COLS.push(t),n+=t.hide?0:parseInt(1td'),a!==undefined&&null!==a||(a=""),0==l&&d.push(t.title||""),o.push('"'+k.call(c,{item3:t,content:a,tplData:n,text:"text",obj:c.commonMember.call(i.eq(0),{td:function(e){return i.filter('[data-field="'+e+'"]')}})})+'"')))}),i.push(o.join(","))}),c&&layui.each(c.dataTotal,function(e,t){r[e]||l.push(t)}),d.join(",")+"\r\n"+i.join("\r\n")+"\r\n"+l.join(","))),u.download=(a.title||o.title||"table_"+(o.index||""))+"."+n,document.body.appendChild(u),u.click(),document.body.removeChild(u)},b.resize=function(e){e?l(e)&&x.that[e].resize():layui.each(x.that,function(){this.resize()})},b.reload=function(e,t,a,i){if(l(e))return(e=x.that[e]).reload(t,a,i),x.call(e)},b.reloadData=function(){var a=m.extend([],arguments),i=(a[3]="reloadData",new RegExp("^("+["data","url","method","contentType","dataType","jsonpCallback","headers","where","page","limit","request","response","parseData","scrollPos"].join("|")+")$"));return layui.each(a[1],function(e,t){i.test(e)||delete a[1][e]}),b.reload.apply(null,a)},b.render=function(e){e=new i(e);return x.call(e)},b.clearCacheKey=function(e){return delete(e=m.extend({},e))[b.config.checkName],delete e[b.config.indexName],delete e[b.config.disabledName],e},m(function(){b.init()}),e(C,b)});layui.define("form",function(e){"use strict";var u=layui.$,i=layui.form,p=layui.layer,n="tree",a={config:{},index:layui[n]?layui[n].index+1e4:0,set:function(e){var i=this;return i.config=u.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,n,e,i)}},t=function(){var i=this,e=i.config,n=e.id||i.index;return t.that[n]=i,{config:t.config[n]=e,reload:function(e){i.reload.call(i,e)},getChecked:function(){return i.getChecked.call(i)},setChecked:function(e){return i.setChecked.call(i,e)}}},y="layui-hide",o="layui-disabled",f="layui-tree-set",C="layui-tree-iconClick",k="layui-icon-addition",v="layui-icon-subtraction",m="layui-tree-entry",x="layui-tree-main",b="layui-tree-txt",g="layui-tree-pack",w="layui-tree-spread",N="layui-tree-setLineShort",T="layui-tree-showLine",L="layui-tree-lineExtend",l=function(e){var i=this;i.index=++a.index,i.config=u.extend({},i.config,a.config,e),i.render()};l.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"\u672a\u547d\u540d",none:"\u65e0\u6570\u636e"}},l.prototype.reload=function(e){var n=this;layui.each(e,function(e,i){"array"===layui.type(i)&&delete n.config[e]}),n.config=u.extend(!0,{},n.config,e),n.render()},l.prototype.render=function(){var e=this,i=e.config,n=(e.checkids=[],u('
                      ')),a=(e.tree(n),i.elem=u(i.elem));if(a[0]){if(e.key=i.id||e.index,e.elem=n,e.elemNone=u('
                      '+i.text.none+"
                      "),a.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);i.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=u(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(N),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(N)}),e.events()}},l.prototype.renderForm=function(e){i.render(e,"LAY-tree-"+this.index)},l.prototype.tree=function(c,e){var d=this,s=d.config,e=e||s.data;layui.each(e,function(e,i){var n,a,t=i.children&&0
                      "),r=u(['
                      ','
                      ','
                      ',s.showLine?t?'':'':'',s.showCheckbox?'':"",s.isJump&&i.href?''+(i.title||i.label||s.text.defaultNodeName)+"":''+(i.title||i.label||s.text.defaultNodeName)+"","
                      ",s.edit?(n={add:'',update:'',del:''},a=['
                      '],!0===s.edit&&(s.edit=["update","del"]),"object"==typeof s.edit?(layui.each(s.edit,function(e,i){a.push(n[i]||"")}),a.join("")+"
                      "):void 0):"","
                      "].join(""));t&&(r.append(l),d.tree(l,i.children)),c.append(r),r.prev("."+f)[0]&&r.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),t||r.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),d.spread(r,i),s.showCheckbox&&(i.checked&&d.checkids.push(i.id),d.checkClick(r,i)),s.edit&&d.operate(r,i)})},l.prototype.spread=function(a,e){var t=this.config,i=a.children("."+m),n=i.children("."+x),l=i.find("."+C),i=i.find("."+b),r=t.onlyIconControl?l:n,c="";r.on("click",function(e){var i=a.children("."+g),n=(r.children(".layui-icon")[0]?r:r.find(".layui-tree-icon")).children(".layui-icon");i[0]?a.hasClass(w)?(a.removeClass(w),i.slideUp(200),n.removeClass(v).addClass(k)):(a.addClass(w),i.slideDown(200),n.addClass(v).removeClass(k),t.accordion&&((i=a.siblings("."+f)).removeClass(w),i.children("."+g).slideUp(200),i.find(".layui-tree-icon").children(".layui-icon").removeClass(v).addClass(k))):c="normal"}),i.on("click",function(){u(this).hasClass(o)||(c=a.hasClass(w)?t.onlyIconControl?"open":"close":t.onlyIconControl?"close":"open",t.click&&t.click({elem:a,state:c,data:e}))})},l.prototype.setCheckbox=function(e,i,n){this.config;var t,l=n.prop("checked");n.prop("disabled")||("object"!=typeof i.children&&!e.find("."+g)[0]||e.find("."+g).find('input[same="layuiTreeCheck"]').each(function(){this.disabled||(this.checked=l)}),(t=function(e){var i,n,a;e.parents("."+f)[0]&&(n=(e=e.parent("."+g)).parent(),a=e.prev().find('input[same="layuiTreeCheck"]'),l?a.prop("checked",l):(e.find('input[same="layuiTreeCheck"]').each(function(){this.checked&&(i=!0)}),i||a.prop("checked",!1)),t(n))})(e),this.renderForm("checkbox"))},l.prototype.checkClick=function(n,a){var t=this,l=t.config;n.children("."+m).children("."+x).on("click",'input[same="layuiTreeCheck"]+',function(e){layui.stope(e);var e=u(this).prev(),i=e.prop("checked");e.prop("disabled")||(t.setCheckbox(n,a,e),l.oncheck&&l.oncheck({elem:n,checked:i,data:a}))})},l.prototype.operate=function(c,d){var s=this,o=s.config,e=c.children("."+m),h=e.children("."+x);e.children(".layui-tree-btnGroup").on("click",".layui-icon",function(e){layui.stope(e);var i,e=u(this).data("type"),a=c.children("."+g),t={data:d,type:e,elem:c};if("add"==e){a[0]||(o.showLine?(h.find("."+C).addClass("layui-tree-icon"),h.find("."+C).children(".layui-icon").addClass(k).removeClass("layui-icon-file")):h.find(".layui-tree-iconArrow").removeClass(y),c.append('
                      '));var n,l=o.operate&&o.operate(t),r={};if(r.title=o.text.defaultNodeName,r.id=l,s.tree(c.children("."+g),[r]),o.showLine&&(a[0]?(a.hasClass(L)||a.addClass(L),c.find("."+g).each(function(){u(this).children("."+f).last().addClass(N)}),(a.children("."+f).last().prev().hasClass(N)?a.children("."+f).last().prev():a.children("."+f).last()).removeClass(N),!c.parent("."+g)[0]&&c.next()[0]&&a.children("."+f).last().removeClass(N)):(l=c.siblings("."+f),n=1,r=c.parent("."+g),layui.each(l,function(e,i){u(i).children("."+g)[0]||(n=0)}),(1==n?(l.children("."+g).addClass(T),l.children("."+g).children("."+f).removeClass(N),c.children("."+g).addClass(T),r.removeClass(L),r.children("."+f).last().children("."+g).children("."+f).last()):c.children("."+g).children("."+f)).addClass(N))),!o.showCheckbox)return;h.find('input[same="layuiTreeCheck"]')[0].checked&&(c.children("."+g).children("."+f).last().find('input[same="layuiTreeCheck"]')[0].checked=!0),s.renderForm("checkbox")}else"update"==e?(l=h.children("."+b).html(),h.children("."+b).html(""),h.append(''),h.children(".layui-tree-editInput").val(l).focus(),i=function(e){var i=e.val().trim()||o.text.defaultNodeName;e.remove(),h.children("."+b).html(i),t.data.title=i,o.operate&&o.operate(t)},h.children(".layui-tree-editInput").blur(function(){i(u(this))}),h.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),i(u(this)))})):p.confirm('\u786e\u8ba4\u5220\u9664\u8be5\u8282\u70b9 "'+(d.title||"")+'" \u5417\uff1f',function(e){var l,n,i;o.operate&&o.operate(t),t.status="remove",p.close(e),c.prev("."+f)[0]||c.next("."+f)[0]||c.parent("."+g)[0]?(c.siblings("."+f).children("."+m)[0]?(o.showCheckbox&&(l=function(e){var i,n,a,t;e.parents("."+f)[0]&&(i=e.siblings("."+f).children("."+m),n=(e=e.parent("."+g).prev()).find('input[same="layuiTreeCheck"]')[0],a=1,(t=0)==n.checked)&&(i.each(function(e,i){i=u(i).find('input[same="layuiTreeCheck"]')[0];0!=i.checked||i.disabled||(a=0),i.disabled||(t=1)}),1==a)&&1==t&&(n.checked=!0,s.renderForm("checkbox"),l(e.parent("."+f)))})(c),o.showLine&&(e=c.siblings("."+f),n=1,i=c.parent("."+g),layui.each(e,function(e,i){u(i).children("."+g)[0]||(n=0)}),1==n?(a[0]||(i.removeClass(L),e.children("."+g).addClass(T),e.children("."+g).children("."+f).removeClass(N)),(c.next()[0]?i.children("."+f).last():c.prev()).children("."+g).children("."+f).last().addClass(N),c.next()[0]||c.parents("."+f)[1]||c.parents("."+f).eq(0).next()[0]||c.prev("."+f).addClass(N)):!c.next()[0]&&c.hasClass(N)&&c.prev().addClass(N))):(e=c.parent("."+g).prev(),o.showLine?(e.find("."+C).removeClass("layui-tree-icon"),e.find("."+C).children(".layui-icon").removeClass(v).addClass("layui-icon-file"),(i=e.parents("."+g).eq(0)).addClass(L),i.children("."+f).each(function(){u(this).children("."+g).children("."+f).last().addClass(N)})):e.find(".layui-tree-iconArrow").addClass(y),c.parents("."+f).eq(0).removeClass(w),c.parent("."+g).remove()),c.remove()):(c.remove(),s.elem.append(s.elemNone))})})},l.prototype.events=function(){var i=this,t=i.config;i.elem.find(".layui-tree-checkedFirst");i.setChecked(i.checkids),i.elem.find(".layui-tree-search").on("keyup",function(){var e=u(this),n=e.val(),e=e.nextAll(),a=[];e.find("."+b).each(function(){var i,e=u(this).parents("."+m);-1!=u(this).html().indexOf(n)&&(a.push(u(this).parent()),(i=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+g)[0]&&i(e.parent("."+g).parent("."+f))})(e.parent("."+f)))}),e.find("."+m).each(function(){var e=u(this).parent("."+f);e.hasClass("layui-tree-searchShow")||e.addClass(y)}),0==e.find(".layui-tree-searchShow").length&&i.elem.append(i.elemNone),t.onsearch&&t.onsearch({elem:a})}),i.elem.find(".layui-tree-search").on("keydown",function(){u(this).nextAll().find("."+m).each(function(){u(this).parent("."+f).removeClass("layui-tree-searchShow "+y)}),u(".layui-tree-emptyText")[0]&&u(".layui-tree-emptyText").remove()})},l.prototype.getChecked=function(){var e=this.config,i=[],n=[],t=(this.elem.find(".layui-form-checked").each(function(){i.push(u(this).prev()[0].value)}),function(e,a){layui.each(e,function(e,n){layui.each(i,function(e,i){if(n.id==i)return delete(i=u.extend({},n)).children,a.push(i),n.children&&(i.children=[],t(n.children,i.children)),!0})})});return t(u.extend({},e.data),n),n},l.prototype.setChecked=function(l){this.config;this.elem.find("."+f).each(function(e,i){var n=u(this).data("id"),a=u(i).children("."+m).find('input[same="layuiTreeCheck"]'),t=a.next();if("number"==typeof l){if(n==l)return a[0].checked||t.click(),!1}else"object"==typeof l&&layui.each(l,function(e,i){if(i==n&&!a[0].checked)return t.click(),!0})})},t.that={},t.config={},a.reload=function(e,i){e=t.that[e];return e.reload(i),t.call(e)},a.getChecked=function(e){return t.that[e].getChecked()},a.setChecked=function(e,i){return t.that[e].setChecked(i)},a.render=function(e){e=new l(e);return t.call(e)},e(n,a)});layui.define(["laytpl","form"],function(e){"use strict";var d=layui.$,n=layui.laytpl,t=layui.form,a="transfer",i={config:{},index:layui[a]?layui[a].index+1e4:0,set:function(e){var t=this;return t.config=d.extend({},t.config,e),t},on:function(e,t){return layui.onevent.call(this,a,e,t)}},l=function(){var t=this,e=t.config,a=e.id||t.index;return l.that[a]=t,{config:l.config[a]=e,reload:function(e){t.reload.call(t,e)},getData:function(){return t.getData.call(t)}}},s="layui-hide",h="layui-btn-disabled",r="layui-none",c="layui-transfer-box",u="layui-transfer-header",o="layui-transfer-search",f="layui-transfer-data",y=function(e){return['
                      ','
                      ','","
                      ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
                        ',"
                        "].join("")},p=['
                        ',y({index:0,checkAllName:"layTransferLeftCheckAll"}),'
                        ','",'","
                        ",y({index:1,checkAllName:"layTransferRightCheckAll"}),"
                        "].join(""),v=function(e){var t=this;t.index=++i.index,t.config=d.extend({},t.config,i.config,e),t.render()};v.prototype.config={title:["\u5217\u8868\u4e00","\u5217\u8868\u4e8c"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"\u65e0\u6570\u636e",searchNone:"\u65e0\u5339\u914d\u6570\u636e"}},v.prototype.reload=function(e){var t=this;t.config=d.extend({},t.config,e),t.render()},v.prototype.render=function(){var e=this,t=e.config,a=e.elem=d(n(p).render({data:t,index:e.index})),i=t.elem=d(t.elem);i[0]&&(t.data=t.data||[],t.value=t.value||[],e.key=t.id||e.index,i.html(e.elem),e.layBox=e.elem.find("."+c),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+o),e.layData=a.find("."+f),e.layBtn=a.find(".layui-transfer-active .layui-btn"),e.layBox.css({width:t.width,height:t.height}),e.layData.css({height:(i=t.height-e.layHeader.outerHeight(),t.showSearch&&(i-=e.laySearch.outerHeight()),i-2)}),e.renderData(),e.events())},v.prototype.renderData=function(){var e=this,i=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,a=["
                      • ",'',"
                      • "].join("");i[t].views.push(a),delete e.selected}),e.layData.eq(0).html(i[0].views.join("")),e.layData.eq(1).html(i[1].views.join("")),e.renderCheckBtn()},v.prototype.renderForm=function(e){t.render(e,"LAY-transfer-"+this.index)},v.prototype.renderCheckBtn=function(r){var c=this,o=c.config;r=r||{},c.layBox.each(function(e){var t=d(this),a=t.find("."+f),t=t.find("."+u).find('input[type="checkbox"]'),i=a.find('input[type="checkbox"]'),n=0,l=!1;i.each(function(){var e=d(this).data("hide");(this.checked||this.disabled||e)&&n++,this.checked&&!e&&(l=!0)}),t.prop("checked",l&&n===i.length),c.layBtn.eq(e)[l?"removeClass":"addClass"](h),r.stopNone||(i=a.children("li:not(."+s+")").length,c.noneView(a,i?"":o.text.none))}),c.renderForm("checkbox")},v.prototype.noneView=function(e,t){var a=d('

                        '+(t||"")+"

                        ");e.find("."+r)[0]&&e.find("."+r).remove(),t.replace(/\s/g,"")&&e.append(a)},v.prototype.setValue=function(){var e=this.config,t=[];return this.layBox.eq(1).find("."+f+' input[type="checkbox"]').each(function(){d(this).data("hide")||t.push(this.value)}),e.value=t,this},v.prototype.parseData=function(t){var i=this.config,n=[];return layui.each(i.data,function(e,a){a=("function"==typeof i.parseData?i.parseData(a):a)||a,n.push(a=d.extend({},a)),layui.each(i.value,function(e,t){t==a.value&&(a.selected=!0)}),t&&t(a)}),i.data=n,this},v.prototype.getData=function(e){var t=this.config,i=[];return this.setValue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&i.push(t)})}),i},v.prototype.transfer=function(e,t){var a,i=this,n=i.config,l=i.layBox.eq(e),r=[],t=(t?((a=(t=t).find('input[type="checkbox"]'))[0].checked=!1,l.siblings("."+c).find("."+f).append(t.clone()),t.remove(),r.push(a[0].value),i.setValue()):l.each(function(e){d(this).find("."+f).children("li").each(function(){var e=d(this),t=e.find('input[type="checkbox"]'),a=t.data("hide");t[0].checked&&!a&&(t[0].checked=!1,l.siblings("."+c).find("."+f).append(e.clone()),e.remove(),r.push(t[0].value)),i.setValue()})}),i.renderCheckBtn(),l.siblings("."+c).find("."+o+" input"));""!==t.val()&&t.trigger("keyup"),n.onchange&&n.onchange(i.getData(r),e)},v.prototype.events=function(){var n=this,a=n.config;n.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var e=d(this).prev(),t=e[0].checked,a=e.parents("."+c).eq(0).find("."+f);e[0].disabled||("all"===e.attr("lay-type")&&a.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=t)}),setTimeout(function(){n.renderCheckBtn({stopNone:!0})},0))}),n.elem.on("dblclick","."+f+">li",function(e){var t=d(this),a=t.children('input[type="checkbox"]'),i=t.parent().parent();a[0].disabled||n.transfer(i.data("index"),t)}),n.layBtn.on("click",function(){var e=d(this),t=e.data("index");e.hasClass(h)||n.transfer(t)}),n.laySearch.find("input").on("keyup",function(){var i=this.value,e=d(this).parents("."+o).eq(0).siblings("."+f),t=e.children("li"),t=(t.each(function(){var e=d(this),t=e.find('input[type="checkbox"]'),a=-1!==t[0].title.indexOf(i);e[a?"removeClass":"addClass"](s),t.data("hide",!a)}),n.renderCheckBtn(),t.length===e.children("li."+s).length);n.noneView(e,t?a.text.searchNone:"")})},l.that={},l.config={},i.reload=function(e,t){e=l.that[e];return e.reload(t),l.call(e)},i.getData=function(e){return l.that[e].getData()},i.render=function(e){e=new v(e);return l.call(e)},e(a,i)});layui.define("jquery",function(e){"use strict";var a=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,i){return layui.onevent.call(this,d,e,i)}}),d="carousel",r="layui-this",s="layui-carousel-left",u="layui-carousel-right",c="layui-carousel-prev",m="layui-carousel-next",t="layui-carousel-arrow",l="layui-carousel-ind",i=function(e){var i=this;i.config=a.extend({},i.config,n.config,e),i.render()};i.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},i.prototype.render=function(){var e=this,i=e.config;i.elem=a(i.elem),i.elem[0]&&(e.elemItem=i.elem.find(">*[carousel-item]>*"),i.index<0&&(i.index=0),i.index>=e.elemItem.length&&(i.index=e.elemItem.length-1),i.interval<800&&(i.interval=800),i.full?i.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):i.elem.css({width:i.width,height:i.height}),i.elem.attr("lay-anim",i.anim),e.elemItem.eq(i.index).addClass(r),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},i.prototype.reload=function(e){var i=this;clearInterval(i.timer),i.config=a.extend({},i.config,e),i.render()},i.prototype.prevIndex=function(){var e=this.config.index-1;return e=e<0?this.elemItem.length-1:e},i.prototype.nextIndex=function(){var e=this.config.index+1;return e=e>=this.elemItem.length?0:e},i.prototype.addIndex=function(e){var i=this.config;i.index=i.index+(e=e||1),i.index>=this.elemItem.length&&(i.index=0)},i.prototype.subIndex=function(e){var i=this.config;i.index=i.index-(e=e||1),i.index<0&&(i.index=this.elemItem.length-1)},i.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},i.prototype.arrow=function(){var i=this,e=i.config,n=a(['",'"].join(""));e.elem.attr("lay-arrow",e.arrow),e.elem.find("."+t)[0]&&e.elem.find("."+t).remove(),e.elem.append(n),n.on("click",function(){var e=a(this).attr("lay-type");i.slide(e)})},i.prototype.indicator=function(){var i,n=this,t=n.config,e=n.elemInd=a(['
                          ',(i=[],layui.each(n.elemItem,function(e){i.push("")}),i.join("")),"
                        "].join(""));t.elem.attr("lay-indicator",t.indicator),t.elem.find("."+l)[0]&&t.elem.find("."+l).remove(),t.elem.append(e),"updown"===t.anim&&e.css("margin-top",-e.height()/2),e.find("li").on("hover"===t.trigger?"mouseover":t.trigger,function(){var e=a(this).index();e>t.index?n.slide("add",e-t.index):ea.length&&(a.value=a.length),parseInt(a.value)===a.value||a.half||(a.value=Math.ceil(a.value)-a.value<.5?Math.ceil(a.value):Math.floor(a.value)),'
                          "),n=1;n<=a.length;n++){var t='
                        • ";a.half&&parseInt(a.value)!==a.value&&n==Math.ceil(a.value)?i=i+'
                        • ":i+=t}i+="
                        "+(a.text?''+a.value+"\u661f":"")+"";var o=a.elem,s=o.next(".layui-rate");s[0]&&s.remove(),e.elemTemp=u(i),a.span=e.elemTemp.next("span"),a.setText&&a.setText(a.value),o.html(e.elemTemp),o.addClass("layui-inline"),a.readonly||e.action()},a.prototype.setvalue=function(e){this.config.value=e,this.render()},a.prototype.action=function(){var i=this.config,n=this.elemTemp,t=n.find("i").width();n.children("li").each(function(e){var a=e+1,l=u(this);l.on("click",function(e){i.value=a,i.half&&e.pageX-u(this).offset().left<=t/2&&(i.value=i.value-.5),i.text&&n.next("span").text(i.value+"\u661f"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),l.on("mousemove",function(e){n.find("i").each(function(){u(this).addClass(c).removeClass(s)}),n.find("i:lt("+a+")").each(function(){u(this).addClass(r).removeClass(f)}),i.half&&e.pageX-u(this).offset().left<=t/2&&l.children("i").addClass(o).removeClass(r)}),l.on("mouseleave",function(){n.find("i").each(function(){u(this).addClass(c).removeClass(s)}),n.find("i:lt("+Math.floor(i.value)+")").each(function(){u(this).addClass(r).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&n.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(o).removeClass("layui-icon-rate-solid layui-icon-rate")})})},a.prototype.events=function(){this.config},l.render=function(e){e=new a(e);return function(){var a=this;return{setvalue:function(e){a.setvalue.call(a,e)},config:a.config}}.call(e)},e(i,l)});layui.define("jquery",function(l){"use strict";var g=layui.$,e=function(l){};e.prototype.load=function(l){var t,i,n,e,r,o,a,c,m,s,u,f,y,d=this,p=0,h=g((l=l||{}).elem);if(h[0])return e=g(l.scrollElem||document),r=l.mb||50,o=!("isAuto"in l)||l.isAuto,a=l.end||"\u6ca1\u6709\u66f4\u591a\u4e86",c=l.scrollElem&&l.scrollElem!==document,s=g('"),h.find(".layui-flow-more")[0]||h.append(s),u=function(l,e){l=g(l),s.before(l),(e=0==e||null)?s.html(a):s.find("a").html(m),i=e,t=null,y&&y()},(f=function(){t=!0,s.find("a").html(''),"function"==typeof l.done&&l.done(++p,u)})(),s.find("a").on("click",function(){g(this);i||t||f()}),l.isLazyimg&&(y=d.lazyimg({elem:l.elem+" img",scrollElem:l.scrollElem})),o&&e.on("scroll",function(){var e=g(this),o=e.scrollTop();n&&clearTimeout(n),!i&&h.width()&&(n=setTimeout(function(){var l=(c?e:g(window)).height();(c?e.prop("scrollHeight"):document.documentElement.scrollHeight)-o-l<=r&&(t||f())},100))}),d},e.prototype.lazyimg=function(l){var e,c=this,m=0,s=g((l=l||{}).scrollElem||document),u=l.elem||"img",f=l.scrollElem&&l.scrollElem!==document,y=function(e,l){var o,t=s.scrollTop(),l=t+l,i=f?e.offset().top-s.offset().top+t:e.offset().top;t<=i&&i<=l&&e.attr("lay-src")&&(o=e.attr("lay-src"),layui.img(o,function(){var l=c.lazyimg.elem.eq(m);e.attr("src",o).removeAttr("lay-src"),l[0]&&n(l),m++},function(){c.lazyimg.elem.eq(m);e.removeAttr("lay-src")}))},n=function(l,e){var o=(f?e||s:g(window)).height(),t=s.scrollTop(),i=t+o;if(c.lazyimg.elem=g(u),l)y(l,o);else for(var n=0;n','
                        '+e+"
                        ",'
                        ','',"
                        ","
                        "].join(""));return r.ie&&r.ie<8?c.removeClass("layui-hide").addClass("layui-show"):(u[0]&&u.remove(),y.call(l,o,c[0],n),c.addClass("layui-hide").after(o),l.index)},e.prototype.getContent=function(t){t=n(t);if(t[0])return a(t[0].document.body.innerHTML)},e.prototype.getText=function(t){t=n(t);if(t[0])return p(t[0].document.body).text()},e.prototype.setContent=function(t,e,i){var a=n(t);a[0]&&(i?p(a[0].document.body).append(e):p(a[0].document.body).html(e),layedit.sync(t))},e.prototype.sync=function(t){t=n(t);t[0]&&p("#"+t[1].attr("textarea")).val(a(t[0].document.body.innerHTML))},e.prototype.getSelection=function(t){var t=n(t);if(t[0])return t=f(t[0].document),document.selection?t.text:t.toString()},function(l,n,o){var c=this,s=l.find("iframe");s.css({height:o.height}).on("load",function(){var t=s.contents(),e=s.prop("contentWindow"),i=t.find("head"),a=p([""].join("")),t=t.find("body");i.append(a),t.attr("contenteditable","true").css({"min-height":o.height}).html(n.value||""),u.apply(c,[e,s,n,o]),b.call(c,e,l,o)})}),n=function(t){t=p("#LAY_layedit_"+t);return[t.prop("contentWindow"),t]},a=function(t){return t=8==r.ie?t.replace(/<.+>/g,function(t){return t.toLowerCase()}):t},u=function(e,t,i,a){var l=e.document,n=p(l.body);n.on("keydown",function(t){if(13===t.keyCode){var e=f(l);if("pre"===h(e).parentNode.tagName.toLowerCase())return t.shiftKey?void 0:(m.msg("\u8bf7\u4f7f\u7528shift+enter\u8f93\u5165\u4ee3\u7801\u5757"),!1);l.execCommand("formatBlock",!1,"

                        ")}}),p(i).parents("form").on("submit",function(){var t=n.html();8==r.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),i.value=t}),n.on("paste",function(t){l.execCommand("formatBlock",!1,"

                        "),setTimeout(function(){o.call(e,n),i.value=n.html()},100)})},o=function(t){this.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),p(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},f=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},h=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,e,i){var a,l,n=this.document,o=document.createElement(t);for(a in e)o.setAttribute(a,e[a]);o.removeAttribute("text"),n.selection?(l=i.text||e.text,"a"===t&&!l||(l&&(o.innerHTML=l),i.pasteHTML(p(o).prop("outerHTML")),i.select())):(l=i.toString()||e.text,"a"===t&&!l||(l&&(o.innerHTML=l),i.deleteContents(),i.insertNode(o)))},g=function(e,t){var i=this.document,a="layedit-tool-active",i=h(f(i)),l=function(t){return e.find(".layedit-tool-"+t)};t&&t[t.hasClass(a)?"removeClass":"addClass"](a),e.find(">i").removeClass(a),l("unlink").addClass(d),p(i).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||l("b").addClass(a),"i"!==t&&"em"!==t||l("i").addClass(a),"u"===t&&l("u").addClass(a),"strike"===t&&l("d").addClass(a),"p"===t&&l("center"===e?"center":"right"===e?"right":"left").addClass(a),"a"===t&&(l("link").addClass(a),l("unlink").removeClass(d))})},b=function(c,t,s){var l=c.document,n=p(l.body),o={link:function(i){var t=h(i),a=p(t).parent();x.call(n,{href:a.attr("href"),target:a.attr("target")},function(t){var e=a[0];"A"===e.tagName?e.href=t.url:v.call(c,"a",{target:t.target,href:t.url,text:t.url},i)})},unlink:function(t){l.execCommand("unlink")},face:function(e){const{elem:t,defaultFaceList:i,recentFaceList:a,customFaceList:l,textFaceList:n,clickFaceCallback:o}=s.face||{};k.call(this,function(t){o&&o(t),"text"===t.type?v.call(c,"span",{text:t.alt},e):v.call(c,"img",{src:t.src,type:t.type,alt:t.alt,"class":t["class"]},e)},i,a,l,n,t)},image:function(n){var o=this;layui.use("upload",function(t){const{url:e,type:i,chooseImageCallback:a,uploadImageCallback:l}=s.image||{};t.render({url:e,method:i,elem:p(o).find("input")[0],choose:function(t){a&&"function"==typeof a&&a(t)},done:function(t){0==t.code&&(t.data=t.data||{},v.call(c,"img",{src:t.data.src,alt:t.data.title,id:t.data.id,"class":"tl-rtc-app-textarea-img"},n)),l&&"function"==typeof l&&l(t)}})})},code:function(e){C.call(n,function(t){v.call(c,"pre",{text:t.code,"lay-lang":t.lang},e)})},help:function(){m.open({type:2,title:"\u5e2e\u52a9",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["","no"]})},history:function(){var t=(s.history||{})["historyCallback"];t&&"function"==typeof t&&t()},quickMessage:function(){var t=(s.quickMessage||{})["quickMessageCallback"];t&&"function"==typeof t&&t()},card:function(){var t=(s.card||{})["cardCallback"];t&&"function"==typeof t&&t()},voice:function(){var t=(s.voice||{})["voiceCallback"];t&&"function"==typeof t&&t()},record:function(){var t=(s.record||{})["recordCallback"];t&&"function"==typeof t&&t()},printCut:function(){var t=(s.printCut||{})["printCutCallback"];t&&"function"==typeof t&&t()},cusFace:function(){var t=(s.cusFace||{})["cusFaceCallback"];t&&"function"==typeof t&&t()},draw:function(){var t=(s.draw||{})["drawCallback"];t&&"function"==typeof t&&t()},file:function(){var n=this;layui.use("upload",function(t){const{url:e,type:i,chooseFileCallback:a,uploadFileCallback:l}=s.file||{};t.render({url:e,accept:"file",method:i,auto:!1,elem:p(n).find("input")[0],choose:function(t){a&&"function"==typeof a&&a(t)},done:function(t){l(t)}})})}},u=t.find(".layui-layedit-tool"),e=function(){var t,e=p(this),i=e.attr("layedit-event"),a=e.attr("lay-command");e.hasClass(d)||(n.focus(),(t=f(l)).commonAncestorContainer,a?(l.execCommand(a),/justifyLeft|justifyCenter|justifyRight/.test(a)&&l.execCommand("formatBlock",!1,"

                        "),setTimeout(function(){n.focus()},10)):o[i]&&o[i].call(this,t),g.call(c,u,e))},i=/image/;u.find(">i").on("mousedown",function(){var t=p(this).attr("layedit-event");i.test(t)||e.call(this)}).on("click",function(){var t=p(this).attr("layedit-event");i.test(t)&&e.call(this)}),n.on("click",function(){g.call(c,u),m.close(k.index)})},x=function(t,i){var a=this,t=m.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"\u8d85\u94fe\u63a5",skin:"layui-layer-msg",content:['

                          ','
                        • ','','
                          ','',"
                          ","
                        • ",'
                        • ','','
                          ','",'","
                          ","
                        • ",'
                        • ','','',"
                        • ","
                        "].join(""),success:function(t,e){l.render("radio"),t.find(".layui-btn-primary").on("click",function(){m.close(e),a.focus()}),l.on("submit(layedit-link-yes)",function(t){m.close(x.index),i&&i(t.field)})}});x.index=t},k=function(i,t,e,a,l,n){o={},layui.each(t||[],function(t,e){o[e]=layui.cache.dir+"images/face/"+t+".gif"});var o,c,s,u,r=o,d=(c={},layui.each(e||[],function(t,e){c[e.alt]=e}),c),y=(s={},layui.each(a,function(t,e){s[e]=layui.cache.dir+"images/face/"+t+".gif"}),s),f=(u={},layui.each(l,function(t,e){u[e]=e}),u);return k.hide=k.hide||function(t){"face"!==p(t.target).attr("layedit-event")&&m.close(k.index)},k.index=m.tips(function(){var i=[],a=[],l=[],n=[];layui.each(d,function(t,e){"img"===e.type?i.push('
                      • '+t+'
                      • '):i.push('
                      • '+e.alt+"
                      • ")}),layui.each(r,function(t,e){a.push('
                      • '+t+'
                      • ')}),layui.each(y,function(t,e){l.push('
                      • '+t+'
                      • ')}),layui.each(f,function(t,e){n.push('
                      • '+e+"
                      • ")});return` + + `+` +
                        +
                        最近使用
                        +
                          ${i.join("")}
                        +
                        默认表情
                        +
                          ${a.join("")}
                        +
                        可爱文字
                        +
                          ${n.join("")}
                        +
                        专属定制
                        +
                          ${l.join("")}
                        +
                        + `+` +
                        + 最近使用 + 默认表情 + 可爱文字 + 专属定制 +
                        + `}(),n||document.querySelector(".layui-icon.layedit-tool-face")||document.body,{tips:1,time:0,shade:.01,shadeClose:!0,skin:"layui-box layui-util-face tl-rtc-app-face-layer",maxWidth:500,fixed:!1,success:function(t,e){t.css({}).find("#recent-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:d[this.title].src,type:this.getAttribute("face-type"),alt:this.title,"class":"tl-rtc-app-textarea-face-img"}),m.close(e)}),t.css({}).find("#default-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:r[this.title],type:this.getAttribute("face-type"),alt:this.title,"class":"tl-rtc-app-textarea-face-img"}),m.close(e)}),t.css({}).find("#text-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:f[this.title],type:this.getAttribute("face-type"),alt:this.title}),m.close(e)}),t.css({}).find("#custom-face-ul>li").on("click",function(t){t.preventDefault(),t.stopPropagation(),i&&i({src:y[this.title],type:this.getAttribute("face-type"),alt:this.title,"class":"tl-rtc-app-textarea-face-img"}),m.close(e)}),p(".tl-rtc-app-face-tab span").on("click",function(){var t=p(this).attr("id"),e=p(".tl-rtc-app-face-search-content"),t=(p(".tl-rtc-app-face-tab span").removeClass("active"),p(this).addClass("active"),p(`#${t}-ul`)),i=e.offset().top,t=t.offset().top,t=e.scrollTop()+(t-i);e.animate({scrollTop:t},{duration:200,easing:"swing",queue:!1})})}})},C=function(i){var a=this,t=m.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"\u63d2\u5165\u4ee3\u7801",skin:"layui-layer-msg",content:['
                          ','
                        • ','','
                          ','","
                          ","
                        • ",'
                        • ','','
                          ','',"
                          ","
                        • ",'
                        • ','','',"
                        • ","
                        "].join(""),success:function(t,e){l.render("select"),t.find(".layui-btn-primary").on("click",function(){m.close(e),a.focus()}),l.on("submit(layedit-code-yes)",function(t){m.close(C.index),i&&i(t.field)})}});C.index=t},w={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',code:'',image:'',cusFace:'',face:'',history:'',voice:'',record:'',printCut:'',draw:'',file:'',quickMessage:'',card:''},c=new e;e.prototype.face=function(t){const{callback:e,clickFaceCallback:i,defaultFaceList:a,recentFaceList:l,customFaceList:n,textFaceList:o,elem:c}=t||{};p(function(){return k.call(this,function(t){e&&e(t),i&&i(t)},a,l,n,o,c)}.bind(this))},t(i,c)});layui.define(["lay","util"],function(e){"use strict";var d=layui.$,o=layui.util,u="layui-code-title",l={elem:".layui-code",title:"</>",about:"",ln:!0};e("code",function(e){var c=e=d.extend({},l,e);e.elem=d(e.elem),e.elem[0]&&layui.each(e.elem.get().reverse(),function(e,l){var t,a=d(l),i=(i=a.html(),d.trim(i).replace(/^\n|\n$/,"")),l=d.extend({},c,lay.options(l),(t={},layui.each(["title","height","encode","skin","about"],function(e,l){var i=a.attr("lay-"+l);"string"==typeof i&&(t[l]=i)}),t)),s=l.ln?"ol":"ul",s=d("<"+s+' class="layui-code-'+s+'">'),n=d('
                        ');a.addClass("layui-code-view layui-box"),l.skin&&("notepad"===l.skin&&(l.skin="dark"),a.addClass("layui-code-"+l.skin)),i=(i=l.encode?o.escape(i):i).replace(/[\r\t\n]+/g,"
                      • "),a.html(s.html("
                      • "+i+"
                      • ")),a.children("."+u)[0]||(n.html(l.title+(l.about?'
                        '+l.about+"
                        ":"")),a.prepend(n)),0<(i=Math.floor(s.find("li").length/100))&&s.css("margin-left",i+"px"),l.height&&s.css("max-height",l.height)})})}).addcss("modules/code.css?v=3","skincodecss"); \ No newline at end of file diff --git a/web-v2-res/css/comm.css b/web-v2-res/css/comm.css deleted file mode 100644 index 8789876..0000000 --- a/web-v2-res/css/comm.css +++ /dev/null @@ -1,642 +0,0 @@ - -[v-cloak] { - visibility: hidden !important; -} - - -/** vconsole样式修改 **/ -.vc-switch{ - right: 10px !important; - bottom: 100px !important; -} - -.layui-laydate{ - border-radius: 8px !important; -} - -.layui-form-select dl dd.layui-this{ - background-color: var(--skin-body-background); - color: var(--skin-body-color); -} - -.layui-form-select dl{ - background-color: var(--skin-body-background); -} - -.layui-layedit i{ - color: var(--skin-body-color) !important; -} - -.tl-rtc-app-close-i{ - color: var(--skin-body-color) !important; -} - -.tl-rtc-app-max-i{ - color: var(--skin-body-color) !important; - font-weight: bold; - background: unset; -} - -.layui-layer-prompt{ - border-radius: 8px !important; -} - -.layui-layer-dialog{ - border-radius: 8px !important; -} - -.layui-layer-page .layui-layer-content{ - overflow: unset !important; -} - -.layui-layer-loading{ - background: unset !important; -} - -.layedit-tool-history{ - scale: 1.3; -} - -.layedit-tool-voice{ - scale: 1.3; -} - -.layui-layer-prompt, .layui-layer-dialog, .layui-layer-page{ - background: var(--skin-body-background) !important; - color: var(--skin-body-color) !important; -} - -.layui-layer-prompt .layui-layer-title, -.layui-layer-dialog .layui-layer-title, -.layui-layer-page .layui-layer-title{ - color: var(--skin-body-color) !important; -} - -.layui-layer-prompt .layui-layer-title, -.layui-layer-dialog .layui-layer-title, -.layui-layer-page .layui-layer-title{ - border-bottom: 1px solid var(--skin-body-border-color); -} - -.layui-layer-prompt .layui-layer-input{ - background: var(--skin-body-background) !important; - border: 1px solid var(--skin-body-border-color) !important; - color: var(--skin-body-color) !important; -} - -/*********************************************************************************** -************************************************************************************ - 侧边栏 start -************************************************************************************ -************************************************************************************/ -::-webkit-scrollbar{ - width: 0.1px; - height: 4px; - background-color: var(--skin-body-background) -} -::-webkit-scrollbar-track{ - border-radius: 10px; - background-color: var(--skin-body-background) -} -::-webkit-scrollbar-thumb{ - border-radius: 10px; - -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,.2); - background-color: var(--skin-body-background) -} -/*********************************************************************************** -************************************************************************************ - 侧边栏 end -************************************************************************************ -************************************************************************************/ - - -/*********************************************************************************** -************************************************************************************ - 聊天表情包 start -************************************************************************************ -************************************************************************************/ -.layui-util-face ul li img{ - width: 100%; - margin-top: -2px; -} - -.layui-tl-img{ - width: 100px; -} - -.layui-util-face .layui-layer-content{ - border-radius: 8px !important; - box-shadow: 0 0 20px rgba(0, 0, 0, .2) !important; - overflow: hidden; -} - -.layui-util-face ul{ - width: 248px; - border-radius: 8px; - padding: 5px 10px 5px; - border: unset; - box-shadow: unset; - transition: transform 0.3s; -} - -.tl-rtc-app-face-search{ - margin: 0px; - padding: 10px; -} - -.tl-rtc-app-face-search input{ - width: 100%; - height: 28px; - font-size: 11px; - border-radius: 4px; - border: 1px solid var(--skin-body-border-color); - background: var(--skin-face-search-input-background); - color: var(--skin-face-search-input-color); - border-color: var(--skin-face-search-input-background); - letter-spacing: 1px; - border-width: 0.5px; -} - -.tl-rtc-app-face-tab{ - padding: 5px; - line-height: 25px; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: space-around; - align-items: center; - text-align: center; -} - -.tl-rtc-app-face-tab span{ - padding: 2px 5px; - cursor: pointer; - width: calc(25% - 10px); - background: var(--skin-face-tab-background); - color: var(--skin-face-tab-color); -} - -.tl-rtc-app-face-tab span:hover{ - background: var(--skin-face-tab-hover-background); - color: var(--skin-face-tab-hover-color); - border-radius: 4px; -} - -.tl-rtc-app-face-search-content{ - height: 105px; - overflow-y: auto; -} - -#text-face-ul{ - font-size: 11px; -} - -.tl-rtc-app-face-search-content-title{ - padding: 5px 10px 0; - font-size: 10px; - color: #999; - color: var(--skin-face-content-title-color); -} - -.tl-rtc-app-face-layer{ - background: var(--skin-body-background) !important; - color: var(--skin-body-color) !important; -} - -.tl-rtc-app-face-layer .layui-layer-title{ - color: var(--skin-body-color) !important; - border-bottom: 1px solid var(--skin-body-border-color) !important; - border-radius: 6px; -} - -.tl-rtc-app-face-layer .layui-layer-content{ - background: unset !important; - border: 1px solid var(--skin-body-border-color) !important; -} - -.tl-rtc-app-face-layer ul{ - background: unset !important; -} - -.tl-rtc-app-face-layer ul li{ - border: 1px solid var(--skin-body-border-color) !important; - color: var(--skin-body-color) !important; -} - -.tl-rtc-app-face-layer ul li:hover{ - background-color: var(--skin-face-item-hover-background); - color: var(--skin-face-item-hover-color); -} - - -/*********************************************************************************** -************************************************************************************ - 聊天表情包 end -************************************************************************************ -************************************************************************************/ - - - - -/*********************************************************************************** -************************************************************************************ - 输入内容编辑器 start -************************************************************************************ -************************************************************************************/ -.layui-layedit{ - border: none; - border-top-width: 0px; - border-top-style: outset; - border-top-color: #c4eee0; -} - -.layui-layedit-tool{ - border-bottom-style: none; -} - -.layui-layedit-iframe iframe{ - user-select: none; -} - -.layedit-tool-history, .layedit-tool-voice{ - font-size: 15px !important; -} - -.layedit-tool-face{ - font-size: 20px !important; -} - -.layedit-tool-print-cut svg{ - width: 21px !important; - height: 30px !important; - margin-right: 7px !important; - fill: var(--skin-body-color) !important; -} - -.layedit-tool-record svg{ - width: 18px !important; - height: 30px !important; - margin-right: 7px !important; - fill: var(--skin-body-color) !important; -} - -.layedit-tool-draw svg{ - width: 19px !important; - height: 30px !important; - margin-right: 7px !important; - fill: var(--skin-body-color) !important; -} - -.layedit-tool-code svg{ - width: 19px !important; - height: 30px !important; - margin-right: 7px !important; - fill: var(--skin-body-color) !important; -} - -.layedit-tool-face svg{ - width: 19px !important; - height: 30px !important; - fill: var(--skin-body-color) !important; -} -/*********************************************************************************** -************************************************************************************ - 输入内容编辑器 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 折叠面板 start -************************************************************************************ -************************************************************************************/ -.layui-collapse{ - border: none; -} - -.layui-colla-title{ - background-color: unset; - padding: 0 0px 0 35px; - transition: color 0.3s; - color: unset; -} - -.layui-colla-content, .layui-colla-item{ - border: none; -} - -.layui-colla-content{ - color: unset; -} - -.layui-colla-content { - padding: 0px !important; -} -/*********************************************************************************** -************************************************************************************ - 折叠面板 end -************************************************************************************ -************************************************************************************/ - - -/*********************************************************************************** -************************************************************************************ - form表单 start -************************************************************************************ -************************************************************************************/ -.layui-form-switch{ - margin-top: unset !important; - height: 18px !important; - line-height: 18px !important; - min-width: 28px !important; -} - -.layui-form-switch i{ - width: 12px !important; - height: 12px !important; -} - -.layui-form-onswitch i{ - margin-left: -16px !important; - /* background: var(--skin-body-color); */ -} - -.layui-form-onswitch{ - /* border-color: var(--skin-body-background) !important; - background-color: var(--skin-body-background) !important; */ -} - -.layui-form-checkbox[lay-skin=primary] i{ - border-radius: 50%; -} - -.layui-form-checked[lay-skin=primary] i{ - border-color: var(--skin-body-color) !important; - /* background-color: var(--skin-body-background) !important; */ -} -/*********************************************************************************** -************************************************************************************ - form表单 end -************************************************************************************ -************************************************************************************/ - - -/*********************************************************************************** -************************************************************************************ - 颜色选择器 start -************************************************************************************ -************************************************************************************/ -.layui-colorpicker.layui-colorpicker-xs{ - width: 18px; - height: 18px; - line-height: 16px; -} - -.layui-colorpicker{ - padding: 3px 15px; - transition: padding 0.3s; -} - -.layui-colorpicker .layui-icon-edit{ - transition: all 0.3s; -} - -.layui-colorpicker-main{ - border: unset; - border-radius: 8px; -} - -.layui-colorpicker-basis{ - width: auto; -} - -.layui-colorpicker-trigger-span{ - border: unset; - background: unset; -} -/*********************************************************************************** -************************************************************************************ - 颜色选择器 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 自定义右键菜单 start -************************************************************************************ -************************************************************************************/ -.custom-context-menu { - position: absolute; - background-color: var(--skin-body-background) !important; - border: 1px solid var(--skin-body-border-color) !important; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - color: var(--skin-body-color) !important; - width: 140px; - padding: 4px 0; - z-index: 1000; - user-select: none; - border-radius: 4px; -} - -.custom-context-menu ul { - list-style-type: none; - margin: 0; - padding: 0; -} - -.custom-context-menu ul li { - padding: 5px 10px; - cursor: pointer; - text-align: left; - font-size: 13px; - transition: background-color 0s; -} - -.custom-context-menu ul li:hover { - background-color: var(--skin-body-color) !important; - color: var(--skin-body-background) !important; -} - -.custom-context-menu ul li:not(:last-child) { - border-bottom: 1px solid var(--skin-body-border-color); -} - -.custom-context-menu ul li.disabled { - color: #d8d5d58a; - cursor: not-allowed; -} - -.layui-menu-body-title svg{ - margin-right: 5px; -} - -.layui-menu-body-title>.layui-icon{ - font-size: 12px; -} - -.layui-menu-body-panel{ - position: absolute; - background-color: var(--skin-body-background); - border: 1px solid var(--skin-body-border-color); - width: 140px; - padding: 0; - z-index: 1000; - user-select: none; - margin-left: 0px; - top: -1px; -} - -.layui-menu-body-panel-left{ - margin-right: 0px; -} - -.layui-menu-body-panel ul { - list-style-type: none; - margin: 0; - padding: 0; -} - -.layui-menu-body-panel ul li { - padding: 5px 10px; - cursor: pointer; - text-align: left; - font-size: 13px; - transition: background-color 0.2s; -} - -.layui-menu-body-panel ul li:hover { - background-color: var(--skin-body-background) !important; -} - -.layui-menu-body-panel ul li:not(:last-child) { - border-bottom: 1px solid var(--skin-body-border-color); -} - -.layui-menu-body-panel ul li.disabled { - color: #d8d5d58a; - cursor: not-allowed; -} - -.layui-menu{ - background: var(--skin-body-background) !important; -} - -.layui-menu li{ - line-height: 20px; - margin: 0; - width: 100%; - color: var(--skin-body-color) !important; -} -/*********************************************************************************** -************************************************************************************ - 自定义右键菜单 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - layer消息提示 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-layer-msg{ - background: var(--skin-layer-msg-background) !important; - color: var(--skin-layer-msg-color) !important; - font-size: 14px !important; - scale: 0.9 !important; - font-weight: bold !important; - border-radius: 10px !important; - box-shadow: 0 4px 40px #00000026 !important; - min-width: unset !important; -} - -.tl-rtc-app-layer-msg .layui-layer-content{ - line-height: 18px !important; - letter-spacing: 1px !important; - display: flex !important; - padding: 12px 15px !important; - flex-direction: row !important; - - display: flex !important; - align-content: center !important; - justify-content: center !important; - align-items: center !important; -} - -.tl-rtc-app-layer-msg .layui-layer-content .tl-toast-msg-success{ - color: var(--skin-layer-msg-success-color) !important; - font-size: 20px !important; - font-weight: bold !important; - margin-right: 5px !important; -} - -.tl-rtc-app-layer-msg .layui-layer-content .tl-toast-msg-warning{ - color: var(--skin-layer-msg-warning-color) !important; - font-weight: bold !important; - font-size: 20px !important; - margin-right: 5px !important; -} - -.tl-rtc-app-layer-msg .layui-layer-content .tl-toast-msg-error{ - color: var(--skin-layer-msg-error-color) !important; - font-weight: bold !important; - font-size: 20px !important; - margin-right: 5px !important; -} -/*********************************************************************************** -************************************************************************************ - layer消息提示 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - layer-tips start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-layer-tips .layui-layer-content{ - background: var(--skin-layer-tips-background) !important; - color: var(--skin-layer-tips-color) !important; -} - -.tl-rtc-app-layer-tips .layui-layer-content{ - border-radius: 4px !important; -} - -.tl-rtc-app-layer-tips .layui-layer-TipsG.layui-layer-TipsR{ - border-right-color: var(--skin-layer-tips-background) !important; - border-bottom-color: var(--skin-layer-tips-background) !important; -} - -.tl-rtc-app-layer-tips .layui-layer-TipsG.layui-layer-TipsB{ - border-right-color: var(--skin-layer-tips-background) !important; -} - -.tl-rtc-app-layer-tips .layui-layer-TipsG.layui-layer-TipsT{ - border-right-color: var(--skin-layer-tips-background) !important; -} - -/*********************************************************************************** -************************************************************************************ - layer-tips end -************************************************************************************ -************************************************************************************/ - - -.layui-form-radio { - display: unset !important; - vertical-align: unset !important; - line-height: unset !important; - margin: unset !important; - padding-right: unset !important; - cursor: pointer; - font-size: unset !important; -} - diff --git a/web-v2-res/css/pc.css b/web-v2-res/css/pc.css deleted file mode 100644 index 50c5bd0..0000000 --- a/web-v2-res/css/pc.css +++ /dev/null @@ -1,3311 +0,0 @@ -html { - box-sizing: border-box; - - --body-width: 80%; - --body-max-width: 1200px; - --body-height: 90%; - - --sidebar-width: 65px; - --left-width: 315px; - --left-channel-top: 130px; - --left-p2p-channel-top: 90px; - --left-contact-top: 100px; - --left-cut-paste-top: 90px; - --left-login-top: 30px; - - --right-channel-content-more-width: 260px; - --right-channel-content-top: 49px; - --right-channel-editor-height: 30%; - --right-channel-content-body: calc(100% - var(--right-channel-content-top) - var(--right-channel-editor-height)); - - /* 主界面配色 */ - --skin-top-header-title-color: #333333; - --skin-top-header-tool-background: #ffffff; - --skin-top-header-tool-fill-color: #959595; - --skin-top-header-tool-hover-fill-color: #333333; - --skin-top-header-tool-hover-shadow: 0 4px 40px #00000026; - --skin-body-color: #000000; - --skin-body-background: #f6f6f6; - --skin-body-shadow: 0 4px 40px #00000026; - --skin-body-border-color: #eae2e28f; - - /* layer消息提示配色 */ - --skin-layer-msg-background: #f6f6f6; - --skin-layer-msg-color: #000000; - --skin-layer-msg-success-color: #04dd04; - --skin-layer-msg-warning-color: #bfbf5d; - --skin-layer-msg-error-color: #ff0000; - - /* layer-tips提示配色 */ - --skin-layer-tips-background: #4f4f4f; - --skin-layer-tips-color: #ffffff; - - /* 侧边栏相关配色 */ - --skin-sidebar-tool-background: #f4f4f435; - --skin-sidebar-tool-hover-background: #a7a4a435; - --skin-sidebar-tool-fill-color: #000000; - --skin-sidebar-tool-hover-fill-color: #000000; - --skin-sidebar-tool-color: #7c7b7b; - --skin-sidebar-tool-hover-color: #000000; - - /* 快捷面板相关配色 */ - --skin-quick-oper-panel-background: #f6f6f6; - --skin-quick-oper-panel-item-color: #797e7e; - --skin-quick-oper-panel-item-hover-background: #eae6e1; - --skin-quick-oper-panel-item-hover-color: #000000; - - /* 频道相关配色 */ - --skin-channel-list-no-channel-color: #00000047; - --skin-channel-list-item-hover-background: #d2deff96; - --skin-channel-list-item-top-background: #e5ebfc96; - --skin-channel-list-item-message-color: #777777; - --skin-channel-list-item-message-at-user-text-color: #ff0000; - --skin-channel-list-item-message-at-me-text-color: #ff0000; - --skin-channel-list-item-time-color: #b8b8b8; - --skin-channel-list-item-quick-mark-unread-background: #6b95be; - --skin-channel-list-item-quick-mark-unread-color: #ffffff; - --skin-channel-list-item-quick-top-background: #75b963; - --skin-channel-list-item-quick-top-color: #ffffff; - --skin-channel-list-item-quick-delete-background: #da5d5d;; - --skin-channel-list-item-quick-delete-color: #ffffff; - --skin-channel-list-item-quick-hidden-background: #88adac;; - --skin-channel-list-item-quick-hidden-color: #ffffff; - --skin-channel-list-item-quick-un-notify-background: #c2b862; - --skin-channel-list-item-quick-un-notify-color: #ffffff; - - --skin-channel-top-search-i-color: #c8c8c8; - --skin-channel-top-search-input-background: #F8F9FB; - --skin-channel-top-search-input-color: #3333339e; - - --skin-channel-content-top-more-fill-color: #4A4BDB; - --skin-channel-content-body-message-background: #d9deff; - --skin-channel-content-body-message-color: #000000; - --skin-channel-content-body-item-message-at-user-text-color: #4A4BDB; - --skin-channel-content-body-message-system-color: #b7bbc7; - --skin-channel-content-body-message-time-color: #b7bbc7; - --skin-channel-content-body-message-load-more-color: #b7bbc7; - --skin-channel-content-body-message-load-more-hover-color: #4A4BDB; - --skin-channel-content-body-message-name-color: #7a7777; - --skin-channel-content-body-message-name-hover-color: #4A4BDB; - --skin-channel-content-body-message-name-at-color: #4A4BDB; - --skin-channel-content-body-message-menu-icon-background: #ffffff; - --skin-channel-content-body-message-menu-icon-color: #000000; - --skin-channel-content-body-message-menu-icon-hover-background: #ffffff; - --skin-channel-content-body-message-menu-icon-hover-color: #000000; - --skin-channel-content-body-reply-content-block-color: #939392; - --skin-channel-content-body-reply-content-block-background: #dbe6e378; - - /* 频道更多侧边栏相关配色 */ - --skin-channel-content-more-background: #ffffff; - --skin-channel-content-more-shadow: -2px 3px 6px rgba(0,0,0,.15); - --skin-channel-content-more-list-item-hover-color: #7575bd; - --skin-channel-content-more-list-item-oper-channel-name-color: #0000008a; - --skin-channel-content-more-share-tool-item-hover-background: #00c3ff1e; - --skin-channel-content-more-list-item-border-color: #f9f9f9; - --skin-channel-content-more-list-user-item-oper-hover-background: #eeeeee; - --skin-channel-content-more-list-user-item-oper-hover-fill-color: #557189; - - /* 频道邀请好友相关配色 */ - --skin-channel-content-invite-search-i-color: #c8c8c8; - --skin-channel-content-invite-search-input-background: #F8F9FB; - --skin-channel-content-invite-search-input-color: #3333339e; - --skin-channel-content-invite-choose-list-item-hover-background: #d2deff96; - --skin-channel-content-invite-choose-list-empty-color: #b3aaaa; - - /* 联系人相关配色 */ - --skin-contact-header-tool-hover-shadow: 0 4px 40px #00000026; - --skin-contact-header-tool-svg-fill-color: #959595; - --skin-contact-header-tool-svg-hover-fill-color: #333333; - --skin-contact-top-search-i-color: #c8c8c8; - --skin-contact-top-search-input-background: #F8F9FB; - --skin-contact-top-search-input-color: #3333339e; - --skin-contact-list-item-hover-background: #d2deff96; - --skin-contact-content-tool-item-hover-background: #6263FB; - --skin-contact-content-other-item-badge-background: #1e9fff; - --skin-contact-content-item-message-color: #777777; - --skin-contact-content-item-other-status-color: #b8b8b8; - --skin-contact-content-apply-button-background: #6263FB; - --skin-contact-content-apply-button-color: #ffffff; - - /* 登陆相关配色 */ - --skin-login-button-background: #6263FB; - --skin-login-list-item-hover-background: #d2deff96; - --skin-login-list-item-hover-color: #1e71ee; - --skin-login-content-form-input-color: #3333339e; - --skin-login-content-body-bottom-color: #5c8dd7; - --skin-login-content-body-bottom-hover-color: #1e71ee; - --skin-login-content-body-scan-title-color: #939ea6; - --skin-login-content-body-scan-title-background: azure; - --skin-login-content-body-scan-code-item-disabled-background: #e6e8ea7a; - - --skin-login-content-body-scan-code-item-focus-background: #007bff; - --skin-login-content-body-scan-code-item-focus-border-color: #007bff; - --skin-login-email-code-btn-color: #ffffff; - --skin-login-email-code-btn-disabled-background: #ccc; - - --skin-login-help-mobile-color: #8b8b9e; - --skin-login-help-mobile-hover-color: #1e71ee; - --skin-login-body-clean-color: #1e71ee; - --skin-login-body-clean-hover-color: #1e71ee; - --skin-login-item-mobile-icon-background: #bddcff47; - - /* 设置相关配色 */ - --skin-setting-list-item-hover-background: #d2deff96; - --skin-setting-list-item-active-background: #d2deff96; - --skin-setting-top-search-i-color: #c8c8c8; - --skin-setting-top-search-input-background: #F8F9FB; - --skin-setting-top-search-input-color: #3333339e; - --skin-setting-content-top-export-background: #ffffff; - --skin-setting-content-top-export-fill-color: #000000; - --skin-setting-content-block-background: #ffffff69; - --skin-setting-content-block-badge-background: white; - --skin-setting-content-block-badge-color: black; - --skin-setting-content-block-badge-hover-background: #6263FB; - --skin-setting-content-block-badge-hover-color: #ffffff; - --skin-setting-content-block-item-hover-background: #e6f4ff; - --skin-setting-content-bind-icon-hover-color: #1e71ee; - --skin-setting-content-bind-icon-tip-fill-color: #c4c4f4; - --skin-setting-content-preview-item-svg-background: #ffffff; - --skin-setting-content-preview-item-svg-hover-background: #e1f3ff; - --skin-setting-content-account-bind-email-btn-background: #7878c5; - --skin-setting-content-account-bind-email-btn-color: #ffffff; - --skin-setting-content-account-bind-email-input-background: #F8F9FB; - --skin-setting-content-account-bind-email-input-color: #3333339e; - --skin-setting-content-account-bind-email-btn-disabled-background: #ccc; - --skin-setting-content-account-bind-email-btn-disabled-color: #ffffff; - - /* 表情弹窗相关配色 */ - --skin-face-item-hover-background: #d2deff96; - --skin-face-item-hover-color: #000000; - --skin-face-tab-background: #f6f6f6; - --skin-face-tab-color: #736d6d; - --skin-face-tab-hover-background: #d2deff96; - --skin-face-tab-hover-color: #000000; - --skin-face-search-input-background: #F8F9FB; - --skin-face-search-input-color: #3333339e; - --skin-face-content-title-color: #999; -} - -.tl-rtc-app-left-show{ - opacity: 1; -} -.tl-rtc-app-left-hidden{ - opacity: 0; -} - -.tl-rtc-app-right-show{ - right: 0; -} -.tl-rtc-app-right-hidden{ - right: -100%; -} - -.tl-rtc-app-sidebar-show{ - opacity: 1; -} -.tl-rtc-app-sidebar-hidden{ - opacity: 0; -} - -.goBack{ - position: absolute; - top: 20px; - left: 20px; - cursor: pointer; - width: 16px !important; - height: 16px !important; -} - -/*********************************************************************************** -************************************************************************************ - 主界面布局 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-body{ - overflow: hidden; - width: var(--body-width); - max-width: var(--body-max-width); - height: var(--body-height); - position: absolute; - - top: calc((100% - var(--body-height)) / 2); - left: calc((100% - var(--body-width)) / 2); - - box-shadow: var(--skin-body-shadow); - z-index: 1000; - background-color: var(--skin-body-background); - color: var(--skin-body-color); - border-radius: 12px; - min-height: 500px; - transition: all 0.3s; -} - -#tl-rtc-app{ - width: 100%; - height: 100%; - display: flex; -} - -#tl-rtc-app .tl-rtc-app-left{ - width: var(--left-width); - display: flex; - user-select: none; - transition: width 0.3s, opacity 0.5s; - background-color: var(--skin-body-background); - border-right: 1px solid var(--skin-body-border-color); -} - -#tl-rtc-app .tl-rtc-app-right{ - width: calc(100% - var(--left-width) - var(--sidebar-width)); - transition: width 0.3s, right 0.5s; - height: 100%; - background-color: var(--skin-body-background); -} - -#tl-rtc-app .tl-rtc-app-left-sidebar{ - width: var(--sidebar-width); - background-color: var(--skin-sidebar-tool-background); - box-shadow: var(--skin-body-shadow); - transition: width 0.3s, opacity 0.5s; -} - -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-tool{ - height: calc(var(--body-height) - 65px); -} - -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item{ - width: 100%; - height: 50px; - margin-top: 5px; - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - transition: all 0.3s; - position: relative; - color: var(--skin-sidebar-tool-color); - font-size: 11px; -} - -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:first-child{ - margin-top: 1px; -} - -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item svg{ - width: 20px; - height: 20px; - fill: var(--skin-sidebar-tool-fill-color); - transition: all 0.3s; -} - -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:hover, -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item-hover { - background-color: var(--skin-sidebar-tool-hover-background); - color: var(--skin-sidebar-tool-hover-color); -} - -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item:hover svg, -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-item-hover svg{ - scale: 1.1; - fill: var(--skin-sidebar-tool-hover-fill-color); -} - -.tl-rtc-app-left-sidebar-item-dog{ - position: absolute; - margin-top: -25px; - transition: right .3s; - right: 3px; - line-height: 14px; - height: 14px; - border-radius: 4px; - font-size: 11px; - padding: 0px 4px; - scale: .9; - display: inline; -} - -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-bottom{ - position: absolute; - bottom: 10px; - width: calc(var(--sidebar-width) - 1px); - transition: width 0.3s; -} - -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-logo{ - color: var(--skin-sidebar-tool-color); - font-weight: bold; - width: 100%; - height: 50px; - margin-top: 5px; - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - transition: all 0.3s; - font-size: 12px; -} - -#tl-rtc-app .tl-rtc-app-left-sidebar .tl-rtc-app-left-sidebar-logo p{ - width: 80%; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - text-align: center; - font-size: 10px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel{ - width: 100%; - height: 100%; -} -/*********************************************************************************** -************************************************************************************ - 主界面布局 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 快捷操作面板 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-layer-quick-oper-panel{ - background: var(--skin-quick-oper-panel-background) !important; - color: var(--skin-quick-oper-panel-item-color) !important; -} - -.tl-rtc-app-layer-quick-oper-panel .layui-layer-title{ - color: var(--skin-body-color) !important; - border-bottom: 1px solid var(--skin-body-border-color) !important; - border-radius: 6px; -} - -.tl-rtc-app-quick-oper-panel{ - user-select: none; - width: 100%; - height: 250px; - padding: 5px 0; -} - -.tl-rtc-app-quick-oper-panel-list{ - display: flex; - flex-wrap: wrap; - flex-direction: row; - align-content: center; - justify-content: flex-start; - align-items: center; -} - -.tl-rtc-app-quick-oper-panel-list-item{ - display: flex; - flex-direction: column; - flex-wrap: nowrap; - justify-content: center; - align-items: center; - cursor: pointer; - font-size: 12px; - color: var(--skin-quick-oper-panel-item-color); - font-weight: 700; - transition: all .2s; - border-radius: 4px; - width: calc((100% - 80px) / 4); - line-height: 25px; - padding: 5px; - margin: 5px; -} - -.tl-rtc-app-quick-oper-panel-list-item:hover{ - background: var(--skin-quick-oper-panel-item-hover-background); -} - -.tl-rtc-app-quick-oper-panel-list-item:hover{ - color: var(--skin-quick-oper-panel-item-hover-color); -} - -.tl-rtc-app-quick-oper-panel-list-item svg{ - width: 28px; - height: 28px; -} - -#quick-oper-panel-scrollbar{ - min-width: 20px !important; - max-width: 40px !important; - width: 5% !important; - margin-left: 48% !important; - height: 3px !important; -} -/*********************************************************************************** -************************************************************************************ - 快捷操作面板 start -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 消息频道列表 start -************************************************************************************ -************************************************************************************/ -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel -.tl-rtc-app-left-panel-no-channel{ - text-align: center; - line-height: 100px; - font-size: 14px; - font-weight: bold; - color: var(--skin-channel-list-no-channel-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top{ - height: var(--left-channel-top); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header{ - display: flex; - padding: 15px 10px 15px 0px; - flex-direction: row; - justify-content: space-between; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-title{ - font-size: 16px; - font-weight: bold; - color: var(--skin-top-header-title-color); - margin-right: 10px; - margin-left: 10px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - width: 80%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool{ - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - transition: all 0.3s; - background: var(--skin-top-header-tool-background); - padding: 2px 5px; - border-radius: 4px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool svg{ - width: 14px; - height: 14px; - fill: var(--skin-top-header-tool-fill-color); - transition: all 0.3s; - scale: 1.5; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool:hover{ - box-shadow: var(--skin-top-header-tool-hover-shadow); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-header-tool:hover svg{ - fill: var(--skin-top-header-tool-hover-fill-color); - scale: 1.7; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search{ - padding: 5px 0; - line-height: 0px; - width: 96%; - margin-left: 2%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search i{ - position: relative; - margin-left: 8px; - top: 16px; - color: var(--skin-channel-top-search-i-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search svg{ - color: var(--skin-channel-top-search-i-color); - position: relative; - float: right; - right: 8px; - margin-top: -22px; - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-search input{ - width: 100%; - height: 30px; - padding-left: 30px !important; - border-radius: 4px; - background: var(--skin-channel-top-search-input-background); - color: var(--skin-channel-top-search-input-color); - font-size: 13px; - letter-spacing: 1px; - border-width: 0.5px; - border-color: var(--skin-channel-top-search-input-background); -} - -.tl-rtc-app-left-panel-channel-top-tag{ - padding: 7px 10px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list{ - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: flex-start; - align-items: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list span{ - background: var(--skin-body-background); - font-size: 12px; - border-radius: 4px; - color: var(--skin-channel-list-item-message-color); - cursor: pointer; - word-break: keep-all; - white-space: nowrap; - text-align: center; - letter-spacing: 1px; - line-height: 20px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list span:hover{ - background: var(--skin-channel-list-item-hover-background); - color: var(--skin-body-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-top-tag-list .tag-active{ - background: var(--skin-channel-list-item-hover-background); - color: var(--skin-body-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel{ - height: calc(100% - var(--left-channel-top)); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel #channelListSwiper{ - height: calc(100% - 3px); -} - -.tl-rtc-app-left-panel-channel-sub{ - height: 100%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item{ - display: flex; - align-items: center; - cursor: pointer; - border-radius: 2px; - transition: all 0.3s; -} - -.tl-rtc-app-left-panel-channel-item-actions{ - display: flex; - position: absolute; - right: 10px; - top: 50%; - transform: translateY(-50%); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item:hover{ - background: var(--skin-channel-list-item-hover-background); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-active{ - background: var(--skin-channel-list-item-hover-background); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-top{ - background: var(--skin-channel-list-item-top-background); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-img{ - width: 20%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-img img{ - height: 32px; - width: 32px; - margin: 25% 20%; - -webkit-user-drag: none; - border-radius: 3px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content{ - width: 55%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content div{ - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-nickname{ - font-weight: bold; - font-size: 13px; - margin-top: 5px; - letter-spacing: 0.5px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-nickname-black{ - font-size: 11px; - color: red; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-nickname-black svg{ - fill: red; - scale: 1.2; - padding: 0 1px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message{ - font-size: 12px; - margin-top: 10px; - color: var(--skin-channel-list-item-message-color); - letter-spacing: 0.5px; - display: flex; - flex-direction: row; - align-items: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message p{ - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message -.tl-rtc-app-right-channel-content-textarea-at-user-text{ - color: var(--skin-channel-list-item-message-at-user-text-color); - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message -.tl-rtc-app-left-panel-channel-item-content-message-at-me{ - color: var(--skin-channel-list-item-message-at-me-text-color); - cursor: pointer; - margin-right: 5px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message svg{ - height: 15px; - width: 14px; - margin-right: 3px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message -.tl-rtc-app-left-panel-channel-item-content-message-file{ - display: flex; - align-items: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message -.tl-rtc-app-left-panel-channel-item-content-message-file-info{ - margin-left: 5px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-content-message img{ - width: 24px !important; - height: 24px !important; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other{ - width: 25%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other div{ - text-align: right; - font-size: 12px; - scale: 0.9; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-time{ - margin-top: 10px; - color: var(--skin-channel-list-item-time-color); - padding-right: 8px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-unread{ - margin-top: 10px; - padding-right: 8px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-unread div{ - line-height: 16px !important; - padding: 0 4px; - border-radius: 4px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-other-unread .layui-badge{ - display: inline; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick{ - display: flex; - height: 100%; - flex-wrap: nowrap; - flex-direction: row; - justify-content: flex-start; - text-align: center; - align-items: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick div{ - font-size: 12px; - width: calc(100% / 5); - height: 100%; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: center; - align-items: center; - word-break: keep-all; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick -.tl-rtc-app-left-panel-channel-item-quick-mark-unread{ - background-color: var(--skin-channel-list-item-quick-mark-unread-background); - color: var(--skin-channel-list-item-quick-mark-unread-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick -.tl-rtc-app-left-panel-channel-item-quick-top{ - background-color: var(--skin-channel-list-item-quick-top-background); - color: var(--skin-channel-list-item-quick-top-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick -.tl-rtc-app-left-panel-channel-item-quick-delete{ - background-color: var(--skin-channel-list-item-quick-delete-background); - color: var(--skin-channel-list-item-quick-delete-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick -.tl-rtc-app-left-panel-channel-item-quick-un-notify{ - background-color: var(--skin-channel-list-item-quick-un-notify-background); - color: var(--skin-channel-list-item-quick-un-notify-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-channel-item-quick -.tl-rtc-app-left-panel-channel-item-quick-hidden{ - background-color: var(--skin-channel-list-item-quick-hidden-background); - color: var(--skin-channel-list-item-quick-hidden-color); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content{ - height: 100%; - border-radius: 10px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top{ - height: var(--right-channel-content-top); - display: flex; - align-items: center; - flex-direction: row; - justify-content: space-between; - border-bottom: 1px solid var(--skin-body-border-color); -} - -.tl-rtc-app-rc .tl-rtc-app-right .tl-rtc-app-right-channel-content-top{ - margin: 0 !important; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-nickname{ - font-weight: bold; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - margin-left: 10px; - letter-spacing: 0.5px; - max-width: calc(100% - 260px); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-edit-channel-name{ - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more{ - text-align: right; - margin-right: 10px; - max-width: 260px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more svg{ - padding-left: 15px; - cursor: pointer; - width: 20px; - height: 20px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-top-more svg:hover{ - fill: var(--skin-channel-content-top-more-fill-color); - /* 左右摇摆, 有渲染性能问题 */ - /* animation: tl-rtc-app-right-channel-content-top-more-svg-hover 0.6s; */ -} -/* -@keyframes tl-rtc-app-right-channel-content-top-more-svg-hover { - 0% { transform: rotate(-10deg); } - 50% { transform: rotate(10deg); } - 100% { transform: rotate(-10deg); } -} */ - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body{ - height: var(--right-channel-content-body); - overflow-y: auto; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item{ - padding: 0 10px; - display: block; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item:hover -.tl-rtc-app-right-channel-content-body-item-message-menu{ - opacity: 1; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-system{ - text-align: center; - font-size: 12px; - color: var(--skin-channel-content-body-message-system-color); - user-select: none; - padding: 5px 0; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-time{ - text-align: center; - font-size: 12px; - color: var(--skin-channel-content-body-message-time-color); - user-select: none; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-load-more{ - text-align: center; - font-size: 12px; - color: var(--skin-channel-content-body-message-load-more-color); - user-select: none; - padding: 5px 0; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-load-more:hover{ - color: var(--skin-channel-content-body-message-load-more-hover-color); - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-avatar{ - cursor: pointer; - user-select: none; - --webkit-user-select: none; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-avatar img{ - -webkit-user-drag: none; - width: 28px; - height: 28px; - border-radius: 3px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-avatar img:hover{ - /* 上下跳动动画 */ - animation: tl-rtc-app-right-channel-content-body-item-avatar-img-hover 0.6s; -} - -@keyframes tl-rtc-app-right-channel-content-body-item-avatar-img-hover { - 0% { transform: rotate(-10deg); } - 50% { transform: rotate(10deg); } - 100% { transform: rotate(-10deg); } -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info{ - display: flex; - flex-direction: row; - flex-wrap: nowrap; - align-items: flex-start; - justify-content: flex-start; - width: 50%; - word-break: break-all; - margin-top: 10px; - letter-spacing: 0.5px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-menu{ - padding: 10px 10px 0 0; - border-radius: 4px; - opacity: 0; - transition: opacity 0.2s; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-menu svg{ - padding: 2px 4px; - background: var(--skin-channel-content-body-message-menu-icon-background); - fill: var(--skin-channel-content-body-message-menu-icon-color); - cursor: pointer; - border-radius: 4px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-menu svg:hover{ - background: var(--skin-channel-content-body-message-menu-icon-hover-background); - fill: var(--skin-channel-content-body-message-menu-icon-hover-color); - animation: tl-rtc-app-right-channel-content-body-item-message-menu-icon-hover 0.3s; -} - -@keyframes tl-rtc-app-right-channel-content-body-item-message-menu-icon-hover { - 0% { transform: scale(1); } - 50% { transform: scale(1.2); } - 100% { transform: scale(1); } -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name{ - padding: 0 0 5px 0; - text-align: left; - font-size: 11px; - overflow: hidden; - font-weight: bold; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - max-width: 60px; - color: var(--skin-channel-content-body-message-name-color); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name:hover{ - color: var(--skin-channel-content-body-message-name-hover-color); - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name b{ - font-size: 12px; - color: var(--skin-channel-content-body-message-name-at-color); - opacity: 0; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-name:hover b{ - opacity: 1; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message{ - margin: 0px 10px 0 0px; - font-size: 13px; - background: var(--skin-channel-content-body-message-background); - padding: 7px; - border-radius: 4px; - color: var(--skin-channel-content-body-message-color); - cursor: text; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message -.tl-rtc-app-right-channel-content-textarea-at-user-text{ - color: var(--skin-channel-content-body-item-message-at-user-text-color); - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message-reply{ - padding: 10px; - color: var(--skin-channel-content-body-reply-content-block-color); - font-size: 12px; - margin: 5px 10px 0 0; - user-select: none; - display: flex; - border-top: .5px solid var(--skin-body-border-color); - flex-direction: row; - flex-wrap: nowrap; - justify-content: flex-start; - align-items: center; - background: var(--skin-channel-content-body-reply-content-block-background); - border-radius: 4px; - cursor: pointer; - position: relative; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info -.tl-rtc-app-right-channel-content-body-item-message-reply-triangle{ - width: 0; - height: 0; - border-top: 5px solid transparent; - border-bottom: 5px solid transparent; - border-right: 5px solid var(--skin-channel-content-body-reply-content-block-background); - top: -8px; - transform: rotate(90deg); - left: 10px; - position: absolute; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info-self -.tl-rtc-app-right-channel-content-body-item-message-reply-triangle{ - width: 0; - height: 0; - border-top: 5px solid transparent; - border-bottom: 5px solid transparent; - border-right: 5px solid var(--skin-channel-content-body-reply-content-block-background); - top: -8px; - transform: rotate(90deg); - right: 10px; - position: absolute; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block{ - padding: 10px; - color: var(--skin-channel-content-body-reply-content-block-color); - font-size: 12px; - user-select: none; - display: flex; - border-top: .5px solid var(--skin-body-border-color); - flex-direction: row; - flex-wrap: nowrap; - justify-content: flex-start; - align-items: center; - position: absolute; - bottom: calc(var(--right-channel-editor-height) - 1px); - background: var(--skin-body-background); - width: calc(100% - 20px); - box-shadow: 0px -10px 20px 0px rgba(0, 0, 0, .1); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block i{ - padding-right: 5px; - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block-content{ - border-radius: 3px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - margin-left: 5px; - width: calc(var(--right-channel-content-body) - 80px); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-reply-content-block-content p { - display: inline; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message img{ - width: 150px; - height: 150px; - border-radius: 3px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message -.tl-rtc-app-right-channel-content-body-item-message-file{ - display: flex; - align-items: center; - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message -.tl-rtc-app-right-channel-content-body-item-message-file-left{ - width: 20%; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message -.tl-rtc-app-right-channel-content-body-item-message-file-left svg{ - width: 100%; - height: 55px; - min-width: 32px; - min-height: 32px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message -.tl-rtc-app-right-channel-content-body-item-message-file-info{ - width: calc(80% - 10px); - margin-left: 5px; - display: flex; - flex-direction: column; - flex-wrap: nowrap; - justify-content: center; - align-items: flex-start; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-message -.tl-rtc-app-right-channel-content-body-item-message-file-download{ - position: relative; - width: 10%; - height: 16px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-body-item-info-self{ - display: flex; - flex-direction: row-reverse; - flex-wrap: nowrap; - align-items: flex-start; - width: 50%; - word-break: break-all; - margin-top: 10px; - margin-left: 50%; - justify-content: flex-start; - letter-spacing: 0.5px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-bottom{ - height: var(--right-channel-editor-height); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-bottom img{ - width: 30px; - border-radius: 3px; -} - -.tl-rtc-app-right-channel-content-bottom-btn{ - position: absolute; - right: 10px; - bottom: 10px; - display: flex; - flex-direction: row; - flex-wrap: nowrap; - align-items: flex-end; - user-select: none; -} - -.tl-rtc-app-right-channel-content-bottom-tips{ - font-size: 12px; - margin-right: 10px; - color: #c3b4b4; -} - -.tl-rtc-app-right-channel-content-bottom-resize-handle{ - width: 100%; - height: 1px; - cursor: row-resize; - position: absolute; - background-color: var(--skin-body-border-color); -} -/*********************************************************************************** -************************************************************************************ - 消息频道列表 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 频道更多列表 start -************************************************************************************ -************************************************************************************/ -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more{ - position: absolute; - right: -300px; - height: calc(100% - var(--right-channel-content-top)); - width: 260px; - top: var(--right-channel-content-top); - background: var(--skin-channel-content-more-background); - border-top: 1px solid var(--skin-body-border-color); - border-bottom-left-radius: 6px; - border-top-left-radius: 6px; - transition: right 0.3s; - box-shadow: var(--skin-channel-content-more-shadow); - user-select: none; - --webkit-user-select: none; - z-index: 1001; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list{ - text-align: center; - margin-top: 10px; - padding: 0 20px 0px 20px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item{ - line-height: 45px; - margin-bottom: 5px; - border-radius: 4px; - cursor: pointer; - text-align: left; - display: flex; - flex-wrap: nowrap; - align-items: center; - justify-content: space-between; - border-bottom: 1px solid var(--skin-channel-content-more-list-item-border-color); - border-bottom-right-radius: 0px; - border-bottom-left-radius: 0px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item:hover{ - color: var(--skin-channel-content-more-list-item-hover-color); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-title{ - font-size: 13px; - font-weight: bold; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-title svg{ - width: 14px; - height: 14px; - margin-left: 3px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-oper{ - display: flex; - flex-direction: row; - justify-content: space-between; - flex-wrap: nowrap; - align-items: center; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-oper svg{ - margin-left: 5px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-item-oper-channel-name{ - color: var(--skin-channel-content-more-list-item-oper-channel-name-color); - font-size: 12px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - max-width: 100px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-list{ - line-height: 30px; - border-radius: 4px; - cursor: pointer; - padding-bottom: 5px; - text-align: center; - border-bottom: 1px solid var(--skin-channel-content-more-list-item-border-color); - border-bottom-right-radius: 0px; - border-bottom-left-radius: 0px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper{ - padding: 10px 0 0; - border-radius: 4px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper:hover{ - background: var(--skin-channel-content-more-list-user-item-oper-hover-background); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper svg{ - scale: 1.9; - margin-top: 11px; - fill: var(--skin-channel-content-more-list-user-item-oper-hover-fill-color); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-oper svg:hover{ - animation: rotate 0.3s; -} - -@keyframes rotate { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-title{ - font-size: 13px; - font-weight: bold; - margin-bottom: 10px; - padding-bottom: 5px; - width: 100%; - text-align: left; - border-bottom: 1px solid var(--skin-channel-content-more-list-item-border-color); - border-bottom-right-radius: 0px; - border-bottom-left-radius: 0px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-username{ - font-size: 12px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-channel-content-more-list-user-item-avatar{ - width: 32px; - height: 32px; - border-radius: 3px; -} - -#group-more-swiper-scrollbar{ - min-width: 20px !important; - max-width: 40px !important; - width: 5% !important; - margin-left: 50% !important; - height: 3px !important; -} - -.tl-rtc-app-layer-channel-share{ - background: var(--skin-body-background) !important; - color: var(--skin-body-color) !important; -} - - -.tl-rtc-app-layer-channel-share .layui-layer-title{ - color: var(--skin-body-color) !important; - border-color: var(--skin-body-border-color) !important; - border-radius: 6px; -} - -.tl-rtc-app-layer-channel-share #tl-rtc-app-channel-share-image{ - text-align: center; - user-select: none; -} - -.tl-rtc-app-layer-channel-share #tl-rtc-app-channel-share-image img{ - width: 70%; - height: 70%; - margin-left: 15%; - margin-top: 7%; - -webkit-user-drag: none; -} - -.tl-rtc-app-layer-channel-share .tl-rtc-app-channel-share-tools{ - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - margin-top: 8%; -} - -.tl-rtc-app-layer-channel-share .tl-rtc-app-channel-share-tools-item{ - padding: 5px 10px; - border-radius: 4px; - cursor: pointer; - transition: all 0.2s; - margin: 0 10px; - border: 1px solid var(--skin-body-border-color); -} - -/*********************************************************************************** -************************************************************************************ - 频道更多列表 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 频道邀请好友列表 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-layer-channel-invite{ - background: var(--skin-body-background) !important; - color: var(--skin-body-color) !important; -} - -.tl-rtc-app-layer-channel-invite .layui-layer-title { - color: var(--skin-body-color) !important; - border-bottom: 1px solid var(--skin-body-border-color) !important; - border-radius: 6px; -} - -.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header{ - display: flex; - width: 100%; - flex-direction: row; - flex-wrap: nowrap; - justify-content: space-between; - align-items: center; -} - -.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-search{ - padding: 0px 15px 5px 15px; - width: calc(50% - 30px); -} - -.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-search i{ - position: relative; - margin-left: 8px; - top: 25px; - color: var(--skin-channel-content-invite-search-i-color); -} - -.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-search input{ - width: 100%; - height: 30px; - padding-left: 30px !important; - border-radius: 4px; - background: var(--skin-channel-content-invite-search-input-background); - color: var(--skin-channel-content-invite-search-input-color); - font-size: 13px; - letter-spacing: 1px; - border-width: 0.5px; - border-color: var(--skin-channel-content-invite-search-input-background); -} - -.tl-rtc-app-right-channel-content-invite-body{ - display: flex; - flex-direction: row; - height: 100%; -} - -.tl-rtc-app-right-channel-content-invite .tl-rtc-app-right-channel-content-invite-header-title{ - padding: 15px 15px 5px 15px; - width: calc(50% - 30px); - font-size: 13px; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list{ - width: 50%; - border-right: 1px solid var(--skin-body-border-color); - user-select: none; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list-item{ - display: flex; - width: auto; - flex-direction: row; - justify-content: flex-start; - align-items: center; - flex-wrap: nowrap; - line-height: 40px; - padding:0 25px 0 25px; - cursor: pointer; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list-item img{ - width: 28px; - height: 28px; - margin-right: 10px; - border-radius: 3px; - margin-left: 5px; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-source-list-item:hover{ - background: var(--skin-channel-list-item-hover-background); -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-list-item-username{ - font-size: 13px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - max-width: 150px; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list{ - width: 50%; - user-select: none; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-empty{ - text-align: center; - line-height: 80px; - color: var(--skin-body-color); - font-size: 12px; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item{ - display: flex; - width: auto; - flex-direction: row; - justify-content: flex-start; - align-items: center; - flex-wrap: nowrap; - padding:0 25px 0 25px; - cursor: pointer; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item img{ - width: 28px; - height: 28px; - margin-right: 10px; - margin-left: 5px; - border-radius: 3px; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item svg{ - position: absolute; - right: 20px; - color: grey; -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-list-item:hover{ - background: var(--skin-channel-content-invite-choose-list-item-hover-background); -} - -.tl-rtc-app-right-channel-content-invite-body .tl-rtc-app-right-channel-content-invite-choose-item-username{ - font-size: 13px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} - - -/********** 移动端样式 ***********/ -.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header{ - display: flex; - width: 100%; - flex-direction: row; - flex-wrap: nowrap; - justify-content: space-between; - align-items: center; -} - -.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header-search{ - padding: 0px 15px 5px 15px; - width: calc(100% - 30px); -} - -.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header-search i{ - position: relative; - margin-left: 8px; - top: 25px; - color: var(--skin-channel-content-invite-search-i-color); -} - -.tl-rtc-app-right-channel-content-invite-mobile .tl-rtc-app-right-channel-content-invite-header-search input{ - width: 100%; - height: 30px; - padding-left: 30px !important; - border-radius: 4px; - background: var(--skin-channel-content-invite-search-input-background); - color: var(--skin-channel-content-invite-search-input-color); - border-color: var(--skin-channel-content-invite-search-input-background); - font-size: 13px; - letter-spacing: 1px; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile{ - display: flex; - flex-direction: column-reverse; - height: 100%; - flex-wrap: wrap; - justify-content: center; - align-items: center; - align-content: center; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list{ - width: 100%; - border-right: 1px solid var(--skin-body-border-color); - border-top: 1px solid var(--skin-body-border-color) !important; - user-select: none; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list-item{ - display: flex; - width: auto; - flex-direction: row; - justify-content: flex-start; - align-items: center; - flex-wrap: nowrap; - line-height: 40px; - padding:0 25px 0 25px; - cursor: pointer; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list-item img{ - width: 28px; - height: 28px; - margin-right: 10px; - border-radius: 3px; - margin-left: 5px; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-source-list-item:hover{ - background: var(--skin-channel-content-invite-choose-list-item-hover-background); -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-list-item-username{ - font-size: 13px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - max-width: 150px; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list{ - user-select: none; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-empty{ - text-align: center; - line-height: 80px; - color: var(--skin-channel-content-invite-choose-list-empty-color); - font-weight: bold; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item{ - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - cursor: pointer; - flex-wrap: wrap; - align-content: center; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item img{ - width: 28px; - height: 28px; - margin-right: 10px; - margin-left: 5px; - border-radius: 3px; - margin-bottom: 5px; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item svg{ - position: absolute; - right: 14px; - color: grey; - top: 10px; -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-list-item:hover{ - background: var(--skin-channel-content-invite-choose-list-item-hover-background); -} - -.tl-rtc-app-right-channel-content-invite-body-mobile .tl-rtc-app-right-channel-content-invite-choose-item-username{ - font-size: 13px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} -/*********************************************************************************** -************************************************************************************ - 频道邀请好友列表 end -************************************************************************************ -************************************************************************************/ - - - - -/*********************************************************************************** -************************************************************************************ - 联系人列表 start -************************************************************************************ -************************************************************************************/ -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top{ - height: var(--left-contact-top); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header{ - display: flex; - padding: 15px 10px 15px 0px; - flex-direction: row; - justify-content: space-between; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-block{ - display: flex; - align-items: flex-end; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-title{ - font-size: 16px; - font-weight: bold; - color: var(--skin-top-header-title-color); - margin-right: 10px; - margin-left: 20px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - width: 70%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool{ - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - transition: all 0.3s; - background: var(--skin-top-header-tool-background); - padding: 2px 5px; - border-radius: 4px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool:hover{ - box-shadow: var(--skin-contact-header-tool-hover-shadow); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool svg{ - width: 14px; - height: 14px; - fill: var(--skin-contact-header-tool-svg-fill-color); - transition: all 0.3s; - scale: 1.5; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-header-tool:hover svg{ - fill: var(--skin-contact-header-tool-svg-hover-fill-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search{ - padding: 5px 0; - line-height: 0px; - width: 96%; - margin-left: 2%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search i{ - position: relative; - margin-left: 8px; - top: 16px; - color: var(--skin-contact-top-search-i-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search svg{ - color: var(--skin-contact-top-search-i-color); - position: relative; - float: right; - right: 8px; - margin-top: -22px; - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-top-search input{ - width: 100%; - height: 30px; - padding-left: 30px !important; - border-radius: 4px; - background: var(--skin-contact-top-search-input-background); - color: var(--skin-contact-top-search-input-color); - font-size: 13px; - letter-spacing: 1px; - border-width: 0.5px; - border-color: var(--skin-contact-top-search-input-background); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact{ - height: calc(100% - var(--left-contact-top) - 5px); - overflow-y: auto; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item{ - border-bottom: 1px solid var(--skin-body-border-color); - display: flex; - justify-content: flex-start; - align-items: center; - padding: 4px 0; - cursor: pointer; - border-radius: 2px; - transition: all 0.1s; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item:hover{ - background: var(--skin-contact-list-item-hover-background); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-img{ - width: 20%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-img img{ - height: 32px; - width: 32px; - margin: 20%; - -webkit-user-drag: none; - border-radius: 3px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content{ - width: 50%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content div{ - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content-nickname{ - font-weight: bold; - font-size: 13px; - letter-spacing: 0.5px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content-state{ - font-size: 11px; - color: var(--skin-contact-content-item-message-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-content-message{ - font-size: 12px; - margin-top: 10px; - color: var(--skin-contact-content-item-message-color); - letter-spacing: 0.5px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other{ - width: 30%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other div{ - text-align: right; - font-size: 12px; - scale: 0.9; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other-status{ - margin-top: 10px; - color: var(--skin-contact-content-item-other-status-color); - padding-right: 8px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other-unread{ - padding-right: 8px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-contact-item-other-unread div{ - border-radius: 50%; - width: 10px; - height: 10px; - padding: 0; - font-size: 7px; - transition: right 0.3s; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content{ - padding: 5px 10px; - transition: padding 0.3s; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content .goBack{ - top: 17px; - left: 15px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info{ - display: flex; - flex-direction: row; - padding: 30px 20px; - border-bottom: solid 1px var(--skin-body-border-color); - flex-wrap: nowrap; - justify-content: flex-start; - align-items: center; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other{ - padding: 0px 20px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item{ - padding: 20px 0px; - border-bottom: solid 1px var(--skin-body-border-color); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item-value{ - margin-left: 5px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-type{ - position: absolute; - right: 40px; - font-size: 12px; - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-type svg{ - width: 18px; - height: 18px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-type svg:hover{ - fill: var(--skin-contact-content-other-item-badge-background); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-other-item-value-badge{ - background-color: var(--skin-contact-content-other-item-badge-background) !important; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-avatar{ - margin-right: 20px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-avatar img{ - width: 60px; - height: 60px; - user-select: none; - -webkit-user-drag: none; - border-radius: 3px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-more-item{ - margin-bottom: 10px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-info-more-item b{ - font-size: 18px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool-btn{ - text-align: center; - padding: 25px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool-btn button{ - font-size: 12px; - border-radius: 4px; - width: 100px; - letter-spacing: 1px; - background-color: var(--skin-contact-content-apply-button-background); - color: var(--skin-contact-content-apply-button-color); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool{ - display: flex; - justify-content: space-around; - align-items: center; - flex-direction: row; - text-align: center; - padding: 30px 20px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool -.tl-rtc-app-right-contact-content-tool-item{ - padding: 5px 10px; - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool -.tl-rtc-app-right-contact-content-tool-item svg{ - width: 18px; - height: 18px; - padding: 5px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-tool-item:hover{ - color: var(--skin-contact-content-tool-item-hover-background); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-top{ - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: space-between; - align-items: center; - border-bottom: 1px solid var(--skin-body-border-color); - padding-bottom: 10px; - height: 30px; - margin-left: 15px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-contact-content-top-title{ - font-size: 15px; - font-weight: bold; - user-select: none; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} - -.tl-rtc-app-right-contact-content-friend{ - height: 100%; - padding: 5px 0; - width: 100%; -} - -.tl-rtc-app-right-contact-content-apply{ - height: 100%; - padding: 5px 0; - width: 100%; -} - -.tl-rtc-app-right-contact-content-search{ - height: 100%; - padding: 5px 0; - width: 100%; -} - -.tl-rtc-app-right-contact-content-group{ - height: 100%; - padding: 5px 0; - width: 100%; -} -/*********************************************************************************** -************************************************************************************ - 联系人列表 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 登陆界面 start -************************************************************************************ -************************************************************************************/ -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login{ - height: 100%; - text-align: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header{ - line-height: var(--left-login-top); - padding: 10px; - border-bottom: 1px solid var(--skin-body-border-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header-title{ - font-size: 16px; - font-weight: bold; - color: var(--skin-top-header-title-color); - margin-left: 10px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - text-align: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item{ - height: 50px; - border-bottom: 1px solid var(--skin-body-border-color); - display: flex; - padding: 4px 0; - cursor: pointer; - flex-direction: row; - justify-content: center; - flex-wrap: wrap; - align-content: center; - align-items: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item:hover{ - color: var(--skin-login-list-item-hover-color); - background-color: var(--skin-login-list-item-hover-background); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-name{ - margin-left: 10px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon svg{ - width: 20px; - height: 20px; - transition: all 0.2s; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content{ - height: 100%; - border-radius: 10px; - text-align: center; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body{ - padding: 30px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-header{ - height: 50px; - font-size: 22px; - font-weight: bold; - font-family: serif; - margin-top: 100px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form{ - padding: 20px 100px 20px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form img{ - width: 60%; - border-radius: 50%; - -webkit-user-drag: none; - border-radius: 3px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item{ - padding: 10px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item input{ - border-radius: 4px; - padding: 0 15px; - color: var(--skin-login-content-form-input-color); - letter-spacing: 1px; - font-weight: bold; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item button{ - width: 100%; - font-size: 11px; - background-color: var(--skin-login-button-background); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-form-item button b{ - letter-spacing: 3px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-bottom{ - display: flex; - flex-direction: row; - justify-content: space-around; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-bottom div{ - color: var(--skin-login-content-body-bottom-color); - cursor: pointer; - transition: all 0.2s; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-bottom div:hover{ - color: var(--skin-login-content-body-bottom-hover-color); - font-weight: bold; -} - -.tl-rtc-app-get-email-code-btn{ - border: unset !important; - width: 30% !important; - border-top-left-radius: 0 !important; - border-bottom-left-radius: 0 !important; - color: var(--skin-login-email-code-btn-color) !important; -} - -.tl-rtc-app-get-email-code-btn-disabled{ - background-color: var(--skin-login-email-code-btn-disabled-background) !important; - color: var(--skin-login-email-code-btn-color) !important; -} - -#tl-rtc-app .tl-rtc-app-right #tl-rtc-app-right-login-content-body-scan-qrcode{ - text-align: center; - display: flex; - flex-direction: row; - align-content: center; - flex-wrap: wrap; - justify-content: center; - align-items: center; - margin-top: 45px; -} - -#tl-rtc-app .tl-rtc-app-right #tl-rtc-app-right-login-content-body-scan-qrcode img{ - width: 150px; - height: 150px; - user-select: none; - --webkit-user-drag: none; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-title { - display: flex; - flex-direction: row; - flex-wrap: wrap; - align-content: center; - justify-content: center; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-title div{ - margin-top: 30px; - color: var(--skin-login-content-body-scan-title-color); - font-size: 11px; - font-weight: bold; - border: 1px solid var(--skin-body-border-color); - width: 100px; - padding: 6px; - background: var(--skin-login-content-body-scan-title-background); -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container { - display: flex; - justify-content: center; - gap: 10px; - padding: 30px 0; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container-item { - width: 35px; - height: 40px; - font-size: 24px; - text-align: center; - border: aliceblue; - border-radius: 5px; - outline: none; - transition: border-color 0.3s; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container-item:disabled { - background-color: var(--skin-login-content-body-scan-code-item-disabled-background); - cursor: not-allowed; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-login-content-body-scan-code-container-item:focus { - border-color: var(--skin-login-content-body-scan-code-item-focus-background); -} - -/*********************************************************************************** -************************************************************************************ - 登录界面 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 登录界面-移动端 start -************************************************************************************ -************************************************************************************/ -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header-mobile{ - line-height: var(--left-login-top); - padding: 30px 0 30px; - border-bottom: 1px solid var(--skin-body-border-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-top-header-title-mobile{ - font-size: 20px; - font-weight: bold; - color: var(--skin-top-header-title-color); - margin-left: 10px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - text-align: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-footer-mobile{ - position: absolute; - bottom: 0px; - width: 100%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-help-mobile{ - text-align: center; - font-size: 12px; - color: var(--skin-login-help-mobile-color); - padding: 15px 0; - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-help-mobile:hover{ - color: var(--skin-login-help-mobile-hover-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-mobile{ - border-bottom: 1px solid var(--skin-body-border-color); - display: flex; - padding: 10px 30px; - cursor: pointer; - border-radius: 4px; - flex-direction: row; - justify-content: space-evenly; - flex-wrap: wrap; - align-content: center; - align-items: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-mobile{ - padding: 30px 0; - text-align: center; - transition: all 0.3s; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-mobile{ - padding: 20px; - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-list-mobile{ - display: flex; - justify-content: center; - transition: all 1s; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-mobile .layui-badge-dot{ - width: 50px; - height: 23px; - line-height: 23px; - font-size: 10px; - border-radius: 4px; - margin-top: 10px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-avatar-mobile img{ - width: 45px; - height: 45px; - border-radius: 50%; -} - -.tl-rtc-app-left-panel-login-body-username{ - padding: 10px 0 0; - font-size: 14px; - font-weight: bold; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-btns{ - padding: 45px 0; - width: 70%; - margin-left: 15%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-btns button{ - width: 100%; - font-size: 11px; - background-color: var(--skin-login-button-background); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-btns button b{ - letter-spacing: 3px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-clean{ - margin: 35px 0; - font-size: 12px; - cursor: pointer; - transition: all 0.2s; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-clean:hover{ - color: var(--skin-login-body-clean-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-name-mobile{ - margin-left: 10px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon-mobile{ - border-radius: 50%; - padding: 10px; - border: 0.5px solid var(--skin-body-border-color); - transition: all 0.2s; - margin: 6px 8px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon-mobile:hover{ - background: var(--skin-login-item-mobile-icon-background); - color: var(--skin-login-body-clean-hover-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-item-icon-mobile svg{ - width: 20px; - height: 20px; - transition: all 0.2s; -} - -#tl-rtc-app .tl-rtc-app-left #tl-rtc-app-left-panel-login-body-scan-mobile{ - text-align: center; - display: flex; - flex-direction: row; - align-content: center; - flex-wrap: wrap; - justify-content: center; - align-items: center; - margin-top: 10px; -} - -#tl-rtc-app .tl-rtc-app-left #tl-rtc-app-left-panel-login-body-scan-mobile img{ - width: 150px; - height: 150px; - user-select: none; - -webkit-user-drag: none; - -webkit-user-select: none; - -moz-user-select: none; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-code-mobile{ - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: center; - padding: 30px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-code-mobile input{ - width: 140px; - font-size: 18px; - letter-spacing: 10px; - font-weight: bold; - padding-left: 15px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-title-mobile{ - display: flex; - flex-direction: row; - flex-wrap: wrap; - align-content: center; - justify-content: center; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-title-mobile div{ - margin-top: 20px; - color: var(--skin-login-content-body-scan-title-color); - font-size: 11px; - font-weight: bold; - border: 1px solid var(--skin-body-border-color); - width: 100px; - padding: 6px; - background: var(--skin-login-content-body-scan-title-background); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container { - display: flex; - justify-content: center; - gap: 10px; - padding: 20px 0; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container-item { - width: 35px; - height: 40px; - font-size: 24px; - text-align: center; - border: aliceblue; - border-radius: 5px; - outline: none; - transition: border-color 0.3s; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container-item:disabled { - background-color: var(--skin-login-content-body-scan-code-item-disabled-background); - cursor: not-allowed; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-login-body-scan-code-container-item:focus { - border-color: var(--skin-login-content-body-scan-code-item-focus-border-color); -} -/*********************************************************************************** -************************************************************************************ - 登录界面-移动端 end -************************************************************************************ -************************************************************************************/ - - -/*********************************************************************************** -************************************************************************************ - 遮罩层 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-right-shade-content-body{ - background: #2e2e2e91; - opacity: 0; -} - -.tl-rtc-app-right-channel-file-shade-content-body{ - height: 100%; - width: 100%; - position: absolute; - top: 0; - z-index: 10001; - opacity: 1; - text-align: center; - font-size: 20px; - font-weight: bold; - color: white; -} - -.tl-rtc-app-right-channel-more-shade-content-body{ - height: 100%; - width: 100%; - position: absolute; - top:0; - z-index: 4; - opacity: 1; - transition: opacity 0.3s; -} - -.tl-rtc-app-right-dropdow-shade-content-body{ - height: 100%; - width: 100%; - position: absolute; - top: 0; - z-index: 4; - opacity: 0; - transition: opacity 0.3s; -} - -.tl-rtc-app-right-blank-content-body{ - display: flex; - flex-wrap: nowrap; - flex-direction: row; - height: 100%; - justify-content: center; - align-items: center; -} - -.tl-rtc-app-right-blank-content-body-tips{ - font-size: 28px; - font-weight: bold; - color: #0000000d; - user-select: none; - margin-top: -50px; -} -/*********************************************************************************** -************************************************************************************ - 遮罩层 end -************************************************************************************ -************************************************************************************/ - - -/*********************************************************************************** -************************************************************************************ - macos样式弹窗 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-notification-container{ - position: fixed; - top: 10px; - z-index: 9999; - display: flex; - flex-direction: column; - transition: right .45s; -} - -.tl-rtc-app-notification { - background-color: #fff; - box-shadow: 0 20px 32px -8px rgba(9,30,66,0.25), 0 0 1px rgba(9,30,66,0.31); - transition: opacity .45s; - border-radius: 10px; - padding: 16px; - margin: 10px; - height: 32px; - width: 240px; - display: inline-flex; - flex-direction: initial; - align-items: center; - opacity: 0; -} - -.tl-rtc-app-notification-content{ - color: #000000b0; - margin-left: 10px; - word-break: break-all; -} - -.tl-rtc-app-notification-icon{ - margin-left: -20px; -} - -.tl-rtc-app-notification-icon i{ - font-size: 22px; - color: #77b7e8; -} - -.tl-rtc-app-notification-title{ - font-weight: bold; -} - -.tl-rtc-app-notification-close{ - position: relative; - top: -34px; - left: -23px; - line-height: 12px; - background: white; - border-radius: 50%; - padding: 3px; - box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); -} - -.tl-rtc-app-notification-close i{ - font-size: 12px; -} - -.tl-rtc-app-notification-content-msg{ - font-size: 12px; - height: 18px; - margin-top: 5px; - width: 230px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} -/*********************************************************************************** -************************************************************************************ - macos样式弹窗 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 设置中心 - 设置列表 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-setting-list{ - height: auto; - overflow-y: auto; -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header{ - display: flex; - padding: 15px 10px 15px 0px; - flex-direction: row; - justify-content: space-between; -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-block{ - display: flex; - align-items: flex-end; -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-title{ - font-size: 16px; - font-weight: bold; - color: var(--skin-top-header-title-color); - margin-right: 10px; - margin-left: 20px; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; - width: 70%; -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-tool{ - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - transition: all 0.3s; - background: var(--skin-top-header-tool-background); - padding: 2px 5px; - border-radius: 4px; -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-tool svg{ - width: 14px; - height: 14px; - fill: var(--skin-top-header-tool-fill-color); - transition: all 0.3s; - scale: 1.5; -} - -.tl-rtc-app-setting-list.tl-rtc-app-left-panel-setting-top-header-tool:hover{ - box-shadow: var(--skin-top-header-tool-hover-shadow); -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-header-tool:hover svg{ - fill: var(--skin-top-header-tool-hover-fill-color); -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-top-search{ - padding: 5px 0; - line-height: 0px; - width: 96%; - margin-left: 2%; -} - -.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item{ - line-height: 50px; - text-align: center; - cursor: pointer; - transition: all 0.2s; - display: flex; - flex-direction: row; - align-items: center; - flex-wrap: nowrap; - padding: 0px 20px 0 30px; - justify-content: space-between; -} -.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item:hover{ - background-color: var(--skin-setting-list-item-hover-background); -} - -.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item-active{ - background-color: var(--skin-setting-list-item-active-background); -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-item-icon{ - margin-right: 20px; - line-height: 40px; - margin-top: 4px; -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-item-icon svg{ - width: 18px; - height: 18px; - transition: all 0.3s; -} - -.tl-rtc-app-setting-list .tl-rtc-app-setting-list-item:hover -.tl-rtc-app-left-panel-setting-item-icon svg{ - scale: 1.5; -} - -.tl-rtc-app-setting-list .tl-rtc-app-left-panel-setting-item-name{ - font-size: 14px; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search{ - padding: 5px 0 10px 0; - line-height: 0px; - width: 96%; - margin-left: 2%; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search i{ - position: relative; - margin-left: 8px; - top: 16px; - z-index: 1; - color: var(--skin-setting-top-search-i-color); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search svg{ - color: var(--skin-setting-top-search-i-color); - position: relative; - float: right; - right: 8px; - margin-top: -22px; - cursor: pointer; -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-top-search input{ - width: 100%; - height: 30px; - padding-left: 30px !important; - border-radius: 4px; - background: var(--skin-setting-top-search-input-background); - color: var(--skin-setting-top-search-input-color); - font-size: 13px; - letter-spacing: 1px; - border-width: 0.5px; - border-color: var(--skin-setting-top-search-input-background); -} - -#tl-rtc-app .tl-rtc-app-left .tl-rtc-app-left-panel-setting-item-body{ - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: center; - align-items: center; -} - -/*********************************************************************************** -************************************************************************************ - 设置中心 - 设置列表 end -************************************************************************************ -************************************************************************************/ - - -/*********************************************************************************** -************************************************************************************ - 设置中心 - 帐号设置 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-right-setting-content-account{ - overflow-y: auto; - height: calc(100% - 55px); - -} - -.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block{ - padding: 10px; - -} - -.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-title{ - font-size: 13px; - font-weight: bold; - user-select: none; - padding-left: 10px; -} - -.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content{ - padding: 10px; - background: var(--skin-setting-content-block-background); - border-radius: 4px; - margin-top: 10px; -} - -.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content -.tl-rtc-app-right-setting-content-account-block-item{ - - - - display: flex; - flex-wrap: nowrap; - flex-direction: row; - justify-content: space-between; - align-items: center; - padding: 10px 5px; - border-bottom: 1px solid var(--skin-body-border-color); - line-height: 25px; -} - -.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content -.tl-rtc-app-right-setting-content-account-block-item:last-child{ - border-bottom: 0px; - - - - -} - -.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-content -.tl-rtc-app-right-setting-content-account-block-item-title{ - user-select: none; -} - -.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-item-oper{ - text-align: right; -} - -.tl-rtc-app-right-setting-content-account .tl-rtc-app-right-setting-content-account-block-item-oper input{ - height: 33px; - border-radius: 4px; - font-size: 12px; -} - -.tl-rtc-app-right-setting-content-account-block-item-go-bind-mobile{ - cursor: pointer; - color: var(--skin-body-color); -} - -.tl-rtc-app-right-setting-content-account-block-item-go-bind-mobile:hover{ - color: var(--skin-setting-content-bind-icon-hover-color); -} - -.tl-rtc-app-right-setting-content-account-block-item-go-bind-email{ - cursor: pointer; - color: var(--skin-body-color); -} - -.tl-rtc-app-right-setting-content-account-block-item-go-bind-email:hover{ - color: var(--skin-setting-content-bind-icon-hover-color); -} - -.tl-rtc-app-right-setting-content-account-block-item-go-bind-wx{ - cursor: pointer; - color: var(--skin-body-color); -} - -.tl-rtc-app-right-setting-content-account-block-item-go-bind-wx:hover{ - color: var(--skin-setting-content-bind-icon-hover-color); -} - -.tl-rtc-app-right-setting-content-account-block-item-go-bind-tips{ - fill: var(--skin-setting-content-bind-icon-tip-fill-color) !important; -} - -.tl-rtc-app-right-setting-content-account-block-item-avatar{ - width: 50px; - height: 50px; - border-radius: 50%; - -webkit-user-drag: none; -} - -.tl-rtc-app-right-setting-content-account-block-item-avatar img{ - width: 100%; - height: 100%; - border-radius: 8px; - -webkit-user-drag: none; - cursor: pointer; - transition: all 0.2s; -} - -.tl-rtc-app-right-setting-content-account-block-item-avatar img:hover{ - opacity: 0.5; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-setting-content-top{ - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: space-between; - align-items: center; - border-bottom: 1px solid var(--skin-body-border-color); - padding-bottom: 10px; - height: 30px; - margin-left: 15px; -} - -#tl-rtc-app .tl-rtc-app-right .tl-rtc-app-right-setting-content-top-title{ - font-size: 15px; - font-weight: bold; - user-select: none; - width: 40%; - overflow: hidden; - text-overflow: ellipsis; - word-break: break-all; - white-space: nowrap; -} - -.tl-rtc-app-right-contact-setting-account{ - height: 100%; - padding: 5px 0; - width: 100%; -} - -.tl-rtc-app-right-setting-content-account-bind-email{ - padding: 20px; -} - -.tl-rtc-app-right-setting-content-account-bind-email-item{ - padding: 10px; -} - -.tl-rtc-app-right-setting-content-account-bind-email-item-oper{ - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: flex-start; - align-items: center; -} - -.tl-rtc-app-right-setting-content-account-bind-email-item-oper button{ - height: 38px; - line-height: 38px; - border-top-left-radius: unset; - border-bottom-left-radius: unset; - border: unset !important; - background-color: var(--skin-setting-content-account-bind-email-btn-background); - color: var(--skin-setting-content-account-bind-email-btn-color); -} - -.tl-rtc-app-right-setting-content-account-bind-email-item-oper #bindEmail, -.tl-rtc-app-right-setting-content-account-bind-email-item-oper #bindEmailCode{ - border-radius: 4px; - padding: 0 15px; - color: var(--skin-setting-content-account-bind-email-input-color); - background-color: var(--skin-setting-content-account-bind-email-input-background); - letter-spacing: 1px; - font-size: 13px; - border-color: var(--skin-setting-content-account-bind-email-input-background); -} - -.tl-rtc-app-right-setting-content-account-bind-email-item-oper #bindEmailCode{ - border-top-right-radius: 0px; - border-bottom-right-radius: 0px; - border-right: unset; -} - -.tl-rtc-app-right-setting-content-account-bind-email-item-oper-disabled{ - background-color: var(--skin-setting-content-account-bind-email-btn-disabled-background) !important; - color: var(--skin-setting-content-account-bind-email-btn-disabled-color) !important; -} -/*********************************************************************************** -************************************************************************************ - 设置中心 - 帐号设置 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 设置中心 - 通用设置 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-right-setting-content{ - height: 100%; - padding: 5px 10px; -} - -.tl-rtc-app-right-setting-content-normal{ - overflow-y: auto; - height: calc(100% - 55px); -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block{ - padding: 10px; -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-title{ - font-size: 13px; - font-weight: bold; - user-select: none; - padding-left: 10px; -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content{ - padding: 10px; - background: var(--skin-setting-content-block-background); - border-radius: 4px; - margin-top: 10px; -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content -.tl-rtc-app-right-setting-content-normal-block-item{ - display: flex; - flex-wrap: nowrap; - flex-direction: row; - justify-content: space-between; - align-items: center; - padding: 10px 5px; - border-bottom: 1px solid var(--skin-body-border-color); - line-height: 25px; -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-content -.tl-rtc-app-right-setting-content-normal-block-item-title{ - width: 40%; - user-select: none; -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper{ - width: 60%; - text-align: right; -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper input{ - height: 33px; - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; - font-size: 12px; -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper -.layui-badge{ - height: 20px; - line-height: 20px; - cursor: pointer; - padding: 0 15px; - transition: all 0.2s; - background-color: var(--skin-setting-content-block-badge-background); - color: var(--skin-setting-content-block-badge-color); -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper -.layui-badge-active{ - background-color: var(--skin-setting-content-block-badge-hover-background) !important; - color: var(--skin-setting-content-block-badge-hover-color); -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper -.layui-badge:hover{ - background-color: var(--skin-setting-content-block-badge-hover-background) !important; - color: var(--skin-setting-content-block-badge-hover-color); -} - -.tl-rtc-app-right-setting-content-normal .tl-rtc-app-right-setting-content-normal-block-item-oper -button{ - height: 33px; -} -/*********************************************************************************** -************************************************************************************ - 设置中心 - 通用设置 end -************************************************************************************ -************************************************************************************/ - - - -/*********************************************************************************** -************************************************************************************ - 设置中心 - 其他设置 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-right-setting-content-other{ - overflow-y: auto; - height: calc(100% - 55px); -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block{ - padding: 10px; -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-title{ - font-size: 13px; - font-weight: bold; - user-select: none; - padding-left: 10px; -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content{ - padding: 10px; - background: var(--skin-setting-content-block-background); - border-radius: 4px; - margin-top: 10px; -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content -.tl-rtc-app-right-setting-content-other-block-item{ - display: flex; - flex-wrap: nowrap; - flex-direction: row; - justify-content: space-between; - align-items: center; - padding: 10px 5px; - border-bottom: 1px solid var(--skin-body-border-color); - line-height: 25px; -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content -.tl-rtc-app-right-setting-content-other-block-item-title{ - width: 40%; - user-select: none; -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper{ - width: 60%; - text-align: right; -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-content -.tl-rtc-app-right-setting-content-other-block-item:last-child{ - border-bottom: 0px; -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper -.layui-badge{ - height: 20px; - line-height: 20px; - cursor: pointer; - padding: 0 15px; - transition: all 0.2s; - background-color: var(--skin-setting-content-block-badge-background); - color: var(--skin-setting-content-block-badge-color); -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper -.layui-badge-active{ - background-color: var(--skin-setting-content-block-badge-hover-background) !important; - color: var(--skin-setting-content-block-badge-hover-color); -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper -.layui-badge:hover{ - background-color: var(--skin-setting-content-block-badge-hover-background) !important; - color: var(--skin-setting-content-block-badge-hover-color); -} - -.tl-rtc-app-right-setting-content-other .tl-rtc-app-right-setting-content-other-block-item-oper -button{ - height: 33px; -} - -.tl-rtc-app-right-setting-content-other #customWss{ - height: 33px; - border-radius: 2px; - background: var(--skin-setting-top-search-input-background); - color: var(--skin-setting-top-search-input-color); - font-size: 13px; - letter-spacing: 1px; - border-width: 1px; - border-color: var(--skin-body-border-color); -} - -/*********************************************************************************** -************************************************************************************ - 设置中心 - 其他设置 end -************************************************************************************ -************************************************************************************/ - - - - -/*********************************************************************************** -************************************************************************************ - 弹窗 - 用户信息 start -************************************************************************************ -************************************************************************************/ -.tl-rtc-app-user-info-popup{ - padding: 3px; - width: calc(100% - 6px); - height: calc(100% - 6px); -} - -.tl-rtc-app-layer-user-info-popup{ - background: var(--skin-body-background) !important; - color: var(--skin-body-color) !important; -} - -.tl-rtc-app-layer-user-info-popup .layui-layer-title{ - color: var(--skin-body-color) !important; - border-bottom: 1px solid var(--skin-body-border-color) !important; - border-radius: 6px; -} - -.tl-rtc-app-user-info-popup-footer button{ - color: var(--skin-body-color); -} - -.tl-rtc-app-user-info-popup-footer button:hover{ - color: var(--skin-body-color); -} - -.tl-rtc-app-user-info-popup-header{ - display: flex; - flex-direction: row; - justify-content: flex-start; - align-items: center; - padding: 10px; - border-bottom: 1px solid var(--skin-body-border-color); -} - -.tl-rtc-app-user-info-popup-header-mobile{ - display: flex; - flex-direction: row; - justify-content: flex-start; - align-items: center; - padding: 10px; - border-bottom: 1px solid var(--skin-body-border-color); -} - -.tl-rtc-app-user-info-popup-header-avatar{ - padding-right: 10px; -} - -.tl-rtc-app-user-info-popup-header-avatar img{ - width: 50px; - height: 50px; -} - -.tl-rtc-app-user-info-popup-content{ - padding: 10px; - height: 90px; - overflow-y: scroll; -} - -.tl-rtc-app-user-info-popup-content-mobile{ - padding: 20px; - overflow-y: scroll; -} - -.tl-rtc-app-user-info-popup-content-item{ - display: flex; - flex-direction: row; - align-items: center; - justify-content: flex-start; - padding: 5px; -} - -.tl-rtc-app-user-info-popup-content-item-mobile{ - display: flex; - flex-direction: row; - align-items: center; - justify-content: flex-start; - padding: 10px 5px; -} - -.tl-rtc-app-user-info-popup-content-item-title{ - padding-right: 10px; -} - -.tl-rtc-app-user-info-popup-footer{ - position: absolute; - display: flex; - flex-direction: row; - justify-content: space-evenly; - align-items: center; - padding: 10px; - bottom: 0; - width: calc(100% - 26px); -} - -.tl-rtc-app-user-info-popup-footer-mobile{ - position: absolute; - display: flex; - flex-direction: row; - justify-content: space-evenly; - align-items: center; - padding: 10px; - bottom: 15px; - width: calc(100% - 26px); -} - -.tl-rtc-app-user-info-popup-footer button { - border-radius: 4px; -} -/*********************************************************************************** -************************************************************************************ - 弹窗 - 用户信息 end -************************************************************************************ -************************************************************************************/ \ No newline at end of file diff --git a/web-v2-res/image/404.png b/web-v2-res/image/404.png deleted file mode 100644 index 3be04d5..0000000 Binary files a/web-v2-res/image/404.png and /dev/null differ diff --git a/web-v2-res/image/homepage.png b/web-v2-res/image/homepage.png deleted file mode 100644 index b582720..0000000 Binary files a/web-v2-res/image/homepage.png and /dev/null differ diff --git a/web-v2-res/image/qq-group-qrcode.png b/web-v2-res/image/qq-group-qrcode.png deleted file mode 100644 index f71ea6c..0000000 Binary files a/web-v2-res/image/qq-group-qrcode.png and /dev/null differ diff --git a/web-v2-res/js/component/socket.js b/web-v2-res/js/component/socket.js deleted file mode 100644 index 1715143..0000000 --- a/web-v2-res/js/component/socket.js +++ /dev/null @@ -1,132 +0,0 @@ -const tl_rtc_app_socket = new Vue({ - el: '#tl-rtc-app-socket', - data : function(){ - return { - socket: null, - CHANNEL_CHAT: 'channelChat', // 频道聊天 - CHANNEL_CHAT_ROLLBACK: 'channelChatRollback', // 频道聊天消息撤回 - CONTACT_APPLY: 'contactApply', // 好友申请 - CONTACT_APPLY_PASS: 'contactApplyPass', // 通过好友申请 - CONTACT_APPLY_REJECT: 'contactApplyReject', // 拒绝好友申请 - COUNT: 'count', // 在线人数 - EXIT: 'exit' // 退出 - } - }, - methods: { - /** - * 初始化socket对象 - * @param {*} socket - * @returns - */ - initSocket: function({ - socket, callback - }){ - this.socket = socket - - // 监听事件 - this.socket.on(this.CHANNEL_CHAT, this.channelChatSocketHandler) - this.socket.on(this.CHANNEL_CHAT_ROLLBACK, this.channelChatRollbackSocketHandler) - this.socket.on(this.COUNT, this.countSocketHandler) - this.socket.on(this.CONTACT_APPLY, this.contactApplySocketHandler) - this.socket.on(this.CONTACT_APPLY_PASS, this.contactApplyPassSocketHandler) - this.socket.on(this.CONTACT_APPLY_REJECT, this.contactApplyRejectSocketHandler) - this.socket.on(this.EXIT, this.exitSocketHandler) - - callback && callback(true) - }, - /** - * 聊天socket消息处理 - * @param {*} data - * @returns - */ - channelChatSocketHandler: function(data){ - // 通知channel模块 - this.emitSubModuleEvent({ - event: 'sub-module-channel-list-chat-socket', - data: data - }) - }, - /** - * 频道聊天消息撤回socket消息处理 - * @param {*} data - */ - channelChatRollbackSocketHandler: function(data){ - // 通知channel模块 - this.emitSubModuleEvent({ - event: 'sub-module-channel-list-rollback-channel-message-socket', - data: data - }) - }, - /** - * 在线人数socket消息处理 - * @param {*} data - */ - countSocketHandler: function(data){ - console.log("count: ", data) - }, - /** - * 退出socket消息处理 - * @param {*} data - */ - exitSocketHandler: function(data){ - console.log("exit: ", data) - - this.emitSubModuleEvent({ - event: 'component-video-call-socket-exit', - data: data - }) - - this.emitSubModuleEvent({ - event: 'component-screen-call-socket-exit', - data: data - }) - - this.emitSubModuleEvent({ - event: 'component-live-call-socket-exit', - data: data - }) - }, - /** - * 好友申请消息处理 - * @param {*} data - */ - contactApplySocketHandler: function(data){ - // 通知好友模块 - this.emitSubModuleEvent({ - event: 'sub-module-contact-apply-socket', - data: data - }) - }, - /** - * 通过好友申请消息处理 - * @param {*} data - */ - contactApplyPassSocketHandler: function(data){ - // 通知好友模块 - this.emitSubModuleEvent({ - event: 'sub-module-contact-apply-pass-socket', - data: data - }) - }, - /** - * 拒绝好友申请消息处理 - * @param {*} data - */ - contactApplyRejectSocketHandler: function(data){ - // 通知好友模块 - this.emitSubModuleEvent({ - event: 'sub-module-contact-apply-reject-socket', - data: data - }) - } - }, - mounted() { - - }, - created(){ - // 监听初始化socket - window.subModule.$on("component-socket-init-socket", this.initSocket) - }, -}) - -window.tl_rtc_app_socket = tl_rtc_app_socket; \ No newline at end of file diff --git a/web-v2-res/js/module/channel/content/body.js b/web-v2-res/js/module/channel/content/body.js deleted file mode 100644 index 5220853..0000000 --- a/web-v2-res/js/module/channel/content/body.js +++ /dev/null @@ -1,482 +0,0 @@ -const tl_rtc_app_module_channel_content_body = { - props : { - channelId : { - type : String, - default : '' - }, - channelMessages : { - type : Array, - default : [] - }, - socketId : { - type : String, - default : '' - }, - user: { - type: Object, - default: function(){ - return { - userId: '', // 用户id - username: '', // 用户名称 - userAvatar: '', // 用户头像 - } - } - }, - isMobile: { - type: Boolean, - default: false - }, - company: { - type: Object, - default: function(){ - return { - name: '' - } - } - }, - channelMessageAllLoad: { - type: Boolean, - default: false - }, - leftModule: { - type: String, - default: '' - }, - rightModule: { - type: String, - default: '' - } - }, - watch: { - channelMessages: { - deep: true, - immediate: true, - handler: function(val){ - let that = this - this.$nextTick(function(){ - that.registerMessageMenu() - }) - }, - }, - leftModule: function (val) { - - }, - rightModule: function (val) { - - }, - replyToMessageId: function (val) { - const bottomBlock = document.querySelector('.tl-rtc-app-right-channel-content-bottom') - const replyContentBlock = document.querySelector('.tl-rtc-app-right-channel-content-body-reply-content-block') - if(bottomBlock && replyContentBlock){ - replyContentBlock.style.bottom = bottomBlock.offsetHeight + 42 + 'px' - } - } - }, - computed: { - propsChannelId(){ - return this.channelId; - }, - propsChannelMessages(){ - return this.channelMessages; - }, - propsSocketId(){ - return this.socketId; - }, - propsUserId(){ - return this.user.userId; - }, - propsUser(){ - return this.user; - }, - propsIsMobile(){ - return this.isMobile; - }, - propsCompanyName(){ - return this.company.name; - }, - propsChannelMessageAllLoad(){ - return this.channelMessageAllLoad; - }, - canRollbackMessage(){ - return function(item){ - return item.messageTimeStamp > Date.now() - 2 * 60 * 1000 - } - }, - }, - data : function(){ - return { - isLoadingMore : false, // 加载更多 - isPressEvent: false, // 单击事件 - isDoubleTapEvent: false, // 双击事件 - - replyToMessageId: '', // 回复消息id - replyToMessageType: '', // 回复消息类型 - replyToMessageContent: '', // 回复消息内容 - } - }, - methods: { - /** - * 事件触发,向上传递 - * @param {*} event - */ - leftModuleChange: function(event){ - this.$emit('left-module-change', event) - }, - /** - * 事件触发,向上传递 - * @param {*} event - */ - rightModuleChange: function(event){ - this.$emit('right-module-change', event) - }, - /** - * 注册消息菜单 - */ - registerMessageMenu: function(){ - let that = this; - for(let i = 0; i < this.channelMessages.length; i++){ - const message = this.channelMessages[i] - const type = message.type - if(type === 'system'){ - continue - } - // 注册自定义菜单 - this.emitSubModuleEvent({ - event: 'component-menu-register-custom', - data: { - elemId: '#' + type + '-message-content-' + message.id, - eventList: ['press', 'doubleTap'], - menuIdList: [ - 'copyMessage', - 'replyMessage', - 'rollbackMessage', - 'deleteMessage' - ], - extra: message, - pressCallback: function(){ - that.isPressEvent = true - }, - pressUpCallback: function(){ - setTimeout(() => { - that.isPressEvent = false - }, 300); - }, - doubleTapCallback: function(){ - that.isDoubleTapEvent = true - - setTimeout(() => { - that.isDoubleTapEvent = false - }, 300) - } - } - }) - } - }, - /** - * 用户信息弹窗 - * @param {*} event - */ - userInfoPopup: async function(event, user){ - if (!user || !user.fromUserId) { - return - } - // 根据userId获取用户基础信息 - let { type, userInfo } = await this.emitSubModuleEvent({ - event: 'component-popup-user-info-popup', - data: { - clientX: event.clientX, - clientY: event.clientY, - userInfo: { - id: user.fromUserId - }, - } - }) - - if(type === 'chat'){ - await this.emitSubModuleEvent({ - event: 'sub-module-contact-content-send-message', - data: { - channelId: userInfo.channelId, - } - }) - }else if(type === 'video'){ - await this.emitSubModuleEvent({ - event: 'sub-module-contact-content-send-video', - data: { - channelId: userInfo.channelId, - } - }) - }else if(type === 'audio'){ - await this.emitSubModuleEvent({ - event: 'sub-module-contact-content-send-audio', - data: { - channelId: userInfo.channelId, - } - }) - } - }, - /** - * 加载更多消息 - */ - loadMoreMessage: async function(){ - let that = this - - this.isLoadingMore = true - - await this.emitSubModuleEvent({ - event: 'sub-module-channel-list-load-channel-message', - data: { - channelId: this.propsChannelId, - } - }) - - this.isLoadingMore = false - }, - mouseEnter: function(event, item){ - if(this.propsIsMobile){ - return - } - tl_rtc_app_comm.mouseEnterTips({ - id: event.target.id, - text: item.fromUserName, - position: 'top' - }); - }, - mouseLeave: function(){ - if(this.propsIsMobile){ - return - } - tl_rtc_app_comm.mouseLeaveTips(); - }, - /** - * 生成@用户文本 - * @param {*} item - */ - generateAtUserText: function(item){ - this.emitSubModuleEvent({ - event: 'sub-module-channel-content-generate-at-user-text', - data: { - atUserId: item.fromUserId, - atUserName: item.fromUserName, - } - }) - }, - /** - * 回复消息 - * @param {*} item - */ - replyMessage: function(item){ - this.replyToMessageId = item.id - this.replyToMessageType = item.type - this.replyToMessageContent = item.message - - this.emitSubModuleEvent({ - event: 'sub-module-channel-content-set-textarea-reply-message', - data: { - replyToMessageId: item.id, - replyToMessageType: item.type, - replyToMessageContent: item.message, - } - }) - }, - /** - * 清除回复消息 - */ - clearReplyMessage: function(){ - this.replyToMessageId = '' - this.replyToMessageType = '' - this.replyToMessageContent = '' - - this.emitSubModuleEvent({ - event: 'sub-module-channel-content-clear-textarea-reply-message', - }) - }, - /** - * 删除消息 - * @param {*} item - */ - deleteMessage: function(item){ - console.log('删除 : ', item) - this.popWarningMsg('暂未开放') - }, - /** - * 撤回消息 - * @param {*} item - */ - rollbackMessage: function(item){ - if(item.messageTimeStamp < Date.now() - 2 * 60 * 1000){ - this.popWarningMsg('时间超过2分钟不支持撤回') - return - } - - this.emitSubModuleEvent({ - event: 'sub-module-channel-content-rollback-channel-message', - data: { - messageId: item.id, - channelId: this.propsChannelId, - messageType: item.type, - } - }) - }, - /** - * 打开回复表情弹窗 - * @param {*} item - */ - openEmojiPopup: function(event, item){ - // 回复消息 - this.replyMessage(item) - - this.emitSubModuleEvent({ - event: 'sub-module-channel-content-open-face', - data: { - elem: event.target, - } - }) - }, - /** - * 快速回复消息 - * @param {*} messageId - * @param {*} messageType - * @param {*} messageContent - * @param {*} callback - */ - quickReplyMessage: function({ - messageId, messageType, messageContent, callback - }){ - this.replyMessage({ - id: messageId, - type: messageType, - message: messageContent, - }) - - callback && callback() - }, - /** - * 快速撤回消息 - * @param {*} messageId - * @param {*} callback - */ - quickRollbackMessage: function({ - messageId, messageType, callback - }){ - this.rollbackMessage({ - id: messageId, - type: messageType, - }) - - callback && callback() - }, - }, - mounted() { - - }, - created(){ - // 清除回复消息 - window.subModule.$on('sub-module-channel-content-clear-body-reply-message', this.clearReplyMessage) - - // 快速回复消息 - window.subModule.$on('sub-module-channel-content-quick-reply-message', this.quickReplyMessage) - - // 快速撤回消息 - window.subModule.$on('sub-module-channel-content-quick-rollback-message', this.quickRollbackMessage) - }, - template: ` -
                        -
                        -
                        - 查看历史更多消息... - -
                        -
                        -
                        -
                        -
                        {{item.messageTimeStampFormat}}
                        -
                        {{item.message}}
                        -
                        -
                        -
                        {{item.messageTimeStampFormat}}
                        -
                        -
                        - -
                        - -
                        -
                        - {{item.fromUserName}} @ -
                        -
                        -
                        -
                        -
                        -
                        -
                        -
                        - - -
                        -
                        -
                        -
                        -
                        -
                        {{item.messageTimeStampFormat}}
                        -
                        -
                        - -
                        -
                        -
                        -
                        -
                        -
                        -
                        -
                        -
                        - - - - -
                        -
                        -
                        -
                        -
                        - -
                        - -
                        - 回复: -
                        -
                        - -
                        -
                        -
                        - `, -} - -window.tl_rtc_app_module_channel_content_body = tl_rtc_app_module_channel_content_body \ No newline at end of file diff --git a/web-v2-res/js/module/login/content/mobile.js b/web-v2-res/js/module/login/content/mobile.js deleted file mode 100644 index 4d6e47c..0000000 --- a/web-v2-res/js/module/login/content/mobile.js +++ /dev/null @@ -1,85 +0,0 @@ -const tl_rtc_app_module_login_content_mobile = { - props : { - isMobile: { - type: Boolean, - default: false - }, - leftModule: { - type: String, - default: '' - }, - rightModule: { - type: String, - default: '' - } - }, - computed: { - propsIsMobile(){ - return this.isMobile; - }, - propsLeftModule() { - return this.leftModule; - }, - propsRightModule() { - return this.rightModule; - }, - }, - watch: { - leftModule: function (val) { - - }, - rightModule: function (val) { - - } - }, - data : function(){ - return { - - } - }, - methods: { - /** - * 事件触发,向上传递 - * @param {*} event - */ - leftModuleChange: function(event){ - this.$emit('left-module-change', event) - }, - /** - * 事件触发,向上传递 - * @param {*} event - */ - rightModuleChange: function(event){ - this.$emit('right-module-change', event) - }, - loginMobile: function(){ - - }, - registerMobile: function(){ - - }, - forgotMobile: function(){ - - } - }, - template: ` - - `, -} - -window.tl_rtc_app_module_login_content_mobile= tl_rtc_app_module_login_content_mobile \ No newline at end of file diff --git a/web-v2-res/js/website/website.js b/web-v2-res/js/website/website.js deleted file mode 100644 index 6385873..0000000 --- a/web-v2-res/js/website/website.js +++ /dev/null @@ -1,1369 +0,0 @@ -const TlRtcAppWebsite = { - globals: { - $: null, - form: null, - layer: null, - captchaGenerator: null // 添加验证码生成器到全局 - }, - - init() { - layui.use(['jquery', 'form', 'layer'], () => { - this.globals.$ = layui.jquery; - this.globals.form = layui.form; - this.globals.layer = layui.layer; - this.globals.captchaGenerator = new this.CaptchaGenerator(); - - const $ = this.globals.$; - - $(document).ready(() => { - this.checkLoginStatus(); - this.initCaptcha(); - this.initLoginPopup(); - this.initCarousel(); - this.initTheme(); - this.initPricing(); - this.initMobileNav(); - this.initHelp(); - - // 绑定退出登录事件 - $(document).on('click', '.logout-btn', () => { - this.logout(); - }); - - // 绑定个人中心点击事件 - $(document).on('click', 'a[href="/user/center"]', (e) => { - e.preventDefault(); - this.showUserCenter(); - }); - - // 绑定订单管理点击事件 - $(document).on('click', 'a[href="/user/orders"]', (e) => { - e.preventDefault(); - this.showOrderManagement(); - }); - }); - }); - }, - - /** - * 验证码生成器类 - */ - CaptchaGenerator: class { - constructor(options = {}) { - this.options = { - width: 120, - height: 40, - length: 4, - chars: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', - colors: ['#4A90E2', '#27AE60', '#8E44AD', '#F39C12', '#C0392B'], - fontSize: 28, - ...options - }; - - this.canvas = document.createElement('canvas'); - this.canvas.width = this.options.width; - this.canvas.height = this.options.height; - this.ctx = this.canvas.getContext('2d'); - this.captchaText = ''; - } - - generateText() { - let text = ''; - for (let i = 0; i < this.options.length; i++) { - text += this.options.chars[Math.floor(Math.random() * this.options.chars.length)]; - } - this.captchaText = text; - return text; - } - - drawInterferenceLines() { - for (let i = 0; i < 3; i++) { - this.ctx.strokeStyle = this.options.colors[Math.floor(Math.random() * this.options.colors.length)]; - this.ctx.beginPath(); - this.ctx.moveTo(Math.random() * this.options.width, Math.random() * this.options.height); - this.ctx.lineTo(Math.random() * this.options.width, Math.random() * this.options.height); - this.ctx.stroke(); - } - } - - drawInterferenceDots() { - for (let i = 0; i < 30; i++) { - this.ctx.fillStyle = this.options.colors[Math.floor(Math.random() * this.options.colors.length)]; - this.ctx.beginPath(); - this.ctx.arc(Math.random() * this.options.width, Math.random() * this.options.height, 1, 0, 2 * Math.PI); - this.ctx.fill(); - } - } - - draw() { - this.ctx.fillStyle = '#fff'; - this.ctx.fillRect(0, 0, this.options.width, this.options.height); - const text = this.generateText(); - this.drawInterferenceLines(); - this.drawInterferenceDots(); - this.ctx.font = `bold ${this.options.fontSize}px Arial`; - this.ctx.textBaseline = 'middle'; - const totalWidth = this.ctx.measureText(text).width; - const startX = (this.options.width - totalWidth) / 2; - - for (let i = 0; i < text.length; i++) { - const char = text[i]; - const charWidth = this.ctx.measureText(char).width; - const x = startX + i * (totalWidth / text.length); - const y = this.options.height / 2; - const rotation = (Math.random() - 0.5) * 0.4; - - this.ctx.save(); - this.ctx.translate(x, y); - this.ctx.rotate(rotation); - this.ctx.fillStyle = this.options.colors[Math.floor(Math.random() * this.options.colors.length)]; - this.ctx.fillText(char, 0, 0); - this.ctx.restore(); - } - - return { - text: this.captchaText, - canvas: this.canvas - }; - } - - validate(userInput, caseSensitive = false) { - if (!userInput || !this.captchaText) return false; - return caseSensitive ? - userInput === this.captchaText : - userInput.toLowerCase() === this.captchaText.toLowerCase(); - } - - refresh() { - return this.draw(); - } - }, - - /** - * 轮播图 - */ - Carousel: class { - constructor(element, $) { - this.$ = $; - this.wrapper = element; - this.items = this.wrapper.find('.tl-rtc-app-website-carousel-items'); - this.itemsArray = this.items.find('.tl-rtc-app-website-carousel-item'); - this.currentIndex = 0; - this.totalItems = this.itemsArray.length; - this.autoPlayInterval = null; - this.isAnimating = false; - this.animationDuration = 500; - - if (this.totalItems > 0) { - this.init(); - } - } - - init() { - this.cloneItems(); - this.createIndicators(); - this.bindEvents(); - this.updateIndicators(); - this.startAutoPlay(); - this.goToSlide(0); - } - - cloneItems() { - const $ = this.$; - // 克隆第一个和最后一个项目 - const $firstItem = this.itemsArray.first().clone(); - const $lastItem = this.itemsArray.last().clone(); - - // 添加到轮播的首尾 - this.items.append($firstItem); - this.items.prepend($lastItem); - - // 设置初始位置 - this.items.css('transform', 'translateX(-100%)'); - } - - createIndicators() { - const $ = this.$; - const indicators = $(''); - - for (let i = 0; i < this.totalItems; i++) { - indicators.append($('
                        ')); - } - - this.wrapper.append(indicators); - this.indicators = indicators.find('.indicator'); - } - - bindEvents() { - const self = this; - const $ = this.$; - - // 指示器点击事件 - this.wrapper.find('.indicator').off('click').on('click', function () { - if (!self.isAnimating) { - const index = $(this).index(); - self.goToSlide(index); - } - }); - - // 上一张按钮 - this.wrapper.find('.tl-rtc-app-website-carousel-btn.prev').off('click').on('click', function () { - if (!self.isAnimating) { - self.prevSlide(); - } - }); - - // 下一张按钮 - this.wrapper.find('.tl-rtc-app-website-carousel-btn.next').off('click').on('click', function () { - if (!self.isAnimating) { - self.nextSlide(); - } - }); - - // 鼠标悬停暂停自动播放 - this.wrapper.off('mouseenter mouseleave').on({ - mouseenter: () => this.stopAutoPlay(), - mouseleave: () => this.startAutoPlay() - }); - } - - updateIndicators() { - this.indicators.removeClass('active'); - this.indicators.eq(this.currentIndex).addClass('active'); - } - - goToSlide(index, isAuto = false) { - if (this.isAnimating) return; - - this.isAnimating = true; - this.currentIndex = index; - - const translateX = -(index + 1) * 100; - this.items.css({ - 'transition': `transform ${this.animationDuration}ms ease`, - 'transform': `translateX(${translateX}%)` - }); - - this.updateIndicators(); - - setTimeout(() => { - this.isAnimating = false; - - // 处理边界情况 - if (index === -1) { - this.items.css({ - 'transition': 'none', - 'transform': `translateX(${-this.totalItems * 100}%)` - }); - this.currentIndex = this.totalItems - 1; - this.updateIndicators(); - } else if (index === this.totalItems) { - this.items.css({ - 'transition': 'none', - 'transform': 'translateX(-100%)' - }); - this.currentIndex = 0; - this.updateIndicators(); - } - }, this.animationDuration); - } - - prevSlide() { - this.goToSlide(this.currentIndex - 1); - } - - nextSlide() { - this.goToSlide(this.currentIndex + 1); - } - - startAutoPlay() { - this.stopAutoPlay(); - this.autoPlayInterval = setInterval(() => { - this.nextSlide(); - }, 5000); - } - - stopAutoPlay() { - if (this.autoPlayInterval) { - clearInterval(this.autoPlayInterval); - this.autoPlayInterval = null; - } - } - }, - - /** - * 初始化验证码 - */ - initCaptcha() { - const $ = this.globals.$; - const self = this; - - // 使用事件委托绑定点事件 - $(document).on('click', '.tl-rtc-app-website-captcha-canvas', function () { - self.refreshCaptcha(this); - }); - }, - - // 添加刷新验证码的方法 - refreshCaptcha(canvas) { - if (!canvas || !this.globals.captchaGenerator) return; - - try { - const { canvas: newCanvas, text } = this.globals.captchaGenerator.draw(); - const ctx = canvas.getContext('2d'); - canvas.width = newCanvas.width; - canvas.height = newCanvas.height; - ctx.drawImage(newCanvas, 0, 0); - console.log('新验证码:', text); // 用于测试 - } catch (error) { - console.error('刷新验证码失败:', error); - } - }, - - /** - * 初始化登录弹窗 - */ - initLoginPopup() { - const $ = this.globals.$; - const self = this; - - // 登录按钮点击事件 - $(document).off('click', '.tl-rtc-app-website-login-btn').on('click', '.tl-rtc-app-website-login-btn', function () { - $('.tl-rtc-app-website-login-popup, .tl-rtc-app-website-popup-overlay').fadeIn(300); - - // 重置表单状态 - $('#registerForm').hide(); - $('#loginForm').show(); - $('.tl-rtc-app-website-third-party-login').show(); - $('.tl-rtc-app-website-login-header h2').text('欢迎回来'); - - // 初始化验证码 - const captchaCanvas = $('#loginForm .tl-rtc-app-website-captcha-canvas')[0]; - if (captchaCanvas) { - self.refreshCaptcha(captchaCanvas); - } - }); - - // 切换到注册表单 - $(document).off('click', '.tl-rtc-app-website-to-register').on('click', '.tl-rtc-app-website-to-register', function (e) { - e.preventDefault(); - e.stopPropagation(); - - $('.tl-rtc-app-website-login-header h2').text('创建账号'); - $('#loginForm').hide(); - $('.tl-rtc-app-website-third-party-login').hide(); - $('#registerForm').show(); - - // 初始化注册表单的验证码 - const captchaCanvas = $('#registerForm .tl-rtc-app-website-captcha-canvas')[0]; - if (captchaCanvas) { - self.refreshCaptcha(captchaCanvas); - } - }); - - // 切换到登录表单 - $(document).off('click', '.tl-rtc-app-website-to-login').on('click', '.tl-rtc-app-website-to-login', function (e) { - e.preventDefault(); - e.stopPropagation(); - - $('.tl-rtc-app-website-login-header h2').text('欢迎回来'); - $('#registerForm').hide(); - $('#loginForm').show(); - $('.tl-rtc-app-website-third-party-login').show(); - - // 初始化登录表单的验证码 - const captchaCanvas = $('#loginForm .tl-rtc-app-website-captcha-canvas')[0]; - if (captchaCanvas) { - self.refreshCaptcha(captchaCanvas); - } - }); - - // 验证码点击刷新 - $(document).off('click', '.tl-rtc-app-website-captcha-canvas, .tl-rtc-app-website-captcha-refresh') - .on('click', '.tl-rtc-app-website-captcha-canvas, .tl-rtc-app-website-captcha-refresh', function (e) { - e.preventDefault(); - e.stopPropagation(); - const canvas = $(this).closest('.tl-rtc-app-website-form-group').find('.tl-rtc-app-website-captcha-canvas')[0]; - if (canvas) { - self.refreshCaptcha(canvas); - } - }); - - // 关闭按钮和遮罩层点击事件 - $(document).off('click', '.tl-rtc-app-website-popup-close, .tl-rtc-app-website-popup-overlay') - .on('click', '.tl-rtc-app-website-popup-close, .tl-rtc-app-website-popup-overlay', function (e) { - if ($(e.target).is('.tl-rtc-app-website-popup-overlay') || $(e.target).closest('.tl-rtc-app-website-popup-close').length) { - $('.tl-rtc-app-website-login-popup, .tl-rtc-app-website-forgot-popup, .tl-rtc-app-website-popup-overlay').fadeOut(300); - } - }); - - // ESC键关闭弹窗 - $(document).off('keyup').on('keyup', function (e) { - if (e.key === 'Escape') { - $('.tl-rtc-app-website-login-popup, .tl-rtc-app-website-popup-overlay').fadeOut(300); - } - }); - - // 表单提交事件 - $('#loginForm').off('submit').on('submit', async function (e) { - e.preventDefault(); - const captcha = $(this).find('input[name="captcha"]').val() - if(!captcha){ - layer.msg('验证码不能为空') - return - } - - if(!$(this).find('input[name="username"]').val() && !$(this).find('input[name="email"]').val()){ - layer.msg('用户名和邮箱不能为空') - return - } - - if(!$(this).find('input[name="password"]').val()){ - layer.msg('密码不能为空') - return - } - - // 判断验证码 - if(!self.globals.captchaGenerator.validate(captcha)){ - layer.msg('验证码错误') - return - } - - let formData = { - email: $(this).find('input[name="username"]').val(), - password: $(this).find('input[name="password"]').val(), - }; - - formData.password = Base64.encode(formData.password) - formData.email = Base64.encode(formData.email) - - const { data: result } = await axios.post('/api/web/user-login/login-by-website', formData) - console.log('登录结果:', result); - if(result.success){ - // 保存用户信息到 localStorage - localStorage.setItem('tl_rtc_app_website_user_info', JSON.stringify({ - userId: result.data.loginUserId, - email: result.data.loginUserEmail, - username: result.data.loginUsername, - avatar: result.data.loginUserAvatar, - lastLoginTime: result.data.loginTime - })); - - layer.msg('登录成功') - setTimeout(() => { - window.location.reload() - }, 1000) - }else{ - layer.msg(result.msg) - } - }); - - $('#registerForm').off('submit').on('submit', async function (e) { - e.preventDefault(); - if(!$(this).find('input[name="email"]').val()){ - layer.msg('邮箱不能为空') - return - } - - if(!$(this).find('input[name="password"]').val()){ - layer.msg('密码不能为空') - return - } - - if(!$(this).find('input[name="confirmPassword"]').val()){ - layer.msg('确认密码不能为空') - return - } - - if($(this).find('input[name="password"]').val() !== $(this).find('input[name="confirmPassword"]').val()){ - layer.msg('密码和确认密码不一致') - return - } - - const emailCode = $(this).find('input[name="emailCode"]').val(); - if (!emailCode) { - layer.msg('请输入邮箱验证码'); - return; - } - - const formData = { - email: $(this).find('input[name="email"]').val(), - password: $(this).find('input[name="password"]').val(), - code: emailCode - }; - - formData.email = Base64.encode(formData.email); - formData.password = Base64.encode(formData.password); - - const { data: result } = await axios.post('/api/web/user-register/register-website-user', formData); - - if(result.success){ - layer.msg('注册成功,请登录') - setTimeout(() => { - window.location.reload() - }, 1000) - }else{ - layer.msg(result.msg) - } - }); - - // 发送验证码按钮点击事件 - $(document).off('click', '.tl-rtc-app-website-send-code-btn') - .on('click', '.tl-rtc-app-website-send-code-btn', async function(e) { - e.preventDefault(); - const $btn = $(this); - const email = $btn.closest('form').find('input[name="email"]').val(); - - if (!email) { - layer.msg('请输入邮箱'); - return; - } - - // 禁用按钮并开始倒计时 - let countdown = 60; - $btn.prop('disabled', true); - const timer = setInterval(() => { - if (countdown > 0) { - $btn.text(`${countdown}秒后重试`); - countdown--; - } else { - clearInterval(timer); - $btn.prop('disabled', false).text('发送验证码'); - } - }, 1000); - - try { - // 发送验证码请求 - const { data: result } = await axios.post('/api/web/user-register/get-email-code', { - email: email - }); - console.log('发送验证码结果:', result); - if(result.success){ - layer.msg('验证码已发送,请查收邮件'); - }else{ - layer.msg(result.msg); - } - } catch (error) { - clearInterval(timer); - $btn.prop('disabled', false).text('发送验证码'); - layer.msg('验证码发送失败,请重试'); - } - }); - - // 修改登录表单中的忘记密码链接事件绑定 - $(document).off('click', '.tl-rtc-app-website-form-footer a:contains("忘记密码")') - .on('click', '.tl-rtc-app-website-form-footer a:contains("忘记密码")', function (e) { - e.preventDefault(); - e.stopPropagation(); - - // 先隐藏登录弹窗 - $('.tl-rtc-app-website-login-popup').hide(); - - // 确保遮罩层保持显示 - $('.tl-rtc-app-website-popup-overlay').show(); - - // 显示忘记密码弹窗 - $('.tl-rtc-app-website-forgot-popup').fadeIn(300); - }); - - // 从忘记密码返回登录 - $(document).off('click', '.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-to-login') - .on('click', '.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-to-login', function (e) { - e.preventDefault(); - e.stopPropagation(); - - $('.tl-rtc-app-website-forgot-popup').hide(); - $('.tl-rtc-app-website-login-popup').fadeIn(300); - }); - - // 关闭按钮事件 - $(document).off('click', '.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-popup-close') - .on('click', '.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-popup-close', function() { - $('.tl-rtc-app-website-popup-overlay').hide(); - $('.tl-rtc-app-website-forgot-popup').hide(); - }); - - // 忘记密码表单提交 - $('#forgotForm').off('submit').on('submit', async function (e) { - e.preventDefault(); - - const emailCode = $(this).find('input[name="emailCode"]').val(); - if (!emailCode) { - layer.msg('请输入邮箱验证码'); - return; - } - - const newPassword = $(this).find('input[name="newPassword"]').val(); - const confirmPassword = $(this).find('input[name="confirmPassword"]').val(); - - if (!newPassword) { - layer.msg('请输入新密码'); - return; - } - - if (!confirmPassword) { - layer.msg('请确认新密码'); - return; - } - - if (newPassword !== confirmPassword) { - layer.msg('两次输入的密码不一致'); - return; - } - - const formData = { - email: $(this).find('input[name="email"]').val(), - code: emailCode, - password: Base64.encode(newPassword) - }; - - try { - const { data: result } = await axios.post('/api/web/user-password/reset', formData); - if (result.success) { - layer.msg('密码重置成功,请登录'); - setTimeout(() => { - $('.tl-rtc-app-website-forgot-popup').hide(); - $('.tl-rtc-app-website-login-popup').fadeIn(300); - }, 1000); - } else { - layer.msg(result.msg); - } - } catch (error) { - layer.msg('密码重置失败,请重试'); - } - }); - - // 忘记密码弹窗的发送验证码按钮 - $('.tl-rtc-app-website-forgot-popup .tl-rtc-app-website-send-code-btn').off('click') - .on('click', async function(e) { - e.preventDefault(); - const $btn = $(this); - const email = $btn.closest('form').find('input[name="email"]').val(); - - if (!email) { - layer.msg('请输入邮箱'); - return; - } - - // 禁用按钮并开始倒计时 - let countdown = 60; - $btn.prop('disabled', true); - const timer = setInterval(() => { - if (countdown > 0) { - $btn.text(`${countdown}秒后重试`); - countdown--; - } else { - clearInterval(timer); - $btn.prop('disabled', false).text('发送验证码'); - } - }, 1000); - - try { - const { data: result } = await axios.post('/api/web/user-password/get-reset-code', { - email: email - }); - if (result.success) { - layer.msg('验证码已发送,请查收邮件'); - } else { - layer.msg(result.msg); - clearInterval(timer); - $btn.prop('disabled', false).text('发送验证码'); - } - } catch (error) { - clearInterval(timer); - $btn.prop('disabled', false).text('发送验证码'); - layer.msg('验证码发送失败,请重试'); - } - }); - }, - - /** - * 初始化轮播图 - */ - initCarousel() { - const $ = this.globals.$; - const $carouselWrapper = $('.tl-rtc-app-website-carousel-wrapper'); - - if ($carouselWrapper.length) { - new this.Carousel($carouselWrapper, $); - } else { - console.error('Carousel wrapper not found'); - } - }, - - /** - * 初始化主题 - */ - initTheme() { - const $ = this.globals.$; - - // 主题切换按钮点击事件 - $(document).on('click', '.tl-rtc-app-website-theme-toggle', function () { - const $icon = $(this).find('i'); - const currentTheme = document.documentElement.getAttribute('data-theme') || 'light'; - const newTheme = currentTheme === 'dark' ? 'light' : 'dark'; - - // 设置主题 - document.documentElement.setAttribute('data-theme', newTheme); - localStorage.setItem('theme', newTheme); - - // 更新图标 - if (newTheme === 'dark') { - $icon.removeClass('layui-icon-moon').addClass('layui-icon-sun'); - $icon.css('color', '#fff'); // 暗色主题下图标使用白色 - } else { - $icon.removeClass('layui-icon-sun').addClass('layui-icon-moon'); - $icon.css('color', '#333'); // 亮色主题下图标使用色 - } - }); - - // 初始化主题 - const savedTheme = localStorage.getItem('theme') || 'light'; - document.documentElement.setAttribute('data-theme', savedTheme); - const $icon = $('.tl-rtc-app-website-theme-toggle i'); - - // 初始化图标状态 - if (savedTheme === 'dark') { - $icon.removeClass('layui-icon-moon').addClass('layui-icon-sun'); - $icon.css('color', '#fff'); - } else { - $icon.removeClass('layui-icon-sun').addClass('layui-icon-moon'); - $icon.css('color', '#333'); - } - }, - - /** - * 初始化价格模块 - */ - initPricing() { - const $ = this.globals.$; - const layer = this.globals.layer; - const self = this; - - // 获取产品列表 - const fetchProducts = async () => { - try { - const { data: result } = await axios.post('/api/web/website-product/get-product-list'); - if (result.success) { - return result.data || []; - } - return []; - } catch (error) { - console.error('Fetch products error:', error); - return []; - } - }; - - // 格式化时间,转为剩余时间 - const formatRemainingTime = (endTime) => { - const now = new Date(); - const end = new Date(endTime); - const diff = end - now; - - if (diff <= 0) { - return '已结束'; - } - - const days = Math.floor(diff / (1000 * 60 * 60 * 24)); - const hours = Math.floor(diff / (1000 * 60 * 60) % 24); - const minutes = Math.floor(diff / (1000 * 60) % 60); - const seconds = Math.floor(diff / 1000 % 60); - - return `${days}天 ${hours}小时 ${minutes}分 ${seconds}秒`; - }; - - // 渲染产品列表 - const renderProducts = (products) => { - // 按type排序 - products.sort((a, b) => a.type - b.type); - - return products.map(product => ` -
                        -
                        -

                        ${product.typeName}

                        - ${product.status === 2 ? '暂未上架' : ''} -
                        - ${product.type === 1 ? '免费/永久' : `¥${(product.price / 100).toFixed(0)}/永久`} -
                        - ${product.prePrice ? ` -
                        原价: ¥${(product.prePrice / 100).toFixed(0)}
                        - ` : ''} - ${product.status !== 2 && product.type !== 1 && product.discountEndTime ? ` -
                        - - 优惠即将在 ${formatRemainingTime(product.discountEndTime)} -
                        - `: ''} -

                        ${product.desc}

                        -
                        -
                          - ${product.features.split(',').map(feature => ` -
                        • - - ${feature} -
                        • - `).join('')} -
                        - - ${product.type === 1 ? '立即使用' : '立即购买'} - -
                        - `).join(''); - }; - - // 初始化产品列表 - const initProducts = async () => { - const $container = $('.tl-rtc-app-website-pricing-container'); - - // 显示加载状态 - $container.html(` -
                        - -

                        加载中...

                        -
                        - `); - - // 获取产品列表 - const products = await fetchProducts(); - - if (products.length === 0) { - $container.html(` -
                        - -

                        暂无定价产品

                        -
                        - `); - return; - } - - // 渲染产品列表 - $container.html(renderProducts(products)); - - // 更新每一个产品的优惠倒计时 - const discountInterval = document.getElementsByClassName('discountInterval'); - if (discountInterval) { - for (let i = 0; i < discountInterval.length; i++) { - // 定时器更新倒计时 - setInterval(() => { - discountInterval[i].innerHTML = `优惠即将在 ${formatRemainingTime(products[i].discountEndTime)} `; - }, 1000); - } - } - }; - - // 初始化产品列表 - initProducts(); - - // 添加购买按钮点击事件 - $(document).off('click', '.tl-rtc-app-website-pricing-btn').on('click', '.tl-rtc-app-website-pricing-btn', async function(e) { - e.preventDefault(); - - const productId = $(this).data('product-id'); - const card = $(this).closest('.tl-rtc-app-website-pricing-card'); - const version = card.find('.tl-rtc-app-website-pricing-title').text(); - - // 跳过基础版和团队版 - if (version === '基础版' || version === '团队版') { - return; - } - - // 检查登录状态 - const userInfo = localStorage.getItem('tl_rtc_app_website_user_info'); - if (!userInfo) { - layer.msg('请先登录'); - // 显示登录弹窗 - $('.tl-rtc-app-website-login-btn').click(); - return; - } - - // 显示确认弹窗 - layer.confirm(`创建${version}订单`, { - btn: ['确认', '取消'], - title: '订单创建', - shadeClose: 1, - skin: 'tl-rtc-app-website-layer', - }, async function(index) { - try { - // 创建订单 - const { data: result } = await axios.post('/api/web/website-product-order/create-order', { - productId: productId - }); - - if (result.success) { - // 打开订单管理页面并定位到新创建的订单 - self.showOrderManagement(result.data.id); - } else { - layer.msg(result.msg || '创建订单失败'); - } - } catch (error) { - layer.msg('创建订单失败,请重试'); - console.error('Create order error:', error); - } - - layer.close(index); - }); - - - }); - }, - - initMobileNav() { - const $ = this.globals.$; - let isOpen = false; - - // 移动端菜单切换 - $('.tl-rtc-app-website-mobile-nav-toggle').on('click', function () { - const $nav = $('.tl-rtc-app-website-nav-mobile'); - const $icon = $(this).find('i'); - - if (isOpen) { - $nav.removeClass('active'); - $icon.removeClass('layui-icon-close').addClass('layui-icon-shrink-right'); - } else { - $nav.addClass('active'); - $icon.removeClass('layui-icon-shrink-right').addClass('layui-icon-close'); - } - - isOpen = !isOpen; - }); - - // 导航点击处理函数 - const handleNavClick = (e) => { - e.preventDefault(); - const target = $(e.currentTarget).attr('href'); - - // 如果是锚点链接 - if (target && target.startsWith('#')) { - const $targetSection = $(target); - if ($targetSection.length) { - const headerHeight = $('.tl-rtc-app-website-header').outerHeight(); - const targetOffset = $targetSection.offset().top - headerHeight; - - // 关闭移动端菜单 - if ($(window).width() <= 768) { - $('.tl-rtc-app-website-nav-mobile').removeClass('active'); - $('.tl-rtc-app-website-mobile-nav-toggle i') - .removeClass('layui-icon-close') - .addClass('layui-icon-shrink-right'); - isOpen = false; - } - - // 平滑滚动到目标位置 - $('html, body').animate({ - scrollTop: targetOffset - }, 800); - } - } - }; - - // 为桌面端和移动端导航添加点击事件 - $(document).off('click', '.tl-rtc-app-website-nav a:not(.tl-rtc-app-website-login-btn), .tl-rtc-app-website-nav-mobile a:not(.tl-rtc-app-website-login-btn)') - .on('click', '.tl-rtc-app-website-nav a:not(.tl-rtc-app-website-login-btn), .tl-rtc-app-website-nav-mobile a:not(.tl-rtc-app-website-login-btn)', handleNavClick); - }, - - // 在 TlRtcAppWebsite 对象中添加初始化帮助文档的方法 - initHelp() { - const $ = this.globals.$; - - // 文档导航切换 - $('.tl-rtc-app-website-help-nav button').on('click', function () { - const target = $(this).data('target'); - - // 更新按钮状态 - $('.tl-rtc-app-website-help-nav button').removeClass('active'); - $(this).addClass('active'); - - // 更新内容显示 - $('.tl-rtc-app-website-help-section').removeClass('active'); - $(`#${target}`).addClass('active'); - }); - - // FAQ折叠面板 - $('.faq-question').on('click', function () { - const $item = $(this).parent(); - const $answer = $item.find('.faq-answer'); - - if ($item.hasClass('active')) { - $item.removeClass('active'); - $answer.slideUp(300); - } else { - $('.faq-item').removeClass('active'); - $('.faq-answer').slideUp(300); - $item.addClass('active'); - $answer.slideDown(300); - } - }); - - // 代码复制功能 - $('.copy-btn').on('click', function () { - const code = $(this).prev('pre').text(); - navigator.clipboard.writeText(code).then(() => { - const $btn = $(this); - const originalText = $btn.text(); - - $btn.text('已复制!'); - setTimeout(() => { - $btn.html('复制'); - }, 2000); - }); - }); - }, - - /** - * 检查登录状态 - */ - checkLoginStatus() { - const $ = this.globals.$; - - axios.get('/api/web/user-login/website-login-state').then(({data: result}) => { - if (result.success && result.data) { - // 使用新的前缀存储用户信息 - localStorage.setItem('tl_rtc_app_website_user_info', JSON.stringify({ - userId: result.data.loginUserId, - email: result.data.loginUserEmail, - username: result.data.loginUsername, - avatar: result.data.loginUserAvatar, - lastLoginTime: result.data.loginTime - })); - - // 隐藏登录按钮,显示头像 - $('.tl-rtc-app-website-login-btn').hide(); - $('.tl-rtc-app-website-user-avatar').show(); - - // 设置用户头像 - if(result.data.loginUserAvatar) { - $('.tl-rtc-app-website-user-avatar img').attr('src', result.data.loginUserAvatar); - } - } else { - // 清除本地存储时也使用新的 key - localStorage.removeItem('tl_rtc_app_website_user_info'); - // 显示登录按钮,隐藏头像 - $('.tl-rtc-app-website-login-btn').show(); - $('.tl-rtc-app-website-user-avatar').hide(); - } - }); - }, - - logout() { - const $ = this.globals.$; - const layer = this.globals.layer; - - axios.get('/api/web/user-logout/website-logout').then(({data: result}) => { - if(result.success) { - // 清除本地存储的用户信息 - localStorage.removeItem('tl_rtc_app_website_user_info'); - - layer.msg('退出成功'); - setTimeout(() => { - window.location.reload(); - }, 1000); - } else { - layer.msg(result.msg); - } - }); - }, - - /** - * 显示个人中心弹窗 - */ - showUserCenter() { - const $ = this.globals.$; - const layer = this.globals.layer; - - // 使用新的 key 获取用户信息 - const userInfo = JSON.parse(localStorage.getItem('tl_rtc_app_website_user_info') || '{}'); - - // 格式化时间 - const formatTime = (timestamp) => { - if (!timestamp) return '暂无记录'; - return new Date(Number(timestamp)).toLocaleString(); - }; - - layer.open({ - type: 1, - title: '个人信息', - shadeClose: 1, - area: ['400px', '430px'], - skin: 'tl-rtc-app-website-layer', // 添加自定义皮肤类 - content: ` -
                        - - -
                        - `, - success: (layero) => { - // 设置弹窗的宽度 - layero.css({ - 'border-radius': '6px', - }) - } - }); - }, - - /** - * 显示订单管理弹窗 - */ - showOrderManagement(targetOrderId = null) { - const $ = this.globals.$; - const layer = this.globals.layer; - const self = this; - - // 分页配置 - const pageSize = 5; - let currentPage = 1; - let currentStatus = 'all'; - - // 格式化时间 - const formatTime = (timestamp) => { - return date = new Date(timestamp).toLocaleString(); - }; - - // 获取订单列表 - const fetchOrders = async () => { - try { - const { data: result } = await axios.post('/api/web/website-product-order/get-order-list', { - page: currentPage, - pageSize: pageSize, - status: currentStatus, - }); - if (result.success) { - return result.data || []; - } - return []; - } catch (error) { - console.error('Fetch orders error:', error); - return []; - } - }; - - // 支付订单 - const payOrder = async (orderId) => { - try { - const { data: result } = await axios.post('/api/web/website-product-order/offline-pay-order', { - orderId: orderId - }); - if (result.success) { - layer.msg(result.msg); - await refreshOrders(); // 刷新订单列表 - } else { - layer.msg(result.msg || '支付失败'); - } - } catch (error) { - layer.msg('支付失败,请重试'); - console.error('Pay order error:', error); - } - }; - - // 取消订单 - const cancelOrder = async (orderId) => { - try { - const { data: result } = await axios.post('/api/web/website-product-order/cancel-order', { - orderId: orderId - }); - if (result.success) { - layer.msg('订单已取消'); - await refreshOrders(); // 刷新订单列表 - } else { - layer.msg(result.msg || '取消订单失败'); - } - } catch (error) { - layer.msg('取消订单失败,请重试'); - console.error('Cancel order error:', error); - } - }; - - // 刷新订单列表 - const refreshOrders = async () => { - const orders = await fetchOrders(); - const filteredOrders = currentStatus === 'all' - ? orders - : orders.filter(order => order.status === currentStatus); - const totalPages = Math.ceil(filteredOrders.length / pageSize); - const startIndex = (currentPage - 1) * pageSize; - const endIndex = startIndex + pageSize; - const pageOrders = filteredOrders.slice(startIndex, endIndex); - - // 渲染订单列表 - $('.order-container').html(renderOrders(pageOrders, currentPage, totalPages)); - - // 如果有目标订单号,高亮显示 - if (targetOrderId) { - const targetElement = $(`.order-item[data-order-id="${targetOrderId}"]`); - if (targetElement.length > 0) { - targetElement.addClass('highlight-order'); - targetElement[0].scrollIntoView({ behavior: 'smooth', block: 'center' }); - } - } - }; - - // 渲染订单列表 - const renderOrders = (orders, page, totalPages) => { - let classMap = { - "1": "unpaid", - "2": "paid", - "3": "cancel", - "4": "finish", - } - if (orders.length === 0) { - return ` -
                        - -

                        暂无订单

                        -
                        - `; - } - - return ` -
                        - ${orders.map(order => ` -
                        -
                        -
                        - 订单号:${order.code} - - - -
                        - 下单时间:${formatTime(order.createdAt)} - ${order.statusText} -
                        -
                        -
                        -

                        ${order.productName}

                        -

                        ${order.productDesc}

                        -
                        -
                        -
                        ¥${(order.productPrice / 100).toFixed(2)}
                        - ${order.status === 1 ? ` - - - ` : ''} -
                        -
                        -
                        - `).join('')} -
                        - ${totalPages > 0 ? ` -
                        - - ${page} / ${totalPages} - -
                        - ` : ''} - `; - }; - - // 打开订单管理弹窗 - layer.open({ - type: 1, - title: '订单管理', - area: ['800px', '635px'], - scrollbar: false, - shadeClose: 1, - skin: 'tl-rtc-app-website-layer', - content: ` -
                        - -
                        -
                        - -

                        加载中...

                        -
                        -
                        -
                        - `, - success: async function(layero) { - layero.css({ - 'border-radius': '6px' - }) - // 初始化订单列表 - await refreshOrders(); - - // 绑定标签切换 - $(layero).find('.order-tabs a').on('click', async function() { - currentStatus = $(this).data('status'); - currentPage = 1; - $(this).addClass('active').siblings().removeClass('active'); - await refreshOrders(); - }); - - // 绑定分页事件 - $(layero).on('click', '.prev-page:not(:disabled)', async function() { - currentPage--; - await refreshOrders(); - }); - - $(layero).on('click', '.next-page:not(:disabled)', async function() { - currentPage++; - await refreshOrders(); - }); - - // 绑定支付和取消按钮事件 - $(layero).on('click', '.pay-btn', function() { - const orderId = $(this).data('order-id'); - layer.confirm('确定要支付该订单吗?', { - btn: ['确定', '取消'], - shadeClose: 1, - skin: 'tl-rtc-app-website-layer', - }, function(index) { - payOrder(orderId); - layer.close(index); - }); - }); - - $(layero).on('click', '.cancel-btn', function() { - const orderId = $(this).data('order-id'); - layer.confirm('确定要取消该订单吗?', { - btn: ['确定', '取消'], - shadeClose: 1, - skin: 'tl-rtc-app-website-layer', - }, function(index) { - cancelOrder(orderId); - layer.close(index); - }); - }); - - // 初始化复制功能 - const clipboard = new ClipboardJS('.copy-icon'); - - clipboard.on('success', function(e) { - layer.msg('复制成功'); - e.clearSelection(); - }); - - clipboard.on('error', function(e) { - layer.msg('复制失败,请手动复制'); - }); - } - }); - } -}; - -// 初始化网站 -TlRtcAppWebsite.init(); \ No newline at end of file diff --git a/web-v2-res/static/css/pdf_viewer.min.css b/web-v2-res/static/css/pdf_viewer.min.css deleted file mode 100644 index 19db9ff..0000000 --- a/web-v2-res/static/css/pdf_viewer.min.css +++ /dev/null @@ -1 +0,0 @@ -:root{--highlight-bg-color:rgba(180, 0, 170, 1);--highlight-selected-bg-color:rgba(0, 100, 0, 1)}@media screen and (forced-colors:active){:root{--highlight-bg-color:Highlight;--highlight-selected-bg-color:ButtonText}}.textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;opacity:.25;line-height:1;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer br,.textLayer span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer ::-moz-selection{background:#00f;background:AccentColor}.textLayer ::selection{background:#00f;background:AccentColor}.textLayer br::-moz-selection{background:0 0}.textLayer br::selection{background:0 0}.textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textLayer .endOfContent.active{top:0}:root{--annotation-unfocused-field-background:url("data:image/svg+xml;charset=UTF-8,");--input-focus-border-color:Highlight;--input-focus-outline:1px solid Canvas;--input-unfocused-border-color:transparent;--input-disabled-border-color:transparent;--input-hover-border-color:black;--link-outline:none}@media screen and (forced-colors:active){:root{--input-focus-border-color:CanvasText;--input-unfocused-border-color:ActiveText;--input-disabled-border-color:GrayText;--input-hover-border-color:Highlight;--link-outline:1.5px solid LinkText}.annotationLayer .buttonWidgetAnnotation.checkBox input:required,.annotationLayer .buttonWidgetAnnotation.radioButton input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation input:required,.annotationLayer .textWidgetAnnotation textarea:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translateX(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.annotationLayer .buttonWidgetAnnotation.pushButton>a,.annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,.annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .textWidgetAnnotation input,.annotationLayer .textWidgetAnnotation textarea{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .buttonWidgetAnnotation.checkBox input:required,.annotationLayer .buttonWidgetAnnotation.radioButton input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation input:required,.annotationLayer .textWidgetAnnotation textarea:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .textWidgetAnnotation input[disabled],.annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .buttonWidgetAnnotation.radioButton input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover{border-radius:2px}.annotationLayer .choiceWidgetAnnotation select:focus,.annotationLayer .textWidgetAnnotation input:focus,.annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox :focus,.annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid #333;margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .caretAnnotation,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .fileAttachmentAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .highlightAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .lineAnnotation svg line,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .squareAnnotation svg rect,.annotationLayer .squigglyAnnotation,.annotationLayer .stampAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .underlineAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--xfa-unfocused-field-background:url("data:image/svg+xml;charset=UTF-8,");--xfa-focus-outline:auto}@media screen and (forced-colors:active){:root{--xfa-focus-outline:2px solid CanvasText}.xfaLayer :required{outline:1.5px solid selectedItem}}.xfaLayer{background-color:transparent}.xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}.xfaLayer .highlight.appended{position:initial}.xfaLayer .highlight.begin{border-radius:4px 0 0 4px}.xfaLayer .highlight.end{border-radius:0 4px 4px 0}.xfaLayer .highlight.middle{border-radius:0}.xfaLayer .highlight.selected{background-color:#cbdfcb}.xfaPage{overflow:hidden;position:relative}.xfaContentarea{position:absolute}.xfaPrintOnly{display:none}.xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}.xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}.xfaLayer :required{outline:1.5px solid red}.xfaLayer div{pointer-events:none}.xfaLayer svg{pointer-events:none}.xfaLayer svg *{pointer-events:none}.xfaLayer a{color:#00f}.xfaRich li{margin-left:3em}.xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}.xfaCaption{overflow:hidden;flex:0 0 auto}.xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}.xfaLabel{height:100%;width:100%}.xfaLeft{display:flex;flex-direction:row;align-items:center}.xfaRight{display:flex;flex-direction:row-reverse;align-items:center}.xfaLeft>.xfaCaption,.xfaLeft>.xfaCaptionForCheckButton,.xfaRight>.xfaCaption,.xfaRight>.xfaCaptionForCheckButton{max-height:100%}.xfaTop{display:flex;flex-direction:column;align-items:flex-start}.xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}.xfaBottom>.xfaCaption,.xfaBottom>.xfaCaptionForCheckButton,.xfaTop>.xfaCaption,.xfaTop>.xfaCaptionForCheckButton{width:100%}.xfaBorder{background-color:transparent;position:absolute;pointer-events:none}.xfaWrapped{width:100%;height:100%}.xfaSelect:focus,.xfaTextfield:focus{background-image:none;background-color:transparent;outline:var(--xfa-focus-outline);outline-offset:-1px}.xfaCheckbox:focus,.xfaRadio:focus{outline:var(--xfa-focus-outline)}.xfaSelect,.xfaTextfield{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}.xfaSelect{padding-inline:2px}.xfaBottom>.xfaSelect,.xfaBottom>.xfaTextfield,.xfaTop>.xfaSelect,.xfaTop>.xfaTextfield{flex:0 1 auto}.xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}.xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}.xfaCheckbox,.xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}.xfaRich{white-space:pre-wrap;width:100%;height:100%}.xfaImage{-o-object-position:left top;object-position:left top;-o-object-fit:contain;object-fit:contain;width:100%;height:100%}.xfaLrTb,.xfaRlTb,.xfaTb{display:flex;flex-direction:column;align-items:stretch}.xfaLr{display:flex;flex-direction:row;align-items:stretch}.xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}.xfaTb>div{justify-content:left}.xfaPosition{position:relative}.xfaArea{position:relative}.xfaValignMiddle{display:flex;align-items:center}.xfaTable{display:flex;flex-direction:column;align-items:stretch}.xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}.xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}.xfaTable .xfaRlRow>div{flex:1}.xfaDisabled input,.xfaDisabled textarea,.xfaNonInteractive input,.xfaNonInteractive textarea,.xfaReadOnly input,.xfaReadOnly textarea{background:initial}@media print{.xfaSelect,.xfaTextfield{background:0 0}.xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:""}}:root{--focus-outline:solid 2px blue;--hover-outline:dashed 2px blue;--freetext-line-height:1.35;--freetext-padding:2px;--editorFreeText-editing-cursor:text;--editorInk-editing-cursor:pointer}@media screen and (forced-colors:active){:root{--focus-outline:solid 3px ButtonText;--hover-outline:dashed 3px ButtonText}}[data-editor-rotation="90"]{transform:rotate(90deg)}[data-editor-rotation="180"]{transform:rotate(180deg)}[data-editor-rotation="270"]{transform:rotate(270deg)}.annotationEditorLayer{background:0 0;position:absolute;top:0;left:0;font-size:calc(100px * var(--scale-factor));transform-origin:0 0;cursor:auto;z-index:4}.annotationEditorLayer.freeTextEditing{cursor:var(--editorFreeText-editing-cursor)}.annotationEditorLayer.inkEditing{cursor:var(--editorInk-editing-cursor)}.annotationEditorLayer :is(.freeTextEditor,.inkEditor)[draggable=true]{cursor:move}.annotationEditorLayer .selectedEditor{outline:var(--focus-outline);resize:none}.annotationEditorLayer .freeTextEditor{position:absolute;background:0 0;border-radius:3px;padding:calc(var(--freetext-padding) * var(--scale-factor));resize:none;width:auto;height:auto;z-index:1;transform-origin:0 0;touch-action:none;cursor:auto}.annotationEditorLayer .freeTextEditor .internal{background:0 0;border:none;top:0;left:0;overflow:visible;white-space:nowrap;resize:none;font:10px sans-serif;line-height:var(--freetext-line-height)}.annotationEditorLayer .freeTextEditor .overlay{position:absolute;display:none;background:0 0;top:0;left:0;width:100%;height:100%}.annotationEditorLayer .freeTextEditor .overlay.enabled{display:block}.annotationEditorLayer .freeTextEditor .internal:empty::before{content:attr(default-content);color:gray}.annotationEditorLayer .freeTextEditor .internal:focus{outline:0}.annotationEditorLayer .inkEditor.disabled{resize:none}.annotationEditorLayer .inkEditor.disabled.selectedEditor{resize:horizontal}.annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),.annotationEditorLayer .inkEditor:hover:not(.selectedEditor){outline:var(--hover-outline)}.annotationEditorLayer .inkEditor{position:absolute;background:0 0;border-radius:3px;overflow:auto;width:100%;height:100%;z-index:1;transform-origin:0 0;cursor:auto}.annotationEditorLayer .inkEditor.editing{resize:none;cursor:inherit}.annotationEditorLayer .inkEditor .inkEditorCanvas{position:absolute;top:0;left:0;width:100%;height:100%;touch-action:none}:root{--viewer-container-height:0;--pdfViewer-padding-bottom:0;--page-margin:1px auto -8px;--page-border:9px solid transparent;--spreadHorizontalWrapped-margin-LR:-3.5px;--loading-icon-delay:400ms}@media screen and (forced-colors:active){:root{--pdfViewer-padding-bottom:9px;--page-margin:8px auto -1px;--page-border:1px solid CanvasText;--spreadHorizontalWrapped-margin-LR:3.5px}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translateX(-100%)}.pdfViewer{--scale-factor:1;padding-bottom:var(--pdfViewer-padding-bottom)}.pdfViewer .canvasWrapper{overflow:hidden;width:100%;height:100%;z-index:1}.pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;background-color:#fff}.pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}.pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}.pdfViewer.singlePageView{display:inline-block}.pdfViewer.singlePageView .page{margin:0;border:none}.pdfViewer.scrollHorizontal,.pdfViewer.scrollWrapped,.spread{margin-inline:3.5px;text-align:center}.pdfViewer.scrollHorizontal,.spread{white-space:nowrap}.pdfViewer.removePageBorders,.pdfViewer.scrollHorizontal .spread,.pdfViewer.scrollWrapped .spread{margin-inline:0}.pdfViewer.scrollHorizontal .page,.pdfViewer.scrollHorizontal .spread,.pdfViewer.scrollWrapped .page,.pdfViewer.scrollWrapped .spread,.spread .dummyPage,.spread .page{display:inline-block;vertical-align:middle}.pdfViewer.scrollHorizontal .page,.pdfViewer.scrollWrapped .page,.spread .page{margin-inline:var(--spreadHorizontalWrapped-margin-LR)}.pdfViewer.removePageBorders .spread .page,.pdfViewer.removePageBorders.scrollHorizontal .page,.pdfViewer.removePageBorders.scrollWrapped .page{margin-inline:5px}.pdfViewer .page canvas{margin:0;display:block}.pdfViewer .page canvas .structTree{contain:strict}.pdfViewer .page canvas[hidden]{display:none}.pdfViewer .page canvas[zooming]{width:100%;height:100%}.pdfViewer .page.loadingIcon:after{position:absolute;top:0;left:0;content:"";width:100%;height:100%;background:url(images/loading-icon.gif) center no-repeat;display:none;transition-property:display;transition-delay:var(--loading-icon-delay);z-index:5;contain:strict}.pdfViewer .page.loading:after{display:block}.pdfViewer .page:not(.loading):after{transition-property:none;display:none}.pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;cursor:not-allowed}.pdfPresentationMode .pdfViewer{padding-bottom:0}.pdfPresentationMode .spread{margin:0}.pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent} \ No newline at end of file diff --git a/web-v2-res/static/js/docx-preview.min.js b/web-v2-res/static/js/docx-preview.min.js deleted file mode 100644 index f0d43b7..0000000 --- a/web-v2-res/static/js/docx-preview.min.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see docx-preview.min.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("JSZip")):"function"==typeof define&&define.amd?define(["JSZip"],t):"object"==typeof exports?exports.docx=t(require("JSZip")):e.docx=t(e.JSZip)}(self,(function(e){return(()=>{"use strict";var t={522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlPackage=void 0;var n=r(290),a=r(472),o=r(593),s=r(461),l=function(){function e(e,t){this._zip=e,this.options=t,this.xmlParser=new a.XmlParser}return e.prototype.get=function(e){return this._zip.files[function(e){return e.startsWith("/")?e.substr(1):e}(e)]},e.prototype.update=function(e,t){this._zip.file(e,t)},e.load=function(t,r){return n.loadAsync(t).then((function(t){return new e(t,r)}))},e.prototype.save=function(e){return void 0===e&&(e="blob"),this._zip.generateAsync({type:e})},e.prototype.load=function(e,t){var r,n;return void 0===t&&(t="string"),null!==(n=null===(r=this.get(e))||void 0===r?void 0:r.async(t))&&void 0!==n?n:Promise.resolve(null)},e.prototype.loadRelationships=function(e){var t=this;void 0===e&&(e=null);var r="_rels/.rels";if(null!=e){var n=(0,o.splitPath)(e);r=n[0]+"_rels/"+n[1]+".rels"}return this.load(r).then((function(e){return e?(0,s.parseRelationships)(t.parseXmlDocument(e).firstElementChild,t.xmlParser):null}))},e.prototype.parseXmlDocument=function(e){return(0,a.parseXmlString)(e,this.options.trimXmlDeclaration)},e}();t.OpenXmlPackage=l},530:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Part=void 0;var n=r(472),a=function(){function e(e,t){this._package=e,this.path=t}return e.prototype.load=function(){var e=this;return Promise.all([this._package.loadRelationships(this.path).then((function(t){e.rels=t})),this._package.load(this.path).then((function(t){var r=e._package.parseXmlDocument(t);e._package.options.keepOrigin&&(e._xmlDocument=r),e.parseXml(r.firstElementChild)}))])},e.prototype.save=function(){this._package.update(this.path,(0,n.serializeXmlString)(this._xmlDocument))},e.prototype.parseXml=function(e){},e}();t.Part=a},461:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelationships=t.RelationshipTypes=void 0,(r=t.RelationshipTypes||(t.RelationshipTypes={})).OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",r.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",r.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",r.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",r.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",r.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",r.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",r.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",r.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",r.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",r.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",r.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",r.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",t.parseRelationships=function(e,t){return t.elements(e).map((function(e){return{id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}}))}},168:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentParser=t.autos=void 0;var n=r(593),a=r(907),o=r(109),s=r(472),l=r(488),i=r(45),c=r(245),u=r(631),p=r(192),d=r(765),f=r(825),h=r(979),m=r(662);t.autos={shd:"white",color:"black",highlight:"transparent"};var v,b=function(){function e(){this.skipDeclaration=!0,this.ignoreWidth=!1,this.debug=!1,this.keepOrigin=!1}return e.prototype.deserialize=function(e,t){return(0,f.deserializeElement)(e,t,{keepOrigin:this.keepOrigin})},e.prototype.parseDocumentFile=function(e){var t=s.default.element(e,"body"),r=new a.WmlDocument;return r.body=this.deserialize(t,new a.WmlBody),this.parseBodyElements(t,r.body),r},e.prototype.parseFooter=function(e){return this.parseBodyElements(e,new h.WmlFooter)},e.prototype.parseHeader=function(e){return this.parseBodyElements(e,new m.WmlHeader)},e.prototype.parseBodyElements=function(e,t){for(var r=0,n=s.default.elements(e);r{Object.defineProperty(t,"__esModule",{value:!0}),t.CorePropsPart=void 0;var n=r(655),a=r(530),o=r(614),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.props=(0,o.parseCoreProps)(e,this._package.xmlParser)},t}(a.Part);t.CorePropsPart=s},614:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoreProps=void 0,t.parseCoreProps=function(e,t){for(var r={},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedPropsPart=void 0;var n=r(655),a=r(530),o=r(668),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.props=(0,o.parseExtendedProps)(e,this._package.xmlParser)},t}(a.Part);t.ExtendedPropsPart=s},668:(e,t)=>{function r(e){if(void 0!==e)return parseInt(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseExtendedProps=void 0,t.parseExtendedProps=function(e,t){for(var n={},a=0,o=t.elements(e);a{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlBookmarkEnd=t.WmlBookmarkStart=void 0;var n=r(655),a=r(825),o=r(120),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("id")],t.prototype,"id",void 0),(0,n.__decorate)([(0,a.fromAttribute)("name")],t.prototype,"name",void 0),(0,n.__decorate)([(0,a.fromAttribute)("colFirst")],t.prototype,"colFirst",void 0),(0,n.__decorate)([(0,a.fromAttribute)("colLast")],t.prototype,"colLast",void 0),(0,n.__decorate)([(0,a.element)("bookmarkStart")],t)}(o.DocxElement);t.WmlBookmarkStart=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("id")],t.prototype,"id",void 0),(0,n.__decorate)([(0,a.element)("bookmarkEnd")],t)}(o.DocxElement);t.WmlBookmarkEnd=l},191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBorders=t.parseBorder=void 0;var n=r(149);function a(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",n.LengthUsage.Border),offset:t.lengthAttr(e,"space",n.LengthUsage.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}t.parseBorder=a,t.parseBorders=function(e,t){for(var r={},n=0,o=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlLastRenderedPageBreak=t.WmlBreak=void 0;var n=r(655),a=r(825),o=r(120),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="textWrapping",t}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("type")],t.prototype,"type",void 0),(0,n.__decorate)([(0,a.fromAttribute)("clear")],t.prototype,"clear",void 0),(0,n.__decorate)([(0,a.element)("br")],t)}(o.DocxElement);t.WmlBreak=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("lastRenderedPageBreak")],t)}(o.DocxElement);t.WmlLastRenderedPageBreak=l},149:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseElementValue=t.convertPercentage=t.convertBoolean=t.convertLength=t.LengthUsage=t.ns=void 0;var n=r(472);t.ns={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture"},t.LengthUsage={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:null}},t.convertLength=function(e,r){return void 0===r&&(r=t.LengthUsage.Dxa),e?e.endsWith("pt")?{value:parseFloat(e),type:"pt"}:e.endsWith("%")?{value:parseFloat(e),type:"%"}:{value:parseInt(e)*r.mul,type:r.unit}:null},t.convertBoolean=function(e,t){switch(void 0===t&&(t=!1),e){case"1":return!0;case"0":return!1;default:return t}},t.convertPercentage=function(e){return e?parseInt(e)/100:null},t.parseElementValue=function(e){return(0,n.attr)(e,"val")}},448:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPart=void 0;var n=r(655),a=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.documentElement=this._documentParser.parseDocumentFile(e)},t}(r(530).Part);t.DocumentPart=a},907:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlBody=t.WmlDocument=void 0;var n=r(655),a=r(825),o=r(120),s=r(59),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("document")],t)}(o.DocxElement);t.WmlDocument=l;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromElement)("sectPr",s.parseSectionProperties)],t.prototype,"sectionProps",void 0),(0,n.__decorate)([(0,a.element)("body")],t)}(o.DocxContainer);t.WmlBody=i},120:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DocxContainer=t.DocxElement=void 0;var n=r(655),a=function(e){this.parent=e,this.className=null,this.cssStyle={}};t.DocxElement=a;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.children=[],t}return(0,n.__extends)(t,e),t}(a);t.DocxContainer=o},192:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDmlPicture=t.DmlPicture=t.WmlDrawing=void 0;var n=r(655),a=r(472),o=r(825),s=r(120),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,o.element)("drawing")],t)}(s.DocxContainer);t.WmlDrawing=l;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t}(s.DocxContainer);t.DmlPicture=i,t.parseDmlPicture=function(e,t,r){void 0===r&&(r=a.default);var n=r.element(e,"blipFill"),o=r.element(n,"blip");t.resourceId=r.attr(o,"embed")}},750:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlFieldSimple=t.WmlFieldChar=void 0;var n=r(655),a=r(825),o=r(149),s=r(120),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("fldCharType")],t.prototype,"type",void 0),(0,n.__decorate)([(0,a.element)("fldChar")],t)}(s.DocxElement);t.WmlFieldChar=l;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("dirty",o.convertBoolean)],t.prototype,"dirty",void 0),(0,n.__decorate)([(0,a.fromAttribute)("fldLock",o.convertBoolean)],t.prototype,"lock",void 0),(0,n.__decorate)([(0,a.fromAttribute)("instr")],t.prototype,"instruction",void 0),(0,n.__decorate)([(0,a.element)("fldSimple")],t)}(s.DocxContainer);t.WmlFieldSimple=i},45:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlHyperlink=void 0;var n=r(655),a=r(472),o=r(825),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.parse=function(e){this.anchor=a.default.attr(e,"anchor")},(0,n.__decorate)([(0,o.fromAttribute)("anchor")],t.prototype,"anchor",void 0),(0,n.__decorate)([(0,o.element)("hyperlink")],t)}(r(120).DocxContainer);t.WmlHyperlink=s},305:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseIndentation=void 0,t.parseIndentation=function(e,t){return{start:t.lengthAttr(e,"start"),end:t.lengthAttr(e,"end"),hanging:t.lengthAttr(e,"hanging"),firstLine:t.lengthAttr(e,"firstLine")}}},931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseLineSpacing=void 0;var n=r(149);t.parseLineSpacing=function(e,t){var r=t.attr(e,"lineRule");return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.lengthAttr(e,"line","auto"===r?n.LengthUsage.LineHeight:n.LengthUsage.Dxa),lineRule:r}}},109:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumbering=t.parseTabs=t.parseParagraphProperty=t.parseParagraphProperties=t.WmlParagraph=void 0;var n=r(655),a=r(120),o=r(149),s=r(59),l=r(931),i=r(488),c=r(825),u=r(172),p=r(750),d=r(305),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.props={},t}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,c.element)("p"),(0,c.children)(u.WmlBookmarkStart,u.WmlBookmarkEnd,p.WmlFieldSimple)],t)}(a.DocxContainer);function h(e,t,r){if(e.namespaceURI!=o.ns.wordml)return!1;switch(e.localName){case"tabs":t.tabs=m(e,r);break;case"sectPr":t.sectionProps=(0,s.parseSectionProperties)(e,r);break;case"numPr":t.numbering=v(e,r);break;case"spacing":t.lineSpacing=(0,l.parseLineSpacing)(e,r);break;case"ind":return t.indentation=(0,d.parseIndentation)(e,r),!1;case"textAlignment":t.textAlignment=r.attr(e,"val");break;case"keepNext":t.keepLines=r.boolAttr(e,"val",!0);break;case"keepNext":t.keepNext=r.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=r.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=r.intAttr(e,"val");break;case"pStyle":t.styleId=r.attr(e,"val");break;case"rPr":t.runProps=(0,i.parseRunProperties)(e,r);break;default:return!1}return!0}function m(e,t){return t.elements(e,"tab").map((function(e){return{position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}}))}function v(e,t){for(var r={},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.parseShading=t.parseRunFonts=t.parseRunProperty=t.parseRunProperties=t.WmlRun=void 0;var n=r(655),a=r(825),o=r(191),s=r(503),l=r(149),i=r(120),c=r(192),u=r(750),p=r(385),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.props={},t}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("r"),(0,a.children)(p.WmlText,p.WmlSymbol,p.WmlTab,s.WmlBreak,p.WmlInstructionText,u.WmlFieldChar,s.WmlLastRenderedPageBreak,c.WmlDrawing)],t)}(i.DocxContainer);function f(e,t,r){switch(e.localName){case"rStyle":t.styleName=r.attr(e,"val");break;case"bdr":t.border=(0,o.parseBorder)(e,r);break;case"rFonts":t.fonts=h(e,r);break;case"shd":t.shading=m(e,r);break;case"highlight":t.highlight=r.attr(e,"val");break;case"spacing":t.spacing=r.lengthAttr(e,"val");break;case"w":t.stretch=r.percentageAttr(e,"val");break;case"color":t.color=r.attr(e,"val");break;case"sz":t.fontSize=r.lengthAttr(e,"val",l.LengthUsage.FontSize);break;case"b":t.bold=r.boolAttr(e,"val",!0);break;case"strike":t.strike=r.boolAttr(e,"val",!0);break;case"dstrike":t.doubleStrike=r.boolAttr(e,"val",!0);break;case"i":t.italics=r.boolAttr(e,"val",!0);break;case"u":t.underline={color:r.attr(e,"color"),type:r.attr(e,"val")};break;case"caps":t.caps=r.boolAttr(e,"val",!0);break;case"smallCaps":t.smallCaps=r.boolAttr(e,"val",!0);break;case"imprint":t.imprint=r.boolAttr(e,"val",!0);break;case"outline":t.outline=r.boolAttr(e,"val",!0);break;case"vertAlign":t.verticalAlignment=r.attr(e,"val");break;default:return!1}return!0}function h(e,t){return{ascii:t.attr(e,"ascii"),hAscii:t.attr(e,"hAscii"),cs:t.attr(e,"cs"),eastAsia:t.attr(e,"eastAsia")}}function m(e,t){return{type:t.attr(e,"val"),foreground:t.attr(e,"color"),background:t.attr(e,"fill")}}t.WmlRun=d,t.parseRunProperties=function(e,t){for(var r={},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSectionProperties=t.SectionType=void 0;var n,a=r(472);function o(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map((function(e){return{width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}}))}}function s(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}(n=t.SectionType||(t.SectionType={})).Continuous="continuous",n.NextPage="nextPage",n.NextColumn="nextColumn",n.EvenPage="evenPage",n.OddPage="oddPage",t.parseSectionProperties=function(e,t){var r,n;void 0===t&&(t=a.default);for(var l={},i=0,c=t.elements(e);i{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlTableCell=void 0;var n=r(655),a=r(825),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("tc")],t)}(r(120).DocxContainer);t.WmlTableCell=o},765:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlTableRow=void 0;var n=r(655),a=r(825),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("tr")],t)}(r(120).DocxContainer);t.WmlTableRow=o},631:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseTableColumns=t.parseTableLook=t.parseTableProperties=t.WmlTable=void 0;var n=r(655),a=r(472),o=r(825),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,o.fromElement)("tblGrid",c)],t.prototype,"columns",void 0),(0,n.__decorate)([(0,o.fromElement)("tblPr",l)],t.prototype,"props",void 0),(0,n.__decorate)([(0,o.element)("tbl")],t)}(r(120).DocxContainer);function l(e){for(var t={},r=0,n=(0,a.elements)(e);r{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlInstructionText=t.WmlTab=t.WmlSymbol=t.WmlText=void 0;var n=r(655),a=r(825),o=r(120),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromText)()],t.prototype,"text",void 0),(0,n.__decorate)([(0,a.element)("t")],t)}(o.DocxElement);t.WmlText=s;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromAttribute)("font")],t.prototype,"font",void 0),(0,n.__decorate)([(0,a.fromAttribute)("char")],t.prototype,"char",void 0),(0,n.__decorate)([(0,a.element)("sym")],t)}(o.DocxElement);t.WmlSymbol=l;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.element)("tab")],t)}(o.DocxElement);t.WmlTab=i;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,a.fromText)()],t.prototype,"text",void 0),(0,n.__decorate)([(0,a.element)("instrText")],t)}(o.DocxElement);t.WmlInstructionText=c},667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderAsync=t.defaults=void 0;var n=r(655),a=r(213),o=r(168),s=r(932);t.defaults={trimXmlDeclaration:!1,keepOrigin:!1,ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,ignoreLastRenderedPageBreak:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0},t.renderAsync=function(e,r,l,i){void 0===l&&(l=null),void 0===i&&(i=null);var c=new o.DocumentParser,u=new s.HtmlRenderer(window.document),p=(0,n.__assign)((0,n.__assign)({},t.defaults),i);return Object.assign(c,p),Object.assign(u,p),a.WordDocument.load(e,c,p).then((function(e){return u.render(e,r,l,p),e}))}},380:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontTablePart=void 0;var n=r(655),a=r(530),o=r(512),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.fonts=(0,o.parseFonts)(e,this._package.xmlParser)},t}(a.Part);t.FontTablePart=s},512:(e,t)=>{function r(e,t){for(var r={name:t.attr(e,"name")},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.FooterPart=void 0;var n=r(655),a=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.footerElement=this._documentParser.parseFooter(e)},t}(r(530).Part);t.FooterPart=a},979:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlFooter=void 0;var n=r(655),a=r(120),o=r(825),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,o.element)("ftr")],t)}(a.DocxContainer);t.WmlFooter=s},602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderPart=void 0;var n=r(655),a=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.headerElement=this._documentParser.parseHeader(e)},t}(r(530).Part);t.HeaderPart=a},662:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WmlHeader=void 0;var n=r(655),a=r(120),o=r(825),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),(0,n.__decorate)([(0,o.element)("hdr")],t)}(a.DocxContainer);t.WmlHeader=s},932:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HtmlRenderer=t.autos=void 0;var n=r(655),a=r(109),o=r(593),s=r(630),l=r(488),i=r(172),c=r(631),u=r(765),p=r(245),d=r(45),f=r(192),h=r(503),m=r(385),v=r(662),b=r(979);t.autos={shd:"white",color:"black",highlight:"transparent"};var y=function(){function e(e){this.htmlDocument=e,this.inWrapper=!0,this.className="docx",this.keepOrigin=!1,this.renderHeaders=!0,this.renderFooters=!0}return e.prototype.render=function(e,t,r,n){void 0===r&&(r=null),this.document=e,this.options=n,this.domStyleMap=null,P(r=r||t),P(t),_(r,"docxjs library predefined styles"),r.appendChild(this.renderDefaultStyle()),null!=e.stylesPart&&(this.domStyleMap=this.processDomStyles(e.stylesPart.domStyles),this.styleMap=this.processStyles(e.stylesPart.styles),_(r,"docx document styles"),r.appendChild(this.renderStyles(e.stylesPart.domStyles))),e.numberingPart&&(_(r,"docx document numbering styles"),r.appendChild(this.renderNumbering(e.numberingPart.domNumberings,r))),!n.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,r);var a=this.renderSections(e.documentPart.documentElement.body);if(this.inWrapper){var o=this.renderWrapper();g(o,a),t.appendChild(o)}else g(t,a)},e.prototype.renderFontTable=function(e,t){for(var r=function(e){n.document.loadFont(e.refId,e.fontKey).then((function(r){var n='@font-face {\n font-family: "'+e.name+'";\n src: url('+r+");\n }";_(t,"Font "+e.name),t.appendChild(k(n))}))},n=this,a=0,o=e.fonts.filter((function(e){return e.refId}));a0&&i.copyStyleProperties(s[0].values,e.values)},i=this,c=0,u=f.styles;c0&&(h=d.children.findIndex((function(e){var t,n;return-1!=(m=null!==(n=null===(t=e.children)||void 0===t?void 0:t.findIndex(r.isPageBreakElement.bind(r)))&&void 0!==n?n:-1)}))),(f||-1!=h)&&(n.sectProps=f,n={sectProps:null,elements:[]},o.push(n)),-1!=h){var v=d.children[h],b=m=0;x--)null==o[x].sectProps?o[x].sectProps=_:_=o[x].sectProps;return o},e.prototype.renderLength=function(e){var t;return e?""+e.value.toFixed(2)+(null!==(t=e.type)&&void 0!==t?t:""):null},e.prototype.renderColor=function(e,t){return void 0===t&&(t="black"),/[a-f0-9]{6}/i.test(e)?"#"+e:"auto"===e?t:e},e.prototype.renderWrapper=function(){var e=document.createElement("div");return e.className=this.className+"-wrapper",e},e.prototype.renderDefaultStyle=function(){var e=this.className;return k("\n."+e+"-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n."+e+"-wrapper section."+e+" { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n."+e+" { color: black; }\nsection."+e+" { box-sizing: border-box; }\n."+e+" table { border-collapse: collapse; }\n."+e+" table td, ."+e+" table th { vertical-align: top; }\n."+e+" p { margin: 0pt; min-height: 1em; }\n")},e.prototype.renderNumbering=function(e,t){for(var r,a,o=this,s="",l=[],i=function(){if(r="p."+c.numberingClass(d.id,d.level),a="none",d.bullet){var e=("--"+c.className+"-"+d.bullet.src).toLowerCase();s+=c.styleToString(r+":before",{content:"' '",display:"inline-block",background:"var("+e+")"},d.bullet.style),c.document.loadNumberingImage(d.bullet.src).then((function(r){var n="."+o.className+"-wrapper { "+e+": url("+r+") }";t.appendChild(k(n))}))}else if(d.levelText){var i=c.numberingCounter(d.id,d.level);d.level>0?s+=c.styleToString("p."+c.numberingClass(d.id,d.level-1),{"counter-reset":i}):l.push(i),s+=c.styleToString(r+":before",(0,n.__assign)({content:c.levelTextToContent(d.levelText,d.suff,d.id,c.numFormatToCssValue(d.format)),"counter-increment":i},d.rStyle))}else a=c.numFormatToCssValue(d.format);s+=c.styleToString(r,(0,n.__assign)({display:"list-item","list-style-position":"inside","list-style-type":a},d.pStyle))},c=this,u=0,p=e;u0&&(s+=this.styleToString("."+this.className+"-wrapper",{"counter-reset":l.join(" ")})),k(s)},e.prototype.renderStyles=function(e){for(var t="",r=this.domStyleMap,n=0,a=e;n{Object.defineProperty(t,"__esModule",{value:!0}),t.updateTabStop=void 0,t.updateTabStop=function(e,t,r){void 0===r&&(r=.75);var n=e.closest("p"),a=e.getBoundingClientRect(),o=n.getBoundingClientRect(),s=(a.left-o.left)*r,l=t.find((function(e){return"clear"!=e.style&&e.position.value>s}));if(null!=l)switch(e.style.display="inline-block",e.style.width=l.position.value-s+"pt",l.leader){case"dot":case"middleDot":e.style.borderBottom="1px black dotted";break;case"hyphen":case"heavy":case"underscore":e.style.borderBottom="1px black solid"}}},527:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberingPart=void 0;var n=r(655),a=r(530),o=r(682),s=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){Object.assign(this,(0,o.parseNumberingPart)(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)},t}(a.Part);t.NumberingPart=s},682:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberingBulletPicture=t.parseNumberingLevelOverrride=t.parseNumberingLevel=t.parseAbstractNumbering=t.parseNumbering=t.parseNumberingPart=void 0;var n=r(109),a=r(488);function o(e,t){for(var r={id:t.attr(e,"numId"),overrides:[]},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.XmlParser=t.attr=t.elements=t.serializeXmlString=t.parseXmlString=void 0;var n=r(149);function a(e,t){void 0===t&&(t=null);for(var r=[],n=0,a=e.childNodes.length;n/,""));var r,n=(new DOMParser).parseFromString(e,"application/xml"),a=null===(r=n.getElementsByTagName("parsererror")[0])||void 0===r?void 0:r.textContent;if(a)throw new Error(a);return n},t.serializeXmlString=function(e){return(new XMLSerializer).serializeToString(e)},t.elements=a,t.attr=o;var s=function(){function e(){this.elements=a,this.attr=o}return e.prototype.element=function(e,t){for(var r=0,n=e.childNodes.length;r{Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeSchema=t.deserializeElement=t.buildXmlSchema=t.fromElement=t.fromAttribute=t.fromText=t.children=t.element=void 0;var r=Symbol("open-xml-schema");function n(e,t,r){r.text&&(t[(s=r.text).prop]=s.convert?s.convert(e.textContent):e.textContent);for(var n=0,a=e.attributes.length;n{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDocumentDefaults=void 0;var n=r(109),a=r(488);t.parseDocumentDefaults=function(e,t){for(var r={},o=0,s=t.elements(e);o{Object.defineProperty(t,"__esModule",{value:!0}),t.parseStyle=t.WmlStyle=void 0;var n=r(655),a=r(149),o=r(109),s=r(488),l=r(825),i=function(){function e(){}return(0,n.__decorate)([(0,l.fromAttribute)("styleId")],e.prototype,"id",void 0),(0,n.__decorate)([(0,l.fromAttribute)("type")],e.prototype,"type",void 0),(0,n.__decorate)([(0,l.fromAttribute)("customStyle",a.convertBoolean)],e.prototype,"customStyle",void 0),(0,n.__decorate)([(0,l.fromAttribute)("default",a.convertBoolean)],e.prototype,"default",void 0),(0,n.__decorate)([(0,l.element)("style")],e)}();t.WmlStyle=i,t.parseStyle=function(e,t){for(var r=(0,l.deserializeElement)(e,new i,null),n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.parseStylesPart=t.StylesPart=void 0;var n=r(655),a=r(530),o=r(805),s=r(720),l=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return a._documentParser=n,a}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){Object.assign(this,i(e,this._package.xmlParser)),this.domStyles=this._documentParser.parseStylesFile(e)},t}(a.Part);function i(e,t){for(var r={styles:[]},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemePart=void 0;var n=r(655),a=r(530),o=r(55),s=function(e){function t(t,r){return e.call(this,t,r)||this}return(0,n.__extends)(t,e),t.prototype.parseXml=function(e){this.theme=(0,o.parseTheme)(e,this._package.xmlParser)},t}(a.Part);t.ThemePart=s},55:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseFontInfo=t.parseFontScheme=t.parseColorScheme=t.parseTheme=t.DmlTheme=void 0;var r=function(){};function n(e,t){for(var r={name:t.attr(e,"name"),colors:{}},n=0,a=t.elements(e);n{Object.defineProperty(t,"__esModule",{value:!0}),t.mergeDeep=t.isObject=t.keyBy=t.resolvePath=t.splitPath=t.appendClass=t.addElementClass=void 0;var n=r(655);function a(e,t){return e?e+" "+t:t}function o(e){return e&&"object"==typeof e&&!Array.isArray(e)}t.addElementClass=function(e,t){return e.className=a(e.className,t)},t.appendClass=a,t.splitPath=function(e){var t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]},t.resolvePath=function(e,t){try{var r="file://docx/";return new URL(e,r+t).toString().substr(r.length)}catch(r){return""+t+e}},t.keyBy=function(e,t){return e.reduce((function(e,r){return e[t(r)]=r,e}),{})},t.isObject=o,t.mergeDeep=function e(t){for(var r,a=[],s=1;s{Object.defineProperty(t,"__esModule",{value:!0}),t.deobfuscate=t.WordDocument=void 0;var n=r(461),a=r(380),o=r(522),s=r(448),l=r(593),i=r(527),c=r(240),u=r(279),p=r(602),d=r(665),f=r(162),h=r(893),m=[{type:n.RelationshipTypes.OfficeDocument,target:"word/document.xml"},{type:n.RelationshipTypes.ExtendedProperties,target:"docProps/app.xml"},{type:n.RelationshipTypes.CoreProperties,target:"docProps/core.xml"}],v=function(){function e(){this.parts=[],this.partsMap={}}return e.load=function(t,r,n){var a=new e;return a._parser=r,o.OpenXmlPackage.load(t,n).then((function(e){return a._package=e,a._package.loadRelationships()})).then((function(e){a.rels=e;var t=m.map((function(t){var r,n=null!==(r=e.find((function(e){return e.type===t.type})))&&void 0!==r?r:t;return a.loadRelationshipPart(n.target,n.type)}));return Promise.all(t)})).then((function(){return a}))},e.prototype.save=function(e){return void 0===e&&(e="blob"),this._package.save(e)},e.prototype.loadRelationshipPart=function(e,t){var r=this;if(this.partsMap[e])return Promise.resolve(this.partsMap[e]);if(!this._package.get(e))return Promise.resolve(null);var o=null;switch(t){case n.RelationshipTypes.OfficeDocument:this.documentPart=o=new s.DocumentPart(this._package,e,this._parser);break;case n.RelationshipTypes.FontTable:this.fontTablePart=o=new a.FontTablePart(this._package,e);break;case n.RelationshipTypes.Numbering:this.numberingPart=o=new i.NumberingPart(this._package,e,this._parser);break;case n.RelationshipTypes.Styles:this.stylesPart=o=new c.StylesPart(this._package,e,this._parser);break;case n.RelationshipTypes.Theme:o=new h.ThemePart(this._package,e);break;case n.RelationshipTypes.Footer:o=new u.FooterPart(this._package,e,this._parser);break;case n.RelationshipTypes.Header:o=new p.HeaderPart(this._package,e,this._parser);break;case n.RelationshipTypes.CoreProperties:this.corePropsPart=o=new f.CorePropsPart(this._package,e);break;case n.RelationshipTypes.ExtendedProperties:this.extendedPropsPart=o=new d.ExtendedPropsPart(this._package,e)}return null==o?Promise.resolve(null):(this.partsMap[e]=o,this.parts.push(o),o.load().then((function(){if(null==o.rels||0==o.rels.length)return o;var e=(0,l.splitPath)(o.path)[0],t=o.rels.map((function(t){return r.loadRelationshipPart((0,l.resolvePath)(t.target,e),t.type)}));return Promise.all(t).then((function(){return o}))})))},e.prototype.loadDocumentImage=function(e){return this.loadResource(this.documentPart,e,"blob").then((function(e){return e?URL.createObjectURL(e):null}))},e.prototype.loadNumberingImage=function(e){return this.loadResource(this.numberingPart,e,"blob").then((function(e){return e?URL.createObjectURL(e):null}))},e.prototype.loadFont=function(e,t){return this.loadResource(this.fontTablePart,e,"uint8array").then((function(e){return e?URL.createObjectURL(new Blob([b(e,t)])):e}))},e.prototype.getPathById=function(e,t){var r=e.rels.find((function(e){return e.id==t})),n=(0,l.splitPath)(e.path)[0];return r?(0,l.resolvePath)(r.target,n):null},e.prototype.loadResource=function(e,t,r){var n=this.getPathById(e,t);return n?this._package.load(n,r):Promise.resolve(null)},e}();function b(e,t){for(var r=t.replace(/{|}|-/g,""),n=new Array(16),a=0;a<16;a++)n[16-a-1]=parseInt(r.substr(2*a,2),16);for(a=0;a<32;a++)e[a]=e[a]^n[a%16];return e}t.WordDocument=v,t.deobfuscate=b},655:(e,t,r)=>{r.r(t),r.d(t,{__extends:()=>a,__assign:()=>o,__rest:()=>s,__decorate:()=>l,__param:()=>i,__metadata:()=>c,__awaiter:()=>u,__generator:()=>p,__createBinding:()=>d,__exportStar:()=>f,__values:()=>h,__read:()=>m,__spread:()=>v,__spreadArrays:()=>b,__spreadArray:()=>y,__await:()=>g,__asyncGenerator:()=>P,__asyncDelegator:()=>k,__asyncValues:()=>_,__makeTemplateObject:()=>x,__importStar:()=>S,__importDefault:()=>A,__classPrivateFieldGet:()=>N,__classPrivateFieldSet:()=>T});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;l--)(a=e[l])&&(s=(o<3?a(s):o>3?a(t,r,s):a(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function i(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))((function(a,o){function s(e){try{i(n.next(e))}catch(e){o(e)}}function l(e){try{i(n.throw(e))}catch(e){o(e)}}function i(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,l)}i((n=n.apply(e,t||[])).next())}))}function p(e,t){var r,n,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s}function v(){for(var e=[],t=0;t1||l(e,t)}))})}function l(e,t){try{(r=a[e](t)).value instanceof g?Promise.resolve(r.value.v).then(i,c):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function i(e){l("next",e)}function c(e){l("throw",e)}function u(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}}function k(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:g(e[n](t)),done:"return"===n}:a?a(t):t}:a}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,a){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,a,(t=e[r](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&d(t,e,r);return w(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function N(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r}},290:t=>{t.exports=e}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(667)})()})); -//# sourceMappingURL=docx-preview.min.js.map \ No newline at end of file diff --git a/web-v2-res/static/js/highlight.min.js b/web-v2-res/static/js/highlight.min.js deleted file mode 100644 index ffeb034..0000000 --- a/web-v2-res/static/js/highlight.min.js +++ /dev/null @@ -1,1358 +0,0 @@ -/* - Highlight.js 10.7.2 (00233d63) - License: BSD-3-Clause - Copyright (c) 2006-2021, Ivan Sagalaev -*/ -var hljs=function(){"use strict";function e(t){ -return t instanceof Map?t.clear=t.delete=t.set=()=>{ -throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{ -throw Error("set is read-only") -}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{var i=t[n] -;"object"!=typeof i||Object.isFrozen(i)||e(i)})),t}var t=e,n=e;t.default=n -;class i{constructor(e){ -void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1} -ignoreMatch(){this.isMatchIgnored=!0}}function s(e){ -return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'") -}function a(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t] -;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const r=e=>!!e.kind -;class l{constructor(e,t){ -this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){ -this.buffer+=s(e)}openNode(e){if(!r(e))return;let t=e.kind -;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){ -r(e)&&(this.buffer+="")}value(){return this.buffer}span(e){ -this.buffer+=``}}class o{constructor(){this.rootNode={ -children:[]},this.stack=[this.rootNode]}get top(){ -return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){ -this.top.children.push(e)}openNode(e){const t={kind:e,children:[]} -;this.add(t),this.stack.push(t)}closeNode(){ -if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){ -for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)} -walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){ -return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t), -t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){ -"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{ -o._collapse(e)})))}}class c extends o{constructor(e){super(),this.options=e} -addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())} -addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root -;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){ -return new l(this,this.options).value()}finalize(){return!0}}function g(e){ -return e?"string"==typeof e?e:e.source:null} -const u=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,h="[a-zA-Z]\\w*",d="[a-zA-Z_]\\w*",f="\\b\\d+(\\.\\d+)?",p="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m="\\b(0b[01]+)",b={ -begin:"\\\\[\\s\\S]",relevance:0},E={className:"string",begin:"'",end:"'", -illegal:"\\n",contains:[b]},x={className:"string",begin:'"',end:'"', -illegal:"\\n",contains:[b]},v={ -begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ -},w=(e,t,n={})=>{const i=a({className:"comment",begin:e,end:t,contains:[]},n) -;return i.contains.push(v),i.contains.push({className:"doctag", -begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),i -},y=w("//","$"),N=w("/\\*","\\*/"),R=w("#","$");var _=Object.freeze({ -__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:h,UNDERSCORE_IDENT_RE:d, -NUMBER_RE:f,C_NUMBER_RE:p,BINARY_NUMBER_RE:m, -RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", -SHEBANG:(e={})=>{const t=/^#![ ]*\// -;return e.binary&&(e.begin=((...e)=>e.map((e=>g(e))).join(""))(t,/.*\b/,e.binary,/\b.*/)), -a({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{ -0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:b,APOS_STRING_MODE:E, -QUOTE_STRING_MODE:x,PHRASAL_WORDS_MODE:v,COMMENT:w,C_LINE_COMMENT_MODE:y, -C_BLOCK_COMMENT_MODE:N,HASH_COMMENT_MODE:R,NUMBER_MODE:{className:"number", -begin:f,relevance:0},C_NUMBER_MODE:{className:"number",begin:p,relevance:0}, -BINARY_NUMBER_MODE:{className:"number",begin:m,relevance:0},CSS_NUMBER_MODE:{ -className:"number", -begin:f+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", -relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp", -begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[b,{begin:/\[/,end:/\]/, -relevance:0,contains:[b]}]}]},TITLE_MODE:{className:"title",begin:h,relevance:0 -},UNDERSCORE_TITLE_MODE:{className:"title",begin:d,relevance:0},METHOD_GUARD:{ -begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:e=>Object.assign(e,{ -"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{ -t.data._beginMatch!==e[1]&&t.ignoreMatch()}})});function k(e,t){ -"."===e.input[e.index-1]&&t.ignoreMatch()}function M(e,t){ -t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)", -e.__beforeBegin=k,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords, -void 0===e.relevance&&(e.relevance=0))}function O(e,t){ -Array.isArray(e.illegal)&&(e.illegal=((...e)=>"("+e.map((e=>g(e))).join("|")+")")(...e.illegal)) -}function A(e,t){if(e.match){ -if(e.begin||e.end)throw Error("begin & end are not supported with match") -;e.begin=e.match,delete e.match}}function L(e,t){ -void 0===e.relevance&&(e.relevance=1)} -const I=["of","and","for","in","not","or","if","then","parent","list","value"] -;function j(e,t,n="keyword"){const i={} -;return"string"==typeof e?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach((n=>{ -Object.assign(i,j(e[n],t,n))})),i;function s(e,n){ -t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((t=>{const n=t.split("|") -;i[n[0]]=[e,B(n[0],n[1])]}))}}function B(e,t){ -return t?Number(t):(e=>I.includes(e.toLowerCase()))(e)?0:1} -function T(e,{plugins:t}){function n(t,n){ -return RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class i{ -constructor(){ -this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0} -addRule(e,t){ -t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]), -this.matchAt+=(e=>RegExp(e.toString()+"|").exec("").length-1)(e)+1}compile(){ -0===this.regexes.length&&(this.exec=()=>null) -;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(((e,t="|")=>{let n=0 -;return e.map((e=>{n+=1;const t=n;let i=g(e),s="";for(;i.length>0;){ -const e=u.exec(i);if(!e){s+=i;break} -s+=i.substring(0,e.index),i=i.substring(e.index+e[0].length), -"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+t):(s+=e[0],"("===e[0]&&n++)}return s -})).map((e=>`(${e})`)).join(t)})(e),!0),this.lastIndex=0}exec(e){ -this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e) -;if(!t)return null -;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n] -;return t.splice(0,n),Object.assign(t,i)}}class s{constructor(){ -this.rules=[],this.multiRegexes=[], -this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){ -if(this.multiRegexes[e])return this.multiRegexes[e];const t=new i -;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))), -t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){ -return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){ -this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){ -const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex -;let n=t.exec(e) -;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{ -const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)} -return n&&(this.regexIndex+=n.position+1, -this.regexIndex===this.count&&this.considerAll()),n}} -if(e.compilerExtensions||(e.compilerExtensions=[]), -e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.") -;return e.classNameAliases=a(e.classNameAliases||{}),function t(i,r){const l=i -;if(i.isCompiled)return l -;[A].forEach((e=>e(i,r))),e.compilerExtensions.forEach((e=>e(i,r))), -i.__beforeBegin=null,[M,O,L].forEach((e=>e(i,r))),i.isCompiled=!0;let o=null -;if("object"==typeof i.keywords&&(o=i.keywords.$pattern, -delete i.keywords.$pattern), -i.keywords&&(i.keywords=j(i.keywords,e.case_insensitive)), -i.lexemes&&o)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ") -;return o=o||i.lexemes||/\w+/, -l.keywordPatternRe=n(o,!0),r&&(i.begin||(i.begin=/\B|\b/), -l.beginRe=n(i.begin),i.endSameAsBegin&&(i.end=i.begin), -i.end||i.endsWithParent||(i.end=/\B|\b/), -i.end&&(l.endRe=n(i.end)),l.terminatorEnd=g(i.end)||"", -i.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(i.end?"|":"")+r.terminatorEnd)), -i.illegal&&(l.illegalRe=n(i.illegal)), -i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>a(e,{ -variants:null},t)))),e.cachedVariants?e.cachedVariants:S(e)?a(e,{ -starts:e.starts?a(e.starts):null -}):Object.isFrozen(e)?a(e):e))("self"===e?i:e)))),i.contains.forEach((e=>{t(e,l) -})),i.starts&&t(i.starts,r),l.matcher=(e=>{const t=new s -;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin" -}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end" -}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(l),l}(e)}function S(e){ -return!!e&&(e.endsWithParent||S(e.starts))}function P(e){const t={ -props:["language","code","autodetect"],data:()=>({detectedLanguage:"", -unknownLanguage:!1}),computed:{className(){ -return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){ -if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`), -this.unknownLanguage=!0,s(this.code);let t={} -;return this.autoDetect?(t=e.highlightAuto(this.code), -this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals), -this.detectedLanguage=this.language),t.value},autoDetect(){ -return!(this.language&&(e=this.autodetect,!e&&""!==e));var e}, -ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{ -class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{ -Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const D={ -"after:highlightElement":({el:e,result:t,text:n})=>{const i=H(e) -;if(!i.length)return;const a=document.createElement("div") -;a.innerHTML=t.value,t.value=((e,t,n)=>{let i=0,a="";const r=[];function l(){ -return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function c(e){ -a+=""}function g(e){("start"===e.event?o:c)(e.node)} -for(;e.length||t.length;){let t=l() -;if(a+=s(n.substring(i,t[0].offset)),i=t[0].offset,t===e){r.reverse().forEach(c) -;do{g(t.splice(0,1)[0]),t=l()}while(t===e&&t.length&&t[0].offset===i) -;r.reverse().forEach(o) -}else"start"===t[0].event?r.push(t[0].node):r.pop(),g(t.splice(0,1)[0])} -return a+s(n.substr(i))})(i,H(a),n)}};function C(e){ -return e.nodeName.toLowerCase()}function H(e){const t=[];return function e(n,i){ -for(let s=n.firstChild;s;s=s.nextSibling)3===s.nodeType?i+=s.nodeValue.length:1===s.nodeType&&(t.push({ -event:"start",offset:i,node:s}),i=e(s,i),C(s).match(/br|hr|img|input/)||t.push({ -event:"stop",offset:i,node:s}));return i}(e,0),t}const $={},U=e=>{ -console.error(e)},z=(e,...t)=>{console.log("WARN: "+e,...t)},K=(e,t)=>{ -$[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),$[`${e}/${t}`]=!0) -},G=s,V=a,W=Symbol("nomatch");return(e=>{ -const n=Object.create(null),s=Object.create(null),a=[];let r=!0 -;const l=/(^(<[^>]+>|\t|)+|\n)/gm,o="Could not find the language '{}', did you forget to load/include a language module?",g={ -disableAutodetect:!0,name:"Plain text",contains:[]};let u={ -noHighlightRe:/^(no-?highlight)$/i, -languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-", -tabReplace:null,useBR:!1,languages:null,__emitter:c};function h(e){ -return u.noHighlightRe.test(e)}function d(e,t,n,i){let s="",a="" -;"object"==typeof t?(s=e, -n=t.ignoreIllegals,a=t.language,i=void 0):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."), -K("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), -a=e,s=t);const r={code:s,language:a};M("before:highlight",r) -;const l=r.result?r.result:f(r.language,r.code,n,i) -;return l.code=r.code,M("after:highlight",l),l}function f(e,t,s,l){ -function c(e,t){const n=v.case_insensitive?t[0].toLowerCase():t[0] -;return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]} -function g(){null!=R.subLanguage?(()=>{if(""===M)return;let e=null -;if("string"==typeof R.subLanguage){ -if(!n[R.subLanguage])return void k.addText(M) -;e=f(R.subLanguage,M,!0,_[R.subLanguage]),_[R.subLanguage]=e.top -}else e=p(M,R.subLanguage.length?R.subLanguage:null) -;R.relevance>0&&(O+=e.relevance),k.addSublanguage(e.emitter,e.language) -})():(()=>{if(!R.keywords)return void k.addText(M);let e=0 -;R.keywordPatternRe.lastIndex=0;let t=R.keywordPatternRe.exec(M),n="";for(;t;){ -n+=M.substring(e,t.index);const i=c(R,t);if(i){const[e,s]=i -;if(k.addText(n),n="",O+=s,e.startsWith("_"))n+=t[0];else{ -const n=v.classNameAliases[e]||e;k.addKeyword(t[0],n)}}else n+=t[0] -;e=R.keywordPatternRe.lastIndex,t=R.keywordPatternRe.exec(M)} -n+=M.substr(e),k.addText(n)})(),M=""}function h(e){ -return e.className&&k.openNode(v.classNameAliases[e.className]||e.className), -R=Object.create(e,{parent:{value:R}}),R}function d(e,t,n){let s=((e,t)=>{ -const n=e&&e.exec(t);return n&&0===n.index})(e.endRe,n);if(s){if(e["on:end"]){ -const n=new i(e);e["on:end"](t,n),n.isMatchIgnored&&(s=!1)}if(s){ -for(;e.endsParent&&e.parent;)e=e.parent;return e}} -if(e.endsWithParent)return d(e.parent,t,n)}function m(e){ -return 0===R.matcher.regexIndex?(M+=e[0],1):(I=!0,0)}function b(e){ -const n=e[0],i=t.substr(e.index),s=d(R,e,i);if(!s)return W;const a=R -;a.skip?M+=n:(a.returnEnd||a.excludeEnd||(M+=n),g(),a.excludeEnd&&(M=n));do{ -R.className&&k.closeNode(),R.skip||R.subLanguage||(O+=R.relevance),R=R.parent -}while(R!==s.parent) -;return s.starts&&(s.endSameAsBegin&&(s.starts.endRe=s.endRe), -h(s.starts)),a.returnEnd?0:n.length}let E={};function x(n,a){const l=a&&a[0] -;if(M+=n,null==l)return g(),0 -;if("begin"===E.type&&"end"===a.type&&E.index===a.index&&""===l){ -if(M+=t.slice(a.index,a.index+1),!r){const t=Error("0 width match regex") -;throw t.languageName=e,t.badRule=E.rule,t}return 1} -if(E=a,"begin"===a.type)return function(e){ -const t=e[0],n=e.rule,s=new i(n),a=[n.__beforeBegin,n["on:begin"]] -;for(const n of a)if(n&&(n(e,s),s.isMatchIgnored))return m(t) -;return n&&n.endSameAsBegin&&(n.endRe=RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")), -n.skip?M+=t:(n.excludeBegin&&(M+=t), -g(),n.returnBegin||n.excludeBegin||(M=t)),h(n),n.returnBegin?0:t.length}(a) -;if("illegal"===a.type&&!s){ -const e=Error('Illegal lexeme "'+l+'" for mode "'+(R.className||"")+'"') -;throw e.mode=R,e}if("end"===a.type){const e=b(a);if(e!==W)return e} -if("illegal"===a.type&&""===l)return 1 -;if(L>1e5&&L>3*a.index)throw Error("potential infinite loop, way more iterations than matches") -;return M+=l,l.length}const v=N(e) -;if(!v)throw U(o.replace("{}",e)),Error('Unknown language: "'+e+'"') -;const w=T(v,{plugins:a});let y="",R=l||w;const _={},k=new u.__emitter(u);(()=>{ -const e=[];for(let t=R;t!==v;t=t.parent)t.className&&e.unshift(t.className) -;e.forEach((e=>k.openNode(e)))})();let M="",O=0,A=0,L=0,I=!1;try{ -for(R.matcher.considerAll();;){ -L++,I?I=!1:R.matcher.considerAll(),R.matcher.lastIndex=A -;const e=R.matcher.exec(t);if(!e)break;const n=x(t.substring(A,e.index),e) -;A=e.index+n}return x(t.substr(A)),k.closeAllNodes(),k.finalize(),y=k.toHTML(),{ -relevance:Math.floor(O),value:y,language:e,illegal:!1,emitter:k,top:R}}catch(n){ -if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{ -msg:n.message,context:t.slice(A-100,A+100),mode:n.mode},sofar:y,relevance:0, -value:G(t),emitter:k};if(r)return{illegal:!1,relevance:0,value:G(t),emitter:k, -language:e,top:R,errorRaised:n};throw n}}function p(e,t){ -t=t||u.languages||Object.keys(n);const i=(e=>{const t={relevance:0, -emitter:new u.__emitter(u),value:G(e),illegal:!1,top:g} -;return t.emitter.addText(e),t})(e),s=t.filter(N).filter(k).map((t=>f(t,e,!1))) -;s.unshift(i);const a=s.sort(((e,t)=>{ -if(e.relevance!==t.relevance)return t.relevance-e.relevance -;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1 -;if(N(t.language).supersetOf===e.language)return-1}return 0})),[r,l]=a,o=r -;return o.second_best=l,o}const m={"before:highlightElement":({el:e})=>{ -u.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")) -},"after:highlightElement":({result:e})=>{ -u.useBR&&(e.value=e.value.replace(/\n/g,"
                        "))}},b=/^(<[^>]+>|\t)+/gm,E={ -"after:highlightElement":({result:e})=>{ -u.tabReplace&&(e.value=e.value.replace(b,(e=>e.replace(/\t/g,u.tabReplace))))}} -;function x(e){let t=null;const n=(e=>{let t=e.className+" " -;t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t) -;if(n){const t=N(n[1]) -;return t||(z(o.replace("{}",n[1])),z("Falling back to no-highlight mode for this block.",e)), -t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>h(e)||N(e)))})(e) -;if(h(n))return;M("before:highlightElement",{el:e,language:n}),t=e -;const i=t.textContent,a=n?d(i,{language:n,ignoreIllegals:!0}):p(i) -;M("after:highlightElement",{el:e,result:a,text:i -}),e.innerHTML=a.value,((e,t,n)=>{const i=t?s[t]:n -;e.classList.add("hljs"),i&&e.classList.add(i)})(e,n,a.language),e.result={ -language:a.language,re:a.relevance,relavance:a.relevance -},a.second_best&&(e.second_best={language:a.second_best.language, -re:a.second_best.relevance,relavance:a.second_best.relevance})}const v=()=>{ -v.called||(v.called=!0, -K("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."), -document.querySelectorAll("pre code").forEach(x))};let w=!1;function y(){ -"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(x):w=!0 -}function N(e){return e=(e||"").toLowerCase(),n[e]||n[s[e]]} -function R(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{ -s[e.toLowerCase()]=t}))}function k(e){const t=N(e) -;return t&&!t.disableAutodetect}function M(e,t){const n=e;a.forEach((e=>{ -e[n]&&e[n](t)}))} -"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(()=>{ -w&&y()}),!1),Object.assign(e,{highlight:d,highlightAuto:p,highlightAll:y, -fixMarkup:e=>{ -return K("10.2.0","fixMarkup will be removed entirely in v11.0"),K("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"), -t=e, -u.tabReplace||u.useBR?t.replace(l,(e=>"\n"===e?u.useBR?"
                        ":e:u.tabReplace?e.replace(/\t/g,u.tabReplace):e)):t -;var t},highlightElement:x, -highlightBlock:e=>(K("10.7.0","highlightBlock will be removed entirely in v12.0"), -K("10.7.0","Please use highlightElement now."),x(e)),configure:e=>{ -e.useBR&&(K("10.3.0","'useBR' will be removed entirely in v11.0"), -K("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")), -u=V(u,e)},initHighlighting:v,initHighlightingOnLoad:()=>{ -K("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."), -w=!0},registerLanguage:(t,i)=>{let s=null;try{s=i(e)}catch(e){ -if(U("Language definition for '{}' could not be registered.".replace("{}",t)), -!r)throw e;U(e),s=g} -s.name||(s.name=t),n[t]=s,s.rawDefinition=i.bind(null,e),s.aliases&&R(s.aliases,{ -languageName:t})},unregisterLanguage:e=>{delete n[e] -;for(const t of Object.keys(s))s[t]===e&&delete s[t]}, -listLanguages:()=>Object.keys(n),getLanguage:N,registerAliases:R, -requireLanguage:e=>{ -K("10.4.0","requireLanguage will be removed entirely in v11."), -K("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844") -;const t=N(e);if(t)return t -;throw Error("The '{}' language is required, but not loaded.".replace("{}",e))}, -autoDetection:k,inherit:V,addPlugin:e=>{(e=>{ -e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{ -e["before:highlightBlock"](Object.assign({block:t.el},t)) -}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{ -e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),a.push(e)}, -vuePlugin:P(e).VuePlugin}),e.debugMode=()=>{r=!1},e.safeMode=()=>{r=!0 -},e.versionString="10.7.2";for(const e in _)"object"==typeof _[e]&&t(_[e]) -;return Object.assign(e,_),e.addPlugin(m),e.addPlugin(D),e.addPlugin(E),e})({}) -}();"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs); -hljs.registerLanguage("apache",(()=>{"use strict";return e=>{const n={ -className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/} -;return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0, -contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/, -contains:[n,{className:"number",begin:/:\d{1,5}/ -},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute", -begin:/\w+/,relevance:0,keywords:{ -nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername" -},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"}, -contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable", -begin:/[\$%]\{/,end:/\}/,contains:["self",{className:"number",begin:/[$%]\d+/}] -},n,{className:"number",begin:/\d+/},e.QUOTE_STRING_MODE]}}],illegal:/\S/}} -})()); -hljs.registerLanguage("bash",(()=>{"use strict";function e(...e){ -return e.map((e=>{return(s=e)?"string"==typeof s?s:s.source:null;var s -})).join("")}return s=>{const n={},t={begin:/\$\{/,end:/\}/,contains:["self",{ -begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{ -begin:e(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},t]});const a={ -className:"subst",begin:/\$\(/,end:/\)/,contains:[s.BACKSLASH_ESCAPE]},i={ -begin:/<<-?\s*(?=\w+)/,starts:{contains:[s.END_SAME_AS_BEGIN({begin:/(\w+)/, -end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/, -contains:[s.BACKSLASH_ESCAPE,n,a]};a.contains.push(c);const o={begin:/\$\(\(/, -end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},s.NUMBER_MODE,n] -},r=s.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10 -}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0, -contains:[s.inherit(s.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{ -name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/, -keyword:"if then else elif fi for while in do done case esac function", -literal:"true false", -built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp" -},contains:[r,s.SHEBANG(),l,o,s.HASH_COMMENT_MODE,i,c,{className:"",begin:/\\"/ -},{className:"string",begin:/'/,end:/'/},n]}}})()); -hljs.registerLanguage("c",(()=>{"use strict";function e(e){ -return((...e)=>e.map((e=>(e=>e?"string"==typeof e?e:e.source:null)(e))).join(""))("(",e,")?") -}return t=>{const n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}] -}),r="[a-zA-Z_]\\w*::",a="(decltype\\(auto\\)|"+e(r)+"[a-zA-Z_]\\w*"+e("<[^<>]+>")+")",i={ -className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string", -variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n", -contains:[t.BACKSLASH_ESCAPE]},{ -begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", -end:"'",illegal:"."},t.END_SAME_AS_BEGIN({ -begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={ -className:"number",variants:[{begin:"\\b(0b[01']+)"},{ -begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" -},{ -begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" -}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ -"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" -},contains:[{begin:/\\\n/,relevance:0},t.inherit(s,{className:"meta-string"}),{ -className:"meta-string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},l={ -className:"title",begin:e(r)+t.IDENT_RE,relevance:0 -},d=e(r)+t.IDENT_RE+"\\s*\\(",u={ -keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq", -built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary", -literal:"true false nullptr NULL"},m=[c,i,n,t.C_BLOCK_COMMENT_MODE,o,s],p={ -variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{ -beginKeywords:"new throw return else",end:/;/}],keywords:u,contains:m.concat([{ -begin:/\(/,end:/\)/,keywords:u,contains:m.concat(["self"]),relevance:0}]), -relevance:0},_={className:"function",begin:"("+a+"[\\*&\\s]+)+"+d, -returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:u,illegal:/[^\w\s\*&:<>.]/, -contains:[{begin:"decltype\\(auto\\)",keywords:u,relevance:0},{begin:d, -returnBegin:!0,contains:[l],relevance:0},{className:"params",begin:/\(/, -end:/\)/,keywords:u,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,s,o,i,{ -begin:/\(/,end:/\)/,keywords:u,relevance:0, -contains:["self",n,t.C_BLOCK_COMMENT_MODE,s,o,i]}] -},i,n,t.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:u, -disableAutodetect:!0,illegal:"",keywords:u,contains:["self",i]},{begin:t.IDENT_RE+"::",keywords:u},{ -className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/, -contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{ -preprocessor:c,strings:s,keywords:u}}}})()); -hljs.registerLanguage("coffeescript",(()=>{"use strict" -;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]) -;return r=>{const t={ -keyword:e.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((i=["var","const","let","function","static"], -e=>!i.includes(e))),literal:n.concat(["yes","no","on","off"]), -built_in:a.concat(["npm","print"])};var i;const s="[A-Za-z$_][0-9A-Za-z$_]*",o={ -className:"subst",begin:/#\{/,end:/\}/,keywords:t -},c=[r.BINARY_NUMBER_MODE,r.inherit(r.C_NUMBER_MODE,{starts:{end:"(\\s*/)?", -relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/, -contains:[r.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[r.BACKSLASH_ESCAPE] -},{begin:/"""/,end:/"""/,contains:[r.BACKSLASH_ESCAPE,o]},{begin:/"/,end:/"/, -contains:[r.BACKSLASH_ESCAPE,o]}]},{className:"regexp",variants:[{begin:"///", -end:"///",contains:[o,r.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)", -relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+s -},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{ -begin:"```",end:"```"},{begin:"`",end:"`"}]}];o.contains=c -;const l=r.inherit(r.TITLE_MODE,{begin:s}),d="(\\(.*\\)\\s*)?\\B[-=]>",g={ -className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/, -end:/\)/,keywords:t,contains:["self"].concat(c)}]};return{name:"CoffeeScript", -aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/, -contains:c.concat([r.COMMENT("###","###"),r.HASH_COMMENT_MODE,{ -className:"function",begin:"^\\s*"+s+"\\s*=\\s*"+d,end:"[-=]>",returnBegin:!0, -contains:[l,g]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function", -begin:d,end:"[-=]>",returnBegin:!0,contains:[g]}]},{className:"class", -beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{ -beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[l]},l] -},{begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}})()); -hljs.registerLanguage("cpp",(()=>{"use strict";function e(e){ -return t("(",e,")?")}function t(...e){return e.map((e=>{ -return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}return n=>{ -const r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}] -}),a="[a-zA-Z_]\\w*::",i="(decltype\\(auto\\)|"+e(a)+"[a-zA-Z_]\\w*"+e("<[^<>]+>")+")",s={ -className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string", -variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n", -contains:[n.BACKSLASH_ESCAPE]},{ -begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", -end:"'",illegal:"."},n.END_SAME_AS_BEGIN({ -begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={ -className:"number",variants:[{begin:"\\b(0b[01']+)"},{ -begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" -},{ -begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" -}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ -"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" -},contains:[{begin:/\\\n/,relevance:0},n.inherit(c,{className:"meta-string"}),{ -className:"meta-string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},d={ -className:"title",begin:e(a)+n.IDENT_RE,relevance:0 -},u=e(a)+n.IDENT_RE+"\\s*\\(",m={ -keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq", -built_in:"_Bool _Complex _Imaginary", -_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"], -literal:"true false nullptr NULL"},p={className:"function.dispatch",relevance:0, -keywords:m, -begin:t(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,n.IDENT_RE,(_=/\s*\(/, -t("(?=",_,")")))};var _;const g=[p,l,s,r,n.C_BLOCK_COMMENT_MODE,o,c],b={ -variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{ -beginKeywords:"new throw return else",end:/;/}],keywords:m,contains:g.concat([{ -begin:/\(/,end:/\)/,keywords:m,contains:g.concat(["self"]),relevance:0}]), -relevance:0},f={className:"function",begin:"("+i+"[\\*&\\s]+)+"+u, -returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:m,illegal:/[^\w\s\*&:<>.]/, -contains:[{begin:"decltype\\(auto\\)",keywords:m,relevance:0},{begin:u, -returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/, -endsWithParent:!0,contains:[c,o]},{className:"params",begin:/\(/,end:/\)/, -keywords:m,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,c,o,s,{begin:/\(/, -end:/\)/,keywords:m,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,c,o,s] -}]},s,r,n.C_BLOCK_COMMENT_MODE,l]};return{name:"C++", -aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:m,illegal:"",keywords:m,contains:["self",s]},{begin:n.IDENT_RE+"::",keywords:m},{ -className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/, -contains:[{beginKeywords:"final class struct"},n.TITLE_MODE]}]),exports:{ -preprocessor:l,strings:c,keywords:m}}}})()); -hljs.registerLanguage("csharp",(()=>{"use strict";return e=>{const n={ -keyword:["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]), -built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"], -literal:["default","false","null","true"]},a=e.inherit(e.TITLE_MODE,{ -begin:"[a-zA-Z](\\.?\\w)*"}),i={className:"number",variants:[{ -begin:"\\b(0b[01']+)"},{ -begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{ -begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" -}],relevance:0},s={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}] -},t=e.inherit(s,{illegal:/\n/}),r={className:"subst",begin:/\{/,end:/\}/, -keywords:n},l=e.inherit(r,{illegal:/\n/}),c={className:"string",begin:/\$"/, -end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/ -},e.BACKSLASH_ESCAPE,l]},o={className:"string",begin:/\$@"/,end:'"',contains:[{ -begin:/\{\{/},{begin:/\}\}/},{begin:'""'},r]},d=e.inherit(o,{illegal:/\n/, -contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},l]}) -;r.contains=[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE], -l.contains=[d,c,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.inherit(e.C_BLOCK_COMMENT_MODE,{ -illegal:/\n/})];const g={variants:[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] -},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},a] -},_=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",b={ -begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"], -keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0, -contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{ -begin:"\x3c!--|--\x3e"},{begin:""}]}] -}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#", -end:"$",keywords:{ -"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum" -}},g,i,{beginKeywords:"class interface",relevance:0,end:/[{;=]/, -illegal:/[^\s:,]/,contains:[{beginKeywords:"where class" -},a,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace", -relevance:0,end:/[{;=]/,illegal:/[^\s:]/, -contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ -beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/, -contains:[a,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta", -begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{ -className:"meta-string",begin:/"/,end:/"/}]},{ -beginKeywords:"new return throw await else",relevance:0},{className:"function", -begin:"("+_+"\\s+)+"+e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0, -end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{ -beginKeywords:"public private protected static internal protected abstract async extern override unsafe virtual new sealed partial", -relevance:0},{begin:e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0, -contains:[e.TITLE_MODE,E],relevance:0},{className:"params",begin:/\(/,end:/\)/, -excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0, -contains:[g,i,e.C_BLOCK_COMMENT_MODE] -},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},b]}}})()); -hljs.registerLanguage("css",(()=>{"use strict" -;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse() -;return n=>{const a=(e=>({IMPORTANT:{className:"meta",begin:"!important"}, -HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"}, -ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/, -illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]} -}))(n),l=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS", -case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"}, -classNameAliases:{keyframePosition:"selector-tag"}, -contains:[n.C_BLOCK_COMMENT_MODE,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/ -},n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0 -},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0 -},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{ -begin:":("+i.join("|")+")"},{begin:"::("+o.join("|")+")"}]},{ -className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{begin:":",end:"[;}]", -contains:[a.HEXCOLOR,a.IMPORTANT,n.CSS_NUMBER_MODE,...l,{ -begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri" -},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}] -},{className:"built_in",begin:/[\w-]+(?=\()/}]},{ -begin:(s=/@/,((...e)=>e.map((e=>(e=>e?"string"==typeof e?e:e.source:null)(e))).join(""))("(?=",s,")")), -end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword", -begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0, -relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only", -attribute:t.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute" -},...l,n.CSS_NUMBER_MODE]}]},{className:"selector-tag", -begin:"\\b("+e.join("|")+")\\b"}]};var s}})()); -hljs.registerLanguage("diff",(()=>{"use strict";return e=>({name:"Diff", -aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{ -begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{ -begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /, -end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/ -},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{ -begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{ -className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/, -end:/$/}]})})()); -hljs.registerLanguage("go",(()=>{"use strict";return e=>{const n={ -keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune", -literal:"true false iota nil", -built_in:"append cap close complex copy imag len make new panic print println real recover delete" -};return{name:"Go",aliases:["golang"],keywords:n,illegal:"{"use strict";function e(...e){ -return e.map((e=>{return(n=e)?"string"==typeof n?n:n.source:null;var n -})).join("")}return n=>{const a="HTTP/(2|1\\.[01])",s={className:"attribute", -begin:e("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{ -className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]} -},t=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{ -name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+a+" \\d{3})", -end:/$/,contains:[{className:"meta",begin:a},{className:"number", -begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:t}},{ -begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{className:"string", -begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:a},{ -className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:t} -},n.inherit(s,{relevance:0})]}}})()); -hljs.registerLanguage("ini",(()=>{"use strict";function e(e){ -return e?"string"==typeof e?e:e.source:null}function n(...n){ -return n.map((n=>e(n))).join("")}return s=>{const a={className:"number", -relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:s.NUMBER_RE}] -},i=s.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const t={ -className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/ -}]},r={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={ -className:"string",contains:[s.BACKSLASH_ESCAPE],variants:[{begin:"'''", -end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"' -},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,r,t,l,a,"self"], -relevance:0 -},g="("+[/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/].map((n=>e(n))).join("|")+")" -;return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/, -contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{ -begin:n(g,"(\\s*\\.\\s*",g,")*",n("(?=",/\s*=\s*[^#\s]/,")")),className:"attr", -starts:{end:/$/,contains:[i,c,r,t,l,a]}}]}}})()); -hljs.registerLanguage("java",(()=>{"use strict" -;var e="\\.([0-9](_*[0-9])*)",n="[0-9a-fA-F](_*[0-9a-fA-F])*",a={ -className:"number",variants:[{ -begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` -},{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ -begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{ -begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` -},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{ -begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}], -relevance:0};return e=>{ -var n="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",s={ -className:"meta",begin:"@[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*", -contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const r=a;return{ -name:"Java",aliases:["jsp"],keywords:n,illegal:/<\/|#/, -contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/, -relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{ -begin:/import java\.[a-z]+\./,keywords:"import",relevance:2 -},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{ -className:"class",beginKeywords:"class interface enum",end:/[{;=]/, -excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/, -contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{ -beginKeywords:"new throw return else",relevance:0},{className:"class", -begin:"record\\s+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0, -end:/[{;=]/,keywords:n,contains:[{beginKeywords:"record"},{ -begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, -contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/, -keywords:n,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE] -},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function", -begin:"([\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*(<[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*(\\s*,\\s*[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(", -returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{ -begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, -contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/, -keywords:n,relevance:0, -contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.C_BLOCK_COMMENT_MODE] -},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r,s]}}})()); -hljs.registerLanguage("javascript",(()=>{"use strict" -;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],s=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]) -;function r(e){return t("(?=",e,")")}function t(...e){return e.map((e=>{ -return(n=e)?"string"==typeof n?n:n.source:null;var n})).join("")}return i=>{ -const c=e,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/, -isTrulyOpeningTag:(e,n)=>{const a=e[0].length+e.index,s=e.input[a] -;"<"!==s?">"===s&&(((e,{after:n})=>{const a="", -returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{ -begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0 -},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:f}]}] -},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{ -variants:[{begin:"<>",end:""},{begin:o.begin,"on:begin":o.isTrulyOpeningTag, -end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0, -contains:["self"]}]}],relevance:0},{className:"function", -beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:l, -contains:["self",i.inherit(i.TITLE_MODE,{begin:c}),p],illegal:/%/},{ -beginKeywords:"while if switch catch for"},{className:"function", -begin:i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", -returnBegin:!0,contains:[p,i.inherit(i.TITLE_MODE,{begin:c})]},{variants:[{ -begin:"\\."+c},{begin:"\\$"+c}],relevance:0},{className:"class", -beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{ -beginKeywords:"extends"},i.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/, -end:/[{;]/,excludeEnd:!0,contains:[i.inherit(i.TITLE_MODE,{begin:c}),"self",p] -},{begin:"(get|set)\\s+(?="+c+"\\()",end:/\{/,keywords:"get set", -contains:[i.inherit(i.TITLE_MODE,{begin:c}),{begin:/\(\)/},p]},{begin:/\$[(.]/}] -}}})()); -hljs.registerLanguage("json",(()=>{"use strict";return n=>{const e={ -literal:"true false null" -},i=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],a=[n.QUOTE_STRING_MODE,n.C_NUMBER_MODE],l={ -end:",",endsWithParent:!0,excludeEnd:!0,contains:a,keywords:e},t={begin:/\{/, -end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/, -contains:[n.BACKSLASH_ESCAPE],illegal:"\\n"},n.inherit(l,{begin:/:/ -})].concat(i),illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[n.inherit(l)], -illegal:"\\S"};return a.push(t,s),i.forEach((n=>{a.push(n)})),{name:"JSON", -contains:a,keywords:e,illegal:"\\S"}}})()); -hljs.registerLanguage("kotlin",(()=>{"use strict" -;var e="\\.([0-9](_*[0-9])*)",n="[0-9a-fA-F](_*[0-9a-fA-F])*",a={ -className:"number",variants:[{ -begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` -},{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ -begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{ -begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` -},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{ -begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}], -relevance:0};return e=>{const n={ -keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual", -built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing", -literal:"true false null"},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@" -},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},t={ -className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},r={className:"string", -variants:[{begin:'"""',end:'"""(?=[^"])',contains:[t,s]},{begin:"'",end:"'", -illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/, -contains:[e.BACKSLASH_ESCAPE,t,s]}]};s.contains.push(r);const l={ -className:"meta", -begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?" -},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/, -end:/\)/,contains:[e.inherit(r,{className:"meta-string"})]}] -},o=a,b=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),E={ -variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/, -contains:[]}]},d=E;return d.variants[1].contains=[E],E.variants[1].contains=[d], -{name:"Kotlin",aliases:["kt","kts"],keywords:n, -contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag", -begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,b,{className:"keyword", -begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol", -begin:/@\w+/}]}},i,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$", -returnBegin:!0,excludeEnd:!0,keywords:n,relevance:5,contains:[{ -begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, -contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://, -keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/, -endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/, -endsWithParent:!0,contains:[E,e.C_LINE_COMMENT_MODE,b],relevance:0 -},e.C_LINE_COMMENT_MODE,b,l,c,r,e.C_NUMBER_MODE]},b]},{className:"class", -beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0, -illegal:"extends implements",contains:[{ -beginKeywords:"public protected internal private constructor" -},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0, -excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/, -excludeBegin:!0,returnEnd:!0},l,c]},r,{className:"meta",begin:"^#!/usr/bin/env", -end:"$",illegal:"\n"},o]}}})()); -hljs.registerLanguage("less",(()=>{"use strict" -;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],n=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),r=i.concat(o) -;return a=>{const s=(e=>({IMPORTANT:{className:"meta",begin:"!important"}, -HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"}, -ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/, -illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]} -}))(a),l=r,d="([\\w-]+|@\\{[\\w-]+\\})",c=[],g=[],b=e=>({className:"string", -begin:"~?"+e+".*?"+e}),m=(e,t,i)=>({className:e,begin:t,relevance:i}),u={ -$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},p={ -begin:"\\(",end:"\\)",contains:g,keywords:u,relevance:0} -;g.push(a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,b("'"),b('"'),a.CSS_NUMBER_MODE,{ -begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]", -excludeEnd:!0} -},s.HEXCOLOR,p,m("variable","@@?[\\w-]+",10),m("variable","@\\{[\\w-]+\\}"),m("built_in","~?`[^`]*?`"),{ -className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0 -},s.IMPORTANT);const f=g.concat({begin:/\{/,end:/\}/,contains:c}),h={ -beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not" -}].concat(g)},w={begin:d+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0, -contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute", -begin:"\\b("+n.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0, -illegal:"[<=$]",relevance:0,contains:g}}]},v={className:"keyword", -begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b", -starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:g,relevance:0}},y={ -className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{ -begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:f}},k={variants:[{ -begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:d,end:/\{/}],returnBegin:!0, -returnEnd:!0,illegal:"[<='$\"]",relevance:0, -contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,h,m("keyword","all\\b"),m("variable","@\\{[\\w-]+\\}"),{ -begin:"\\b("+e.join("|")+")\\b",className:"selector-tag" -},m("selector-tag",d+"%?",0),m("selector-id","#"+d),m("selector-class","\\."+d,0),m("selector-tag","&",0),s.ATTRIBUTE_SELECTOR_MODE,{ -className:"selector-pseudo",begin:":("+i.join("|")+")"},{ -className:"selector-pseudo",begin:"::("+o.join("|")+")"},{begin:"\\(",end:"\\)", -contains:f},{begin:"!important"}]},E={begin:`[\\w-]+:(:)?(${l.join("|")})`, -returnBegin:!0,contains:[k]} -;return c.push(a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,v,y,E,w,k),{ -name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:c}}})()); -hljs.registerLanguage("lua",(()=>{"use strict";return e=>{ -const t="\\[=*\\[",a="\\]=*\\]",n={begin:t,end:a,contains:["self"] -},o=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[",a,{contains:[n], -relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE, -literal:"true false nil", -keyword:"and break do else elseif end for goto if in local not or repeat return then until while", -built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove" -},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)", -contains:[e.inherit(e.TITLE_MODE,{ -begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params", -begin:"\\(",endsWithParent:!0,contains:o}].concat(o) -},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string", -begin:t,end:a,contains:[n],relevance:5}])}}})()); -hljs.registerLanguage("makefile",(()=>{"use strict";return e=>{const i={ -className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)", -contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{"use strict";function e(e){ -return e?"string"==typeof e?e:e.source:null}function n(e){return a("(?=",e,")")} -function a(...n){return n.map((n=>e(n))).join("")}function s(...n){ -return"("+n.map((n=>e(n))).join("|")+")"}return e=>{ -const t=a(/[A-Z_]/,a("(",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),i={ -className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/, -contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}] -},c=e.inherit(r,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{ -className:"meta-string"}),g=e.inherit(e.QUOTE_STRING_MODE,{ -className:"meta-string"}),m={endsWithParent:!0,illegal:/`]+/}]}] -}]};return{name:"HTML, XML", -aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"], -case_insensitive:!0,contains:[{className:"meta",begin://, -relevance:10,contains:[r,g,l,c,{begin:/\[/,end:/\]/,contains:[{className:"meta", -begin://,contains:[r,c,g,l]}]}]},e.COMMENT(//,{ -relevance:10}),{begin://,relevance:10},i,{ -className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag", -begin:/)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{ -end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag", -begin:/)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{ -end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{ -className:"tag",begin:/<>|<\/>/},{className:"tag", -begin:a(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name", -begin:t,relevance:0,starts:m}]},{className:"tag",begin:a(/<\//,n(a(t,/>/))), -contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0, -endsParent:!0}]}]}}})()); -hljs.registerLanguage("markdown",(()=>{"use strict";function n(...n){ -return n.map((n=>{return(e=n)?"string"==typeof e?e:e.source:null;var e -})).join("")}return e=>{const a={begin:/<\/?[A-Za-z_]/,end:">", -subLanguage:"xml",relevance:0},i={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0 -},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, -relevance:2},{begin:n(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/), -relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{ -begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{ -className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0, -returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)", -excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[", -end:"\\]",excludeBegin:!0,excludeEnd:!0}]},s={className:"strong",contains:[], -variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},c={ -className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{ -begin:/_(?!_)/,end:/_/,relevance:0}]};s.contains.push(c),c.contains.push(s) -;let t=[a,i] -;return s.contains=s.contains.concat(t),c.contains=c.contains.concat(t), -t=t.concat(s,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{ -className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:t},{ -begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n", -contains:t}]}]},a,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)", -end:"\\s+",excludeEnd:!0},s,c,{className:"quote",begin:"^>\\s+",contains:t, -end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{ -begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{ -begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))", -contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{ -begin:"^[-\\*]{3,}",end:"$"},i,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{ -className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{ -className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}})()); -hljs.registerLanguage("nginx",(()=>{"use strict";return e=>{const n={ -className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{ -begin:/[$@]/+e.UNDERSCORE_IDENT_RE}]},a={endsWithParent:!0,keywords:{ -$pattern:"[a-z/_]+", -literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll" -},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string", -contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/ -}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n] -},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^", -end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{ -begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number", -begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{ -className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},n]};return{ -name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{ -begin:e.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{ -className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{ -begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{ -className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}], -illegal:"[^\\s\\}]"}}})()); -hljs.registerLanguage("objectivec",(()=>{"use strict";return e=>{ -const n=/[a-zA-Z@][a-zA-Z0-9_]*/,_={$pattern:n, -keyword:"@interface @class @protocol @implementation"};return{ -name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"], -keywords:{$pattern:n, -keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN", -literal:"false true FALSE TRUE nil YES NO NULL", -built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once" -},illegal:"/,end:/$/, -illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ -className:"class",begin:"("+_.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/, -excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{ -begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}})()); -hljs.registerLanguage("perl",(()=>{"use strict";function e(e){ -return e?"string"==typeof e?e:e.source:null}function n(...n){ -return n.map((n=>e(n))).join("")}function t(...n){ -return"("+n.map((n=>e(n))).join("|")+")"}return e=>{ -const r=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/, -keyword:"abs accept alarm and atan2 bind binmode bless break caller chdir chmod chomp chop chown chr chroot close closedir connect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eval exec exists exit exp fcntl fileno flock for foreach fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt given glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst length link listen local localtime log lstat lt ma map mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q|0 qq quotemeta qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir say scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn when while write x|0 xor y|0" -},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},a={begin:/->\{/, -end:/\}/},o={variants:[{begin:/\$\d/},{ -begin:n(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])") -},{begin:/[$%@][^\s\w{]/,relevance:0}] -},c=[e.BACKSLASH_ESCAPE,i,o],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],l=(e,t,s="\\1")=>{ -const i="\\1"===s?s:n(s,t) -;return n(n("(?:",e,")"),t,/(?:\\.|[^\\\/])*?/,i,/(?:\\.|[^\\\/])*?/,s,r) -},d=(e,t,s)=>n(n("(?:",e,")"),t,/(?:\\.|[^\\\/])*?/,s,r),p=[o,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{ -endsWithParent:!0}),a,{className:"string",contains:c,variants:[{ -begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[", -end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{ -begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">", -relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'", -contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`", -contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{ -begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number", -begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b", -relevance:0},{ -begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*", -keywords:"split return print reverse grep",relevance:0, -contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{ -begin:l("s|tr|y",t(...g))},{begin:l("s|tr|y","\\(","\\)")},{ -begin:l("s|tr|y","\\[","\\]")},{begin:l("s|tr|y","\\{","\\}")}],relevance:2},{ -className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{ -begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t(...g),/\1/)},{ -begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{ -begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub", -end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{ -begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$", -subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}] -}];return i.contains=p,a.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:s, -contains:p}}})()); -hljs.registerLanguage("php",(()=>{"use strict";return e=>{const r={ -className:"variable", -begin:"\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(?![A-Za-z0-9])(?![$])"},t={ -className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{ -begin:/\?>/}]},a={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/, -end:/\}/}]},n=e.inherit(e.APOS_STRING_MODE,{illegal:null -}),i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null, -contains:e.QUOTE_STRING_MODE.contains.concat(a)}),o=e.END_SAME_AS_BEGIN({ -begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/, -contains:e.QUOTE_STRING_MODE.contains.concat(a)}),l={className:"string", -contains:[e.BACKSLASH_ESCAPE,t],variants:[e.inherit(n,{begin:"b'",end:"'" -}),e.inherit(i,{begin:'b"',end:'"'}),i,n,o]},s={className:"number",variants:[{ -begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{ -begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{ -begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?" -}],relevance:0},c={ -keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield", -literal:"false null true", -built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass" -};return{aliases:["php3","php4","php5","php6","php7","php8"], -case_insensitive:!0,keywords:c, -contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[t] -}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}] -}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0, -keywords:"__halt_compiler"}),t,{className:"keyword",begin:/\$this\b/},r,{ -begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function", -relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0, -illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{ -begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)", -excludeBegin:!0,excludeEnd:!0,keywords:c, -contains:["self",r,e.C_BLOCK_COMMENT_MODE,l,s]}]},{className:"class",variants:[{ -beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait", -illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{ -beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{ -beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/, -contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";", -contains:[e.UNDERSCORE_TITLE_MODE]},l,s]}}})()); -hljs.registerLanguage("php-template",(()=>{"use strict";return n=>({ -name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/, -subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"', -end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{ -illegal:null,className:null,contains:null,skip:!0 -}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null, -skip:!0})]}]})})()); -hljs.registerLanguage("plaintext",(()=>{"use strict";return t=>({ -name:"Plain text",aliases:["text","txt"],disableAutodetect:!0})})()); -hljs.registerLanguage("properties",(()=>{"use strict";return e=>{ -var n="[ \\t\\f]*",a=n+"[:=]"+n,t="("+a+"|[ \\t\\f]+)",r="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",s="([^\\\\:= \\t\\f\\n]|\\\\.)+",i={ -end:t,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{ -begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties", -case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{ -returnBegin:!0,variants:[{begin:r+a,relevance:1},{begin:r+"[ \\t\\f]+", -relevance:0}],contains:[{className:"attr",begin:r,endsParent:!0,relevance:0}], -starts:i},{begin:s+t,returnBegin:!0,relevance:0,contains:[{className:"meta", -begin:s,endsParent:!0,relevance:0}],starts:i},{className:"attr",relevance:0, -begin:s+n+"$"}]}}})()); -hljs.registerLanguage("python",(()=>{"use strict";return e=>{const n={ -$pattern:/[A-Za-z]\w+|__\w+__/, -keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"], -built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"], -literal:["__debug__","Ellipsis","False","None","NotImplemented","True"], -type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"] -},a={className:"meta",begin:/^(>>>|\.\.\.) /},i={className:"subst",begin:/\{/, -end:/\}/,keywords:n,illegal:/#/},s={begin:/\{\{/,relevance:0},t={ -className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{ -begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/, -contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{ -begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/, -contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{ -begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/, -contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/, -end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/([uU]|[rR])'/,end:/'/, -relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{ -begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/, -end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/, -contains:[e.BACKSLASH_ESCAPE,s,i]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/, -contains:[e.BACKSLASH_ESCAPE,s,i]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] -},r="[0-9](_?[0-9])*",l=`(\\b(${r}))?\\.(${r})|\\b(${r})\\.`,b={ -className:"number",relevance:0,variants:[{ -begin:`(\\b(${r})|(${l}))[eE][+-]?(${r})[jJ]?\\b`},{begin:`(${l})[jJ]?`},{ -begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{ -begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{ -begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${r})[jJ]\\b`}]},o={ -className:"comment", -begin:(d=/# type:/,((...e)=>e.map((e=>(e=>e?"string"==typeof e?e:e.source:null)(e))).join(""))("(?=",d,")")), -end:/$/,keywords:n,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/, -endsWithParent:!0}]},c={className:"params",variants:[{className:"", -begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0, -keywords:n,contains:["self",a,b,t,e.HASH_COMMENT_MODE]}]};var d -;return i.contains=[t,b,a],{name:"Python",aliases:["py","gyp","ipython"], -keywords:n,illegal:/(<\/|->|\?)|=>/,contains:[a,b,{begin:/\bself\b/},{ -beginKeywords:"if",relevance:0},t,o,e.HASH_COMMENT_MODE,{variants:[{ -className:"function",beginKeywords:"def"},{className:"class", -beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/, -contains:[e.UNDERSCORE_TITLE_MODE,c,{begin:/->/,endsWithParent:!0,keywords:n}] -},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,c,t]}]}}})()); -hljs.registerLanguage("python-repl",(()=>{"use strict";return s=>({ -aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$", -subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{ -begin:/^\.\.\.(?=[ ]|$)/}]}]})})()); -hljs.registerLanguage("r",(()=>{"use strict";function e(...e){return e.map((e=>{ -return(a=e)?"string"==typeof a?a:a.source:null;var a})).join("")}return a=>{ -const n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/;return{name:"R", -illegal:/->/,keywords:{$pattern:n, -keyword:"function if in break next repeat else for while", -literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10", -built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm" -},compilerExtensions:[(a,n)=>{if(!a.beforeMatch)return -;if(a.starts)throw Error("beforeMatch cannot be used with starts") -;const i=Object.assign({},a);Object.keys(a).forEach((e=>{delete a[e] -})),a.begin=e(i.beforeMatch,e("(?=",i.begin,")")),a.starts={relevance:0, -contains:[Object.assign(i,{endsParent:!0})]},a.relevance=0,delete i.beforeMatch -}],contains:[a.COMMENT(/#'/,/$/,{contains:[{className:"doctag", -begin:"@examples",starts:{contains:[{begin:/\n/},{begin:/#'\s*(?=@[a-zA-Z]+)/, -endsParent:!0},{begin:/#'/,end:/$/,excludeBegin:!0}]}},{className:"doctag", -begin:"@param",end:/$/,contains:[{className:"variable",variants:[{begin:n},{ -begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag", -begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}] -}),a.HASH_COMMENT_MODE,{className:"string",contains:[a.BACKSLASH_ESCAPE], -variants:[a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/ -}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/ -}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/ -}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/ -}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/ -}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"', -relevance:0},{begin:"'",end:"'",relevance:0}]},{className:"number",relevance:0, -beforeMatch:/([^a-zA-Z0-9._])/,variants:[{ -match:/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/},{ -match:/0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?/},{ -match:/(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?/}]},{begin:"%",end:"%"},{ -begin:e(/[a-zA-Z][a-zA-Z_0-9]*/,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{ -begin:/\\./}]}]}}})()); -hljs.registerLanguage("ruby",(()=>{"use strict";function e(...e){ -return e.map((e=>{return(n=e)?"string"==typeof n?n:n.source:null;var n -})).join("")}return n=>{ -const a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i={ -keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__", -built_in:"proc lambda",literal:"true false nil"},s={className:"doctag", -begin:"@[A-Za-z]+"},r={begin:"#<",end:">"},b=[n.COMMENT("#","$",{contains:[s] -}),n.COMMENT("^=begin","^=end",{contains:[s],relevance:10 -}),n.COMMENT("^__END__","\\n$")],c={className:"subst",begin:/#\{/,end:/\}/, -keywords:i},t={className:"string",contains:[n.BACKSLASH_ESCAPE,c],variants:[{ -begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/, -end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{ -begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/, -end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{ -begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{ -begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{ -begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{ -begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{ -begin:/<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/,returnBegin:!0,contains:[{ -begin:/<<[-~]?'?/},n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/, -contains:[n.BACKSLASH_ESCAPE,c]})]}]},g="[0-9](_?[0-9])*",d={className:"number", -relevance:0,variants:[{ -begin:`\\b([1-9](_?[0-9])*|0)(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`},{ -begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b" -},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{ -begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{ -begin:"\\b0(_?[0-7])+r?i?\\b"}]},l={className:"params",begin:"\\(",end:"\\)", -endsParent:!0,keywords:i},o=[t,{className:"class",beginKeywords:"class module", -end:"$|;",illegal:/=/,contains:[n.inherit(n.TITLE_MODE,{ -begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{ -begin:"("+n.IDENT_RE+"::)?"+n.IDENT_RE,relevance:0}]}].concat(b)},{ -className:"function",begin:e(/def\s+/,(_=a+"\\s*(\\(|;|$)",e("(?=",_,")"))), -relevance:0,keywords:"def",end:"$|;",contains:[n.inherit(n.TITLE_MODE,{begin:a -}),l].concat(b)},{begin:n.IDENT_RE+"::"},{className:"symbol", -begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol", -begin:":(?!\\s)",contains:[t,{begin:a}],relevance:0},d,{className:"variable", -begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{ -className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:i},{ -begin:"("+n.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{ -className:"regexp",contains:[n.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{ -begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(", -end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}] -}].concat(r,b),relevance:0}].concat(r,b);var _;c.contains=o,l.contains=o -;const E=[{begin:/^\s*=>/,starts:{end:"$",contains:o}},{className:"meta", -begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])", -starts:{end:"$",contains:o}}];return b.unshift(r),{name:"Ruby", -aliases:["rb","gemspec","podspec","thor","irb"],keywords:i,illegal:/\/\*/, -contains:[n.SHEBANG({binary:"ruby"})].concat(E).concat(b).concat(o)}}})()); -hljs.registerLanguage("rust",(()=>{"use strict";return e=>{ -const n="([ui](8|16|32|64|128|size)|f(32|64))?",t="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!" -;return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?", -keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield", -literal:"true false Some None Ok Err",built_in:t},illegal:""}]}}})()); -hljs.registerLanguage("scss",(()=>{"use strict" -;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse() -;return a=>{const n=(e=>({IMPORTANT:{className:"meta",begin:"!important"}, -HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"}, -ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/, -illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]} -}))(a),l=o,s=i,d="@[a-z-]+",c={className:"variable", -begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"};return{name:"SCSS",case_insensitive:!0, -illegal:"[=/|']",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{ -className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{ -className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0 -},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag", -begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo", -begin:":("+s.join("|")+")"},{className:"selector-pseudo", -begin:"::("+l.join("|")+")"},c,{begin:/\(/,end:/\)/,contains:[a.CSS_NUMBER_MODE] -},{className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{ -begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" -},{begin:":",end:";", -contains:[c,n.HEXCOLOR,a.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,n.IMPORTANT] -},{begin:"@(page|font-face)",lexemes:d,keywords:"@page @font-face"},{begin:"@", -end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/, -keyword:"and or not only",attribute:t.join(" ")},contains:[{begin:d, -className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute" -},c,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,n.HEXCOLOR,a.CSS_NUMBER_MODE]}]}} -})()); -hljs.registerLanguage("shell",(()=>{"use strict";return s=>({ -name:"Shell Session",aliases:["console"],contains:[{className:"meta", -begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/, -subLanguage:"bash"}}]})})()); -hljs.registerLanguage("sql",(()=>{"use strict";function e(e){ -return e?"string"==typeof e?e:e.source:null}function r(...r){ -return r.map((r=>e(r))).join("")}function t(...r){ -return"("+r.map((r=>e(r))).join("|")+")"}return e=>{ -const n=e.COMMENT("--","$"),a=["true","false","unknown"],i=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],s=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],o=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],c=s,l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update ","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter((e=>!s.includes(e))),u={ -begin:r(/\b/,t(...c),/\s*\(/),keywords:{built_in:c}};return{name:"SQL", -case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/, -keyword:((e,{exceptions:r,when:t}={})=>{const n=t -;return r=r||[],e.map((e=>e.match(/\|\d+$/)||r.includes(e)?e:n(e)?e+"|0":e)) -})(l,{when:e=>e.length<3}),literal:a,type:i, -built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"] -},contains:[{begin:t(...o),keywords:{$pattern:/[\w\.]+/,keyword:l.concat(o), -literal:a,type:i}},{className:"type", -begin:t("double precision","large object","with timezone","without timezone") -},u,{className:"variable",begin:/@[a-z0-9]+/},{className:"string",variants:[{ -begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{ -begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"operator", -begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}})()); -hljs.registerLanguage("swift",(()=>{"use strict";function e(e){ -return e?"string"==typeof e?e:e.source:null}function n(e){return a("(?=",e,")")} -function a(...n){return n.map((n=>e(n))).join("")}function t(...n){ -return"("+n.map((n=>e(n))).join("|")+")"} -const i=e=>a(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(i),u=["init","self"].map(i),c=["Any","Self"],r=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],o=["false","nil","true"],l=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],d=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],p=t(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),F=t(p,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=a(p,F,"*"),h=t(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),f=t(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=a(h,f,"*"),y=a(/[A-Z]/,f,"*"),g=["autoclosure",a(/convention\(/,t("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",a(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],E=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] -;return e=>{const p={match:/\s+/,relevance:0},h=e.COMMENT("/\\*","\\*/",{ -contains:["self"]}),v=[e.C_LINE_COMMENT_MODE,h],N={className:"keyword", -begin:a(/\./,n(t(...s,...u))),end:t(...s,...u),excludeBegin:!0},A={ -match:a(/\./,t(...r)),relevance:0 -},C=r.filter((e=>"string"==typeof e)).concat(["_|0"]),_={variants:[{ -className:"keyword", -match:t(...r.filter((e=>"string"!=typeof e)).concat(c).map(i),...u)}]},D={ -$pattern:t(/\b\w+/,/#\w+/),keyword:C.concat(m),literal:o},B=[N,A,_],k=[{ -match:a(/\./,t(...d)),relevance:0},{className:"built_in", -match:a(/\b/,t(...d),/(?=\()/)}],M={match:/->/,relevance:0},S=[M,{ -className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${F})+`}] -}],x="([0-9a-fA-F]_*)+",I={className:"number",relevance:0,variants:[{ -match:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{ -match:`\\b0x(${x})(\\.(${x}))?([pP][+-]?(([0-9]_*)+))?\\b`},{ -match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},O=(e="")=>({ -className:"subst",variants:[{match:a(/\\/,e,/[0\\tnr"']/)},{ -match:a(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),T=(e="")=>({className:"subst", -match:a(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),L=(e="")=>({className:"subst", -label:"interpol",begin:a(/\\/,e,/\(/),end:/\)/}),P=(e="")=>({begin:a(e,/"""/), -end:a(/"""/,e),contains:[O(e),T(e),L(e)]}),$=(e="")=>({begin:a(e,/"/), -end:a(/"/,e),contains:[O(e),L(e)]}),K={className:"string", -variants:[P(),P("#"),P("##"),P("###"),$(),$("#"),$("##"),$("###")]},j={ -match:a(/`/,w,/`/)},z=[j,{className:"variable",match:/\$\d+/},{ -className:"variable",match:`\\$${f}+`}],q=[{match:/(@|#)available/, -className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:E, -contains:[...S,I,K]}]}},{className:"keyword",match:a(/@/,t(...g))},{ -className:"meta",match:a(/@/,w)}],U={match:n(/\b[A-Z]/),relevance:0,contains:[{ -className:"type", -match:a(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,f,"+") -},{className:"type",match:y,relevance:0},{match:/[?!]+/,relevance:0},{ -match:/\.\.\./,relevance:0},{match:a(/\s+&\s+/,n(y)),relevance:0}]},Z={ -begin://,keywords:D,contains:[...v,...B,...q,M,U]};U.contains.push(Z) -;const G={begin:/\(/,end:/\)/,relevance:0,keywords:D,contains:["self",{ -match:a(w,/\s*:/),keywords:"_|0",relevance:0 -},...v,...B,...k,...S,I,K,...z,...q,U]},H={beginKeywords:"func",contains:[{ -className:"title",match:t(j.match,w,b),endsParent:!0,relevance:0},p]},R={ -begin://,contains:[...v,U]},V={begin:/\(/,end:/\)/,keywords:D, -contains:[{begin:t(n(a(w,/\s*:/)),n(a(w,/\s+/,w,/\s*:/))),end:/:/,relevance:0, -contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:w}] -},...v,...B,...S,I,K,...q,U,G],endsParent:!0,illegal:/["']/},W={ -className:"function",match:n(/\bfunc\b/),contains:[H,R,V,p],illegal:[/\[/,/%/] -},X={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{ -keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[R,V,p], -illegal:/\[|%/},J={beginKeywords:"operator",end:e.MATCH_NOTHING_RE,contains:[{ -className:"title",match:b,endsParent:!0,relevance:0}]},Q={ -beginKeywords:"precedencegroup",end:e.MATCH_NOTHING_RE,contains:[{ -className:"title",match:y,relevance:0},{begin:/{/,end:/}/,relevance:0, -endsParent:!0,keywords:[...l,...o],contains:[U]}]};for(const e of K.variants){ -const n=e.contains.find((e=>"interpol"===e.label));n.keywords=D -;const a=[...B,...k,...S,I,K,...z];n.contains=[...a,{begin:/\(/,end:/\)/, -contains:["self",...a]}]}return{name:"Swift",keywords:D,contains:[...v,W,X,{ -className:"class",beginKeywords:"struct protocol class extension enum", -end:"\\{",excludeEnd:!0,keywords:D,contains:[e.inherit(e.TITLE_MODE,{ -begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...B]},J,Q,{ -beginKeywords:"import",end:/$/,contains:[...v],relevance:0 -},...B,...k,...S,I,K,...z,...q,U,G]}}})()); -hljs.registerLanguage("typescript",(()=>{"use strict" -;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],s=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]) -;function t(e){return r("(?=",e,")")}function r(...e){return e.map((e=>{ -return(n=e)?"string"==typeof n?n:n.source:null;var n})).join("")}return i=>{ -const c={$pattern:e, -keyword:n.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]), -literal:a, -built_in:s.concat(["any","void","number","boolean","string","object","never","enum"]) -},o={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},l=(e,n,a)=>{ -const s=e.contains.findIndex((e=>e.label===n)) -;if(-1===s)throw Error("can not find mode to replace");e.contains.splice(s,1,a) -},b=(i=>{const c=e,o={begin:/<[A-Za-z0-9\\._:-]+/, -end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{ -const a=e[0].length+e.index,s=e.input[a];"<"!==s?">"===s&&(((e,{after:n})=>{ -const a="", -returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{ -begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0 -},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:f}]}] -},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{ -variants:[{begin:"<>",end:""},{begin:o.begin,"on:begin":o.isTrulyOpeningTag, -end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0, -contains:["self"]}]}],relevance:0},{className:"function", -beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:l, -contains:["self",i.inherit(i.TITLE_MODE,{begin:c}),A],illegal:/%/},{ -beginKeywords:"while if switch catch for"},{className:"function", -begin:i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", -returnBegin:!0,contains:[A,i.inherit(i.TITLE_MODE,{begin:c})]},{variants:[{ -begin:"\\."+c},{begin:"\\$"+c}],relevance:0},{className:"class", -beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{ -beginKeywords:"extends"},i.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/, -end:/[{;]/,excludeEnd:!0,contains:[i.inherit(i.TITLE_MODE,{begin:c}),"self",A] -},{begin:"(get|set)\\s+(?="+c+"\\()",end:/\{/,keywords:"get set", -contains:[i.inherit(i.TITLE_MODE,{begin:c}),{begin:/\(\)/},A]},{begin:/\$[(.]/}] -}})(i) -;return Object.assign(b.keywords,c),b.exports.PARAMS_CONTAINS.push(o),b.contains=b.contains.concat([o,{ -beginKeywords:"namespace",end:/\{/,excludeEnd:!0},{beginKeywords:"interface", -end:/\{/,excludeEnd:!0,keywords:"interface extends" -}]),l(b,"shebang",i.SHEBANG()),l(b,"use_strict",{className:"meta",relevance:10, -begin:/^\s*['"]use strict['"]/ -}),b.contains.find((e=>"function"===e.className)).relevance=0,Object.assign(b,{ -name:"TypeScript",aliases:["ts","tsx"]}),b}})()); -hljs.registerLanguage("vbnet",(()=>{"use strict";function e(e){ -return e?"string"==typeof e?e:e.source:null}function n(...n){ -return n.map((n=>e(n))).join("")}function t(...n){ -return"("+n.map((n=>e(n))).join("|")+")"}return e=>{ -const a=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,r=/\d{1,2}(:\d{1,2}){1,2}/,o={ -className:"literal",variants:[{begin:n(/# */,t(i,a),/ *#/)},{ -begin:n(/# */,r,/ *#/)},{begin:n(/# */,s,/ *#/)},{ -begin:n(/# */,t(i,a),/ +/,t(s,r),/ *#/)}]},l=e.COMMENT(/'''/,/$/,{contains:[{ -className:"doctag",begin:/<\/?/,end:/>/}]}),c=e.COMMENT(null,/$/,{variants:[{ -begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET", -aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{ -keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield", -built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort", -type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort", -literal:"true false nothing"}, -illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{ -className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/, -end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o,{className:"number",relevance:0, -variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/ -},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{ -begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{ -className:"label",begin:/^\w+:/},l,c,{className:"meta", -begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/, -end:/$/,keywords:{ -"meta-keyword":"const disable else elseif enable end externalsource if region then" -},contains:[c]}]}}})()); -hljs.registerLanguage("yaml",(()=>{"use strict";return e=>{ -var n="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={ -className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/ -},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable", -variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},i=e.inherit(s,{ -variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={ -end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},t={begin:/\{/, -end:/\}/,contains:[l],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]", -contains:[l],illegal:"\\n",relevance:0},b=[{className:"attr",variants:[{ -begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{ -begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$", -relevance:10},{className:"string", -begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{ -begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0, -relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type", -begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a -},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta", -begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)", -relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{ -className:"number", -begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b" -},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},t,g,s],r=[...b] -;return r.pop(),r.push(i),l.contains=r,{name:"YAML",case_insensitive:!0, -aliases:["yml"],contains:b}}})()); \ No newline at end of file diff --git a/web-v2-res/static/js/jszip.min.js b/web-v2-res/static/js/jszip.min.js deleted file mode 100644 index ff4cfd5..0000000 --- a/web-v2-res/static/js/jszip.min.js +++ /dev/null @@ -1,13 +0,0 @@ -/*! - -JSZip v3.10.1 - A JavaScript class for generating and reading zip files - - -(c) 2009-2016 Stuart Knightley -Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. - -JSZip uses the library pako released under the MIT license : -https://github.com/nodeca/pako/blob/main/LICENSE -*/ - -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=e()}}(function(){return function s(a,o,h){function u(r,e){if(!o[r]){if(!a[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);var n=new Error("Cannot find module '"+r+"'");throw n.code="MODULE_NOT_FOUND",n}var i=o[r]={exports:{}};a[r][0].call(i.exports,function(e){var t=a[r][1][e];return u(t||e)},i,i.exports,s,a,o,h)}return o[r].exports}for(var l="function"==typeof require&&require,e=0;e>2,s=(3&t)<<4|r>>4,a=1>6:64,o=2>4,r=(15&i)<<4|(s=p.indexOf(e.charAt(o++)))>>2,n=(3&s)<<6|(a=p.indexOf(e.charAt(o++))),l[h++]=t,64!==s&&(l[h++]=r),64!==a&&(l[h++]=n);return l}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function o(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}o.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new s).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils");var o=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),s=e("./utils"),a=e("./stream/GenericWorker"),o=n?"uint8array":"array";function h(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",s.inherits(h,a),h.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(e){return new h("Deflate",e)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function A(e,t){var r,n="";for(r=0;r>>=8;return n}function n(e,t,r,n,i,s){var a,o,h=e.file,u=e.compression,l=s!==O.utf8encode,f=I.transformTo("string",s(h.name)),c=I.transformTo("string",O.utf8encode(h.name)),d=h.comment,p=I.transformTo("string",s(d)),m=I.transformTo("string",O.utf8encode(d)),_=c.length!==h.name.length,g=m.length!==d.length,b="",v="",y="",w=h.dir,k=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(x.crc32=e.crc32,x.compressedSize=e.compressedSize,x.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),l||!_&&!g||(S|=2048);var z=0,C=0;w&&(z|=16),"UNIX"===i?(C=798,z|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(h.unixPermissions,w)):(C=20,z|=function(e){return 63&(e||0)}(h.dosPermissions)),a=k.getUTCHours(),a<<=6,a|=k.getUTCMinutes(),a<<=5,a|=k.getUTCSeconds()/2,o=k.getUTCFullYear()-1980,o<<=4,o|=k.getUTCMonth()+1,o<<=5,o|=k.getUTCDate(),_&&(v=A(1,1)+A(B(f),4)+c,b+="up"+A(v.length,2)+v),g&&(y=A(1,1)+A(B(p),4)+m,b+="uc"+A(y.length,2)+y);var E="";return E+="\n\0",E+=A(S,2),E+=u.magic,E+=A(a,2),E+=A(o,2),E+=A(x.crc32,4),E+=A(x.compressedSize,4),E+=A(x.uncompressedSize,4),E+=A(f.length,2),E+=A(b.length,2),{fileRecord:R.LOCAL_FILE_HEADER+E+f+b,dirRecord:R.CENTRAL_FILE_HEADER+A(C,2)+E+A(p.length,2)+"\0\0\0\0"+A(z,4)+A(n,4)+f+b+p}}var I=e("../utils"),i=e("../stream/GenericWorker"),O=e("../utf8"),B=e("../crc32"),R=e("../signature");function s(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}I.inherits(s,i),s.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},s.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},s.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return R.DATA_DESCRIPTOR+A(e.crc32,4)+A(e.compressedSize,4)+A(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},s.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),s=e("./ArrayReader"),a=e("./StringReader"),o=e("./NodeBufferReader"),h=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new o(e):i.uint8array?new h(n.transformTo("uint8array",e)):new s(n.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function s(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(s,n),s.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function s(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,n),s.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function s(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(s,i),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function s(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(s,i),s.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=n},{}],29:[function(e,t,r){"use strict";var h=e("../utils"),i=e("./ConvertWorker"),s=e("./GenericWorker"),u=e("../base64"),n=e("../support"),a=e("../external"),o=null;if(n.nodestream)try{o=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function l(e,o){return new a.Promise(function(t,r){var n=[],i=e._internalType,s=e._outputType,a=e._mimeType;e.on("data",function(e,t){n.push(e),o&&o(t)}).on("error",function(e){n=[],r(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return h.newBlob(h.transformTo("arraybuffer",t),r);case"base64":return u.encode(t);default:return h.transformTo(e,t)}}(s,function(e,t){var r,n=0,i=null,s=0;for(r=0;r>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},s.utf8decode=function(e){return h.nodebuffer?o.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,n,i,s=e.length,a=new Array(2*s);for(t=r=0;t>10&1023,a[r++]=56320|1023&n)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),o.applyFromCharCode(a)}(e=o.transformTo(h.uint8array?"uint8array":"array",e))},o.inherits(a,n),a.prototype.processChunk=function(e){var t=o.transformTo(h.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var n=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+u[e[r]]>t?r:t}(t),i=t;n!==t.length&&(h.uint8array?(i=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(i=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:s.utf8decode(i),meta:e.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=a,o.inherits(l,n),l.prototype.processChunk=function(e){this.push({data:s.utf8encode(e.data),meta:e.meta})},s.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,a){"use strict";var o=e("./support"),h=e("./base64"),r=e("./nodejsUtils"),u=e("./external");function n(e){return e}function l(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new h.Buf8(e.length),r=0,n=t.length;r>10&1023,o[n++]=56320|1023&i)}return l(o,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+u[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,r){"use strict";var h,c=e("../utils/common"),u=e("./trees"),d=e("./adler32"),p=e("./crc32"),n=e("./messages"),l=0,f=4,m=0,_=-2,g=-1,b=4,i=2,v=8,y=9,s=286,a=30,o=19,w=2*s+1,k=15,x=3,S=258,z=S+x+1,C=42,E=113,A=1,I=2,O=3,B=4;function R(e,t){return e.msg=n[t],t}function T(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(c.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function N(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function U(e,t){e.pending_buf[e.pending++]=t}function P(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var r,n,i=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,h=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,u=e.window,l=e.w_mask,f=e.prev,c=e.strstart+S,d=u[s+a-1],p=u[s+a];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(u[(r=t)+a]===p&&u[r+a-1]===d&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&sh&&0!=--i);return a<=e.lookahead?a:e.lookahead}function j(e){var t,r,n,i,s,a,o,h,u,l,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-z)){for(c.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=r=e.hash_size;n=e.head[--t],e.head[t]=f<=n?n-f:0,--r;);for(t=r=f;n=e.prev[--t],e.prev[t]=f<=n?n-f:0,--r;);i+=f}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,h=e.strstart+e.lookahead,u=i,l=void 0,l=a.avail_in,u=x)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x)if(n=u._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-x,n=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(j(e),0===e.lookahead&&t===l)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,N(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-z&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):(e.strstart>e.block_start&&(N(e,!1),e.strm.avail_out),A)}),new M(4,4,8,4,Z),new M(4,5,16,8,Z),new M(4,6,32,32,Z),new M(4,4,16,16,W),new M(8,16,32,32,W),new M(8,16,128,128,W),new M(8,32,128,256,W),new M(32,128,258,1024,W),new M(32,258,258,4096,W)],r.deflateInit=function(e,t){return Y(e,t,v,15,8,0)},r.deflateInit2=Y,r.deflateReset=K,r.deflateResetKeep=G,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?_:(e.state.gzhead=t,m):_},r.deflate=function(e,t){var r,n,i,s;if(!e||!e.state||5>8&255),U(n,n.gzhead.time>>16&255),U(n,n.gzhead.time>>24&255),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(U(n,255&n.gzhead.extra.length),U(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=p(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(U(n,0),U(n,0),U(n,0),U(n,0),U(n,0),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,3),n.status=E);else{var a=v+(n.w_bits-8<<4)<<8;a|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=E,P(n,a),0!==n.strstart&&(P(n,e.adler>>>16),P(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending!==n.pending_buf_size));)U(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&F(e),n.pending+2<=n.pending_buf_size&&(U(n,255&e.adler),U(n,e.adler>>8&255),e.adler=0,n.status=E)):n.status=E),0!==n.pending){if(F(e),0===e.avail_out)return n.last_flush=-1,m}else if(0===e.avail_in&&T(t)<=T(r)&&t!==f)return R(e,-5);if(666===n.status&&0!==e.avail_in)return R(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==l&&666!==n.status){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(j(e),0===e.lookahead)){if(t===l)return A;break}if(e.match_length=0,r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?A:I}(n,t):3===n.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=S){if(j(e),e.lookahead<=S&&t===l)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=u._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?A:I}(n,t):h[n.level].func(n,t);if(o!==O&&o!==B||(n.status=666),o===A||o===O)return 0===e.avail_out&&(n.last_flush=-1),m;if(o===I&&(1===t?u._tr_align(n):5!==t&&(u._tr_stored_block(n,0,0,!1),3===t&&(D(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),F(e),0===e.avail_out))return n.last_flush=-1,m}return t!==f?m:n.wrap<=0?1:(2===n.wrap?(U(n,255&e.adler),U(n,e.adler>>8&255),U(n,e.adler>>16&255),U(n,e.adler>>24&255),U(n,255&e.total_in),U(n,e.total_in>>8&255),U(n,e.total_in>>16&255),U(n,e.total_in>>24&255)):(P(n,e.adler>>>16),P(n,65535&e.adler)),F(e),0=r.w_size&&(0===s&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,t,l-r.w_size,r.w_size,0),t=u,l=r.w_size),a=e.avail_in,o=e.next_in,h=e.input,e.avail_in=l,e.next_in=0,e.input=t,j(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>=y=v>>>24,p-=y,0===(y=v>>>16&255))C[s++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=m[(65535&v)+(d&(1<>>=y,p-=y),p<15&&(d+=z[n++]<>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=_[(65535&v)+(d&(1<>>=y,p-=y,(y=s-a)>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function s(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=P,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new I.Buf32(n),t.distcode=t.distdyn=new I.Buf32(i),t.sane=1,t.back=-1,N):U}function o(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,a(e)):U}function h(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=s.wsize?(I.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(n<(i=s.wsize-s.wnext)&&(i=n),I.arraySet(s.window,t,r-n,i,s.wnext),(n-=i)?(I.arraySet(s.window,t,r-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=B(r.check,E,2,0),l=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&u)){e.msg="unknown compression method",r.mode=30;break}if(l-=4,k=8+(15&(u>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=3;case 3:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,r.check=B(r.check,E,4,0)),l=u=0,r.mode=4;case 4:for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>8),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>>8&255,r.check=B(r.check,E,2,0)),l=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(o<(d=r.length)&&(d=o),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),I.arraySet(r.head.extra,n,s,d,k)),512&r.flags&&(r.check=B(r.check,n,d,s)),o-=d,s+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break e;for(d=0;k=n[s+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&d>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===o)break e;o--,u+=n[s++]<>>=1)){case 0:r.mode=14;break;case 1:if(j(r),r.mode=20,6!==t)break;u>>>=2,l-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===o)break e;o--,u+=n[s++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,l=u=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(d=r.length){if(o>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=T(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=_,l-=_,r.lens[r.have++]=b;else{if(16===b){for(z=_+2;l>>=_,l-=_,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&u),u>>>=2,l-=2}else if(17===b){for(z=_+3;l>>=_)),u>>>=3,l-=3}else{for(z=_+7;l>>=_)),u>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=T(D,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=T(F,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=o&&258<=h){e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=o,r.hold=u,r.bits=l,R(e,c),a=e.next_out,i=e.output,h=e.avail_out,s=e.next_in,n=e.input,o=e.avail_in,u=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(C=r.lencode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(C=r.distcode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,64&g){e.msg="invalid distance code",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===h)break e;if(d=c-h,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=a-r.offset,d=r.length;for(hd?(m=R[T+a[v]],A[I+a[v]]):(m=96,0),h=1<>S)+(u-=h)]=p<<24|m<<16|_|0,0!==u;);for(h=1<>=1;if(0!==h?(E&=h-1,E+=h):E=0,v++,0==--O[b]){if(b===w)break;b=t[r+a[v]]}if(k>>7)]}function U(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function P(e,t,r){e.bi_valid>d-r?(e.bi_buf|=t<>d-e.bi_valid,e.bi_valid+=r-d):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function Z(e,t,r){var n,i,s=new Array(g+1),a=0;for(n=1;n<=g;n++)s[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=j(s[o]++,o))}}function W(e){var t;for(t=0;t>1;1<=r;r--)G(e,s,r);for(i=h;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],G(e,s,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,s[2*i]=s[2*r]+s[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,s[2*r+1]=s[2*n+1]=i,e.heap[1]=i++,G(e,s,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,s,a,o,h=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(s=0;s<=g;s++)e.bl_count[s]=0;for(h[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<_;r++)p<(s=h[2*h[2*(n=e.heap[r])+1]+1]+1)&&(s=p,m++),h[2*n+1]=s,u>=7;n>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return h;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?J(e,t,r,n):4===e.strategy||s===i?(P(e,2+(n?1:0),3),K(e,z,C)):(P(e,4+(n?1:0),3),function(e,t,r,n){var i;for(P(e,t-257,5),P(e,r-1,5),P(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(A[r]+u+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){P(e,2,3),L(e,m,z),function(e){16===e.bi_valid?(U(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(r,n){"use strict";if(!r.setImmediate){var i,s,t,a,o=1,h={},u=!1,l=r.document,e=Object.getPrototypeOf&&Object.getPrototypeOf(r);e=e&&e.setTimeout?e:r,i="[object process]"==={}.toString.call(r.process)?function(e){process.nextTick(function(){c(e)})}:function(){if(r.postMessage&&!r.importScripts){var e=!0,t=r.onmessage;return r.onmessage=function(){e=!1},r.postMessage("","*"),r.onmessage=t,e}}()?(a="setImmediate$"+Math.random()+"$",r.addEventListener?r.addEventListener("message",d,!1):r.attachEvent("onmessage",d),function(e){r.postMessage(a+e,"*")}):r.MessageChannel?((t=new MessageChannel).port1.onmessage=function(e){c(e.data)},function(e){t.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(s=l.documentElement,function(e){var t=l.createElement("script");t.onreadystatechange=function(){c(e),t.onreadystatechange=null,s.removeChild(t),t=null},s.appendChild(t)}):function(e){setTimeout(c,0,e)},e.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r0)b=OSF.AssociatedLocales[d[0]]}if(!b)b=c;return b};OSF.isRTLLocale=function(a){if(!a)return false;return OSF.SupportedRTLLocales[a.toLowerCase()]||false};var ScriptLoading;(function(e){var a=false,b=function(){function b(g,e,d,f,c){var b=this;b.url=g;b.isReady=e;b.hasStarted=d;b.timer=f;b.hasError=a;b.pendingCallbacks=[];b.pendingCallbacks.push(c)}return b}(),d=function(){function a(c,b,a){this.scriptId=c;this.startTime=b;this.msResponseTime=a}return a}(),c=function(){var e=true,c=null;function f(b){var a=this;if(b===void 0)b={OfficeJS:"office.js",OfficeDebugJS:"office.debug.js"};a.constantNames=b;a.defaultScriptLoadingTimeout=1e4;a.loadedScriptByIds={};a.scriptTelemetryBuffer=[];a.osfControlAppCorrelationId="";a.basePath=c;a.getUseAssociatedActionsOnly=c}f.prototype.isScriptLoading=function(a){return !!(this.loadedScriptByIds[a]&&this.loadedScriptByIds[a].hasStarted)};f.prototype.getOfficeJsBasePath=function(){var b=this;if(b.basePath)return b.basePath;else{var h=function(b,c){var d,a,e;e=b.toLowerCase();a=e.indexOf(c);if(a>=0&&a===b.length-c.length&&(a===0||b.charAt(a-1)==="/"||b.charAt(a-1)==="\\"))d=b.substring(0,a);else if(a>=0&&a0){f=window.setTimeout(c,i);b--}else{window.clearTimeout(f);d(a)}};c()};f.prototype.waitForScripts=function(b,e){var f=this;if(this.invokeCallbackIfScriptsReady(b,e)==a)for(var c=0;c=0){b=b.substring(c+5,b.length);if(b<"14.14393")return a;else return false}return false}function e(){if(typeof window===b&&typeof Promise===c)return Promise;if(typeof window!==b&&window.Promise)if(f())return d.PromiseImpl.Init();else return window.Promise;else return d.PromiseImpl.Init()}d.OfficePromise=e()})(e=d._Internal||(d._Internal={}));var f=e.OfficePromise;d.Promise=f})(Office||(Office={}));var OTel;(function(c){var a="telemetry/oteljs_agave.js",b=function(){var c="undefined";function b(){}b.loaded=function(){return !(b.logger===undefined||b.sink===undefined)};b.getOtelSinkCDNLocation=function(){return OSF._OfficeAppFactory.getLoadScriptHelper().getOfficeJsBasePath()+a};b.getMapName=function(b,a){if(a!==undefined&&b.hasOwnProperty(a))return b[a];return a};b.getHost=function(){var c=OSF._OfficeAppFactory.getHostInfo()["hostType"],d={excel:"Excel",onenote:"OneNote",outlook:"Outlook",powerpoint:"PowerPoint",project:"Project",visio:"Visio",word:"Word"},a=b.getMapName(d,c);return a};b.getFlavor=function(){var c=OSF._OfficeAppFactory.getHostInfo()["hostPlatform"],d={android:"Android",ios:"iOS",mac:"Mac",universal:"Universal",web:"Web",win32:"Win32"},a=b.getMapName(d,c);return a};b.ensureValue=function(a,b){if(!a)return b;return a};b.create=function(a){var i={id:a.appId,marketplaceType:a.marketplaceType,assetId:a.assetId,officeJsVersion:a.officeJSVersion,hostJsVersion:a.hostJSVersion,browserToken:a.clientId,instanceId:a.appInstanceId,sessionId:a.sessionId},k=oteljs.Contracts.Office.System.SDX.getFields("SDX",i),l=b.getHost(),e=b.getFlavor(),j=e==="Web"&&a.hostVersion.slice(0,2)==="0."?"16.0.0.0":a.hostVersion,d={"App.Name":l,"App.Platform":e,"App.Version":j,"Session.Id":b.ensureValue(a.correlationId,"00000000-0000-0000-0000-000000000000")},h="Office.Extensibility.OfficeJs",g="db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439",f=1755,c=new oteljs.SimpleTelemetryLogger(undefined,k);c.setTenantToken(h,g,f);if(oteljs.AgaveSink)b.sink=oteljs.AgaveSink.createInstance(d);if(b.sink===undefined)b.attachLegacyAgaveSink(d);else c.addSink(b.sink);return c};b.attachLegacyAgaveSink=function(e){var d=function(){if(typeof oteljs_agave!==c)b.sink=oteljs_agave.AgaveSink.createInstance(e);if(b.sink===undefined||b.logger===undefined){b.Enabled=false;b.promises=[];b.logger=undefined;b.sink=undefined;return}b.logger.addSink(b.sink);b.promises.forEach(function(a){a()})},a=5e3;OSF.OUtil.loadScript(b.getOtelSinkCDNLocation(),d,a)};b.initialize=function(d){if(!b.Enabled){b.promises=[];return}var a=function(){if(typeof oteljs===c)return;if(!b.loaded())b.logger=b.create(d);b.loaded()&&b.promises.forEach(function(a){a()})};Microsoft.Office.WebExtension.onReadyInternal().then(function(){return a()})};b.sendTelemetryEvent=function(a){b.onTelemetryLoaded(function(){try{b.logger.sendTelemetryEvent(a)}catch(c){}})};b.sendCustomerContent=function(a){b.onTelemetryLoaded(function(){try{b.logger.sendCustomerContent(a)}catch(c){}})};b.onTelemetryLoaded=function(a){if(!b.Enabled)return;if(b.loaded())a();else b.promises.push(a)};b.promises=[];b.Enabled=true;return b}();c.OTelLogger=b})(OTel||(OTel={}));(function(b){var a=function(){function a(){this.m_mappings={};this.m_onchangeHandlers=[]}a.prototype.associate=function(){var a="[InvalidArg] Function=associate",b=this;function c(a){typeof console!=="undefined"&&console.warn&&console.warn(a)}if(arguments.length==1&&typeof arguments[0]==="object"&&arguments[0]){var g=arguments[0];for(var i in g)b.associate(i,g[i])}else if(arguments.length==2){var d=arguments[0],h=arguments[1];if(typeof d!=="string"){c(a);return}if(typeof h!=="function"){c(a);return}var f=d.toUpperCase();b.m_mappings[f]&&c("[DuplicatedName] Function="+d);b.m_mappings[f]=h;for(var e=0;e0)n.shift()(k)};Microsoft.Office.WebExtension.FeatureGates={};Microsoft.Office.WebExtension.sendTelemetryEvent=function(a){OTel.OTelLogger.sendTelemetryEvent(a)};Microsoft.Office.WebExtension.telemetrySink=OTel.OTelLogger;Microsoft.Office.WebExtension.onReadyInternal=function(a){if(v){var e=k.host,c=k.platform,d=k.addin;if(a){var b=a({host:e,platform:c,addin:d});if(b&&b.then&&typeof b.then===g)return b.then(function(){return Office.Promise.resolve({host:e,platform:c,addin:d})})}return Office.Promise.resolve({host:e,platform:c,addin:d})}if(a)return new Office.Promise(function(b){n.push(function(d){var c=a(d);if(c&&c.then&&typeof c.then===g)return c.then(function(){return b(d)});b(d)})});return new Office.Promise(function(a){n.push(a)})};Microsoft.Office.WebExtension.onReady=function(a){u=d;return Microsoft.Office.WebExtension.onReadyInternal(a)};var p=function(g){var c,d=window.location.search;if(d){var b=d.split(g+"=");if(b.length>1){var e=b[1],f=new RegExp("[&#]","g"),a=e.split(f);if(a.length>0)c=a[0]}}return c},F=function(f,g){var b=f.split("."),c=g.split("."),a;for(a in b)if(parseInt(b[a])parseInt(c[a]))return d;return e},z=function(){try{var b="15.30.1128.0",a=window.external.GetContext().GetHostFullVersion()}catch(c){return e}return !!F(b,a)},A=function(){l=d;try{if(c.disableLogging){l=e;return}window.external=window.external||{};if(typeof window.external.GetLoggingAllowed===a)l=d;else l=window.external.GetLoggingAllowed()}catch(b){}},E=function(){var i="hostInfoValue",l="isDialog",o=m,h=b;try{window.external=window.external||{};if(typeof agaveHost!==a&&agaveHost.GetHostInfo)window.external.GetHostInfo=function(){return agaveHost.GetHostInfo()};var k=window.external.GetHostInfo();if(k==l){c.isO15=d;c.isDialog=d}else if(k.toLowerCase().indexOf("mac")!==-1&&k.toLowerCase().indexOf("outlook")!==-1&&z())c.isO15=d;else{var q=k.split(o+"=");if(q.length>1)h=q[1];else h=k}}catch(s){}if(!h){h=p(o);if(!h)try{var r=JSON.parse(x);h=r?r["hostInfo"]:b}catch(s){}}var u=function(){var a=b;try{if(window.sessionStorage)a=window.sessionStorage}catch(c){}return a},j=u();if(!h&&j&&j.getItem(i))h=j.getItem(i);if(h){h=decodeURIComponent(h);c.isO15=e;var g=h.split("$");if(typeof g[2]==a)g=h.split("|");c.hostType=typeof g[0]==a?f:g[0].toLowerCase();c.hostPlatform=typeof g[1]==a?f:g[1].toLowerCase();c.hostSpecificFileVersion=typeof g[2]==a?f:g[2].toLowerCase();c.hostLocale=typeof g[3]==a?f:g[3].toLowerCase();c.osfControlAppCorrelationId=typeof g[4]==a?f:g[4];if(c.osfControlAppCorrelationId=="telemetry")c.osfControlAppCorrelationId=f;c.isDialog=typeof g[5]!=a&&g[5]==l?d:e;c.disableLogging=typeof g[6]!=a&&g[6]=="disableLogging"?d:e;c.flags=typeof g[7]==="string"&&g[7].length>0?parseInt(g[7]):0;if(g_isOfflineLibrary)g_isExpEnabled=e;else g_isExpEnabled=g_isExpEnabled||!!(c.flags&OSF.HostInfoFlags.ExperimentJsEnabled);var t=parseFloat(c.hostSpecificFileVersion),n=OSF.HostSpecificFileVersionDefault;if(OSF.HostSpecificFileVersionMap[c.hostType]&&OSF.HostSpecificFileVersionMap[c.hostType][c.hostPlatform])n=OSF.HostSpecificFileVersionMap[c.hostType][c.hostPlatform];if(t>parseFloat(n))c.hostSpecificFileVersion=n;if(j)try{j.setItem(i,h)}catch(v){}}else{c.isO15=d;c.hostLocale=p("locale")}},D=function(b,a){OSF.AppTelemetry&&OSF.AppTelemetry.logAppCommonMessage&&OSF.AppTelemetry.logAppCommonMessage("getAppContextAsync starts");i.getAppContext(b,a)},G=function(){E();A();if(c.hostPlatform=="web"&&c.isDialog&&window==window.top&&window.opener==b){window.open(f,"_self",f);window.close()}if((c.flags&(OSF.HostInfoFlags.SharedApp|OSF.HostInfoFlags.CustomFunction))!==0)if(typeof window.Promise===a)window.Promise=window.Office.Promise;h.setAppCorrelationId(c.osfControlAppCorrelationId);var k=h.getOfficeJsBasePath(),F=e;if(!k)throw"Office Web Extension script library file name should be "+OSF.ConstantNames.OfficeJS+" or "+OSF.ConstantNames.OfficeDebugJS+".";var n=function(){if(typeof Sys!==a&&typeof Type!==a&&Sys.StringBuilder&&typeof Sys.StringBuilder===g&&Type.registerNamespace&&typeof Type.registerNamespace===g&&Type.registerClass&&typeof Type.registerClass===g||typeof OfficeExt!==a&&OfficeExt.MsAjaxError)return d;else return e},o=b,x=function(f){var b=e,c=function(){if(typeof Strings==a||typeof Strings.OfficeOM==a)if(!b){b=d;var g=k+OSF.ConstantNames.DefaultLocale+"/"+OSF.ConstantNames.OfficeStringJS;h.loadScript(g,OSF.ConstantNames.OfficeStringsId,c,d,OSF.ConstantNames.LocaleStringLoadingTimeout);return e}else throw"Neither the locale, "+f.toLowerCase()+", provided by the host app nor the fallback locale "+OSF.ConstantNames.DefaultLocale+" are supported.";else{b=e;o=Strings.OfficeOM}};if(!n()){window.Type=Function;Type.registerNamespace=function(a){window[a]=window[a]||{}};Type.prototype.registerClass=function(a){a={}}}var g=k+OSF.getSupportedLocale(f,OSF.ConstantNames.DefaultLocale)+"/"+OSF.ConstantNames.OfficeStringJS;h.loadScript(g,OSF.ConstantNames.OfficeStringsId,c,d,OSF.ConstantNames.LocaleStringLoadingTimeout)},s=function(s){if(s){i=new OSF.InitializationHelper(c,j,r,H,q);c.hostPlatform=="web"&&i.saveAndSetDialogInfo&&i.saveAndSetDialogInfo(p(m));i.setAgaveHostCommunication();if(typeof OSFPerformance!==a)OSFPerformance.getAppContextStart=OSFPerformance.now();D(j.wnd,function(d){if(typeof OSFPerformance!==a)OSFPerformance.getAppContextEnd=OSFPerformance.now();OSF.AppTelemetry&&OSF.AppTelemetry.logAppCommonMessage&&OSF.AppTelemetry.logAppCommonMessage("getAppContextAsync callback start");w=d._appInstanceId;if(d.get_featureGates){var e=d.get_featureGates();if(e)Microsoft.Office.WebExtension.FeatureGates=e}var f=function(){var a=c.hostSpecificFileVersion.split(".");if(d.get_appMinorVersion){var b=c.hostPlatform=="ios";if(!b)if(isNaN(d.get_appMinorVersion()))d._appMinorVersion=parseInt(a[1]);else if(a.length>1&&!isNaN(Number(a[1])))d._appMinorVersion=parseInt(a[1])}if(c.isDialog)d._isDialog=c.isDialog};f();var j=function(){i.prepareApiSurface&&i.prepareApiSurface(d);h.waitForFunction(function(){return Microsoft.Office.WebExtension.initialize!=undefined||u},function(f){if(f){if(i.prepareApiSurface)Microsoft.Office.WebExtension.initialize&&Microsoft.Office.WebExtension.initialize(i.getInitializationReason(d));else{if(!Microsoft.Office.WebExtension.initialize)Microsoft.Office.WebExtension.initialize=function(){};i.prepareRightBeforeWebExtensionInitialize(d)}i.prepareRightAfterWebExtensionInitialize&&i.prepareRightAfterWebExtensionInitialize(d);var e=d.get_appName(),a=b;if((c.flags&OSF.HostInfoFlags.SharedApp)!==0)a={visibilityMode:y[d.get_initialDisplayMode&&typeof d.get_initialDisplayMode===g?d.get_initialDisplayMode():0]};t({host:OfficeExt.HostName.Host.getInstance().getHost(e),platform:OfficeExt.HostName.Host.getInstance().getPlatform(e),addin:a})}else throw new Error('Office.js has not fully loaded. Your app must call "Office.onReady()" as part of it\'s loading sequence (or set the "Office.initialize" function). If your app has this functionality, try reloading this page.')},400,50)};!h.isScriptLoading(OSF.ConstantNames.OfficeStringsId)&&x(d.get_appUILocale());h.waitForScripts([OSF.ConstantNames.OfficeStringsId],function(){if(o&&!Strings.OfficeOM)Strings.OfficeOM=o;i.loadAppSpecificScriptAndCreateOM(d,j,k);if(typeof OSFPerformance!==a)OSFPerformance.createOMEnd=OSFPerformance.now()})});if(c.isO15){var n=OSF.OUtil.parseXdmInfo()==b;if(n){var f=d;if(window.external&&typeof window.external.GetContext!==a)try{window.external.GetContext();f=e}catch(v){}if(typeof OsfOptOut===a&&f&&window.top!==window.self){window.console&&window.console.log&&window.console.log("The add-in is not hosted in plain browser top window.");window.location.href="about:blank"}f&&t({host:b,platform:b,addin:b})}}}else{var l="MicrosoftAjax.js is not loaded successfully.";OSF.AppTelemetry&&OSF.AppTelemetry.logAppException&&OSF.AppTelemetry.logAppException(l);throw l}},z=function(){OSF.AppTelemetry&&OSF.AppTelemetry.setOsfControlAppCorrelationId&&OSF.AppTelemetry.setOsfControlAppCorrelationId(c.osfControlAppCorrelationId);if(h.isScriptLoading(OSF.ConstantNames.MicrosoftAjaxId))h.waitForScripts([OSF.ConstantNames.MicrosoftAjaxId],s);else h.waitForFunction(n,s,500,100)};if(c.isO15)h.loadScript(k+OSF.ConstantNames.O15InitHelper,OSF.ConstantNames.O15MappingId,z);else{var v=c.hostType.toLowerCase(),B=c.hostPlatform.toLowerCase(),I=new RegExp("^\\d\\d[.]\\d\\d$");if(OSF.HostSpecificFileVersionMap[v]==b||OSF.HostSpecificFileVersionMap[v][B]==b||!I.test(c.hostSpecificFileVersion))throw"hostInfo validation failed";var l;l=[c.hostType,c.hostPlatform,c.hostSpecificFileVersion,OSF.ConstantNames.HostFileScriptSuffix||b].filter(function(a){return a!=b}).join("-")+".js";h.loadScript(k+l.toLowerCase(),OSF.ConstantNames.HostFileId,z);if(typeof OSFPerformance!==a)OSFPerformance.hostSpecificFileName=l.toLowerCase()}c.hostLocale&&x(c.hostLocale);if(F&&!n()){var G=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js";h.loadScriptParallel(G,OSF.ConstantNames.MicrosoftAjaxId)}window.confirm=function(){throw new Error("Function window.confirm is not supported.")};window.alert=function(){throw new Error("Function window.alert is not supported.")};window.prompt=function(){throw new Error("Function window.prompt is not supported.")};var C=c.hostType=="outlook"&&c.hostPlatform=="android";if(!C){window.history.replaceState=b;window.history.pushState=b}};G();window.addEventListener&&window.addEventListener("DOMContentLoaded",function(){Microsoft.Office.WebExtension.onReadyInternal(function(){typeof OSFPerfUtil!==a&&OSFPerfUtil.sendPerformanceTelemetry()})});return {getId:function(){return j.id},getClientEndPoint:function(){return j.clientEndPoint},getContext:function(){return r},setContext:function(a){r=a},getHostInfo:function(){return c},getLoggingAllowed:function(){return l},getHostFacade:function(){return q},setHostFacade:function(a){q=a},getInitializationHelper:function(){return i},getCachedSessionSettingsKey:function(){return (j.conversationID!=b?j.conversationID:w)+"CachedSessionSettings"},getWebAppState:function(){return j},getWindowLocationHash:function(){return C},getWindowLocationSearch:function(){return B},getLoadScriptHelper:function(){return h},getWindowName:function(){return x}}}() - - - -var oteljs=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=19)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return s})),n.d(e,"c",(function(){return u}));var r=n(3),i=n(4);function o(t,e){return{name:t,dataType:r.a.Boolean,value:e,classification:i.a.SystemMetadata}}function a(t,e){return{name:t,dataType:r.a.Int64,value:e,classification:i.a.SystemMetadata}}function c(t,e){return{name:t,dataType:r.a.Double,value:e,classification:i.a.SystemMetadata}}function s(t,e){return{name:t,dataType:r.a.String,value:e,classification:i.a.SystemMetadata}}function u(t,e){return{name:t,dataType:r.a.Guid,value:e,classification:i.a.SystemMetadata}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return s}));var r,i,o=new(n(10).a);function a(){return o}function c(t,e,n){o.fireEvent({level:t,category:e,message:n})}function s(t,e,n){c(r.Error,t,(function(){var t=n instanceof Error?n.message:"";return e+": "+t}))}!function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose"}(r||(r={})),function(t){t[t.Core=0]="Core",t[t.Sink=1]="Sink",t[t.Transport=2]="Transport"}(i||(i={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t,e,n){t.push(Object(r.e)("zC."+e,n))}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.String=0]="String",t[t.Boolean=1]="Boolean",t[t.Int64=2]="Int64",t[t.Double=3]="Double",t[t.Guid=4]="Guid"}(r||(r={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.EssentialServiceMetadata=1]="EssentialServiceMetadata",t[t.AccountData=2]="AccountData",t[t.SystemMetadata=4]="SystemMetadata",t[t.OrganizationIdentifiableInformation=8]="OrganizationIdentifiableInformation",t[t.EndUserIdentifiableInformation=16]="EndUserIdentifiableInformation",t[t.CustomerContent=32]="CustomerContent",t[t.AccessControl=64]="AccessControl"}(r||(r={}))},function(t,e,n){"use strict";var r,i,o,a,c;n.d(e,"e",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),function(t){t[t.NotSet=0]="NotSet",t[t.Measure=1]="Measure",t[t.Diagnostics=2]="Diagnostics",t[t.CriticalBusinessImpact=191]="CriticalBusinessImpact",t[t.CriticalCensus=192]="CriticalCensus",t[t.CriticalExperimentation=193]="CriticalExperimentation",t[t.CriticalUsage=194]="CriticalUsage"}(r||(r={})),function(t){t[t.NotSet=0]="NotSet",t[t.Normal=1]="Normal",t[t.High=2]="High"}(i||(i={})),function(t){t[t.NotSet=0]="NotSet",t[t.Normal=1]="Normal",t[t.High=2]="High"}(o||(o={})),function(t){t[t.NotSet=0]="NotSet",t[t.SoftwareSetup=1]="SoftwareSetup",t[t.ProductServiceUsage=2]="ProductServiceUsage",t[t.ProductServicePerformance=4]="ProductServicePerformance",t[t.DeviceConfiguration=8]="DeviceConfiguration",t[t.InkingTypingSpeech=16]="InkingTypingSpeech"}(a||(a={})),function(t){t[t.ReservedDoNotUse=0]="ReservedDoNotUse",t[t.BasicEvent=10]="BasicEvent",t[t.FullEvent=100]="FullEvent",t[t.NecessaryServiceDataEvent=110]="NecessaryServiceDataEvent",t[t.AlwaysOnNecessaryServiceDataEvent=120]="AlwaysOnNecessaryServiceDataEvent"}(c||(c={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r,i,o,a,c,s,u,d,f,l=n(0),v=n(2);(r||(r={})).getFields=function(t,e){var n=[];return n.push(Object(l.d)(t+".Code",e.code)),void 0!==e.type&&n.push(Object(l.e)(t+".Type",e.type)),void 0!==e.tag&&n.push(Object(l.d)(t+".Tag",e.tag)),void 0!==e.isExpected&&n.push(Object(l.a)(t+".IsExpected",e.isExpected)),Object(v.a)(n,t,"Office.System.Result"),n},(o=i||(i={})).contractName="Office.System.Activity",o.getFields=function(t){var e=[];return void 0!==t.cV&&e.push(Object(l.e)("Activity.CV",t.cV)),e.push(Object(l.d)("Activity.Duration",t.duration)),e.push(Object(l.d)("Activity.Count",t.count)),e.push(Object(l.d)("Activity.AggMode",t.aggMode)),void 0!==t.success&&e.push(Object(l.a)("Activity.Success",t.success)),void 0!==t.result&&e.push.apply(e,r.getFields("Activity.Result",t.result)),Object(v.a)(e,"Activity",o.contractName),e},(a||(a={})).getFields=function(t,e){var n=[];return void 0!==e.id&&n.push(Object(l.e)(t+".Id",e.id)),void 0!==e.version&&n.push(Object(l.e)(t+".Version",e.version)),void 0!==e.sessionId&&n.push(Object(l.e)(t+".SessionId",e.sessionId)),Object(v.a)(n,t,"Office.System.Host"),n},(c||(c={})).getFields=function(t,e){var n=[];return void 0!==e.alias&&n.push(Object(l.e)(t+".Alias",e.alias)),void 0!==e.primaryIdentityHash&&n.push(Object(l.e)(t+".PrimaryIdentityHash",e.primaryIdentityHash)),void 0!==e.primaryIdentitySpace&&n.push(Object(l.e)(t+".PrimaryIdentitySpace",e.primaryIdentitySpace)),void 0!==e.tenantId&&n.push(Object(l.e)(t+".TenantId",e.tenantId)),void 0!==e.tenantGroup&&n.push(Object(l.e)(t+".TenantGroup",e.tenantGroup)),void 0!==e.isAnonymous&&n.push(Object(l.a)(t+".IsAnonymous",e.isAnonymous)),Object(v.a)(n,t,"Office.System.User"),n},(s||(s={})).getFields=function(t,e){var n=[];return void 0!==e.id&&n.push(Object(l.e)(t+".Id",e.id)),void 0!==e.version&&n.push(Object(l.e)(t+".Version",e.version)),void 0!==e.instanceId&&n.push(Object(l.e)(t+".InstanceId",e.instanceId)),void 0!==e.name&&n.push(Object(l.e)(t+".Name",e.name)),void 0!==e.marketplaceType&&n.push(Object(l.e)(t+".MarketplaceType",e.marketplaceType)),void 0!==e.sessionId&&n.push(Object(l.e)(t+".SessionId",e.sessionId)),void 0!==e.browserToken&&n.push(Object(l.e)(t+".BrowserToken",e.browserToken)),void 0!==e.osfRuntimeVersion&&n.push(Object(l.e)(t+".OsfRuntimeVersion",e.osfRuntimeVersion)),void 0!==e.officeJsVersion&&n.push(Object(l.e)(t+".OfficeJsVersion",e.officeJsVersion)),void 0!==e.hostJsVersion&&n.push(Object(l.e)(t+".HostJsVersion",e.hostJsVersion)),void 0!==e.assetId&&n.push(Object(l.e)(t+".AssetId",e.assetId)),void 0!==e.providerName&&n.push(Object(l.e)(t+".ProviderName",e.providerName)),void 0!==e.type&&n.push(Object(l.e)(t+".Type",e.type)),Object(v.a)(n,t,"Office.System.SDX"),n},(u||(u={})).getFields=function(t,e){var n=[];return void 0!==e.name&&n.push(Object(l.e)(t+".Name",e.name)),void 0!==e.state&&n.push(Object(l.e)(t+".State",e.state)),Object(v.a)(n,t,"Office.System.Funnel"),n},(d||(d={})).getFields=function(t,e){var n=[];return void 0!==e.id&&n.push(Object(l.d)(t+".Id",e.id)),void 0!==e.name&&n.push(Object(l.e)(t+".Name",e.name)),void 0!==e.commandSurface&&n.push(Object(l.e)(t+".CommandSurface",e.commandSurface)),void 0!==e.parentName&&n.push(Object(l.e)(t+".ParentName",e.parentName)),void 0!==e.triggerMethod&&n.push(Object(l.e)(t+".TriggerMethod",e.triggerMethod)),void 0!==e.timeOffsetMs&&n.push(Object(l.d)(t+".TimeOffsetMs",e.timeOffsetMs)),Object(v.a)(n,t,"Office.System.UserAction"),n},function(t){t.getFields=function(t,e){var n=[];return n.push(Object(l.e)(t+".ErrorGroup",e.errorGroup)),n.push(Object(l.d)(t+".Tag",e.tag)),void 0!==e.code&&n.push(Object(l.d)(t+".Code",e.code)),void 0!==e.id&&n.push(Object(l.d)(t+".Id",e.id)),void 0!==e.count&&n.push(Object(l.d)(t+".Count",e.count)),Object(v.a)(n,t,"Office.System.Error"),n}}(f||(f={}));var p,y=i,h=r,g=f,m=u,b=a,F=s,O=d,S=c;!function(t){!function(t){!function(t){t.Activity=y,t.Result=h,t.Error=g,t.Funnel=m,t.Host=b,t.SDX=F,t.User=S,t.UserAction=O}(t.System||(t.System={}))}(t.Office||(t.Office={}))}(p||(p={}))},function(t,e,n){"use strict";function r(t){var e={eventName:t.eventName,eventFlags:t.eventFlags};return t.telemetryProperties&&(e.telemetryProperties={ariaTenantToken:t.telemetryProperties.ariaTenantToken,nexusTenantToken:t.telemetryProperties.nexusTenantToken}),t.eventContract&&(e.eventContract={name:t.eventContract.name,dataFields:t.eventContract.dataFields.slice()}),e.dataFields=t.dataFields?t.dataFields.slice():[],e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return v}));var r,i,o=n(7),a=n(1);!function(t){t[t.Aria=0]="Aria",t[t.Nexus=1]="Nexus"}(r||(r={})),function(t){var e={},n={},i={};function o(t){if("object"!=typeof t)throw new Error("tokenTree must be an object");i=function t(e,n){if("object"!=typeof n)return n;for(var r=0,i=Object.keys(n);r=0;--c){var u=Object.create(Object.prototype);u[r[c]]=s,s=u}o(s)}},t.setTenantTokens=o,t.getTenantTokens=function(t){var e=c(t),n=s(t);if(!n||!e)throw new Error("Could not find tenant token for "+t);return{ariaTenantToken:e,nexusTenantToken:n}},t.getAriaTenantToken=c,t.getNexusTenantToken=s,t.clear=function(){e={},n={},i={}}}(i||(i={}));var c,s=n(3);!function(t){var e=/^[A-Z][a-zA-Z0-9]*$/,n=/^[a-zA-Z0-9_\.]*$/;function r(t){return void 0!==t&&n.test(t)}function i(t){if(!((e=t.name)&&r(e)&&e.length+5<100))throw new Error("Invalid dataField name");var e;t.dataType===s.a.Int64&&o(t.value)}function o(t){if("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t<-9007199254740991||t>9007199254740991)throw new Error("Invalid integer "+JSON.stringify(t))}t.validateTelemetryEvent=function(t){if(!function(t){if(!t||t.length>98)return!1;var n=t.split("."),r=n[n.length-1];return function(t){return!!t&&t.length>=3&&"Office"===t[0]}(n)&&(i=r,void 0!==i&&e.test(i));var i}(t.eventName))throw new Error("Invalid eventName");if(t.eventContract&&!r(t.eventContract.name))throw new Error("Invalid eventContract");if(null!=t.dataFields)for(var n=0;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1](()=>{"use strict";var __webpack_modules__=[,(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.VerbosityLevel=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.RenderingIntentFlag=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.PageActionEventType=e.OPS=e.MissingPDFException=e.MAX_IMAGE_SIZE_TO_CACHE=e.LINE_FACTOR=e.LINE_DESCENT_FACTOR=e.InvalidPDFException=e.ImageKind=e.IDENTITY_MATRIX=e.FormatError=e.FeatureTest=e.FONT_IDENTITY_MATRIX=e.DocumentActionEventType=e.CMapCompressionType=e.BaseException=e.BASELINE_FACTOR=e.AnnotationType=e.AnnotationStateModelType=e.AnnotationReviewState=e.AnnotationReplyType=e.AnnotationMode=e.AnnotationMarkedState=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationEditorType=e.AnnotationEditorPrefix=e.AnnotationEditorParamsType=e.AnnotationBorderStyleType=e.AnnotationActionEventType=e.AbortException=void 0;e.assert=function assert(t,e){t||unreachable(e)};e.bytesToString=function bytesToString(t){"object"==typeof t&&null!==t&&void 0!==t.length||unreachable("Invalid argument for bytesToString");const e=t.length,s=8192;if(ee});t.promise=new Promise((function(s,i){t.resolve=function(t){e=!0;s(t)};t.reject=function(t){e=!0;i(t)}}));return t};e.createValidAbsoluteUrl=function createValidAbsoluteUrl(t,e=null,s=null){if(!t)return null;try{if(s&&"string"==typeof t){if(s.addDefaultProtocol&&t.startsWith("www.")){const e=t.match(/\./g);e&&e.length>=2&&(t=`http://${t}`)}if(s.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}const i=e?new URL(t,e):new URL(t);if(function _isValidProtocol(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch(t){}return null};e.getModificationDate=function getModificationDate(t=new Date){return[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")].join("")};e.getVerbosityLevel=function getVerbosityLevel(){return i};e.info=function info(t){i>=s.INFOS&&console.log(`Info: ${t}`)};e.isArrayBuffer=function isArrayBuffer(t){return"object"==typeof t&&null!==t&&void 0!==t.byteLength};e.isArrayEqual=function isArrayEqual(t,e){if(t.length!==e.length)return!1;for(let s=0,i=t.length;s>24&255,t>>16&255,t>>8&255,255&t)};e.stringToBytes=stringToBytes;e.stringToPDFString=function stringToPDFString(t){if(t[0]>="ï"){let e;"þ"===t[0]&&"ÿ"===t[1]?e="utf-16be":"ÿ"===t[0]&&"þ"===t[1]?e="utf-16le":"ï"===t[0]&&"»"===t[1]&&"¿"===t[2]&&(e="utf-8");if(e)try{const s=new TextDecoder(e,{fatal:!0}),i=stringToBytes(t);return s.decode(i)}catch(t){warn(`stringToPDFString: "${t}".`)}}const e=[];for(let s=0,i=t.length;s=s.WARNINGS&&console.log(`Warning: ${t}`)}function unreachable(t){throw new Error(t)}function shadow(t,e,s,i=!1){Object.defineProperty(t,e,{value:s,enumerable:!i,configurable:!0,writable:!1});return s}const n=function BaseExceptionClosure(){function BaseException(t,e){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=e}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();e.BaseException=n;e.PasswordException=class PasswordException extends n{constructor(t,e){super(t,"PasswordException");this.code=e}};e.UnknownErrorException=class UnknownErrorException extends n{constructor(t,e){super(t,"UnknownErrorException");this.details=e}};e.InvalidPDFException=class InvalidPDFException extends n{constructor(t){super(t,"InvalidPDFException")}};e.MissingPDFException=class MissingPDFException extends n{constructor(t){super(t,"MissingPDFException")}};e.UnexpectedResponseException=class UnexpectedResponseException extends n{constructor(t,e){super(t,"UnexpectedResponseException");this.status=e}};e.FormatError=class FormatError extends n{constructor(t){super(t,"FormatError")}};e.AbortException=class AbortException extends n{constructor(t){super(t,"AbortException")}};function stringToBytes(t){"string"!=typeof t&&unreachable("Invalid argument for stringToBytes");const e=t.length,s=new Uint8Array(e);for(let i=0;it.toString(16).padStart(2,"0")));class Util{static makeHexColor(t,e,s){return`#${a[t]}${a[e]}${a[s]}`}static scaleMinMax(t,e){let s;if(t[0]){if(t[0]<0){s=e[0];e[0]=e[1];e[1]=s}e[0]*=t[0];e[1]*=t[0];if(t[3]<0){s=e[2];e[2]=e[3];e[3]=s}e[2]*=t[3];e[3]*=t[3]}else{s=e[0];e[0]=e[2];e[2]=s;s=e[1];e[1]=e[3];e[3]=s;if(t[1]<0){s=e[2];e[2]=e[3];e[3]=s}e[2]*=t[1];e[3]*=t[1];if(t[2]<0){s=e[0];e[0]=e[1];e[1]=s}e[0]*=t[2];e[1]*=t[2]}e[0]+=t[4];e[1]+=t[4];e[2]+=t[5];e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static applyTransform(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}static applyInverseTransform(t,e){const s=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/s,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/s]}static getAxialAlignedBoundingBox(t,e){const s=Util.applyTransform(t,e),i=Util.applyTransform(t.slice(2,4),e),n=Util.applyTransform([t[0],t[3]],e),a=Util.applyTransform([t[2],t[1]],e);return[Math.min(s[0],i[0],n[0],a[0]),Math.min(s[1],i[1],n[1],a[1]),Math.max(s[0],i[0],n[0],a[0]),Math.max(s[1],i[1],n[1],a[1])]}static inverseTransform(t){const e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t){const e=[t[0],t[2],t[1],t[3]],s=t[0]*e[0]+t[1]*e[2],i=t[0]*e[1]+t[1]*e[3],n=t[2]*e[0]+t[3]*e[2],a=t[2]*e[1]+t[3]*e[3],r=(s+a)/2,o=Math.sqrt((s+a)**2-4*(s*a-n*i))/2,l=r+o||1,c=r-o||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(t){const e=t.slice(0);if(t[0]>t[2]){e[0]=t[2];e[2]=t[0]}if(t[1]>t[3]){e[1]=t[3];e[3]=t[1]}return e}static intersect(t,e){const s=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),i=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(s>i)return null;const n=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3])),a=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));return n>a?null:[s,n,i,a]}static bezierBoundingBox(t,e,s,i,n,a,r,o){const l=[],c=[[],[]];let h,d,u,p,f,g,m,b;for(let c=0;c<2;++c){if(0===c){d=6*t-12*s+6*n;h=-3*t+9*s-9*n+3*r;u=3*s-3*t}else{d=6*e-12*i+6*a;h=-3*e+9*i-9*a+3*o;u=3*i-3*e}if(Math.abs(h)<1e-12){if(Math.abs(d)<1e-12)continue;p=-u/d;0{Object.defineProperty(exports,"__esModule",{value:!0});exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0;exports.getDocument=getDocument;exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_is_node=__w_pdfjs_require__(10),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_xfa_text=__w_pdfjs_require__(19);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultFilterFactory=_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;if(_is_node.isNodeJS){const{NodeCanvasFactory:t,NodeCMapReaderFactory:e,NodeFilterFactory:s,NodeStandardFontDataFactory:i}=__w_pdfjs_require__(20);exports.DefaultCanvasFactory=DefaultCanvasFactory=t;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=e;exports.DefaultFilterFactory=DefaultFilterFactory=s;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=i}if(_is_node.isNodeJS){const{PDFNodeStream:t}=__w_pdfjs_require__(21);createPDFNetworkStream=e=>new t(e)}else{const{PDFNetworkStream:t}=__w_pdfjs_require__(24),{PDFFetchStream:e}=__w_pdfjs_require__(25);createPDFNetworkStream=s=>(0,_display_utils.isValidFetchUrl)(s.url)?new e(s):new t(s)}function getDocument(t){"string"==typeof t||t instanceof URL?t={url:t}:(0,_util.isArrayBuffer)(t)&&(t={data:t});if("object"!=typeof t)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!t.url&&!t.data&&!t.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const e=new PDFDocumentLoadingTask,{docId:s}=e,i=t.url?getUrlProp(t.url):null,n=t.data?getDataProp(t.data):null,a=t.httpHeaders||null,r=!0===t.withCredentials,o=t.password??null,l=t.range instanceof PDFDataRangeTransport?t.range:null,c=Number.isInteger(t.rangeChunkSize)&&t.rangeChunkSize>0?t.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let h=t.worker instanceof PDFWorker?t.worker:null;const d=t.verbosity,u="string"!=typeof t.docBaseUrl||(0,_display_utils.isDataScheme)(t.docBaseUrl)?null:t.docBaseUrl,p="string"==typeof t.cMapUrl?t.cMapUrl:null,f=!1!==t.cMapPacked,g=t.CMapReaderFactory||DefaultCMapReaderFactory,m="string"==typeof t.standardFontDataUrl?t.standardFontDataUrl:null,b=t.StandardFontDataFactory||DefaultStandardFontDataFactory,A=!0!==t.stopAtErrors,_=Number.isInteger(t.maxImageSize)&&t.maxImageSize>-1?t.maxImageSize:-1,y=!1!==t.isEvalSupported,v="boolean"==typeof t.isOffscreenCanvasSupported?t.isOffscreenCanvasSupported:!_is_node.isNodeJS,S=Number.isInteger(t.canvasMaxAreaInBytes)?t.canvasMaxAreaInBytes:-1,x="boolean"==typeof t.disableFontFace?t.disableFontFace:_is_node.isNodeJS,E=!0===t.fontExtraProperties,C=!0===t.enableXfa,P=t.ownerDocument||globalThis.document,T=!0===t.disableRange,w=!0===t.disableStream,k=!0===t.disableAutoFetch,F=!0===t.pdfBug,M=l?l.length:t.length??NaN,R="boolean"==typeof t.useSystemFonts?t.useSystemFonts:!_is_node.isNodeJS&&!x,D="boolean"==typeof t.useWorkerFetch?t.useWorkerFetch:g===_display_utils.DOMCMapReaderFactory&&b===_display_utils.DOMStandardFontDataFactory&&(0,_display_utils.isValidFetchUrl)(p,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(m,document.baseURI),I=t.canvasFactory||new DefaultCanvasFactory({ownerDocument:P}),O=t.filterFactory||new DefaultFilterFactory({docId:s,ownerDocument:P});(0,_util.setVerbosityLevel)(d);const L={canvasFactory:I,filterFactory:O};if(!D){L.cMapReaderFactory=new g({baseUrl:p,isCompressed:f});L.standardFontDataFactory=new b({baseUrl:m})}if(!h){const t={verbosity:d,port:_worker_options.GlobalWorkerOptions.workerPort};h=t.port?PDFWorker.fromPort(t):new PDFWorker(t);e._worker=h}const N={docId:s,apiVersion:"3.5.141",data:n,password:o,disableAutoFetch:k,rangeChunkSize:c,length:M,docBaseUrl:u,enableXfa:C,evaluatorOptions:{maxImageSize:_,disableFontFace:x,ignoreErrors:A,isEvalSupported:y,isOffscreenCanvasSupported:v,canvasMaxAreaInBytes:S,fontExtraProperties:E,useSystemFonts:R,cMapUrl:D?p:null,standardFontDataUrl:D?m:null}},B={ignoreErrors:A,isEvalSupported:y,disableFontFace:x,fontExtraProperties:E,enableXfa:C,ownerDocument:P,disableAutoFetch:k,pdfBug:F,styleElement:null};h.promise.then((function(){if(e.destroyed)throw new Error("Loading aborted");const t=_fetchDocument(h,N),o=new Promise((function(t){let e;l?e=new _transport_stream.PDFDataTransportStream({length:M,initialData:l.initialData,progressiveDone:l.progressiveDone,contentDispositionFilename:l.contentDispositionFilename,disableRange:T,disableStream:w},l):n||(e=createPDFNetworkStream({url:i,length:M,httpHeaders:a,withCredentials:r,rangeChunkSize:c,disableRange:T,disableStream:w}));t(e)}));return Promise.all([t,o]).then((function([t,i]){if(e.destroyed)throw new Error("Loading aborted");const n=new _message_handler.MessageHandler(s,t,h.port),a=new WorkerTransport(n,e,i,B,L);e._transport=a;n.send("Ready",null)}))})).catch(e._capability.reject);return e}async function _fetchDocument(t,e){if(t.destroyed)throw new Error("Worker was destroyed");const s=await t.messageHandler.sendWithPromise("GetDocRequest",e,e.data?[e.data.buffer]:null);if(t.destroyed)throw new Error("Worker was destroyed");return s}function getUrlProp(t){if(t instanceof URL)return t.href;try{return new URL(t,window.location).href}catch(e){if(_is_node.isNodeJS&&"string"==typeof t)return t}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(t){if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&t instanceof Buffer){(0,_display_utils.deprecated)("Please provide binary data as `Uint8Array`, rather than `Buffer`.");return new Uint8Array(t)}if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if("string"==typeof t)return(0,_util.stringToBytes)(t);if("object"==typeof t&&!isNaN(t?.length)||(0,_util.isArrayBuffer)(t))return new Uint8Array(t);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}class PDFDocumentLoadingTask{static#t=0;constructor(){this._capability=(0,_util.createPromiseCapability)();this._transport=null;this._worker=null;this.docId="d"+PDFDocumentLoadingTask.#t++;this.destroyed=!1;this.onPassword=null;this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;await(this._transport?.destroy());this._transport=null;if(this._worker){this._worker.destroy();this._worker=null}}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(t,e,s=!1,i=null){this.length=t;this.initialData=e;this.progressiveDone=s;this.contentDispositionFilename=i;this._rangeListeners=[];this._progressListeners=[];this._progressiveReadListeners=[];this._progressiveDoneListeners=[];this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,e){for(const s of this._rangeListeners)s(t,e)}onDataProgress(t,e){this._readyCapability.promise.then((()=>{for(const s of this._progressListeners)s(t,e)}))}onDataProgressiveRead(t){this._readyCapability.promise.then((()=>{for(const e of this._progressiveReadListeners)e(t)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const t of this._progressiveDoneListeners)t()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(t,e){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(t,e){this._pdfInfo=t;this._transport=e}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{#e=null;#s=!1;constructor(t,e,s,i=!1){this._pageIndex=t;this._pageInfo=e;this._transport=s;this._stats=i?new _display_utils.StatTimer:null;this._pdfBug=i;this.commonObjs=s.commonObjs;this.objs=new PDFObjects;this._maybeCleanupAfterRender=!1;this._intentStates=new Map;this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:e=this.rotate,offsetX:s=0,offsetY:i=0,dontFlip:n=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:e,offsetX:s,offsetY:i,dontFlip:n})}getAnnotations({intent:t="display"}={}){const e=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,e.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:e,intent:s="display",annotationMode:i=_util.AnnotationMode.ENABLE,transform:n=null,background:a=null,optionalContentConfigPromise:r=null,annotationCanvasMap:o=null,pageColors:l=null,printAnnotationStorage:c=null}){if(arguments[0]?.canvasFactory)throw new Error("render no longer accepts the `canvasFactory`-option, please pass it to the `getDocument`-function instead.");this._stats?.time("Overall");const h=this._transport.getRenderingIntent(s,i,c);this.#s=!1;this.#i();r||(r=this._transport.getOptionalContentConfig());let d=this._intentStates.get(h.cacheKey);if(!d){d=Object.create(null);this._intentStates.set(h.cacheKey,d)}if(d.streamReaderCancelTimeout){clearTimeout(d.streamReaderCancelTimeout);d.streamReaderCancelTimeout=null}const u=!!(h.renderingIntent&_util.RenderingIntentFlag.PRINT);if(!d.displayReadyCapability){d.displayReadyCapability=(0,_util.createPromiseCapability)();d.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null};this._stats?.time("Page Request");this._pumpOperatorList(h)}const complete=t=>{d.renderTasks.delete(p);(this._maybeCleanupAfterRender||u)&&(this.#s=!0);this.#n(!u);if(t){p.capability.reject(t);this._abortOperatorList({intentState:d,reason:t instanceof Error?t:new Error(t)})}else p.capability.resolve();this._stats?.timeEnd("Rendering");this._stats?.timeEnd("Overall")},p=new InternalRenderTask({callback:complete,params:{canvasContext:t,viewport:e,transform:n,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:o,operatorList:d.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!u,pdfBug:this._pdfBug,pageColors:l});(d.renderTasks||=new Set).add(p);const f=p.task;Promise.all([d.displayReadyCapability.promise,r]).then((([t,e])=>{if(this.#s)complete();else{this._stats?.time("Rendering");p.initializeGraphics({transparency:t,optionalContentConfig:e});p.operatorListChanged()}})).catch(complete);return f}getOperatorList({intent:t="display",annotationMode:e=_util.AnnotationMode.ENABLE,printAnnotationStorage:s=null}={}){const i=this._transport.getRenderingIntent(t,e,s,!0);let n,a=this._intentStates.get(i.cacheKey);if(!a){a=Object.create(null);this._intentStates.set(i.cacheKey,a)}if(!a.opListReadCapability){n=Object.create(null);n.operatorListChanged=function operatorListChanged(){if(a.operatorList.lastChunk){a.opListReadCapability.resolve(a.operatorList);a.renderTasks.delete(n)}};a.opListReadCapability=(0,_util.createPromiseCapability)();(a.renderTasks||=new Set).add(n);a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null};this._stats?.time("Page Request");this._pumpOperatorList(i)}return a.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===t},{highWaterMark:100,size:t=>t.items.length})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then((t=>_xfa_text.XfaText.textContent(t)));const e=this.streamTextContent(t);return new Promise((function(t,s){const i=e.getReader(),n={items:[],styles:Object.create(null)};!function pump(){i.read().then((function({value:e,done:s}){if(s)t(n);else{Object.assign(n.styles,e.styles);n.items.push(...e.items);pump()}}),s)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const e of this._intentStates.values()){this._abortOperatorList({intentState:e,reason:new Error("Page was destroyed."),force:!0});if(!e.opListReadCapability)for(const s of e.renderTasks){t.push(s.completed);s.cancel()}}this.objs.clear();this.#s=!1;this.#i();return Promise.all(t)}cleanup(t=!1){this.#s=!0;const e=this.#n(!1);t&&e&&(this._stats&&=new _display_utils.StatTimer);return e}#n(t=!1){this.#i();if(!this.#s)return!1;if(t){this.#e=setTimeout((()=>{this.#e=null;this.#n(!1)}),DELAYED_CLEANUP_TIMEOUT);return!1}for(const{renderTasks:t,operatorList:e}of this._intentStates.values())if(t.size>0||!e.lastChunk)return!1;this._intentStates.clear();this.objs.clear();this.#s=!1;return!0}#i(){if(this.#e){clearTimeout(this.#e);this.#e=null}}_startRenderPage(t,e){const s=this._intentStates.get(e);if(s){this._stats?.timeEnd("Page Request");s.displayReadyCapability?.resolve(t)}}_renderPageChunk(t,e){for(let s=0,i=t.length;s{i.read().then((({value:t,done:e})=>{if(e)n.streamReader=null;else if(!this._transport.destroyed){this._renderPageChunk(t,n);pump()}}),(t=>{n.streamReader=null;if(!this._transport.destroyed){if(n.operatorList){n.operatorList.lastChunk=!0;for(const t of n.renderTasks)t.operatorListChanged();this.#n(!0)}if(n.displayReadyCapability)n.displayReadyCapability.reject(t);else{if(!n.opListReadCapability)throw t;n.opListReadCapability.reject(t)}}}))};pump()}_abortOperatorList({intentState:t,reason:e,force:s=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout){clearTimeout(t.streamReaderCancelTimeout);t.streamReaderCancelTimeout=null}if(!s){if(t.renderTasks.size>0)return;if(e instanceof _display_utils.RenderingCancelledException){let s=RENDERING_CANCELLED_TIMEOUT;e.extraDelay>0&&e.extraDelay<1e3&&(s+=e.extraDelay);t.streamReaderCancelTimeout=setTimeout((()=>{t.streamReaderCancelTimeout=null;this._abortOperatorList({intentState:t,reason:e,force:!0})}),s);return}}t.streamReader.cancel(new _util.AbortException(e.message)).catch((()=>{}));t.streamReader=null;if(!this._transport.destroyed){for(const[e,s]of this._intentStates)if(s===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{#a=new Set;#r=Promise.resolve();postMessage(t,e){const s={data:structuredClone(t,e?{transfer:e}:null)};this.#r.then((()=>{for(const t of this.#a)t.call(this,s)}))}addEventListener(t,e){this.#a.add(e)}removeEventListener(t,e){this.#a.delete(e)}terminate(){this.#a.clear()}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;if(_is_node.isNodeJS&&"function"==typeof require){PDFWorkerUtil.isWorkerDisabled=!0;PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js"}else if("object"==typeof document){const t=document?.currentScript?.src;t&&(PDFWorkerUtil.fallbackWorkerSrc=t.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(t,e){let s;try{s=new URL(t);if(!s.origin||"null"===s.origin)return!1}catch(t){return!1}const i=new URL(e,s);return s.origin===i.origin};PDFWorkerUtil.createCDNWrapper=function(t){const e=`importScripts("${t}");`;return URL.createObjectURL(new Blob([e]))};class PDFWorker{static#o=new WeakMap;constructor({name:t=null,port:e=null,verbosity:s=(0,_util.getVerbosityLevel)()}={}){if(e&&PDFWorker.#o.has(e))throw new Error("Cannot use more than one PDFWorker per port.");this.name=t;this.destroyed=!1;this.verbosity=s;this._readyCapability=(0,_util.createPromiseCapability)();this._port=null;this._webWorker=null;this._messageHandler=null;if(e){PDFWorker.#o.set(e,this);this._initializeFromPort(e)}else this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t;this._messageHandler=new _message_handler.MessageHandler("main","worker",t);this._messageHandler.on("ready",(function(){}));this._readyCapability.resolve();this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:t}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,t)||(t=PDFWorkerUtil.createCDNWrapper(new URL(t,window.location).href));const e=new Worker(t),s=new _message_handler.MessageHandler("main","worker",e),terminateEarly=()=>{e.removeEventListener("error",onWorkerError);s.destroy();e.terminate();this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},onWorkerError=()=>{this._webWorker||terminateEarly()};e.addEventListener("error",onWorkerError);s.on("test",(t=>{e.removeEventListener("error",onWorkerError);if(this.destroyed)terminateEarly();else if(t){this._messageHandler=s;this._port=e;this._webWorker=e;this._readyCapability.resolve();s.send("configure",{verbosity:this.verbosity})}else{this._setupFakeWorker();s.destroy();e.terminate()}}));s.on("ready",(t=>{e.removeEventListener("error",onWorkerError);if(this.destroyed)terminateEarly();else try{sendTest()}catch(t){this._setupFakeWorker()}}));const sendTest=()=>{const t=new Uint8Array;s.send("test",t,[t.buffer])};sendTest();return}catch(t){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){if(!PDFWorkerUtil.isWorkerDisabled){(0,_util.warn)("Setting up fake worker.");PDFWorkerUtil.isWorkerDisabled=!0}PDFWorker._setupFakeWorkerGlobal.then((t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const e=new LoopbackPort;this._port=e;const s="fake"+PDFWorkerUtil.fakeWorkerId++,i=new _message_handler.MessageHandler(s+"_worker",s,e);t.setup(i,e);const n=new _message_handler.MessageHandler(s,s+"_worker",e);this._messageHandler=n;this._readyCapability.resolve();n.send("configure",{verbosity:this.verbosity})})).catch((t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))}))}destroy(){this.destroyed=!0;if(this._webWorker){this._webWorker.terminate();this._webWorker=null}PDFWorker.#o.delete(this._port);this._port=null;if(this._messageHandler){this._messageHandler.destroy();this._messageHandler=null}}static fromPort(t){if(!t?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.#o.has(t.port)?this.#o.get(t.port):new PDFWorker(t)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc){_is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.');return PDFWorkerUtil.fallbackWorkerSrc}throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch(t){return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS&&"function"==typeof require){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}await(0,_display_utils.loadScript)(this.workerSrc);return window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker;class WorkerTransport{#l=new Map;#c=new Map;#h=new Map;constructor(t,e,s,i,n){this.messageHandler=t;this.loadingTask=e;this.commonObjs=new PDFObjects;this.fontLoader=new _font_loader.FontLoader({ownerDocument:i.ownerDocument,styleElement:i.styleElement});this._params=i;this.canvasFactory=n.canvasFactory;this.filterFactory=n.filterFactory;this.cMapReaderFactory=n.cMapReaderFactory;this.standardFontDataFactory=n.standardFontDataFactory;this.destroyed=!1;this.destroyCapability=null;this._passwordCapability=null;this._networkStream=s;this._fullReader=null;this._lastProgress=null;this.downloadInfoCapability=(0,_util.createPromiseCapability)();this.setupMessageHandler()}#d(t,e=null){const s=this.#l.get(t);if(s)return s;const i=this.messageHandler.sendWithPromise(t,e);this.#l.set(t,i);return i}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(t,e=_util.AnnotationMode.ENABLE,s=null,i=!1){let n=_util.RenderingIntentFlag.DISPLAY,a=null;switch(t){case"any":n=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":n=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${t}`)}switch(e){case _util.AnnotationMode.DISABLE:n+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:n+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:n+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE;a=(n&_util.RenderingIntentFlag.PRINT&&s instanceof _annotation_storage.PrintAnnotationStorage?s:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${e}`)}i&&(n+=_util.RenderingIntentFlag.OPLIST);return{renderingIntent:n,cacheKey:`${n}_${_annotation_storage.AnnotationStorage.getHash(a)}`,annotationStorageMap:a}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0;this.destroyCapability=(0,_util.createPromiseCapability)();this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const e of this.#c.values())t.push(e._destroy());this.#c.clear();this.#h.clear();this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const e=this.messageHandler.sendWithPromise("Terminate",null);t.push(e);Promise.all(t).then((()=>{this.commonObjs.clear();this.fontLoader.clear();this.#l.clear();this.filterFactory.destroy();this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated."));if(this.messageHandler){this.messageHandler.destroy();this.messageHandler=null}this.destroyCapability.resolve()}),this.destroyCapability.reject);return this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:e}=this;t.on("GetReader",((t,e)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available.");this._fullReader=this._networkStream.getFullReader();this._fullReader.onProgress=t=>{this._lastProgress={loaded:t.loaded,total:t.total}};e.onPull=()=>{this._fullReader.read().then((function({value:t,done:s}){if(s)e.close();else{(0,_util.assert)(t instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer.");e.enqueue(new Uint8Array(t),1,[t])}})).catch((t=>{e.error(t)}))};e.onCancel=t=>{this._fullReader.cancel(t);e.ready.catch((t=>{if(!this.destroyed)throw t}))}}));t.on("ReaderHeadersReady",(t=>{const s=(0,_util.createPromiseCapability)(),i=this._fullReader;i.headersReady.then((()=>{if(!i.isStreamingSupported||!i.isRangeSupported){this._lastProgress&&e.onProgress?.(this._lastProgress);i.onProgress=t=>{e.onProgress?.({loaded:t.loaded,total:t.total})}}s.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),s.reject);return s.promise}));t.on("GetRangeReader",((t,e)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const s=this._networkStream.getRangeReader(t.begin,t.end);if(s){e.onPull=()=>{s.read().then((function({value:t,done:s}){if(s)e.close();else{(0,_util.assert)(t instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer.");e.enqueue(new Uint8Array(t),1,[t])}})).catch((t=>{e.error(t)}))};e.onCancel=t=>{s.cancel(t);e.ready.catch((t=>{if(!this.destroyed)throw t}))}}else e.close()}));t.on("GetDoc",(({pdfInfo:t})=>{this._numPages=t.numPages;this._htmlForXfa=t.htmlForXfa;delete t.htmlForXfa;e._capability.resolve(new PDFDocumentProxy(t,this))}));t.on("DocException",(function(t){let s;switch(t.name){case"PasswordException":s=new _util.PasswordException(t.message,t.code);break;case"InvalidPDFException":s=new _util.InvalidPDFException(t.message);break;case"MissingPDFException":s=new _util.MissingPDFException(t.message);break;case"UnexpectedResponseException":s=new _util.UnexpectedResponseException(t.message,t.status);break;case"UnknownErrorException":s=new _util.UnknownErrorException(t.message,t.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}e._capability.reject(s)}));t.on("PasswordRequest",(t=>{this._passwordCapability=(0,_util.createPromiseCapability)();if(e.onPassword){const updatePassword=t=>{t instanceof Error?this._passwordCapability.reject(t):this._passwordCapability.resolve({password:t})};try{e.onPassword(updatePassword,t.code)}catch(t){this._passwordCapability.reject(t)}}else this._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return this._passwordCapability.promise}));t.on("DataLoaded",(t=>{e.onProgress?.({loaded:t.length,total:t.length});this.downloadInfoCapability.resolve(t)}));t.on("StartRenderPage",(t=>{if(this.destroyed)return;this.#c.get(t.pageIndex)._startRenderPage(t.transparency,t.cacheKey)}));t.on("commonobj",(([e,s,i])=>{if(!this.destroyed&&!this.commonObjs.has(e))switch(s){case"Font":const n=this._params;if("error"in i){const t=i.error;(0,_util.warn)(`Error during font loading: ${t}`);this.commonObjs.resolve(e,t);break}const a=n.pdfBug&&globalThis.FontInspector?.enabled?(t,e)=>globalThis.FontInspector.fontAdded(t,e):null,r=new _font_loader.FontFaceObject(i,{isEvalSupported:n.isEvalSupported,disableFontFace:n.disableFontFace,ignoreErrors:n.ignoreErrors,inspectFont:a});this.fontLoader.bind(r).catch((s=>t.sendWithPromise("FontFallback",{id:e}))).finally((()=>{!n.fontExtraProperties&&r.data&&(r.data=null);this.commonObjs.resolve(e,r)}));break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(e,i);break;default:throw new Error(`Got unknown common object type ${s}`)}}));t.on("obj",(([t,e,s,i])=>{if(this.destroyed)return;const n=this.#c.get(e);if(!n.objs.has(t))switch(s){case"Image":n.objs.resolve(t,i);if(i){let t;if(i.bitmap){const{width:e,height:s}=i;t=e*s*4}else t=i.data?.length||0;t>_util.MAX_IMAGE_SIZE_TO_CACHE&&(n._maybeCleanupAfterRender=!0)}break;case"Pattern":n.objs.resolve(t,i);break;default:throw new Error(`Got unknown object type ${s}`)}}));t.on("DocProgress",(t=>{this.destroyed||e.onProgress?.({loaded:t.loaded,total:t.total})}));t.on("FetchBuiltInCMap",(t=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(t):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))));t.on("FetchStandardFontData",(t=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(t):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally((()=>{this.annotationStorage.resetModified()}))}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const e=t-1,s=this.#h.get(e);if(s)return s;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:e}).then((t=>{if(this.destroyed)throw new Error("Transport destroyed");const s=new PDFPageProxy(e,t,this,this._params.pdfBug);this.#c.set(e,s);return s}));this.#h.set(e,i);return i}getPageIndex(t){return"object"!=typeof t||null===t||!Number.isInteger(t.num)||t.num<0||!Number.isInteger(t.gen)||t.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen})}getAnnotations(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}getFieldObjects(){return this.#d("GetFieldObjects")}hasJSActions(){return this.#d("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return"string"!=typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((t=>new _optional_content_config.OptionalContentConfig(t)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",e=this.#l.get(t);if(e)return e;const s=this.messageHandler.sendWithPromise(t,null).then((t=>({info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})));this.#l.set(t,s);return s}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const t of this.#c.values()){if(!t.cleanup())throw new Error(`startCleanup: Page ${t.pageNumber} is currently rendering.`)}this.commonObjs.clear();t||this.fontLoader.clear();this.#l.clear();this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:t,enableXfa:e}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t,enableXfa:e})}}class PDFObjects{#u=Object.create(null);#p(t){const e=this.#u[t];return e||(this.#u[t]={capability:(0,_util.createPromiseCapability)(),data:null})}get(t,e=null){if(e){const s=this.#p(t);s.capability.promise.then((()=>e(s.data)));return null}const s=this.#u[t];if(!s?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return s.data}has(t){const e=this.#u[t];return e?.capability.settled||!1}resolve(t,e=null){const s=this.#p(t);s.data=e;s.capability.resolve()}clear(){for(const t in this.#u){const{data:e}=this.#u[t];e?.bitmap?.close()}this.#u=Object.create(null)}}class RenderTask{#f=null;constructor(t){this.#f=t;this.onContinue=null}get promise(){return this.#f.capability.promise}cancel(t=0){this.#f.cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=this.#f.operatorList;if(!t)return!1;const{annotationCanvasMap:e}=this.#f;return t.form||t.canvas&&e?.size>0}}exports.RenderTask=RenderTask;class InternalRenderTask{static#g=new WeakSet;constructor({callback:t,params:e,objs:s,commonObjs:i,annotationCanvasMap:n,operatorList:a,pageIndex:r,canvasFactory:o,filterFactory:l,useRequestAnimationFrame:c=!1,pdfBug:h=!1,pageColors:d=null}){this.callback=t;this.params=e;this.objs=s;this.commonObjs=i;this.annotationCanvasMap=n;this.operatorListIdx=null;this.operatorList=a;this._pageIndex=r;this.canvasFactory=o;this.filterFactory=l;this._pdfBug=h;this.pageColors=d;this.running=!1;this.graphicsReadyCallback=null;this.graphicsReady=!1;this._useRequestAnimationFrame=!0===c&&"undefined"!=typeof window;this.cancelled=!1;this.capability=(0,_util.createPromiseCapability)();this.task=new RenderTask(this);this._cancelBound=this.cancel.bind(this);this._continueBound=this._continue.bind(this);this._scheduleNextBound=this._scheduleNext.bind(this);this._nextBound=this._next.bind(this);this._canvas=e.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics({transparency:t=!1,optionalContentConfig:e}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#g.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#g.add(this._canvas)}if(this._pdfBug&&globalThis.StepperManager?.enabled){this.stepper=globalThis.StepperManager.create(this._pageIndex);this.stepper.init(this.operatorList);this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint()}const{canvasContext:s,viewport:i,transform:n,background:a}=this.params;this.gfx=new _canvas.CanvasGraphics(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:e},this.annotationCanvasMap);this.gfx.beginDrawing({transform:n,viewport:i,transparency:t,background:a});this.operatorListIdx=0;this.graphicsReady=!0;this.graphicsReadyCallback?.()}cancel(t=null,e=0){this.running=!1;this.cancelled=!0;this.gfx?.endDrawing(this.pageColors);this._canvas&&InternalRenderTask.#g.delete(this._canvas);this.callback(t||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas",e))}operatorListChanged(){if(this.graphicsReady){this.stepper?.updateOperatorList(this.operatorList);this.running||this._continue()}else this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0;this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){if(!this.cancelled){this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper);if(this.operatorListIdx===this.operatorList.argsArray.length){this.running=!1;if(this.operatorList.lastChunk){this.gfx.endDrawing(this.pageColors);this._canvas&&InternalRenderTask.#g.delete(this._canvas);this.callback()}}}}}const version="3.5.141";exports.version=version;const build="be0f6ee08";exports.build=build},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.PrintAnnotationStorage=e.AnnotationStorage=void 0;var i=s(1),n=s(4),a=s(8);class AnnotationStorage{#m=!1;#b=new Map;constructor(){this.onSetModified=null;this.onResetModified=null;this.onAnnotationEditor=null}getValue(t,e){const s=this.#b.get(t);return void 0===s?e:Object.assign(e,s)}getRawValue(t){return this.#b.get(t)}remove(t){this.#b.delete(t);0===this.#b.size&&this.resetModified();if("function"==typeof this.onAnnotationEditor){for(const t of this.#b.values())if(t instanceof n.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(t,e){const s=this.#b.get(t);let i=!1;if(void 0!==s){for(const[t,n]of Object.entries(e))if(s[t]!==n){i=!0;s[t]=n}}else{i=!0;this.#b.set(t,e)}i&&this.#A();e instanceof n.AnnotationEditor&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(e.constructor._type)}has(t){return this.#b.has(t)}getAll(){return this.#b.size>0?(0,i.objectFromMap)(this.#b):null}setAll(t){for(const[e,s]of Object.entries(t))this.setValue(e,s)}get size(){return this.#b.size}#A(){if(!this.#m){this.#m=!0;"function"==typeof this.onSetModified&&this.onSetModified()}}resetModified(){if(this.#m){this.#m=!1;"function"==typeof this.onResetModified&&this.onResetModified()}}get print(){return new PrintAnnotationStorage(this)}get serializable(){if(0===this.#b.size)return null;const t=new Map;for(const[e,s]of this.#b){const i=s instanceof n.AnnotationEditor?s.serialize():s;i&&t.set(e,i)}return t}static getHash(t){if(!t)return"";const e=new a.MurmurHash3_64;for(const[s,i]of t)e.update(`${s}:${JSON.stringify(i)}`);return e.hexdigest()}}e.AnnotationStorage=AnnotationStorage;class PrintAnnotationStorage extends AnnotationStorage{#_=null;constructor(t){super();this.#_=structuredClone(t.serializable)}get print(){(0,i.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#_}}e.PrintAnnotationStorage=PrintAnnotationStorage},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.AnnotationEditor=void 0;var i=s(5),n=s(1);class AnnotationEditor{#y=this.focusin.bind(this);#v=this.focusout.bind(this);#S=!1;#x=!1;#E=!1;_uiManager=null;#C=AnnotationEditor._zIndex++;static _colorManager=new i.ColorManager;static _zIndex=1;constructor(t){this.constructor===AnnotationEditor&&(0,n.unreachable)("Cannot initialize AnnotationEditor.");this.parent=t.parent;this.id=t.id;this.width=this.height=null;this.pageIndex=t.parent.pageIndex;this.name=t.name;this.div=null;this._uiManager=t.uiManager;const{rotation:e,rawDims:{pageWidth:s,pageHeight:i,pageX:a,pageY:r}}=this.parent.viewport;this.rotation=e;this.pageDimensions=[s,i];this.pageTranslation=[a,r];const[o,l]=this.parentDimensions;this.x=t.x/o;this.y=t.y/l;this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,n.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#C}setParent(t){if(null!==t){this.pageIndex=t.pageIndex;this.pageDimensions=t.pageDimensions}this.parent=t}focusin(t){this.#S?this.#S=!1:this.parent.setSelected(this)}focusout(t){if(!this.isAttachedToDOM)return;const e=t.relatedTarget;if(!e?.closest(`#${this.id}`)){t.preventDefault();this.parent?.isMultipleSelection||this.commitOrRemove()}}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}dragstart(t){const e=this.parent.div.getBoundingClientRect();this.startX=t.clientX-e.x;this.startY=t.clientY-e.y;t.dataTransfer.setData("text/plain",this.id);t.dataTransfer.effectAllowed="move"}setAt(t,e,s,i){const[n,a]=this.parentDimensions;[s,i]=this.screenToPageTranslation(s,i);this.x=(t+s)/n;this.y=(e+i)/a;this.div.style.left=100*this.x+"%";this.div.style.top=100*this.y+"%"}translate(t,e){const[s,i]=this.parentDimensions;[t,e]=this.screenToPageTranslation(t,e);this.x+=t/s;this.y+=e/i;this.div.style.left=100*this.x+"%";this.div.style.top=100*this.y+"%"}screenToPageTranslation(t,e){switch(this.parentRotation){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return this._uiManager.viewParameters.rotation}get parentDimensions(){const{realScale:t}=this._uiManager.viewParameters,[e,s]=this.pageDimensions;return[e*t,s*t]}setDims(t,e){const[s,i]=this.parentDimensions;this.div.style.width=100*t/s+"%";this.div.style.height=100*e/i+"%"}fixDims(){const{style:t}=this.div,{height:e,width:s}=t,i=s.endsWith("%"),n=e.endsWith("%");if(i&&n)return;const[a,r]=this.parentDimensions;i||(t.width=100*parseFloat(s)/a+"%");n||(t.height=100*parseFloat(e)/r+"%")}getInitialTranslation(){return[0,0]}render(){this.div=document.createElement("div");this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360);this.div.className=this.name;this.div.setAttribute("id",this.id);this.div.setAttribute("tabIndex",0);this.setInForeground();this.div.addEventListener("focusin",this.#y);this.div.addEventListener("focusout",this.#v);const[t,e]=this.getInitialTranslation();this.translate(t,e);(0,i.bindEvents)(this,this.div,["dragstart","pointerdown"]);return this.div}pointerdown(t){const{isMac:e}=n.FeatureTest.platform;if(0!==t.button||t.ctrlKey&&e)t.preventDefault();else{t.ctrlKey&&!e||t.shiftKey||t.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this);this.#S=!0}}getRect(t,e){const s=this.parentScale,[i,n]=this.pageDimensions,[a,r]=this.pageTranslation,o=t/s,l=e/s,c=this.x*i,h=this.y*n,d=this.width*i,u=this.height*n;switch(this.rotation){case 0:return[c+o+a,n-h-l-u+r,c+o+d+a,n-h-l+r];case 90:return[c+l+a,n-h+o+r,c+l+u+a,n-h+o+d+r];case 180:return[c-o-d+a,n-h+l+r,c-o+a,n-h+l+u+r];case 270:return[c-l-u+a,n-h-o-d+r,c-l+a,n-h-o+r];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,e){const[s,i,n,a]=t,r=n-s,o=a-i;switch(this.rotation){case 0:return[s,e-a,r,o];case 90:return[s,e-i,o,r];case 180:return[n,e-i,r,o];case 270:return[n,e-a,o,r];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#E=!0}disableEditMode(){this.#E=!1}isInEditMode(){return this.#E}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#y)}serialize(){(0,n.unreachable)("An editor must be serializable")}static deserialize(t,e,s){const i=new this.prototype.constructor({parent:e,id:e.getNextId(),uiManager:s});i.rotation=t.rotation;const[n,a]=i.pageDimensions,[r,o,l,c]=i.getRectInCurrentCoords(t.rect,a);i.x=r/n;i.y=o/a;i.width=l/n;i.height=c/a;return i}remove(){this.div.removeEventListener("focusin",this.#y);this.div.removeEventListener("focusout",this.#v);this.isEmpty()||this.commit();this.parent.remove(this)}select(){this.div?.classList.add("selectedEditor")}unselect(){this.div?.classList.remove("selectedEditor")}updateParams(t,e){}disableEditing(){}enableEditing(){}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return this.#x}set isEditing(t){this.#x=t;if(t){this.parent.setSelected(this);this.parent.setActiveEditor(this)}else this.parent.setActiveEditor(null)}}e.AnnotationEditor=AnnotationEditor},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.KeyboardManager=e.CommandManager=e.ColorManager=e.AnnotationEditorUIManager=void 0;e.bindEvents=function bindEvents(t,e,s){for(const i of s)e.addEventListener(i,t[i].bind(t))};e.opacityToHex=function opacityToHex(t){return Math.round(Math.min(255,Math.max(1,255*t))).toString(16).padStart(2,"0")};var i=s(1),n=s(6);class IdManager{#P=0;getId(){return`${i.AnnotationEditorPrefix}${this.#P++}`}}class CommandManager{#T=[];#w=!1;#k;#F=-1;constructor(t=128){this.#k=t}add({cmd:t,undo:e,mustExec:s,type:i=NaN,overwriteIfSameType:n=!1,keepUndo:a=!1}){s&&t();if(this.#w)return;const r={cmd:t,undo:e,type:i};if(-1===this.#F){this.#T.length>0&&(this.#T.length=0);this.#F=0;this.#T.push(r);return}if(n&&this.#T[this.#F].type===i){a&&(r.undo=this.#T[this.#F].undo);this.#T[this.#F]=r;return}const o=this.#F+1;if(o===this.#k)this.#T.splice(0,1);else{this.#F=o;ot===e[s])))return ColorManager._colorsMapping.get(t);return e}getHexCode(t){const e=this._colors.get(t);return e?i.Util.makeHexColor(...e):t}}e.ColorManager=ColorManager;class AnnotationEditorUIManager{#R=null;#D=new Map;#I=new Map;#O=null;#L=new CommandManager;#N=0;#B=null;#j=new Set;#U=null;#q=new IdManager;#W=!1;#G=i.AnnotationEditorType.NONE;#H=new Set;#z=this.copy.bind(this);#V=this.cut.bind(this);#X=this.paste.bind(this);#$=this.keydown.bind(this);#K=this.onEditingAction.bind(this);#Y=this.onPageChanging.bind(this);#J=this.onScaleChanging.bind(this);#Q=this.onRotationChanging.bind(this);#Z={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#tt=null;static _keyboardManager=new KeyboardManager([[["ctrl+a","mac+meta+a"],AnnotationEditorUIManager.prototype.selectAll],[["ctrl+z","mac+meta+z"],AnnotationEditorUIManager.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],AnnotationEditorUIManager.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],AnnotationEditorUIManager.prototype.delete],[["Escape","mac+Escape"],AnnotationEditorUIManager.prototype.unselectAll]]);constructor(t,e,s){this.#tt=t;this.#U=e;this.#U._on("editingaction",this.#K);this.#U._on("pagechanging",this.#Y);this.#U._on("scalechanging",this.#J);this.#U._on("rotationchanging",this.#Q);this.#O=s;this.viewParameters={realScale:n.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#et();this.#U._off("editingaction",this.#K);this.#U._off("pagechanging",this.#Y);this.#U._off("scalechanging",this.#J);this.#U._off("rotationchanging",this.#Q);for(const t of this.#I.values())t.destroy();this.#I.clear();this.#D.clear();this.#j.clear();this.#R=null;this.#H.clear();this.#L.destroy()}onPageChanging({pageNumber:t}){this.#N=t-1}focusMainContainer(){this.#tt.focus()}addShouldRescale(t){this.#j.add(t)}removeShouldRescale(t){this.#j.delete(t)}onScaleChanging({scale:t}){this.commitOrRemove();this.viewParameters.realScale=t*n.PixelsPerInch.PDF_TO_CSS_UNITS;for(const t of this.#j)t.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove();this.viewParameters.rotation=t}addToAnnotationStorage(t){t.isEmpty()||!this.#O||this.#O.has(t.id)||this.#O.setValue(t.id,t)}#st(){this.#tt.addEventListener("keydown",this.#$)}#et(){this.#tt.removeEventListener("keydown",this.#$)}#it(){document.addEventListener("copy",this.#z);document.addEventListener("cut",this.#V);document.addEventListener("paste",this.#X)}#nt(){document.removeEventListener("copy",this.#z);document.removeEventListener("cut",this.#V);document.removeEventListener("paste",this.#X)}copy(t){t.preventDefault();this.#R&&this.#R.commitOrRemove();if(!this.hasSelection)return;const e=[];for(const t of this.#H)t.isEmpty()||e.push(t.serialize());0!==e.length&&t.clipboardData.setData("application/pdfjs",JSON.stringify(e))}cut(t){this.copy(t);this.delete()}paste(t){t.preventDefault();let e=t.clipboardData.getData("application/pdfjs");if(!e)return;try{e=JSON.parse(e)}catch(t){(0,i.warn)(`paste: "${t.message}".`);return}if(!Array.isArray(e))return;this.unselectAll();const s=this.#I.get(this.#N);try{const t=[];for(const i of e){const e=s.deserialize(i);if(!e)return;t.push(e)}const cmd=()=>{for(const e of t)this.#at(e);this.#rt(t)},undo=()=>{for(const e of t)e.remove()};this.addCommands({cmd:cmd,undo:undo,mustExec:!0})}catch(t){(0,i.warn)(`paste: "${t.message}".`)}}keydown(t){this.getActive()?.shouldGetKeyboardEvents()||AnnotationEditorUIManager._keyboardManager.exec(this,t)}onEditingAction(t){["undo","redo","delete","selectAll"].includes(t.name)&&this[t.name]()}#ot(t){Object.entries(t).some((([t,e])=>this.#Z[t]!==e))&&this.#U.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Z,t)})}#lt(t){this.#U.dispatch("annotationeditorparamschanged",{source:this,details:t})}setEditingState(t){if(t){this.#st();this.#it();this.#ot({isEditing:this.#G!==i.AnnotationEditorType.NONE,isEmpty:this.#ct(),hasSomethingToUndo:this.#L.hasSomethingToUndo(),hasSomethingToRedo:this.#L.hasSomethingToRedo(),hasSelectedEditor:!1})}else{this.#et();this.#nt();this.#ot({isEditing:!1})}}registerEditorTypes(t){if(!this.#B){this.#B=t;for(const t of this.#B)this.#lt(t.defaultPropertiesToUpdate)}}getId(){return this.#q.getId()}get currentLayer(){return this.#I.get(this.#N)}get currentPageIndex(){return this.#N}addLayer(t){this.#I.set(t.pageIndex,t);this.#W?t.enable():t.disable()}removeLayer(t){this.#I.delete(t.pageIndex)}updateMode(t){this.#G=t;if(t===i.AnnotationEditorType.NONE){this.setEditingState(!1);this.#ht()}else{this.setEditingState(!0);this.#dt();for(const e of this.#I.values())e.updateMode(t)}}updateToolbar(t){t!==this.#G&&this.#U.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,e){if(this.#B){for(const s of this.#H)s.updateParams(t,e);for(const s of this.#B)s.updateDefaultParams(t,e)}}#dt(){if(!this.#W){this.#W=!0;for(const t of this.#I.values())t.enable()}}#ht(){this.unselectAll();if(this.#W){this.#W=!1;for(const t of this.#I.values())t.disable()}}getEditors(t){const e=[];for(const s of this.#D.values())s.pageIndex===t&&e.push(s);return e}getEditor(t){return this.#D.get(t)}addEditor(t){this.#D.set(t.id,t)}removeEditor(t){this.#D.delete(t.id);this.unselect(t);this.#O?.remove(t.id)}#at(t){const e=this.#I.get(t.pageIndex);e?e.addOrRebuild(t):this.addEditor(t)}setActiveEditor(t){if(this.#R!==t){this.#R=t;t&&this.#lt(t.propertiesToUpdate)}}toggleSelected(t){if(this.#H.has(t)){this.#H.delete(t);t.unselect();this.#ot({hasSelectedEditor:this.hasSelection})}else{this.#H.add(t);t.select();this.#lt(t.propertiesToUpdate);this.#ot({hasSelectedEditor:!0})}}setSelected(t){for(const e of this.#H)e!==t&&e.unselect();this.#H.clear();this.#H.add(t);t.select();this.#lt(t.propertiesToUpdate);this.#ot({hasSelectedEditor:!0})}isSelected(t){return this.#H.has(t)}unselect(t){t.unselect();this.#H.delete(t);this.#ot({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#H.size}undo(){this.#L.undo();this.#ot({hasSomethingToUndo:this.#L.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#ct()})}redo(){this.#L.redo();this.#ot({hasSomethingToUndo:!0,hasSomethingToRedo:this.#L.hasSomethingToRedo(),isEmpty:this.#ct()})}addCommands(t){this.#L.add(t);this.#ot({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#ct()})}#ct(){if(0===this.#D.size)return!0;if(1===this.#D.size)for(const t of this.#D.values())return t.isEmpty();return!1}delete(){this.commitOrRemove();if(!this.hasSelection)return;const t=[...this.#H];this.addCommands({cmd:()=>{for(const e of t)e.remove()},undo:()=>{for(const e of t)this.#at(e)},mustExec:!0})}commitOrRemove(){this.#R?.commitOrRemove()}#rt(t){this.#H.clear();for(const e of t)if(!e.isEmpty()){this.#H.add(e);e.select()}this.#ot({hasSelectedEditor:!0})}selectAll(){for(const t of this.#H)t.commit();this.#rt(this.#D.values())}unselectAll(){if(this.#R)this.#R.commitOrRemove();else if(0!==this.#H.size){for(const t of this.#H)t.unselect();this.#H.clear();this.#ot({hasSelectedEditor:!1})}}isActive(t){return this.#R===t}getActive(){return this.#R}getMode(){return this.#G}}e.AnnotationEditorUIManager=AnnotationEditorUIManager},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.StatTimer=e.RenderingCancelledException=e.PixelsPerInch=e.PageViewport=e.PDFDateString=e.DOMStandardFontDataFactory=e.DOMSVGFactory=e.DOMFilterFactory=e.DOMCanvasFactory=e.DOMCMapReaderFactory=e.AnnotationPrefix=void 0;e.deprecated=function deprecated(t){console.log("Deprecated API usage: "+t)};e.getColorValues=function getColorValues(t){const e=document.createElement("span");e.style.visibility="hidden";document.body.append(e);for(const s of t.keys()){e.style.color=s;const i=window.getComputedStyle(e).color;t.set(s,getRGB(i))}e.remove()};e.getCurrentTransform=function getCurrentTransform(t){const{a:e,b:s,c:i,d:n,e:a,f:r}=t.getTransform();return[e,s,i,n,a,r]};e.getCurrentTransformInverse=function getCurrentTransformInverse(t){const{a:e,b:s,c:i,d:n,e:a,f:r}=t.getTransform().invertSelf();return[e,s,i,n,a,r]};e.getFilenameFromUrl=function getFilenameFromUrl(t,e=!1){e||([t]=t.split(/[#?]/,1));return t.substring(t.lastIndexOf("/")+1)};e.getPdfFilenameFromUrl=function getPdfFilenameFromUrl(t,e="document.pdf"){if("string"!=typeof t)return e;if(isDataScheme(t)){(0,n.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.');return e}const s=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(t);let a=s.exec(i[1])||s.exec(i[2])||s.exec(i[3]);if(a){a=a[0];if(a.includes("%"))try{a=s.exec(decodeURIComponent(a))[0]}catch(t){}}return a||e};e.getRGB=getRGB;e.getXfaPageViewport=function getXfaPageViewport(t,{scale:e=1,rotation:s=0}){const{width:i,height:n}=t.attributes.style,a=[0,0,parseInt(i),parseInt(n)];return new PageViewport({viewBox:a,scale:e,rotation:s})};e.isDataScheme=isDataScheme;e.isPdfFile=function isPdfFile(t){return"string"==typeof t&&/\.pdf$/i.test(t)};e.isValidFetchUrl=isValidFetchUrl;e.loadScript=function loadScript(t,e=!1){return new Promise(((s,i)=>{const n=document.createElement("script");n.src=t;n.onload=function(t){e&&n.remove();s(t)};n.onerror=function(){i(new Error(`Cannot load script at: ${n.src}`))};(document.head||document.documentElement).append(n)}))};e.setLayerDimensions=function setLayerDimensions(t,e,s=!1,i=!0){if(e instanceof PageViewport){const{pageWidth:i,pageHeight:n}=e.rawDims,{style:a}=t,r=`calc(var(--scale-factor) * ${i}px)`,o=`calc(var(--scale-factor) * ${n}px)`;if(s&&e.rotation%180!=0){a.width=o;a.height=r}else{a.width=r;a.height=o}}i&&t.setAttribute("data-main-rotation",e.rotation)};var i=s(7),n=s(1);const a="http://www.w3.org/2000/svg";e.AnnotationPrefix="pdfjs_internal_id_";class PixelsPerInch{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}e.PixelsPerInch=PixelsPerInch;class DOMFilterFactory extends i.BaseFilterFactory{#ut;#pt;#t;#ft;#gt;#mt;#bt;#P=0;constructor({docId:t,ownerDocument:e=globalThis.document}={}){super();this.#t=t;this.#ft=e}get#At(){return this.#ut||=new Map}get#_t(){if(!this.#pt){const t=this.#ft.createElement("div"),{style:e}=t;e.visibility="hidden";e.contain="strict";e.width=e.height=0;e.position="absolute";e.top=e.left=0;e.zIndex=-1;const s=this.#ft.createElementNS(a,"svg");s.setAttribute("width",0);s.setAttribute("height",0);this.#pt=this.#ft.createElementNS(a,"defs");t.append(s);s.append(this.#pt);this.#ft.body.append(t)}return this.#pt}#yt(t,e,s){const i=this.#ft.createElementNS(a,e);i.setAttribute("type","discrete");i.setAttribute("tableValues",s);t.append(i)}addFilter(t){if(!t)return"none";let e,s,i,n,r=this.#At.get(t);if(r)return r;if(1===t.length){const a=t[0],r=new Array(256);for(let t=0;t<256;t++)r[t]=a[t]/255;n=e=s=i=r.join(",")}else{const[a,r,o]=t,l=new Array(256),c=new Array(256),h=new Array(256);for(let t=0;t<256;t++){l[t]=a[t]/255;c[t]=r[t]/255;h[t]=o[t]/255}e=l.join(",");s=c.join(",");i=h.join(",");n=`${e}${s}${i}`}r=this.#At.get(n);if(r){this.#At.set(t,r);return r}const o=`g_${this.#t}_transfer_map_${this.#P++}`,l=`url(#${o})`;this.#At.set(t,l);this.#At.set(n,l);const c=this.#ft.createElementNS(a,"filter",a);c.setAttribute("id",o);c.setAttribute("color-interpolation-filters","sRGB");const h=this.#ft.createElementNS(a,"feComponentTransfer");c.append(h);this.#yt(h,"feFuncR",e);this.#yt(h,"feFuncG",s);this.#yt(h,"feFuncB",i);this.#_t.append(c);return l}addHCMFilter(t,e){const s=`${t}-${e}`;if(this.#mt===s)return this.#bt;this.#mt=s;this.#bt="none";this.#gt?.remove();if(!t||!e)return this.#bt;this.#_t.style.color=t;const i=getRGB(t=getComputedStyle(this.#_t).getPropertyValue("color"));t=n.Util.makeHexColor(...i);this.#_t.style.color=e;const r=getRGB(e=getComputedStyle(this.#_t).getPropertyValue("color"));e=n.Util.makeHexColor(...r);this.#_t.style.color="";if("#000000"===t&&"#ffffff"===e||t===e)return this.#bt;const o=new Array(256);for(let t=0;t<=255;t++){const e=t/255;o[t]=e<=.03928?e/12.92:((e+.055)/1.055)**2.4}const l=o.join(","),c=`g_${this.#t}_hcm_filter`,h=this.#gt=this.#ft.createElementNS(a,"filter",a);h.setAttribute("id",c);h.setAttribute("color-interpolation-filters","sRGB");let d=this.#ft.createElementNS(a,"feComponentTransfer");h.append(d);this.#yt(d,"feFuncR",l);this.#yt(d,"feFuncG",l);this.#yt(d,"feFuncB",l);const u=this.#ft.createElementNS(a,"feColorMatrix");u.setAttribute("type","matrix");u.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0");h.append(u);d=this.#ft.createElementNS(a,"feComponentTransfer");h.append(d);const getSteps=(t,e)=>{const s=i[t]/255,n=r[t]/255,a=new Array(e+1);for(let t=0;t<=e;t++)a[t]=s+t/e*(n-s);return a.join(",")};this.#yt(d,"feFuncR",getSteps(0,5));this.#yt(d,"feFuncG",getSteps(1,5));this.#yt(d,"feFuncB",getSteps(2,5));this.#_t.append(h);this.#bt=`url(#${c})`;return this.#bt}destroy(t=!1){if(!t||!this.#bt){if(this.#pt){this.#pt.parentNode.parentNode.remove();this.#pt=null}if(this.#ut){this.#ut.clear();this.#ut=null}this.#P=0}}}e.DOMFilterFactory=DOMFilterFactory;class DOMCanvasFactory extends i.BaseCanvasFactory{constructor({ownerDocument:t=globalThis.document}={}){super();this._document=t}_createCanvas(t,e){const s=this._document.createElement("canvas");s.width=t;s.height=e;return s}}e.DOMCanvasFactory=DOMCanvasFactory;async function fetchData(t,e=!1){if(isValidFetchUrl(t,document.baseURI)){const s=await fetch(t);if(!s.ok)throw new Error(s.statusText);return e?new Uint8Array(await s.arrayBuffer()):(0,n.stringToBytes)(await s.text())}return new Promise(((s,i)=>{const a=new XMLHttpRequest;a.open("GET",t,!0);e&&(a.responseType="arraybuffer");a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(200===a.status||0===a.status){let t;e&&a.response?t=new Uint8Array(a.response):!e&&a.responseText&&(t=(0,n.stringToBytes)(a.responseText));if(t){s(t);return}}i(new Error(a.statusText))}};a.send(null)}))}class DOMCMapReaderFactory extends i.BaseCMapReaderFactory{_fetchData(t,e){return fetchData(t,this.isCompressed).then((t=>({cMapData:t,compressionType:e})))}}e.DOMCMapReaderFactory=DOMCMapReaderFactory;class DOMStandardFontDataFactory extends i.BaseStandardFontDataFactory{_fetchData(t){return fetchData(t,!0)}}e.DOMStandardFontDataFactory=DOMStandardFontDataFactory;class DOMSVGFactory extends i.BaseSVGFactory{_createSVG(t){return document.createElementNS(a,t)}}e.DOMSVGFactory=DOMSVGFactory;class PageViewport{constructor({viewBox:t,scale:e,rotation:s,offsetX:i=0,offsetY:n=0,dontFlip:a=!1}){this.viewBox=t;this.scale=e;this.rotation=s;this.offsetX=i;this.offsetY=n;const r=(t[2]+t[0])/2,o=(t[3]+t[1])/2;let l,c,h,d,u,p,f,g;(s%=360)<0&&(s+=360);switch(s){case 180:l=-1;c=0;h=0;d=1;break;case 90:l=0;c=1;h=1;d=0;break;case 270:l=0;c=-1;h=-1;d=0;break;case 0:l=1;c=0;h=0;d=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}if(a){h=-h;d=-d}if(0===l){u=Math.abs(o-t[1])*e+i;p=Math.abs(r-t[0])*e+n;f=(t[3]-t[1])*e;g=(t[2]-t[0])*e}else{u=Math.abs(r-t[0])*e+i;p=Math.abs(o-t[1])*e+n;f=(t[2]-t[0])*e;g=(t[3]-t[1])*e}this.transform=[l*e,c*e,h*e,d*e,u-l*e*r-h*e*o,p-c*e*r-d*e*o];this.width=f;this.height=g}get rawDims(){const{viewBox:t}=this;return(0,n.shadow)(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone({scale:t=this.scale,rotation:e=this.rotation,offsetX:s=this.offsetX,offsetY:i=this.offsetY,dontFlip:n=!1}={}){return new PageViewport({viewBox:this.viewBox.slice(),scale:t,rotation:e,offsetX:s,offsetY:i,dontFlip:n})}convertToViewportPoint(t,e){return n.Util.applyTransform([t,e],this.transform)}convertToViewportRectangle(t){const e=n.Util.applyTransform([t[0],t[1]],this.transform),s=n.Util.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],s[0],s[1]]}convertToPdfPoint(t,e){return n.Util.applyInverseTransform([t,e],this.transform)}}e.PageViewport=PageViewport;class RenderingCancelledException extends n.BaseException{constructor(t,e,s=0){super(t,"RenderingCancelledException");this.type=e;this.extraDelay=s}}e.RenderingCancelledException=RenderingCancelledException;function isDataScheme(t){const e=t.length;let s=0;for(;s=1&&i<=12?i-1:0;let n=parseInt(e[3],10);n=n>=1&&n<=31?n:1;let a=parseInt(e[4],10);a=a>=0&&a<=23?a:0;let o=parseInt(e[5],10);o=o>=0&&o<=59?o:0;let l=parseInt(e[6],10);l=l>=0&&l<=59?l:0;const c=e[7]||"Z";let h=parseInt(e[8],10);h=h>=0&&h<=23?h:0;let d=parseInt(e[9],10)||0;d=d>=0&&d<=59?d:0;if("-"===c){a+=h;o+=d}else if("+"===c){a-=h;o-=d}return new Date(Date.UTC(s,i,n,a,o,l))}};function getRGB(t){if(t.startsWith("#")){const e=parseInt(t.slice(1),16);return[(16711680&e)>>16,(65280&e)>>8,255&e]}if(t.startsWith("rgb("))return t.slice(4,-1).split(",").map((t=>parseInt(t)));if(t.startsWith("rgba("))return t.slice(5,-1).split(",").map((t=>parseInt(t))).slice(0,3);(0,n.warn)(`Not a valid color format: "${t}"`);return[0,0,0]}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.BaseStandardFontDataFactory=e.BaseSVGFactory=e.BaseFilterFactory=e.BaseCanvasFactory=e.BaseCMapReaderFactory=void 0;var i=s(1);class BaseFilterFactory{constructor(){this.constructor===BaseFilterFactory&&(0,i.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(t){return"none"}addHCMFilter(t,e){return"none"}destroy(t=!1){}}e.BaseFilterFactory=BaseFilterFactory;class BaseCanvasFactory{constructor(){this.constructor===BaseCanvasFactory&&(0,i.unreachable)("Cannot initialize BaseCanvasFactory.")}create(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");const s=this._createCanvas(t,e);return{canvas:s,context:s.getContext("2d")}}reset(t,e,s){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||s<=0)throw new Error("Invalid canvas size");t.canvas.width=e;t.canvas.height=s}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0;t.canvas.height=0;t.canvas=null;t.context=null}_createCanvas(t,e){(0,i.unreachable)("Abstract method `_createCanvas` called.")}}e.BaseCanvasFactory=BaseCanvasFactory;class BaseCMapReaderFactory{constructor({baseUrl:t=null,isCompressed:e=!0}){this.constructor===BaseCMapReaderFactory&&(0,i.unreachable)("Cannot initialize BaseCMapReaderFactory.");this.baseUrl=t;this.isCompressed=e}async fetch({name:t}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const e=this.baseUrl+t+(this.isCompressed?".bcmap":""),s=this.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE;return this._fetchData(e,s).catch((t=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${e}`)}))}_fetchData(t,e){(0,i.unreachable)("Abstract method `_fetchData` called.")}}e.BaseCMapReaderFactory=BaseCMapReaderFactory;class BaseStandardFontDataFactory{constructor({baseUrl:t=null}){this.constructor===BaseStandardFontDataFactory&&(0,i.unreachable)("Cannot initialize BaseStandardFontDataFactory.");this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const e=`${this.baseUrl}${t}`;return this._fetchData(e).catch((t=>{throw new Error(`Unable to load font data at: ${e}`)}))}_fetchData(t){(0,i.unreachable)("Abstract method `_fetchData` called.")}}e.BaseStandardFontDataFactory=BaseStandardFontDataFactory;class BaseSVGFactory{constructor(){this.constructor===BaseSVGFactory&&(0,i.unreachable)("Cannot initialize BaseSVGFactory.")}create(t,e,s=!1){if(t<=0||e<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");i.setAttribute("version","1.1");if(!s){i.setAttribute("width",`${t}px`);i.setAttribute("height",`${e}px`)}i.setAttribute("preserveAspectRatio","none");i.setAttribute("viewBox",`0 0 ${t} ${e}`);return i}createElement(t){if("string"!=typeof t)throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){(0,i.unreachable)("Abstract method `_createSVG` called.")}}e.BaseSVGFactory=BaseSVGFactory},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.MurmurHash3_64=void 0;var i=s(1);const n=3285377520,a=4294901760,r=65535;e.MurmurHash3_64=class MurmurHash3_64{constructor(t){this.h1=t?4294967295&t:n;this.h2=t?4294967295&t:n}update(t){let e,s;if("string"==typeof t){e=new Uint8Array(2*t.length);s=0;for(let i=0,n=t.length;i>>8;e[s++]=255&n}}}else{if(!(0,i.isArrayBuffer)(t))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");e=t.slice();s=e.byteLength}const n=s>>2,o=s-4*n,l=new Uint32Array(e.buffer,0,n);let c=0,h=0,d=this.h1,u=this.h2;const p=3432918353,f=461845907,g=11601,m=13715;for(let t=0;t>>17;c=c*f&a|c*m&r;d^=c;d=d<<13|d>>>19;d=5*d+3864292196}else{h=l[t];h=h*p&a|h*g&r;h=h<<15|h>>>17;h=h*f&a|h*m&r;u^=h;u=u<<13|u>>>19;u=5*u+3864292196}c=0;switch(o){case 3:c^=e[4*n+2]<<16;case 2:c^=e[4*n+1]<<8;case 1:c^=e[4*n];c=c*p&a|c*g&r;c=c<<15|c>>>17;c=c*f&a|c*m&r;1&n?d^=c:u^=c}this.h1=d;this.h2=u}hexdigest(){let t=this.h1,e=this.h2;t^=e>>>1;t=3981806797*t&a|36045*t&r;e=4283543511*e&a|(2950163797*(e<<16|t>>>16)&a)>>>16;t^=e>>>1;t=444984403*t&a|60499*t&r;e=3301882366*e&a|(3120437893*(e<<16|t>>>16)&a)>>>16;t^=e>>>1;return(t>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.FontLoader=e.FontFaceObject=void 0;var i=s(1),n=s(10);e.FontLoader=class FontLoader{constructor({ownerDocument:t=globalThis.document,styleElement:e=null}){this._document=t;this.nativeFontFaces=[];this.styleElement=null;this.loadingRequests=[];this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.push(t);this._document.fonts.add(t)}insertRule(t){if(!this.styleElement){this.styleElement=this._document.createElement("style");this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement)}const e=this.styleElement.sheet;e.insertRule(t,e.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.length=0;if(this.styleElement){this.styleElement.remove();this.styleElement=null}}async bind(t){if(t.attached||t.missingFile)return;t.attached=!0;if(this.isFontLoadingAPISupported){const e=t.createNativeFontFace();if(e){this.addNativeFontFace(e);try{await e.loaded}catch(s){(0,i.warn)(`Failed to load font '${e.family}': '${s}'.`);t.disableFontFace=!0;throw s}}return}const e=t.createFontFaceRule();if(e){this.insertRule(e);if(this.isSyncFontLoadingSupported)return;await new Promise((e=>{const s=this._queueLoadingCallback(e);this._prepareFontLoadEvent(t,s)}))}}get isFontLoadingAPISupported(){const t=!!this._document?.fonts;return(0,i.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;(n.isNodeJS||"undefined"!=typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0);return(0,i.shadow)(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){const{loadingRequests:e}=this,s={done:!1,complete:function completeRequest(){(0,i.assert)(!s.done,"completeRequest() cannot be called twice.");s.done=!0;for(;e.length>0&&e[0].done;){const t=e.shift();setTimeout(t.callback,0)}},callback:t};e.push(s);return s}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,i.shadow)(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,e){function int32(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function spliceString(t,e,s,i){return t.substring(0,e)+i+t.substring(e+s)}let s,n;const a=this._document.createElement("canvas");a.width=1;a.height=1;const r=a.getContext("2d");let o=0;const l=`lt${Date.now()}${this.loadTestFontId++}`;let c=this._loadTestFont;c=spliceString(c,976,l.length,l);const h=1482184792;let d=int32(c,16);for(s=0,n=l.length-3;s30){(0,i.warn)("Load test font never loaded.");e();return}r.font="30px "+t;r.fillText(".",0,20);r.getImageData(0,0,1,1).data[3]>0?e():setTimeout(isFontReady.bind(null,t,e))}(l,(()=>{p.remove();e.complete()}))}};e.FontFaceObject=class FontFaceObject{constructor(t,{isEvalSupported:e=!0,disableFontFace:s=!1,ignoreErrors:i=!1,inspectFont:n=null}){this.compiledGlyphs=Object.create(null);for(const e in t)this[e]=t[e];this.isEvalSupported=!1!==e;this.disableFontFace=!0===s;this.ignoreErrors=!0===i;this._inspectFont=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let t;if(this.cssFontInfo){const e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style=`oblique ${this.cssFontInfo.italicAngle}deg`);t=new FontFace(this.cssFontInfo.fontFamily,this.data,e)}else t=new FontFace(this.loadedName,this.data,{});this._inspectFont?.(this);return t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const t=(0,i.bytesToString)(this.data),e=`url(data:${this.mimetype};base64,${btoa(t)});`;let s;if(this.cssFontInfo){let t=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(t+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`);s=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${t}src:${e}}`}else s=`@font-face {font-family:"${this.loadedName}";src:${e}}`;this._inspectFont?.(this,e);return s}getPathGenerator(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];let s;try{s=t.get(this.loadedName+"_path_"+e)}catch(t){if(!this.ignoreErrors)throw t;(0,i.warn)(`getPathGenerator - ignoring character: "${t}".`);return this.compiledGlyphs[e]=function(t,e){}}if(this.isEvalSupported&&i.FeatureTest.isEvalSupported){const t=[];for(const e of s){const s=void 0!==e.args?e.args.join(","):"";t.push("c.",e.cmd,"(",s,");\n")}return this.compiledGlyphs[e]=new Function("c","size",t.join(""))}return this.compiledGlyphs[e]=function(t,e){for(const i of s){"scale"===i.cmd&&(i.args=[e,-e]);t[i.cmd].apply(t,i.args)}}}}},(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.isNodeJS=void 0;const s=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);e.isNodeJS=s},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.CanvasGraphics=void 0;var i=s(1),n=s(6),a=s(12),r=s(13),o=s(10);const l=4096,c=16;class CachedCanvases{constructor(t){this.canvasFactory=t;this.cache=Object.create(null)}getCanvas(t,e,s){let i;if(void 0!==this.cache[t]){i=this.cache[t];this.canvasFactory.reset(i,e,s)}else{i=this.canvasFactory.create(e,s);this.cache[t]=i}return i}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const e=this.cache[t];this.canvasFactory.destroy(e);delete this.cache[t]}}}function drawImageAtIntegerCoords(t,e,s,i,a,r,o,l,c,h){const[d,u,p,f,g,m]=(0,n.getCurrentTransform)(t);if(0===u&&0===p){const n=o*d+g,b=Math.round(n),A=l*f+m,_=Math.round(A),y=(o+c)*d+g,v=Math.abs(Math.round(y)-b)||1,S=(l+h)*f+m,x=Math.abs(Math.round(S)-_)||1;t.setTransform(Math.sign(d),0,0,Math.sign(f),b,_);t.drawImage(e,s,i,a,r,0,0,v,x);t.setTransform(d,u,p,f,g,m);return[v,x]}if(0===d&&0===f){const n=l*p+g,b=Math.round(n),A=o*u+m,_=Math.round(A),y=(l+h)*p+g,v=Math.abs(Math.round(y)-b)||1,S=(o+c)*u+m,x=Math.abs(Math.round(S)-_)||1;t.setTransform(0,Math.sign(u),Math.sign(p),0,b,_);t.drawImage(e,s,i,a,r,0,0,x,v);t.setTransform(d,u,p,f,g,m);return[x,v]}t.drawImage(e,s,i,a,r,o,l,c,h);return[Math.hypot(d,u)*c,Math.hypot(p,f)*h]}class CanvasExtraState{constructor(t,e){this.alphaIsShape=!1;this.fontSize=0;this.fontSizeScale=1;this.textMatrix=i.IDENTITY_MATRIX;this.textMatrixScale=1;this.fontMatrix=i.FONT_IDENTITY_MATRIX;this.leading=0;this.x=0;this.y=0;this.lineX=0;this.lineY=0;this.charSpacing=0;this.wordSpacing=0;this.textHScale=1;this.textRenderingMode=i.TextRenderingMode.FILL;this.textRise=0;this.fillColor="#000000";this.strokeColor="#000000";this.patternFill=!1;this.fillAlpha=1;this.strokeAlpha=1;this.lineWidth=1;this.activeSMask=null;this.transferMaps="none";this.startNewPathAndClipBox([0,0,t,e])}clone(){const t=Object.create(this);t.clipBox=this.clipBox.slice();return t}setCurrentPoint(t,e){this.x=t;this.y=e}updatePathMinMax(t,e,s){[e,s]=i.Util.applyTransform([e,s],t);this.minX=Math.min(this.minX,e);this.minY=Math.min(this.minY,s);this.maxX=Math.max(this.maxX,e);this.maxY=Math.max(this.maxY,s)}updateRectMinMax(t,e){const s=i.Util.applyTransform(e,t),n=i.Util.applyTransform(e.slice(2),t);this.minX=Math.min(this.minX,s[0],n[0]);this.minY=Math.min(this.minY,s[1],n[1]);this.maxX=Math.max(this.maxX,s[0],n[0]);this.maxY=Math.max(this.maxY,s[1],n[1])}updateScalingPathMinMax(t,e){i.Util.scaleMinMax(t,e);this.minX=Math.min(this.minX,e[0]);this.maxX=Math.max(this.maxX,e[1]);this.minY=Math.min(this.minY,e[2]);this.maxY=Math.max(this.maxY,e[3])}updateCurvePathMinMax(t,e,s,n,a,r,o,l,c,h){const d=i.Util.bezierBoundingBox(e,s,n,a,r,o,l,c);if(h){h[0]=Math.min(h[0],d[0],d[2]);h[1]=Math.max(h[1],d[0],d[2]);h[2]=Math.min(h[2],d[1],d[3]);h[3]=Math.max(h[3],d[1],d[3])}else this.updateRectMinMax(t,d)}getPathBoundingBox(t=a.PathType.FILL,e=null){const s=[this.minX,this.minY,this.maxX,this.maxY];if(t===a.PathType.STROKE){e||(0,i.unreachable)("Stroke bounding box must include transform.");const t=i.Util.singularValueDecompose2dScale(e),n=t[0]*this.lineWidth/2,a=t[1]*this.lineWidth/2;s[0]-=n;s[1]-=a;s[2]+=n;s[3]+=a}return s}updateClipFromPath(){const t=i.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t;this.minX=1/0;this.minY=1/0;this.maxX=0;this.maxY=0}getClippedPathBoundingBox(t=a.PathType.FILL,e=null){return i.Util.intersect(this.clipBox,this.getPathBoundingBox(t,e))}}function putBinaryImageData(t,e){if("undefined"!=typeof ImageData&&e instanceof ImageData){t.putImageData(e,0,0);return}const s=e.height,n=e.width,a=s%c,r=(s-a)/c,o=0===a?r:r+1,l=t.createImageData(n,c);let h,d=0;const u=e.data,p=l.data;let f,g,m,b;if(e.kind===i.ImageKind.GRAYSCALE_1BPP){const e=u.byteLength,s=new Uint32Array(p.buffer,0,p.byteLength>>2),b=s.length,A=n+7>>3,_=4294967295,y=i.FeatureTest.isLittleEndian?4278190080:255;for(f=0;fA?n:8*t-7,r=-8&a;let o=0,l=0;for(;i>=1}}for(;h=r){m=a;b=n*m}h=0;for(g=b;g--;){p[h++]=u[d++];p[h++]=u[d++];p[h++]=u[d++];p[h++]=255}t.putImageData(l,0,f*c)}}}function putBinaryImageMask(t,e){if(e.bitmap){t.drawImage(e.bitmap,0,0);return}const s=e.height,i=e.width,n=s%c,a=(s-n)/c,o=0===n?a:a+1,l=t.createImageData(i,c);let h=0;const d=e.data,u=l.data;for(let e=0;e>8;t[a-2]=t[a-2]*n+s*r>>8;t[a-1]=t[a-1]*n+i*r>>8}}}function composeSMaskAlpha(t,e,s){const i=t.length;for(let n=3;n>8]>>8:e[n]*i>>16}}function composeSMask(t,e,s,i){const n=i[0],a=i[1],r=i[2]-n,o=i[3]-a;if(0!==r&&0!==o){!function genericComposeSMask(t,e,s,i,n,a,r,o,l,c,h){const d=!!a,u=d?a[0]:0,p=d?a[1]:0,f=d?a[2]:0;let g;g="Luminosity"===n?composeSMaskLuminosity:composeSMaskAlpha;const m=Math.min(i,Math.ceil(1048576/s));for(let n=0;n10&&"function"==typeof s,h=c?Date.now()+15:0;let d=0;const u=this.commonObjs,p=this.objs;let f;for(;;){if(void 0!==n&&o===n.nextBreakPoint){n.breakIt(o,s);return o}f=r[o];if(f!==i.OPS.dependency)this[f].apply(this,a[o]);else for(const t of a[o]){const e=t.startsWith("g_")?u:p;if(!e.has(t)){e.get(t,s);return o}}o++;if(o===l)return o;if(c&&++d>10){if(Date.now()>h){s();return o}d=0}}}#vt(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore();if(this.transparentCanvas){this.ctx=this.compositeCtx;this.ctx.save();this.ctx.setTransform(1,0,0,1,0,0);this.ctx.drawImage(this.transparentCanvas,0,0);this.ctx.restore();this.transparentCanvas=null}}endDrawing(t=null){this.#vt();this.cachedCanvases.clear();this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const e of t.values())"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement&&(e.width=e.height=0);t.clear()}this._cachedBitmapsMap.clear();if(t){const e=this.filterFactory.addHCMFilter(t.foreground,t.background);if("none"!==e){const t=this.ctx.filter;this.ctx.filter=e;this.ctx.drawImage(this.ctx.canvas,0,0);this.ctx.filter=t}}}_scaleImage(t,e){const s=t.width,i=t.height;let n,a,r=Math.max(Math.hypot(e[0],e[1]),1),o=Math.max(Math.hypot(e[2],e[3]),1),l=s,c=i,h="prescale1";for(;r>2&&l>1||o>2&&c>1;){let e=l,s=c;if(r>2&&l>1){e=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2);r/=l/e}if(o>2&&c>1){s=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2;o/=c/s}n=this.cachedCanvases.getCanvas(h,e,s);a=n.context;a.clearRect(0,0,e,s);a.drawImage(t,0,0,l,c,0,0,e,s);t=n.canvas;l=e;c=s;h="prescale1"===h?"prescale2":"prescale1"}return{img:t,paintWidth:l,paintHeight:c}}_createMaskCanvas(t){const e=this.ctx,{width:s,height:r}=t,o=this.current.fillColor,l=this.current.patternFill,c=(0,n.getCurrentTransform)(e);let h,d,u,p;if((t.bitmap||t.data)&&t.count>1){const e=t.bitmap||t.data.buffer;d=JSON.stringify(l?c:[c.slice(0,4),o]);h=this._cachedBitmapsMap.get(e);if(!h){h=new Map;this._cachedBitmapsMap.set(e,h)}const s=h.get(d);if(s&&!l){return{canvas:s,offsetX:Math.round(Math.min(c[0],c[2])+c[4]),offsetY:Math.round(Math.min(c[1],c[3])+c[5])}}u=s}if(!u){p=this.cachedCanvases.getCanvas("maskCanvas",s,r);putBinaryImageMask(p.context,t)}let f=i.Util.transform(c,[1/s,0,0,-1/r,0,0]);f=i.Util.transform(f,[1,0,0,1,0,-r]);const g=i.Util.applyTransform([0,0],f),m=i.Util.applyTransform([s,r],f),b=i.Util.normalizeRect([g[0],g[1],m[0],m[1]]),A=Math.round(b[2]-b[0])||1,_=Math.round(b[3]-b[1])||1,y=this.cachedCanvases.getCanvas("fillCanvas",A,_),v=y.context,S=Math.min(g[0],m[0]),x=Math.min(g[1],m[1]);v.translate(-S,-x);v.transform(...f);if(!u){u=this._scaleImage(p.canvas,(0,n.getCurrentTransformInverse)(v));u=u.img;h&&l&&h.set(d,u)}v.imageSmoothingEnabled=getImageSmoothingEnabled((0,n.getCurrentTransform)(v),t.interpolate);drawImageAtIntegerCoords(v,u,0,0,u.width,u.height,0,0,s,r);v.globalCompositeOperation="source-in";const E=i.Util.transform((0,n.getCurrentTransformInverse)(v),[1,0,0,1,-S,-x]);v.fillStyle=l?o.getPattern(e,this,E,a.PathType.FILL):o;v.fillRect(0,0,s,r);if(h&&!l){this.cachedCanvases.delete("fillCanvas");h.set(d,y.canvas)}return{canvas:y.canvas,offsetX:Math.round(S),offsetY:Math.round(x)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking=null);this.current.lineWidth=t;this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=h[t]}setLineJoin(t){this.ctx.lineJoin=d[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,e){const s=this.ctx;if(void 0!==s.setLineDash){s.setLineDash(t);s.lineDashOffset=e}}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[e,s]of t)switch(e){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s[0],s[1]);break;case"CA":this.current.strokeAlpha=s;break;case"ca":this.current.fillAlpha=s;this.ctx.globalAlpha=s;break;case"BM":this.ctx.globalCompositeOperation=s;break;case"SMask":this.current.activeSMask=s?this.tempSMask:null;this.tempSMask=null;this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(s)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,e=this.ctx.canvas.height,s="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(s,t,e);this.suspendedCtx=this.ctx;this.ctx=i.context;const a=this.ctx;a.setTransform(...(0,n.getCurrentTransform)(this.suspendedCtx));copyCtxState(this.suspendedCtx,a);!function mirrorContextOperations(t,e){if(t._removeMirroring)throw new Error("Context is already forwarding operations.");t.__originalSave=t.save;t.__originalRestore=t.restore;t.__originalRotate=t.rotate;t.__originalScale=t.scale;t.__originalTranslate=t.translate;t.__originalTransform=t.transform;t.__originalSetTransform=t.setTransform;t.__originalResetTransform=t.resetTransform;t.__originalClip=t.clip;t.__originalMoveTo=t.moveTo;t.__originalLineTo=t.lineTo;t.__originalBezierCurveTo=t.bezierCurveTo;t.__originalRect=t.rect;t.__originalClosePath=t.closePath;t.__originalBeginPath=t.beginPath;t._removeMirroring=()=>{t.save=t.__originalSave;t.restore=t.__originalRestore;t.rotate=t.__originalRotate;t.scale=t.__originalScale;t.translate=t.__originalTranslate;t.transform=t.__originalTransform;t.setTransform=t.__originalSetTransform;t.resetTransform=t.__originalResetTransform;t.clip=t.__originalClip;t.moveTo=t.__originalMoveTo;t.lineTo=t.__originalLineTo;t.bezierCurveTo=t.__originalBezierCurveTo;t.rect=t.__originalRect;t.closePath=t.__originalClosePath;t.beginPath=t.__originalBeginPath;delete t._removeMirroring};t.save=function ctxSave(){e.save();this.__originalSave()};t.restore=function ctxRestore(){e.restore();this.__originalRestore()};t.translate=function ctxTranslate(t,s){e.translate(t,s);this.__originalTranslate(t,s)};t.scale=function ctxScale(t,s){e.scale(t,s);this.__originalScale(t,s)};t.transform=function ctxTransform(t,s,i,n,a,r){e.transform(t,s,i,n,a,r);this.__originalTransform(t,s,i,n,a,r)};t.setTransform=function ctxSetTransform(t,s,i,n,a,r){e.setTransform(t,s,i,n,a,r);this.__originalSetTransform(t,s,i,n,a,r)};t.resetTransform=function ctxResetTransform(){e.resetTransform();this.__originalResetTransform()};t.rotate=function ctxRotate(t){e.rotate(t);this.__originalRotate(t)};t.clip=function ctxRotate(t){e.clip(t);this.__originalClip(t)};t.moveTo=function(t,s){e.moveTo(t,s);this.__originalMoveTo(t,s)};t.lineTo=function(t,s){e.lineTo(t,s);this.__originalLineTo(t,s)};t.bezierCurveTo=function(t,s,i,n,a,r){e.bezierCurveTo(t,s,i,n,a,r);this.__originalBezierCurveTo(t,s,i,n,a,r)};t.rect=function(t,s,i,n){e.rect(t,s,i,n);this.__originalRect(t,s,i,n)};t.closePath=function(){e.closePath();this.__originalClosePath()};t.beginPath=function(){e.beginPath();this.__originalBeginPath()}}(a,this.suspendedCtx);this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring();copyCtxState(this.ctx,this.suspendedCtx);this.ctx=this.suspendedCtx;this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;if(t){t[0]=Math.floor(t[0]);t[1]=Math.floor(t[1]);t[2]=Math.ceil(t[2]);t[3]=Math.ceil(t[3])}else t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const e=this.current.activeSMask;composeSMask(this.suspendedCtx,e,this.ctx,t);this.ctx.save();this.ctx.setTransform(1,0,0,1,0,0);this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height);this.ctx.restore()}save(){if(this.inSMaskMode){copyCtxState(this.ctx,this.suspendedCtx);this.suspendedCtx.save()}else this.ctx.save();const t=this.current;this.stateStack.push(t);this.current=t.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode();if(0!==this.stateStack.length){this.current=this.stateStack.pop();if(this.inSMaskMode){this.suspendedCtx.restore();copyCtxState(this.suspendedCtx,this.ctx)}else this.ctx.restore();this.checkSMaskState();this.pendingClip=null;this._cachedScaleForStroking=null;this._cachedGetSinglePixelWidth=null}}transform(t,e,s,i,n,a){this.ctx.transform(t,e,s,i,n,a);this._cachedScaleForStroking=null;this._cachedGetSinglePixelWidth=null}constructPath(t,e,s){const a=this.ctx,r=this.current;let o,l,c=r.x,h=r.y;const d=(0,n.getCurrentTransform)(a),u=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],p=u?s.slice(0):null;for(let s=0,n=0,f=t.length;s100&&(c=100);this.current.fontSizeScale=e/c;this.ctx.font=`${o} ${r} ${c}px ${l}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,e){this.current.x=this.current.lineX+=t;this.current.y=this.current.lineY+=e}setLeadingMoveText(t,e){this.setLeading(-e);this.moveText(t,e)}setTextMatrix(t,e,s,i,n,a){this.current.textMatrix=[t,e,s,i,n,a];this.current.textMatrixScale=Math.hypot(t,e);this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,e,s,a){const r=this.ctx,o=this.current,l=o.font,c=o.textRenderingMode,h=o.fontSize/o.fontSizeScale,d=c&i.TextRenderingMode.FILL_STROKE_MASK,u=!!(c&i.TextRenderingMode.ADD_TO_PATH_FLAG),p=o.patternFill&&!l.missingFile;let f;(l.disableFontFace||u||p)&&(f=l.getPathGenerator(this.commonObjs,t));if(l.disableFontFace||p){r.save();r.translate(e,s);r.beginPath();f(r,h);a&&r.setTransform(...a);d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||r.fill();d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||r.stroke();r.restore()}else{d!==i.TextRenderingMode.FILL&&d!==i.TextRenderingMode.FILL_STROKE||r.fillText(t,e,s);d!==i.TextRenderingMode.STROKE&&d!==i.TextRenderingMode.FILL_STROKE||r.strokeText(t,e,s)}if(u){(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,n.getCurrentTransform)(r),x:e,y:s,fontSize:h,addToPath:f})}}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1);t.fillText("I",0,10);const e=t.getImageData(0,0,10,10).data;let s=!1;for(let t=3;t0&&e[t]<255){s=!0;break}return(0,i.shadow)(this,"isFontSubpixelAAEnabled",s)}showText(t){const e=this.current,s=e.font;if(s.isType3Font)return this.showType3Text(t);const r=e.fontSize;if(0===r)return;const o=this.ctx,l=e.fontSizeScale,c=e.charSpacing,h=e.wordSpacing,d=e.fontDirection,u=e.textHScale*d,p=t.length,f=s.vertical,g=f?1:-1,m=s.defaultVMetrics,b=r*e.fontMatrix[0],A=e.textRenderingMode===i.TextRenderingMode.FILL&&!s.disableFontFace&&!e.patternFill;o.save();o.transform(...e.textMatrix);o.translate(e.x,e.y+e.textRise);d>0?o.scale(u,-1):o.scale(u,1);let _;if(e.patternFill){o.save();const t=e.fillColor.getPattern(o,this,(0,n.getCurrentTransformInverse)(o),a.PathType.FILL);_=(0,n.getCurrentTransform)(o);o.restore();o.fillStyle=t}let y=e.lineWidth;const v=e.textMatrixScale;if(0===v||0===y){const t=e.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;t!==i.TextRenderingMode.STROKE&&t!==i.TextRenderingMode.FILL_STROKE||(y=this.getSinglePixelWidth())}else y/=v;if(1!==l){o.scale(l,l);y/=l}o.lineWidth=y;if(s.isInvalidPDFjsFont){const s=[];let i=0;for(const e of t){s.push(e.unicode);i+=e.width}o.fillText(s.join(""),0,0);e.x+=i*b*u;o.restore();this.compose();return}let S,x=0;for(S=0;S0){const t=1e3*o.measureText(a).width/r*l;if(Enew CanvasGraphics(t,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};e=new a.TilingPattern(t,s,this.ctx,r,i)}else e=this._getPattern(t[1],t[2]);return e}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments);this.current.patternFill=!0}setStrokeRGBColor(t,e,s){const n=i.Util.makeHexColor(t,e,s);this.ctx.strokeStyle=n;this.current.strokeColor=n}setFillRGBColor(t,e,s){const n=i.Util.makeHexColor(t,e,s);this.ctx.fillStyle=n;this.current.fillColor=n;this.current.patternFill=!1}_getPattern(t,e=null){let s;if(this.cachedPatterns.has(t))s=this.cachedPatterns.get(t);else{s=(0,a.getShadingPattern)(this.getObject(t));this.cachedPatterns.set(t,s)}e&&(s.matrix=e);return s}shadingFill(t){if(!this.contentVisible)return;const e=this.ctx;this.save();const s=this._getPattern(t);e.fillStyle=s.getPattern(e,this,(0,n.getCurrentTransformInverse)(e),a.PathType.SHADING);const r=(0,n.getCurrentTransformInverse)(e);if(r){const t=e.canvas,s=t.width,n=t.height,a=i.Util.applyTransform([0,0],r),o=i.Util.applyTransform([0,n],r),l=i.Util.applyTransform([s,0],r),c=i.Util.applyTransform([s,n],r),h=Math.min(a[0],o[0],l[0],c[0]),d=Math.min(a[1],o[1],l[1],c[1]),u=Math.max(a[0],o[0],l[0],c[0]),p=Math.max(a[1],o[1],l[1],c[1]);this.ctx.fillRect(h,d,u-h,p-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox());this.restore()}beginInlineImage(){(0,i.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,i.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(t,e){if(this.contentVisible){this.save();this.baseTransformStack.push(this.baseTransform);Array.isArray(t)&&6===t.length&&this.transform(...t);this.baseTransform=(0,n.getCurrentTransform)(this.ctx);if(e){const t=e[2]-e[0],s=e[3]-e[1];this.ctx.rect(e[0],e[1],t,s);this.current.updateRectMinMax((0,n.getCurrentTransform)(this.ctx),e);this.clip();this.endPath()}}}paintFormXObjectEnd(){if(this.contentVisible){this.restore();this.baseTransform=this.baseTransformStack.pop()}}beginGroup(t){if(!this.contentVisible)return;this.save();if(this.inSMaskMode){this.endSMaskMode();this.current.activeSMask=null}const e=this.ctx;t.isolated||(0,i.info)("TODO: Support non-isolated groups.");t.knockout&&(0,i.warn)("Knockout groups not supported.");const s=(0,n.getCurrentTransform)(e);t.matrix&&e.transform(...t.matrix);if(!t.bbox)throw new Error("Bounding box is required.");let a=i.Util.getAxialAlignedBoundingBox(t.bbox,(0,n.getCurrentTransform)(e));const r=[0,0,e.canvas.width,e.canvas.height];a=i.Util.intersect(a,r)||[0,0,0,0];const o=Math.floor(a[0]),c=Math.floor(a[1]);let h=Math.max(Math.ceil(a[2])-o,1),d=Math.max(Math.ceil(a[3])-c,1),u=1,p=1;if(h>l){u=h/l;h=l}if(d>l){p=d/l;d=l}this.current.startNewPathAndClipBox([0,0,h,d]);let f="groupAt"+this.groupLevel;t.smask&&(f+="_smask_"+this.smaskCounter++%2);const g=this.cachedCanvases.getCanvas(f,h,d),m=g.context;m.scale(1/u,1/p);m.translate(-o,-c);m.transform(...s);if(t.smask)this.smaskStack.push({canvas:g.canvas,context:m,offsetX:o,offsetY:c,scaleX:u,scaleY:p,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null});else{e.setTransform(1,0,0,1,0,0);e.translate(o,c);e.scale(u,p);e.save()}copyCtxState(e,m);this.ctx=m;this.setGState([["BM","source-over"],["ca",1],["CA",1]]);this.groupStack.push(e);this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const e=this.ctx,s=this.groupStack.pop();this.ctx=s;this.ctx.imageSmoothingEnabled=!1;if(t.smask){this.tempSMask=this.smaskStack.pop();this.restore()}else{this.ctx.restore();const t=(0,n.getCurrentTransform)(this.ctx);this.restore();this.ctx.save();this.ctx.setTransform(...t);const s=i.Util.getAxialAlignedBoundingBox([0,0,e.canvas.width,e.canvas.height],t);this.ctx.drawImage(e.canvas,0,0);this.ctx.restore();this.compose(s)}}beginAnnotation(t,e,s,a,r){this.#vt();resetCtxToDefault(this.ctx);this.ctx.save();this.save();this.baseTransform&&this.ctx.setTransform(...this.baseTransform);if(Array.isArray(e)&&4===e.length){const a=e[2]-e[0],o=e[3]-e[1];if(r&&this.annotationCanvasMap){(s=s.slice())[4]-=e[0];s[5]-=e[1];(e=e.slice())[0]=e[1]=0;e[2]=a;e[3]=o;const[r,l]=i.Util.singularValueDecompose2dScale((0,n.getCurrentTransform)(this.ctx)),{viewportScale:c}=this,h=Math.ceil(a*this.outputScaleX*c),d=Math.ceil(o*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(h,d);const{canvas:u,context:p}=this.annotationCanvas;this.annotationCanvasMap.set(t,u);this.annotationCanvas.savedCtx=this.ctx;this.ctx=p;this.ctx.setTransform(r,0,0,-l,0,o*l);resetCtxToDefault(this.ctx)}else{resetCtxToDefault(this.ctx);this.ctx.rect(e[0],e[1],a,o);this.ctx.clip();this.endPath()}}this.current=new CanvasExtraState(this.ctx.canvas.width,this.ctx.canvas.height);this.transform(...s);this.transform(...a)}endAnnotation(){if(this.annotationCanvas){this.ctx=this.annotationCanvas.savedCtx;delete this.annotationCanvas.savedCtx;delete this.annotationCanvas}}paintImageMaskXObject(t){if(!this.contentVisible)return;const e=t.count;(t=this.getObject(t.data,t)).count=e;const s=this.ctx,i=this.processingType3;if(i){void 0===i.compiled&&(i.compiled=function compileType3Glyph(t){const{width:e,height:s}=t;if(e>1e3||s>1e3)return null;const i=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),n=e+1;let a,r,o,l=new Uint8Array(n*(s+1));const c=e+7&-8;let h=new Uint8Array(c*s),d=0;for(const e of t.data){let t=128;for(;t>0;){h[d++]=e&t?0:255;t>>=1}}let u=0;d=0;if(0!==h[d]){l[0]=1;++u}for(r=1;r>2)+(h[d+1]?4:0)+(h[d-c+1]?8:0);if(i[t]){l[o+r]=i[t];++u}d++}if(h[d-c]!==h[d]){l[o+r]=h[d]?2:4;++u}if(u>1e3)return null}d=c*(s-1);o=a*n;if(0!==h[d]){l[o]=8;++u}for(r=1;r1e3)return null;const p=new Int32Array([0,n,-1,0,-n,0,0,0,1]),f=new Path2D;for(a=0;u&&a<=s;a++){let t=a*n;const s=t+e;for(;t>4;l[t]&=r>>2|r<<2}f.lineTo(t%n,t/n|0);l[t]||--u}while(i!==t);--a}h=null;l=null;return function(t){t.save();t.scale(1/e,-1/s);t.translate(0,-s);t.fill(f);t.beginPath();t.restore()}}(t));if(i.compiled){i.compiled(s);return}}const n=this._createMaskCanvas(t),a=n.canvas;s.save();s.setTransform(1,0,0,1,0,0);s.drawImage(a,n.offsetX,n.offsetY);s.restore();this.compose()}paintImageMaskXObjectRepeat(t,e,s=0,a=0,r,o){if(!this.contentVisible)return;t=this.getObject(t.data,t);const l=this.ctx;l.save();const c=(0,n.getCurrentTransform)(l);l.transform(e,s,a,r,0,0);const h=this._createMaskCanvas(t);l.setTransform(1,0,0,1,h.offsetX-c[4],h.offsetY-c[5]);for(let t=0,n=o.length;te?r/e:1;i=a>e?a/e:1}}this._cachedScaleForStroking=[s,i]}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:e}=this,{lineWidth:s}=this.current,[i,a]=this.getScaleForStroking();e.lineWidth=s||1;if(1===i&&1===a){e.stroke();return}let r,o,l;if(t){r=(0,n.getCurrentTransform)(e);o=e.getLineDash().slice();l=e.lineDashOffset}e.scale(i,a);const c=Math.max(i,a);e.setLineDash(e.getLineDash().map((t=>t/c)));e.lineDashOffset/=c;e.stroke();if(t){e.setTransform(...r);e.setLineDash(o);e.lineDashOffset=l}}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}e.CanvasGraphics=CanvasGraphics;for(const t in i.OPS)void 0!==CanvasGraphics.prototype[t]&&(CanvasGraphics.prototype[i.OPS[t]]=CanvasGraphics.prototype[t])},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.TilingPattern=e.PathType=void 0;e.getShadingPattern=function getShadingPattern(t){switch(t[0]){case"RadialAxial":return new RadialAxialShadingPattern(t);case"Mesh":return new MeshShadingPattern(t);case"Dummy":return new DummyShadingPattern}throw new Error(`Unknown IR type: ${t[0]}`)};var i=s(1),n=s(6);const a={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};e.PathType=a;function applyBoundingBox(t,e){if(!e)return;const s=e[2]-e[0],i=e[3]-e[1],n=new Path2D;n.rect(e[0],e[1],s,i);t.clip(n)}class BaseShadingPattern{constructor(){this.constructor===BaseShadingPattern&&(0,i.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,i.unreachable)("Abstract method `getPattern` called.")}}class RadialAxialShadingPattern extends BaseShadingPattern{constructor(t){super();this._type=t[1];this._bbox=t[2];this._colorStops=t[3];this._p0=t[4];this._p1=t[5];this._r0=t[6];this._r1=t[7];this.matrix=null}_createGradient(t){let e;"axial"===this._type?e=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(e=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const t of this._colorStops)e.addColorStop(t[0],t[1]);return e}getPattern(t,e,s,r){let o;if(r===a.STROKE||r===a.FILL){const a=e.current.getClippedPathBoundingBox(r,(0,n.getCurrentTransform)(t))||[0,0,0,0],l=Math.ceil(a[2]-a[0])||1,c=Math.ceil(a[3]-a[1])||1,h=e.cachedCanvases.getCanvas("pattern",l,c,!0),d=h.context;d.clearRect(0,0,d.canvas.width,d.canvas.height);d.beginPath();d.rect(0,0,d.canvas.width,d.canvas.height);d.translate(-a[0],-a[1]);s=i.Util.transform(s,[1,0,0,1,a[0],a[1]]);d.transform(...e.baseTransform);this.matrix&&d.transform(...this.matrix);applyBoundingBox(d,this._bbox);d.fillStyle=this._createGradient(d);d.fill();o=t.createPattern(h.canvas,"no-repeat");const u=new DOMMatrix(s);o.setTransform(u)}else{applyBoundingBox(t,this._bbox);o=this._createGradient(t)}return o}}function drawTriangle(t,e,s,i,n,a,r,o){const l=e.coords,c=e.colors,h=t.data,d=4*t.width;let u;if(l[s+1]>l[i+1]){u=s;s=i;i=u;u=a;a=r;r=u}if(l[i+1]>l[n+1]){u=i;i=n;n=u;u=r;r=o;o=u}if(l[s+1]>l[i+1]){u=s;s=i;i=u;u=a;a=r;r=u}const p=(l[s]+e.offsetX)*e.scaleX,f=(l[s+1]+e.offsetY)*e.scaleY,g=(l[i]+e.offsetX)*e.scaleX,m=(l[i+1]+e.offsetY)*e.scaleY,b=(l[n]+e.offsetX)*e.scaleX,A=(l[n+1]+e.offsetY)*e.scaleY;if(f>=A)return;const _=c[a],y=c[a+1],v=c[a+2],S=c[r],x=c[r+1],E=c[r+2],C=c[o],P=c[o+1],T=c[o+2],w=Math.round(f),k=Math.round(A);let F,M,R,D,I,O,L,N;for(let t=w;t<=k;t++){if(tA?1:m===A?0:(m-t)/(m-A);F=g-(g-b)*e;M=S-(S-C)*e;R=x-(x-P)*e;D=E-(E-T)*e}let e;e=tA?1:(f-t)/(f-A);I=p-(p-b)*e;O=_-(_-C)*e;L=y-(y-P)*e;N=v-(v-T)*e;const s=Math.round(Math.min(F,I)),i=Math.round(Math.max(F,I));let n=d*t+4*s;for(let t=s;t<=i;t++){e=(F-t)/(F-I);e<0?e=0:e>1&&(e=1);h[n++]=M-(M-O)*e|0;h[n++]=R-(R-L)*e|0;h[n++]=D-(D-N)*e|0;h[n++]=255}}}function drawFigure(t,e,s){const i=e.coords,n=e.colors;let a,r;switch(e.type){case"lattice":const o=e.verticesPerRow,l=Math.floor(i.length/o)-1,c=o-1;for(a=0;a=i?n=i:s=n/t;return{scale:s,size:n}}clipBbox(t,e,s,i,a){const r=i-e,o=a-s;t.ctx.rect(e,s,r,o);t.current.updateRectMinMax((0,n.getCurrentTransform)(t.ctx),[e,s,i,a]);t.clip();t.endPath()}setFillAndStrokeStyleToContext(t,e,s){const n=t.ctx,a=t.current;switch(e){case r:const t=this.ctx;n.fillStyle=t.fillStyle;n.strokeStyle=t.strokeStyle;a.fillColor=t.fillStyle;a.strokeColor=t.strokeStyle;break;case o:const l=i.Util.makeHexColor(s[0],s[1],s[2]);n.fillStyle=l;n.strokeStyle=l;a.fillColor=l;a.strokeColor=l;break;default:throw new i.FormatError(`Unsupported paint type: ${e}`)}}getPattern(t,e,s,n){let r=s;if(n!==a.SHADING){r=i.Util.transform(r,e.baseTransform);this.matrix&&(r=i.Util.transform(r,this.matrix))}const o=this.createPatternCanvas(e);let l=new DOMMatrix(r);l=l.translate(o.offsetX,o.offsetY);l=l.scale(1/o.scaleX,1/o.scaleY);const c=t.createPattern(o.canvas,"repeat");c.setTransform(l);return c}}e.TilingPattern=TilingPattern},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.convertBlackAndWhiteToRGBA=convertBlackAndWhiteToRGBA;e.convertToRGBA=function convertToRGBA(t){switch(t.kind){case i.ImageKind.GRAYSCALE_1BPP:return convertBlackAndWhiteToRGBA(t);case i.ImageKind.RGB_24BPP:return function convertRGBToRGBA({src:t,srcPos:e=0,dest:s,destPos:n=0,width:a,height:r}){let o=0;const l=t.length>>2,c=new Uint32Array(t.buffer,e,l);if(i.FeatureTest.isLittleEndian){for(;o>>24|e<<8|4278190080;s[n+2]=e>>>16|i<<16|4278190080;s[n+3]=i>>>8|4278190080}for(let e=4*o,i=t.length;e>>8|255;s[n+2]=e<<16|i>>>16|255;s[n+3]=i<<8|255}for(let e=4*o,i=t.length;e>3,u=7&n,p=t.length;s=new Uint32Array(s.buffer);let f=0;for(let i=0;i{Object.defineProperty(e,"__esModule",{value:!0});e.GlobalWorkerOptions=void 0;const s=Object.create(null);e.GlobalWorkerOptions=s;s.workerPort=null;s.workerSrc=""},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.MessageHandler=void 0;var i=s(1);const n=1,a=2,r=1,o=2,l=3,c=4,h=5,d=6,u=7,p=8;function wrapReason(t){t instanceof Error||"object"==typeof t&&null!==t||(0,i.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.');switch(t.name){case"AbortException":return new i.AbortException(t.message);case"MissingPDFException":return new i.MissingPDFException(t.message);case"PasswordException":return new i.PasswordException(t.message,t.code);case"UnexpectedResponseException":return new i.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new i.UnknownErrorException(t.message,t.details);default:return new i.UnknownErrorException(t.message,t.toString())}}e.MessageHandler=class MessageHandler{constructor(t,e,s){this.sourceName=t;this.targetName=e;this.comObj=s;this.callbackId=1;this.streamId=1;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);this._onComObjOnMessage=t=>{const e=t.data;if(e.targetName!==this.sourceName)return;if(e.stream){this._processStreamMessage(e);return}if(e.callback){const t=e.callbackId,s=this.callbackCapabilities[t];if(!s)throw new Error(`Cannot resolve callback ${t}`);delete this.callbackCapabilities[t];if(e.callback===n)s.resolve(e.data);else{if(e.callback!==a)throw new Error("Unexpected callback case");s.reject(wrapReason(e.reason))}return}const i=this.actionHandler[e.action];if(!i)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const t=this.sourceName,r=e.sourceName;new Promise((function(t){t(i(e.data))})).then((function(i){s.postMessage({sourceName:t,targetName:r,callback:n,callbackId:e.callbackId,data:i})}),(function(i){s.postMessage({sourceName:t,targetName:r,callback:a,callbackId:e.callbackId,reason:wrapReason(i)})}))}else e.streamId?this._createStreamSink(e):i(e.data)};s.addEventListener("message",this._onComObjOnMessage)}on(t,e){const s=this.actionHandler;if(s[t])throw new Error(`There is already an actionName called "${t}"`);s[t]=e}send(t,e,s){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},s)}sendWithPromise(t,e,s){const n=this.callbackId++,a=(0,i.createPromiseCapability)();this.callbackCapabilities[n]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:n,data:e},s)}catch(t){a.reject(t)}return a.promise}sendWithStream(t,e,s,n){const a=this.streamId++,o=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:s=>{const r=(0,i.createPromiseCapability)();this.streamControllers[a]={controller:s,startCall:r,pullCall:null,cancelCall:null,isClosed:!1};c.postMessage({sourceName:o,targetName:l,action:t,streamId:a,data:e,desiredSize:s.desiredSize},n);return r.promise},pull:t=>{const e=(0,i.createPromiseCapability)();this.streamControllers[a].pullCall=e;c.postMessage({sourceName:o,targetName:l,stream:d,streamId:a,desiredSize:t.desiredSize});return e.promise},cancel:t=>{(0,i.assert)(t instanceof Error,"cancel must have a valid reason");const e=(0,i.createPromiseCapability)();this.streamControllers[a].cancelCall=e;this.streamControllers[a].isClosed=!0;c.postMessage({sourceName:o,targetName:l,stream:r,streamId:a,reason:wrapReason(t)});return e.promise}},s)}_createStreamSink(t){const e=t.streamId,s=this.sourceName,n=t.sourceName,a=this.comObj,r=this,o=this.actionHandler[t.action],d={enqueue(t,r=1,o){if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=r;if(l>0&&this.desiredSize<=0){this.sinkCapability=(0,i.createPromiseCapability)();this.ready=this.sinkCapability.promise}a.postMessage({sourceName:s,targetName:n,stream:c,streamId:e,chunk:t},o)},close(){if(!this.isCancelled){this.isCancelled=!0;a.postMessage({sourceName:s,targetName:n,stream:l,streamId:e});delete r.streamSinks[e]}},error(t){(0,i.assert)(t instanceof Error,"error must have a valid reason");if(!this.isCancelled){this.isCancelled=!0;a.postMessage({sourceName:s,targetName:n,stream:h,streamId:e,reason:wrapReason(t)})}},sinkCapability:(0,i.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};d.sinkCapability.resolve();d.ready=d.sinkCapability.promise;this.streamSinks[e]=d;new Promise((function(e){e(o(t.data,d))})).then((function(){a.postMessage({sourceName:s,targetName:n,stream:p,streamId:e,success:!0})}),(function(t){a.postMessage({sourceName:s,targetName:n,stream:p,streamId:e,reason:wrapReason(t)})}))}_processStreamMessage(t){const e=t.streamId,s=this.sourceName,n=t.sourceName,a=this.comObj,f=this.streamControllers[e],g=this.streamSinks[e];switch(t.stream){case p:t.success?f.startCall.resolve():f.startCall.reject(wrapReason(t.reason));break;case u:t.success?f.pullCall.resolve():f.pullCall.reject(wrapReason(t.reason));break;case d:if(!g){a.postMessage({sourceName:s,targetName:n,stream:u,streamId:e,success:!0});break}g.desiredSize<=0&&t.desiredSize>0&&g.sinkCapability.resolve();g.desiredSize=t.desiredSize;new Promise((function(t){t(g.onPull&&g.onPull())})).then((function(){a.postMessage({sourceName:s,targetName:n,stream:u,streamId:e,success:!0})}),(function(t){a.postMessage({sourceName:s,targetName:n,stream:u,streamId:e,reason:wrapReason(t)})}));break;case c:(0,i.assert)(f,"enqueue should have stream controller");if(f.isClosed)break;f.controller.enqueue(t.chunk);break;case l:(0,i.assert)(f,"close should have stream controller");if(f.isClosed)break;f.isClosed=!0;f.controller.close();this._deleteStreamController(f,e);break;case h:(0,i.assert)(f,"error should have stream controller");f.controller.error(wrapReason(t.reason));this._deleteStreamController(f,e);break;case o:t.success?f.cancelCall.resolve():f.cancelCall.reject(wrapReason(t.reason));this._deleteStreamController(f,e);break;case r:if(!g)break;new Promise((function(e){e(g.onCancel&&g.onCancel(wrapReason(t.reason)))})).then((function(){a.postMessage({sourceName:s,targetName:n,stream:o,streamId:e,success:!0})}),(function(t){a.postMessage({sourceName:s,targetName:n,stream:o,streamId:e,reason:wrapReason(t)})}));g.sinkCapability.reject(wrapReason(t.reason));g.isCancelled=!0;delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(t,e){await Promise.allSettled([t.startCall&&t.startCall.promise,t.pullCall&&t.pullCall.promise,t.cancelCall&&t.cancelCall.promise]);delete this.streamControllers[e]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.Metadata=void 0;var i=s(1);e.Metadata=class Metadata{#St;#xt;constructor({parsedData:t,rawData:e}){this.#St=t;this.#xt=e}getRaw(){return this.#xt}get(t){return this.#St.get(t)??null}getAll(){return(0,i.objectFromMap)(this.#St)}has(t){return this.#St.has(t)}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.OptionalContentConfig=void 0;var i=s(1),n=s(8);const a=Symbol("INTERNAL");class OptionalContentGroup{#Et=!0;constructor(t,e){this.name=t;this.intent=e}get visible(){return this.#Et}_setVisible(t,e){t!==a&&(0,i.unreachable)("Internal method `_setVisible` called.");this.#Et=e}}e.OptionalContentConfig=class OptionalContentConfig{#Ct=null;#Pt=new Map;#Tt=null;#wt=null;constructor(t){this.name=null;this.creator=null;if(null!==t){this.name=t.name;this.creator=t.creator;this.#wt=t.order;for(const e of t.groups)this.#Pt.set(e.id,new OptionalContentGroup(e.name,e.intent));if("OFF"===t.baseState)for(const t of this.#Pt.values())t._setVisible(a,!1);for(const e of t.on)this.#Pt.get(e)._setVisible(a,!0);for(const e of t.off)this.#Pt.get(e)._setVisible(a,!1);this.#Tt=this.getHash()}}#kt(t){const e=t.length;if(e<2)return!0;const s=t[0];for(let n=1;n0?(0,i.objectFromMap)(this.#Pt):null}getGroup(t){return this.#Pt.get(t)||null}getHash(){if(null!==this.#Ct)return this.#Ct;const t=new n.MurmurHash3_64;for(const[e,s]of this.#Pt)t.update(`${e}:${s.visible}`);return this.#Ct=t.hexdigest()}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.PDFDataTransportStream=void 0;var i=s(1),n=s(6);e.PDFDataTransportStream=class PDFDataTransportStream{constructor({length:t,initialData:e,progressiveDone:s=!1,contentDispositionFilename:n=null,disableRange:a=!1,disableStream:r=!1},o){(0,i.assert)(o,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');this._queuedChunks=[];this._progressiveDone=s;this._contentDispositionFilename=n;if(e?.length>0){const t=e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer;this._queuedChunks.push(t)}this._pdfDataRangeTransport=o;this._isStreamingSupported=!r;this._isRangeSupported=!a;this._contentLength=t;this._fullRequestReader=null;this._rangeReaders=[];this._pdfDataRangeTransport.addRangeListener(((t,e)=>{this._onReceiveData({begin:t,chunk:e})}));this._pdfDataRangeTransport.addProgressListener(((t,e)=>{this._onProgress({loaded:t,total:e})}));this._pdfDataRangeTransport.addProgressiveReadListener((t=>{this._onReceiveData({chunk:t})}));this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()}));this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:t,chunk:e}){const s=e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(s):this._queuedChunks.push(s);else{const e=this._rangeReaders.some((function(e){if(e._begin!==t)return!1;e._enqueue(s);return!0}));(0,i.assert)(e,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(t){void 0===t.total?this._rangeReaders[0]?.onProgress?.({loaded:t.loaded}):this._fullRequestReader?.onProgress?.({loaded:t.loaded,total:t.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone();this._progressiveDone=!0}_removeRangeReader(t){const e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}getFullReader(){(0,i.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;this._queuedChunks=null;return new PDFDataTransportStreamReader(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;const s=new PDFDataTransportStreamRangeReader(this,t,e);this._pdfDataRangeTransport.requestDataRange(t,e);this._rangeReaders.push(s);return s}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const e of this._rangeReaders.slice(0))e.cancel(t);this._pdfDataRangeTransport.abort()}};class PDFDataTransportStreamReader{constructor(t,e,s=!1,i=null){this._stream=t;this._done=s||!1;this._filename=(0,n.isPdfFile)(i)?i:null;this._queuedChunks=e||[];this._loaded=0;for(const t of this._queuedChunks)this._loaded+=t.byteLength;this._requests=[];this._headersReady=Promise.resolve();t._fullRequestReader=this;this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunks.push(t);this._loaded+=t.byteLength}}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0){return{value:this._queuedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const t=(0,i.createPromiseCapability)();this._requests.push(t);return t.promise}cancel(t){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class PDFDataTransportStreamRangeReader{constructor(t,e,s){this._stream=t;this._begin=e;this._end=s;this._queuedChunk=null;this._requests=[];this._done=!1;this.onProgress=null}_enqueue(t){if(!this._done){if(0===this._requests.length)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0;this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const t=this._queuedChunk;this._queuedChunk=null;return{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};const t=(0,i.createPromiseCapability)();this._requests.push(t);return t.promise}cancel(t){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0;this._stream._removeRangeReader(this)}}},(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.XfaText=void 0;class XfaText{static textContent(t){const e=[],s={items:e,styles:Object.create(null)};!function walk(t){if(!t)return;let s=null;const i=t.name;if("#text"===i)s=t.value;else{if(!XfaText.shouldBuildText(i))return;t?.attributes?.textContent?s=t.attributes.textContent:t.value&&(s=t.value)}null!==s&&e.push({str:s});if(t.children)for(const e of t.children)walk(e)}(t);return s}static shouldBuildText(t){return!("textarea"===t||"input"===t||"option"===t||"select"===t)}}e.XfaText=XfaText},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.NodeStandardFontDataFactory=e.NodeFilterFactory=e.NodeCanvasFactory=e.NodeCMapReaderFactory=void 0;var i=s(7);const fetchData=function(t){return new Promise(((e,s)=>{require("fs").readFile(t,((t,i)=>{!t&&i?e(new Uint8Array(i)):s(new Error(t))}))}))};class NodeFilterFactory extends i.BaseFilterFactory{}e.NodeFilterFactory=NodeFilterFactory;class NodeCanvasFactory extends i.BaseCanvasFactory{_createCanvas(t,e){return require("canvas").createCanvas(t,e)}}e.NodeCanvasFactory=NodeCanvasFactory;class NodeCMapReaderFactory extends i.BaseCMapReaderFactory{_fetchData(t,e){return fetchData(t).then((t=>({cMapData:t,compressionType:e})))}}e.NodeCMapReaderFactory=NodeCMapReaderFactory;class NodeStandardFontDataFactory extends i.BaseStandardFontDataFactory{_fetchData(t){return fetchData(t)}}e.NodeStandardFontDataFactory=NodeStandardFontDataFactory},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.PDFNodeStream=void 0;var i=s(1),n=s(22);const a=require("fs"),r=require("http"),o=require("https"),l=require("url"),c=/^file:\/\/\/[a-zA-Z]:\//;e.PDFNodeStream=class PDFNodeStream{constructor(t){this.source=t;this.url=function parseUrl(t){const e=l.parse(t);if("file:"===e.protocol||e.host)return e;if(/^[a-z]:[/\\]/i.test(t))return l.parse(`file:///${t}`);e.host||(e.protocol="file:");return e}(t.url);this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol;this.isFsUrl="file:"===this.url.protocol;this.httpHeaders=this.isHttp&&t.httpHeaders||{};this._fullRequestReader=null;this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){(0,i.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once.");this._fullRequestReader=this.isFsUrl?new PDFNodeStreamFsFullReader(this):new PDFNodeStreamFullReader(this);return this._fullRequestReader}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;const s=this.isFsUrl?new PDFNodeStreamFsRangeReader(this,t,e):new PDFNodeStreamRangeReader(this,t,e);this._rangeRequestReaders.push(s);return s}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const e of this._rangeRequestReaders.slice(0))e.cancel(t)}};class BaseFullReader{constructor(t){this._url=t.url;this._done=!1;this._storedError=null;this.onProgress=null;const e=t.source;this._contentLength=e.length;this._loaded=0;this._filename=null;this._disableRange=e.disableRange||!1;this._rangeChunkSize=e.rangeChunkSize;this._rangeChunkSize||this._disableRange||(this._disableRange=!0);this._isStreamingSupported=!e.disableStream;this._isRangeSupported=!e.disableRange;this._readableStream=null;this._readCapability=(0,i.createPromiseCapability)();this._headersCapability=(0,i.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;if(this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();if(null===t){this._readCapability=(0,i.createPromiseCapability)();return this.read()}this._loaded+=t.length;this.onProgress?.({loaded:this._loaded,total:this._contentLength});return{value:new Uint8Array(t).buffer,done:!1}}cancel(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}_error(t){this._storedError=t;this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t;t.on("readable",(()=>{this._readCapability.resolve()}));t.on("end",(()=>{t.destroy();this._done=!0;this._readCapability.resolve()}));t.on("error",(t=>{this._error(t)}));!this._isStreamingSupported&&this._isRangeSupported&&this._error(new i.AbortException("streaming is disabled"));this._storedError&&this._readableStream.destroy(this._storedError)}}class BaseRangeReader{constructor(t){this._url=t.url;this._done=!1;this._storedError=null;this.onProgress=null;this._loaded=0;this._readableStream=null;this._readCapability=(0,i.createPromiseCapability)();const e=t.source;this._isStreamingSupported=!e.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;if(this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();if(null===t){this._readCapability=(0,i.createPromiseCapability)();return this.read()}this._loaded+=t.length;this.onProgress?.({loaded:this._loaded});return{value:new Uint8Array(t).buffer,done:!1}}cancel(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}_error(t){this._storedError=t;this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t;t.on("readable",(()=>{this._readCapability.resolve()}));t.on("end",(()=>{t.destroy();this._done=!0;this._readCapability.resolve()}));t.on("error",(t=>{this._error(t)}));this._storedError&&this._readableStream.destroy(this._storedError)}}function createRequestOptions(t,e){return{protocol:t.protocol,auth:t.auth,host:t.hostname,port:t.port,path:t.path,method:"GET",headers:e}}class PDFNodeStreamFullReader extends BaseFullReader{constructor(t){super(t);const handleResponse=e=>{if(404===e.statusCode){const t=new i.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=t;this._headersCapability.reject(t);return}this._headersCapability.resolve();this._setReadableStream(e);const getResponseHeader=t=>this._readableStream.headers[t.toLowerCase()],{allowRangeRequests:s,suggestedLength:a}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:getResponseHeader,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s;this._contentLength=a||this._contentLength;this._filename=(0,n.extractFilenameFromHeader)(getResponseHeader)};this._request=null;"http:"===this._url.protocol?this._request=r.request(createRequestOptions(this._url,t.httpHeaders),handleResponse):this._request=o.request(createRequestOptions(this._url,t.httpHeaders),handleResponse);this._request.on("error",(t=>{this._storedError=t;this._headersCapability.reject(t)}));this._request.end()}}class PDFNodeStreamRangeReader extends BaseRangeReader{constructor(t,e,s){super(t);this._httpHeaders={};for(const e in t.httpHeaders){const s=t.httpHeaders[e];void 0!==s&&(this._httpHeaders[e]=s)}this._httpHeaders.Range=`bytes=${e}-${s-1}`;const handleResponse=t=>{if(404!==t.statusCode)this._setReadableStream(t);else{const t=new i.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=t}};this._request=null;"http:"===this._url.protocol?this._request=r.request(createRequestOptions(this._url,this._httpHeaders),handleResponse):this._request=o.request(createRequestOptions(this._url,this._httpHeaders),handleResponse);this._request.on("error",(t=>{this._storedError=t}));this._request.end()}}class PDFNodeStreamFsFullReader extends BaseFullReader{constructor(t){super(t);let e=decodeURIComponent(this._url.path);c.test(this._url.href)&&(e=e.replace(/^\//,""));a.lstat(e,((t,s)=>{if(t){"ENOENT"===t.code&&(t=new i.MissingPDFException(`Missing PDF "${e}".`));this._storedError=t;this._headersCapability.reject(t)}else{this._contentLength=s.size;this._setReadableStream(a.createReadStream(e));this._headersCapability.resolve()}}))}}class PDFNodeStreamFsRangeReader extends BaseRangeReader{constructor(t,e,s){super(t);let i=decodeURIComponent(this._url.path);c.test(this._url.href)&&(i=i.replace(/^\//,""));this._setReadableStream(a.createReadStream(i,{start:e,end:s-1}))}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.createResponseStatusError=function createResponseStatusError(t,e){if(404===t||0===t&&e.startsWith("file:"))return new i.MissingPDFException('Missing PDF "'+e+'".');return new i.UnexpectedResponseException(`Unexpected server response (${t}) while retrieving PDF "${e}".`,t)};e.extractFilenameFromHeader=function extractFilenameFromHeader(t){const e=t("Content-Disposition");if(e){let t=(0,n.getFilenameFromContentDispositionHeader)(e);if(t.includes("%"))try{t=decodeURIComponent(t)}catch(t){}if((0,a.isPdfFile)(t))return t}return null};e.validateRangeRequestCapabilities=function validateRangeRequestCapabilities({getResponseHeader:t,isHttp:e,rangeChunkSize:s,disableRange:i}){const n={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t("Content-Length"),10);if(!Number.isInteger(a))return n;n.suggestedLength=a;if(a<=2*s)return n;if(i||!e)return n;if("bytes"!==t("Accept-Ranges"))return n;if("identity"!==(t("Content-Encoding")||"identity"))return n;n.allowRangeRequests=!0;return n};e.validateResponseStatus=function validateResponseStatus(t){return 200===t||206===t};var i=s(1),n=s(23),a=s(6)},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.getFilenameFromContentDispositionHeader=function getFilenameFromContentDispositionHeader(t){let e=!0,s=toParamRegExp("filename\\*","i").exec(t);if(s){s=s[1];let t=rfc2616unquote(s);t=unescape(t);t=rfc5987decode(t);t=rfc2047decode(t);return fixupEncoding(t)}s=function rfc2231getparam(t){const e=[];let s;const i=toParamRegExp("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(s=i.exec(t));){let[,t,i,n]=s;t=parseInt(t,10);if(t in e){if(0===t)break}else e[t]=[i,n]}const n=[];for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0});e.PDFNetworkStream=void 0;var i=s(1),n=s(22);class NetworkManager{constructor(t,e={}){this.url=t;this.isHttp=/^https?:/i.test(t);this.httpHeaders=this.isHttp&&e.httpHeaders||Object.create(null);this.withCredentials=e.withCredentials||!1;this.getXhr=e.getXhr||function NetworkManager_getXhr(){return new XMLHttpRequest};this.currXhrId=0;this.pendingRequests=Object.create(null)}requestRange(t,e,s){const i={begin:t,end:e};for(const t in s)i[t]=s[t];return this.request(i)}requestFull(t){return this.request(t)}request(t){const e=this.getXhr(),s=this.currXhrId++,i=this.pendingRequests[s]={xhr:e};e.open("GET",this.url);e.withCredentials=this.withCredentials;for(const t in this.httpHeaders){const s=this.httpHeaders[t];void 0!==s&&e.setRequestHeader(t,s)}if(this.isHttp&&"begin"in t&&"end"in t){e.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`);i.expectedStatus=206}else i.expectedStatus=200;e.responseType="arraybuffer";t.onError&&(e.onerror=function(s){t.onError(e.status)});e.onreadystatechange=this.onStateChange.bind(this,s);e.onprogress=this.onProgress.bind(this,s);i.onHeadersReceived=t.onHeadersReceived;i.onDone=t.onDone;i.onError=t.onError;i.onProgress=t.onProgress;e.send(null);return s}onProgress(t,e){const s=this.pendingRequests[t];s&&s.onProgress?.(e)}onStateChange(t,e){const s=this.pendingRequests[t];if(!s)return;const n=s.xhr;if(n.readyState>=2&&s.onHeadersReceived){s.onHeadersReceived();delete s.onHeadersReceived}if(4!==n.readyState)return;if(!(t in this.pendingRequests))return;delete this.pendingRequests[t];if(0===n.status&&this.isHttp){s.onError?.(n.status);return}const a=n.status||200;if(!(200===a&&206===s.expectedStatus)&&a!==s.expectedStatus){s.onError?.(n.status);return}const r=function getArrayBuffer(t){const e=t.response;return"string"!=typeof e?e:(0,i.stringToBytes)(e).buffer}(n);if(206===a){const t=n.getResponseHeader("Content-Range"),e=/bytes (\d+)-(\d+)\/(\d+)/.exec(t);s.onDone({begin:parseInt(e[1],10),chunk:r})}else r?s.onDone({begin:0,chunk:r}):s.onError?.(n.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const e=this.pendingRequests[t].xhr;delete this.pendingRequests[t];e.abort()}}e.PDFNetworkStream=class PDFNetworkStream{constructor(t){this._source=t;this._manager=new NetworkManager(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials});this._rangeChunkSize=t.rangeChunkSize;this._fullRequestReader=null;this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}getFullReader(){(0,i.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once.");this._fullRequestReader=new PDFNetworkStreamFullRequestReader(this._manager,this._source);return this._fullRequestReader}getRangeReader(t,e){const s=new PDFNetworkStreamRangeRequestReader(this._manager,t,e);s.onClosed=this._onRangeRequestReaderClosed.bind(this);this._rangeRequestReaders.push(s);return s}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const e of this._rangeRequestReaders.slice(0))e.cancel(t)}};class PDFNetworkStreamFullRequestReader{constructor(t,e){this._manager=t;const s={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url;this._fullRequestId=t.requestFull(s);this._headersReceivedCapability=(0,i.createPromiseCapability)();this._disableRange=e.disableRange||!1;this._contentLength=e.length;this._rangeChunkSize=e.rangeChunkSize;this._rangeChunkSize||this._disableRange||(this._disableRange=!0);this._isStreamingSupported=!1;this._isRangeSupported=!1;this._cachedChunks=[];this._requests=[];this._done=!1;this._storedError=void 0;this._filename=null;this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,e=this._manager.getRequestXhr(t),getResponseHeader=t=>e.getResponseHeader(t),{allowRangeRequests:s,suggestedLength:i}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:getResponseHeader,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});s&&(this._isRangeSupported=!0);this._contentLength=i||this._contentLength;this._filename=(0,n.extractFilenameFromHeader)(getResponseHeader);this._isRangeSupported&&this._manager.abortRequest(t);this._headersReceivedCapability.resolve()}_onDone(t){if(t)if(this._requests.length>0){this._requests.shift().resolve({value:t.chunk,done:!1})}else this._cachedChunks.push(t.chunk);this._done=!0;if(!(this._cachedChunks.length>0)){for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=(0,n.createResponseStatusError)(t,this._url);this._headersReceivedCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0;this._cachedChunks.length=0}_onProgress(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0){return{value:this._cachedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const t=(0,i.createPromiseCapability)();this._requests.push(t);return t.promise}cancel(t){this._done=!0;this._headersReceivedCapability.reject(t);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0;this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId);this._fullRequestReader=null}}class PDFNetworkStreamRangeRequestReader{constructor(t,e,s){this._manager=t;const i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url;this._requestId=t.requestRange(e,s,i);this._requests=[];this._queuedChunk=null;this._done=!1;this._storedError=void 0;this.onProgress=null;this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(t){const e=t.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunk=e;this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0;this._close()}_onError(t){this._storedError=(0,n.createResponseStatusError)(t,this._url);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0;this._queuedChunk=null}_onProgress(t){this.isStreamingSupported||this.onProgress?.({loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const t=this._queuedChunk;this._queuedChunk=null;return{value:t,done:!1}}if(this._done)return{value:void 0,done:!0};const t=(0,i.createPromiseCapability)();this._requests.push(t);return t.promise}cancel(t){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0;this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId);this._close()}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.PDFFetchStream=void 0;var i=s(1),n=s(22);function createFetchOptions(t,e,s){return{method:"GET",headers:t,signal:s.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function createHeaders(t){const e=new Headers;for(const s in t){const i=t[s];void 0!==i&&e.append(s,i)}return e}function getArrayBuffer(t){if(t instanceof Uint8Array)return t.buffer;if(t instanceof ArrayBuffer)return t;(0,i.warn)(`getArrayBuffer - unexpected data format: ${t}`);return new Uint8Array(t).buffer}e.PDFFetchStream=class PDFFetchStream{constructor(t){this.source=t;this.isHttp=/^https?:/i.test(t.url);this.httpHeaders=this.isHttp&&t.httpHeaders||{};this._fullRequestReader=null;this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){(0,i.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once.");this._fullRequestReader=new PDFFetchStreamReader(this);return this._fullRequestReader}getRangeReader(t,e){if(e<=this._progressiveDataLength)return null;const s=new PDFFetchStreamRangeReader(this,t,e);this._rangeRequestReaders.push(s);return s}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const e of this._rangeRequestReaders.slice(0))e.cancel(t)}};class PDFFetchStreamReader{constructor(t){this._stream=t;this._reader=null;this._loaded=0;this._filename=null;const e=t.source;this._withCredentials=e.withCredentials||!1;this._contentLength=e.length;this._headersCapability=(0,i.createPromiseCapability)();this._disableRange=e.disableRange||!1;this._rangeChunkSize=e.rangeChunkSize;this._rangeChunkSize||this._disableRange||(this._disableRange=!0);this._abortController=new AbortController;this._isStreamingSupported=!e.disableStream;this._isRangeSupported=!e.disableRange;this._headers=createHeaders(this._stream.httpHeaders);const s=e.url;fetch(s,createFetchOptions(this._headers,this._withCredentials,this._abortController)).then((t=>{if(!(0,n.validateResponseStatus)(t.status))throw(0,n.createResponseStatusError)(t.status,s);this._reader=t.body.getReader();this._headersCapability.resolve();const getResponseHeader=e=>t.headers.get(e),{allowRangeRequests:e,suggestedLength:a}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:getResponseHeader,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=e;this._contentLength=a||this._contentLength;this._filename=(0,n.extractFilenameFromHeader)(getResponseHeader);!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new i.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject);this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:t,done:e}=await this._reader.read();if(e)return{value:t,done:e};this._loaded+=t.byteLength;this.onProgress?.({loaded:this._loaded,total:this._contentLength});return{value:getArrayBuffer(t),done:!1}}cancel(t){this._reader?.cancel(t);this._abortController.abort()}}class PDFFetchStreamRangeReader{constructor(t,e,s){this._stream=t;this._reader=null;this._loaded=0;const a=t.source;this._withCredentials=a.withCredentials||!1;this._readCapability=(0,i.createPromiseCapability)();this._isStreamingSupported=!a.disableStream;this._abortController=new AbortController;this._headers=createHeaders(this._stream.httpHeaders);this._headers.append("Range",`bytes=${e}-${s-1}`);const r=a.url;fetch(r,createFetchOptions(this._headers,this._withCredentials,this._abortController)).then((t=>{if(!(0,n.validateResponseStatus)(t.status))throw(0,n.createResponseStatusError)(t.status,r);this._readCapability.resolve();this._reader=t.body.getReader()})).catch(this._readCapability.reject);this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:t,done:e}=await this._reader.read();if(e)return{value:t,done:e};this._loaded+=t.byteLength;this.onProgress?.({loaded:this._loaded});return{value:getArrayBuffer(t),done:!1}}cancel(t){this._reader?.cancel(t);this._abortController.abort()}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.TextLayerRenderTask=void 0;e.renderTextLayer=function renderTextLayer(t){if(!t.textContentSource&&(t.textContent||t.textContentStream)){(0,n.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead.");t.textContentSource=t.textContent||t.textContentStream}const{container:e,viewport:s}=t,i=getComputedStyle(e),a=i.getPropertyValue("visibility"),r=parseFloat(i.getPropertyValue("--scale-factor"));"visible"===a&&(!r||Math.abs(r-s.scale)>1e-15)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const o=new TextLayerRenderTask(t);o._render();return o};e.updateTextLayer=function updateTextLayer({container:t,viewport:e,textDivs:s,textDivProperties:i,isOffscreenCanvasSupported:a,mustRotate:r=!0,mustRescale:o=!0}){r&&(0,n.setLayerDimensions)(t,{rotation:e.rotation});if(o){const t=getCtx(0,a),n={prevFontSize:null,prevFontFamily:null,div:null,scale:e.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:t};for(const t of s){n.properties=i.get(t);n.div=t;layout(n)}}};var i=s(1),n=s(6);const a=30,r=.8,o=new Map;function getCtx(t,e){let s;if(e&&i.FeatureTest.isOffscreenCanvasSupported)s=new OffscreenCanvas(t,t).getContext("2d",{alpha:!1});else{const e=document.createElement("canvas");e.width=e.height=t;s=e.getContext("2d",{alpha:!1})}return s}function appendText(t,e,s){const n=document.createElement("span"),l={angle:0,canvasWidth:0,hasText:""!==e.str,hasEOL:e.hasEOL,fontSize:0};t._textDivs.push(n);const c=i.Util.transform(t._transform,e.transform);let h=Math.atan2(c[1],c[0]);const d=s[e.fontName];d.vertical&&(h+=Math.PI/2);const u=Math.hypot(c[2],c[3]),p=u*function getAscent(t,e){const s=o.get(t);if(s)return s;const i=getCtx(a,e);i.font=`${a}px ${t}`;const n=i.measureText("");let l=n.fontBoundingBoxAscent,c=Math.abs(n.fontBoundingBoxDescent);if(l){const e=l/(l+c);o.set(t,e);i.canvas.width=i.canvas.height=0;return e}i.strokeStyle="red";i.clearRect(0,0,a,a);i.strokeText("g",0,0);let h=i.getImageData(0,0,a,a).data;c=0;for(let t=h.length-1-3;t>=0;t-=4)if(h[t]>0){c=Math.ceil(t/4/a);break}i.clearRect(0,0,a,a);i.strokeText("A",0,a);h=i.getImageData(0,0,a,a).data;l=0;for(let t=0,e=h.length;t0){l=a-Math.floor(t/4/a);break}i.canvas.width=i.canvas.height=0;if(l){const e=l/(l+c);o.set(t,e);return e}o.set(t,r);return r}(d.fontFamily,t._isOffscreenCanvasSupported);let f,g;if(0===h){f=c[4];g=c[5]-p}else{f=c[4]+p*Math.sin(h);g=c[5]-p*Math.cos(h)}const m="calc(var(--scale-factor)*",b=n.style;if(t._container===t._rootContainer){b.left=`${(100*f/t._pageWidth).toFixed(2)}%`;b.top=`${(100*g/t._pageHeight).toFixed(2)}%`}else{b.left=`${m}${f.toFixed(2)}px)`;b.top=`${m}${g.toFixed(2)}px)`}b.fontSize=`${m}${u.toFixed(2)}px)`;b.fontFamily=d.fontFamily;l.fontSize=u;n.setAttribute("role","presentation");n.textContent=e.str;n.dir=e.dir;t._fontInspectorEnabled&&(n.dataset.fontName=e.fontName);0!==h&&(l.angle=h*(180/Math.PI));let A=!1;if(e.str.length>1)A=!0;else if(" "!==e.str&&e.transform[0]!==e.transform[3]){const t=Math.abs(e.transform[0]),s=Math.abs(e.transform[3]);t!==s&&Math.max(t,s)/Math.min(t,s)>1.5&&(A=!0)}A&&(l.canvasWidth=d.vertical?e.height:e.width);t._textDivProperties.set(n,l);t._isReadableStream&&t._layoutText(n)}function layout(t){const{div:e,scale:s,properties:i,ctx:n,prevFontSize:a,prevFontFamily:r}=t,{style:o}=e;let l="";if(0!==i.canvasWidth&&i.hasText){const{fontFamily:c}=o,{canvasWidth:h,fontSize:d}=i;if(a!==d||r!==c){n.font=`${d*s}px ${c}`;t.prevFontSize=d;t.prevFontFamily=c}const{width:u}=n.measureText(e.textContent);u>0&&(l=`scaleX(${h*s/u})`)}0!==i.angle&&(l=`rotate(${i.angle}deg) ${l}`);l.length>0&&(o.transform=l)}class TextLayerRenderTask{constructor({textContentSource:t,container:e,viewport:s,textDivs:a,textDivProperties:r,textContentItemsStr:o,isOffscreenCanvasSupported:l}){this._textContentSource=t;this._isReadableStream=t instanceof ReadableStream;this._container=this._rootContainer=e;this._textDivs=a||[];this._textContentItemsStr=o||[];this._isOffscreenCanvasSupported=l;this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled;this._reader=null;this._textDivProperties=r||new WeakMap;this._canceled=!1;this._capability=(0,i.createPromiseCapability)();this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:s.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:getCtx(0,l)};const{pageWidth:c,pageHeight:h,pageX:d,pageY:u}=s.rawDims;this._transform=[1,0,0,-1,-d,u+h];this._pageWidth=c;this._pageHeight=h;(0,n.setLayerDimensions)(e,s);this._capability.promise.finally((()=>{this._layoutTextParams=null})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0;if(this._reader){this._reader.cancel(new i.AbortException("TextLayer task cancelled.")).catch((()=>{}));this._reader=null}this._capability.reject(new i.AbortException("TextLayer task cancelled."))}_processItems(t,e){for(const s of t)if(void 0!==s.str){this._textContentItemsStr.push(s.str);appendText(this,s,e)}else if("beginMarkedContentProps"===s.type||"beginMarkedContent"===s.type){const t=this._container;this._container=document.createElement("span");this._container.classList.add("markedContent");null!==s.id&&this._container.setAttribute("id",`${s.id}`);t.append(this._container)}else"endMarkedContent"===s.type&&(this._container=this._container.parentNode)}_layoutText(t){const e=this._layoutTextParams.properties=this._textDivProperties.get(t);this._layoutTextParams.div=t;layout(this._layoutTextParams);e.hasText&&this._container.append(t);if(e.hasEOL){const t=document.createElement("br");t.setAttribute("role","presentation");this._container.append(t)}}_render(){const t=(0,i.createPromiseCapability)();let e=Object.create(null);if(this._isReadableStream){const pump=()=>{this._reader.read().then((({value:s,done:i})=>{if(i)t.resolve();else{Object.assign(e,s.styles);this._processItems(s.items,e);pump()}}),t.reject)};this._reader=this._textContentSource.getReader();pump()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');{const{items:e,styles:s}=this._textContentSource;this._processItems(e,s);t.resolve()}}t.promise.then((()=>{e=null;!function render(t){if(t._canceled)return;const e=t._textDivs,s=t._capability;if(e.length>1e5)s.resolve();else{if(!t._isReadableStream)for(const s of e)t._layoutText(s);s.resolve()}}(this)}),this._capability.reject)}}e.TextLayerRenderTask=TextLayerRenderTask},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.AnnotationEditorLayer=void 0;var i=s(1),n=s(5),a=s(28),r=s(29),o=s(6);class AnnotationEditorLayer{#Ft;#Mt=!1;#Rt=this.pointerup.bind(this);#Dt=this.pointerdown.bind(this);#It=new Map;#Ot=!1;#Lt=!1;#Nt;static _initialized=!1;constructor(t){if(!AnnotationEditorLayer._initialized){AnnotationEditorLayer._initialized=!0;a.FreeTextEditor.initialize(t.l10n);r.InkEditor.initialize(t.l10n)}t.uiManager.registerEditorTypes([a.FreeTextEditor,r.InkEditor]);this.#Nt=t.uiManager;this.pageIndex=t.pageIndex;this.div=t.div;this.#Ft=t.accessibilityManager;this.#Nt.addLayer(this)}get isEmpty(){return 0===this.#It.size}updateToolbar(t){this.#Nt.updateToolbar(t)}updateMode(t=this.#Nt.getMode()){this.#Bt();if(t===i.AnnotationEditorType.INK){this.addInkEditorIfNeeded(!1);this.disableClick()}else this.enableClick();this.#Nt.unselectAll();if(t!==i.AnnotationEditorType.NONE){this.div.classList.toggle("freeTextEditing",t===i.AnnotationEditorType.FREETEXT);this.div.classList.toggle("inkEditing",t===i.AnnotationEditorType.INK);this.div.hidden=!1}}addInkEditorIfNeeded(t){if(!t&&this.#Nt.getMode()!==i.AnnotationEditorType.INK)return;if(!t)for(const t of this.#It.values())if(t.isEmpty()){t.setInBackground();return}this.#jt({offsetX:0,offsetY:0}).setInBackground()}setEditingState(t){this.#Nt.setEditingState(t)}addCommands(t){this.#Nt.addCommands(t)}enable(){this.div.style.pointerEvents="auto";for(const t of this.#It.values())t.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const t of this.#It.values())t.disableEditing();this.#Bt();this.isEmpty&&(this.div.hidden=!0)}setActiveEditor(t){this.#Nt.getActive()!==t&&this.#Nt.setActiveEditor(t)}enableClick(){this.div.addEventListener("pointerdown",this.#Dt);this.div.addEventListener("pointerup",this.#Rt)}disableClick(){this.div.removeEventListener("pointerdown",this.#Dt);this.div.removeEventListener("pointerup",this.#Rt)}attach(t){this.#It.set(t.id,t)}detach(t){this.#It.delete(t.id);this.#Ft?.removePointerInTextLayer(t.contentDiv)}remove(t){this.#Nt.removeEditor(t);this.detach(t);t.div.style.display="none";setTimeout((()=>{t.div.style.display="";t.div.remove();t.isAttachedToDOM=!1;document.activeElement===document.body&&this.#Nt.focusMainContainer()}),0);this.#Lt||this.addInkEditorIfNeeded(!1)}#Ut(t){if(t.parent!==this){this.attach(t);t.parent?.detach(t);t.setParent(this);if(t.div&&t.isAttachedToDOM){t.div.remove();this.div.append(t.div)}}}add(t){this.#Ut(t);this.#Nt.addEditor(t);this.attach(t);if(!t.isAttachedToDOM){const e=t.render();this.div.append(e);t.isAttachedToDOM=!0}this.moveEditorInDOM(t);t.onceAdded();this.#Nt.addToAnnotationStorage(t)}moveEditorInDOM(t){this.#Ft?.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}addOrRebuild(t){t.needsToBeRebuilt()?t.rebuild():this.add(t)}addANewEditor(t){this.addCommands({cmd:()=>{this.addOrRebuild(t)},undo:()=>{t.remove()},mustExec:!0})}addUndoableEditor(t){this.addCommands({cmd:()=>{this.addOrRebuild(t)},undo:()=>{t.remove()},mustExec:!1})}getNextId(){return this.#Nt.getId()}#qt(t){switch(this.#Nt.getMode()){case i.AnnotationEditorType.FREETEXT:return new a.FreeTextEditor(t);case i.AnnotationEditorType.INK:return new r.InkEditor(t)}return null}deserialize(t){switch(t.annotationType){case i.AnnotationEditorType.FREETEXT:return a.FreeTextEditor.deserialize(t,this,this.#Nt);case i.AnnotationEditorType.INK:return r.InkEditor.deserialize(t,this,this.#Nt)}return null}#jt(t){const e=this.getNextId(),s=this.#qt({parent:this,id:e,x:t.offsetX,y:t.offsetY,uiManager:this.#Nt});s&&this.add(s);return s}setSelected(t){this.#Nt.setSelected(t)}toggleSelected(t){this.#Nt.toggleSelected(t)}isSelected(t){return this.#Nt.isSelected(t)}unselect(t){this.#Nt.unselect(t)}pointerup(t){const{isMac:e}=i.FeatureTest.platform;if(!(0!==t.button||t.ctrlKey&&e)&&t.target===this.div&&this.#Ot){this.#Ot=!1;this.#Mt?this.#jt(t):this.#Mt=!0}}pointerdown(t){const{isMac:e}=i.FeatureTest.platform;if(0!==t.button||t.ctrlKey&&e)return;if(t.target!==this.div)return;this.#Ot=!0;const s=this.#Nt.getActive();this.#Mt=!s||s.isEmpty()}drop(t){const e=t.dataTransfer.getData("text/plain"),s=this.#Nt.getEditor(e);if(!s)return;t.preventDefault();t.dataTransfer.dropEffect="move";this.#Ut(s);const i=this.div.getBoundingClientRect(),n=t.clientX-i.x,a=t.clientY-i.y;s.translate(n-s.startX,a-s.startY);this.moveEditorInDOM(s);s.div.focus()}dragover(t){t.preventDefault()}destroy(){this.#Nt.getActive()?.parent===this&&this.#Nt.setActiveEditor(null);for(const t of this.#It.values()){this.#Ft?.removePointerInTextLayer(t.contentDiv);t.setParent(null);t.isAttachedToDOM=!1;t.div.remove()}this.div=null;this.#It.clear();this.#Nt.removeLayer(this)}#Bt(){this.#Lt=!0;for(const t of this.#It.values())t.isEmpty()&&t.remove();this.#Lt=!1}render({viewport:t}){this.viewport=t;(0,o.setLayerDimensions)(this.div,t);(0,n.bindEvents)(this,this.div,["dragover","drop"]);for(const t of this.#Nt.getEditors(this.pageIndex))this.add(t);this.updateMode()}update({viewport:t}){this.#Nt.commitOrRemove();this.viewport=t;(0,o.setLayerDimensions)(this.div,{rotation:t.rotation});this.updateMode()}get pageDimensions(){const{pageWidth:t,pageHeight:e}=this.viewport.rawDims;return[t,e]}}e.AnnotationEditorLayer=AnnotationEditorLayer},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.FreeTextEditor=void 0;var i=s(1),n=s(5),a=s(4);class FreeTextEditor extends a.AnnotationEditor{#Wt=this.editorDivBlur.bind(this);#Gt=this.editorDivFocus.bind(this);#Ht=this.editorDivInput.bind(this);#zt=this.editorDivKeydown.bind(this);#Vt;#Xt="";#$t=`${this.id}-editor`;#Kt=!1;#Yt;static _freeTextDefaultContent="";static _l10nPromise;static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static _keyboardManager=new n.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],FreeTextEditor.prototype.commitOrRemove]]);static _type="freetext";constructor(t){super({...t,name:"freeTextEditor"});this.#Vt=t.color||FreeTextEditor._defaultColor||a.AnnotationEditor._defaultLineColor;this.#Yt=t.fontSize||FreeTextEditor._defaultFontSize}static initialize(t){this._l10nPromise=new Map(["free_text2_default_content","editor_free_text2_aria_label"].map((e=>[e,t.get(e)])));const e=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(e.getPropertyValue("--freetext-padding"))}static updateDefaultParams(t,e){switch(t){case i.AnnotationEditorParamsType.FREETEXT_SIZE:FreeTextEditor._defaultFontSize=e;break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:FreeTextEditor._defaultColor=e}}updateParams(t,e){switch(t){case i.AnnotationEditorParamsType.FREETEXT_SIZE:this.#Jt(e);break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:this.#Qt(e)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,FreeTextEditor._defaultFontSize],[i.AnnotationEditorParamsType.FREETEXT_COLOR,FreeTextEditor._defaultColor||a.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,this.#Yt],[i.AnnotationEditorParamsType.FREETEXT_COLOR,this.#Vt]]}#Jt(t){const setFontsize=t=>{this.editorDiv.style.fontSize=`calc(${t}px * var(--scale-factor))`;this.translate(0,-(t-this.#Yt)*this.parentScale);this.#Yt=t;this.#Zt()},e=this.#Yt;this.addCommands({cmd:()=>{setFontsize(t)},undo:()=>{setFontsize(e)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#Qt(t){const e=this.#Vt;this.addCommands({cmd:()=>{this.#Vt=this.editorDiv.style.color=t},undo:()=>{this.#Vt=this.editorDiv.style.color=e},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}getInitialTranslation(){const t=this.parentScale;return[-FreeTextEditor._internalPadding*t,-(FreeTextEditor._internalPadding+this.#Yt)*t]}rebuild(){super.rebuild();null!==this.div&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){if(!this.isInEditMode()){this.parent.setEditingState(!1);this.parent.updateToolbar(i.AnnotationEditorType.FREETEXT);super.enableEditMode();this.overlayDiv.classList.remove("enabled");this.editorDiv.contentEditable=!0;this.div.draggable=!1;this.div.removeAttribute("aria-activedescendant");this.editorDiv.addEventListener("keydown",this.#zt);this.editorDiv.addEventListener("focus",this.#Gt);this.editorDiv.addEventListener("blur",this.#Wt);this.editorDiv.addEventListener("input",this.#Ht)}}disableEditMode(){if(this.isInEditMode()){this.parent.setEditingState(!0);super.disableEditMode();this.overlayDiv.classList.add("enabled");this.editorDiv.contentEditable=!1;this.div.setAttribute("aria-activedescendant",this.#$t);this.div.draggable=!0;this.editorDiv.removeEventListener("keydown",this.#zt);this.editorDiv.removeEventListener("focus",this.#Gt);this.editorDiv.removeEventListener("blur",this.#Wt);this.editorDiv.removeEventListener("input",this.#Ht);this.div.focus({preventScroll:!0});this.isEditing=!1;this.parent.div.classList.add("freeTextEditing")}}focusin(t){super.focusin(t);t.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){if(!this.width){this.enableEditMode();this.editorDiv.focus()}}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1;this.parent.setEditingState(!0);this.parent.div.classList.add("freeTextEditing");super.remove()}#te(){const t=this.editorDiv.getElementsByTagName("div");if(0===t.length)return this.editorDiv.innerText;const e=[];for(const s of t)e.push(s.innerText.replace(/\r\n?|\n/,""));return e.join("\n")}#Zt(){const[t,e]=this.parentDimensions;let s;if(this.isAttachedToDOM)s=this.div.getBoundingClientRect();else{const{currentLayer:t,div:e}=this,i=e.style.display;e.style.display="hidden";t.div.append(this.div);s=e.getBoundingClientRect();e.remove();e.style.display=i}this.width=s.width/t;this.height=s.height/e}commit(){if(this.isInEditMode()){super.commit();if(!this.#Kt){this.#Kt=!0;this.parent.addUndoableEditor(this)}this.disableEditMode();this.#Xt=this.#te().trimEnd();this.#Zt()}}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(t){this.enableEditMode();this.editorDiv.focus()}keydown(t){if(t.target===this.div&&"Enter"===t.key){this.enableEditMode();this.editorDiv.focus()}}editorDivKeydown(t){FreeTextEditor._keyboardManager.exec(this,t)}editorDivFocus(t){this.isEditing=!0}editorDivBlur(t){this.isEditing=!1}editorDivInput(t){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment");this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox");this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let t,e;if(this.width){t=this.x;e=this.y}super.render();this.editorDiv=document.createElement("div");this.editorDiv.className="internal";this.editorDiv.setAttribute("id",this.#$t);this.enableEditing();FreeTextEditor._l10nPromise.get("editor_free_text2_aria_label").then((t=>this.editorDiv?.setAttribute("aria-label",t)));FreeTextEditor._l10nPromise.get("free_text2_default_content").then((t=>this.editorDiv?.setAttribute("default-content",t)));this.editorDiv.contentEditable=!0;const{style:s}=this.editorDiv;s.fontSize=`calc(${this.#Yt}px * var(--scale-factor))`;s.color=this.#Vt;this.div.append(this.editorDiv);this.overlayDiv=document.createElement("div");this.overlayDiv.classList.add("overlay","enabled");this.div.append(this.overlayDiv);(0,n.bindEvents)(this,this.div,["dblclick","keydown"]);if(this.width){const[s,i]=this.parentDimensions;this.setAt(t*s,e*i,this.width*s,this.height*i);for(const t of this.#Xt.split("\n")){const e=document.createElement("div");e.append(t?document.createTextNode(t):document.createElement("br"));this.editorDiv.append(e)}this.div.draggable=!0;this.editorDiv.contentEditable=!1}else{this.div.draggable=!1;this.editorDiv.contentEditable=!0}return this.div}get contentDiv(){return this.editorDiv}static deserialize(t,e,s){const n=super.deserialize(t,e,s);n.#Yt=t.fontSize;n.#Vt=i.Util.makeHexColor(...t.color);n.#Xt=t.value;return n}serialize(){if(this.isEmpty())return null;const t=FreeTextEditor._internalPadding*this.parentScale,e=this.getRect(t,t),s=a.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#Vt);return{annotationType:i.AnnotationEditorType.FREETEXT,color:s,fontSize:this.#Yt,value:this.#Xt,pageIndex:this.pageIndex,rect:e,rotation:this.rotation}}}e.FreeTextEditor=FreeTextEditor},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.InkEditor=void 0;Object.defineProperty(e,"fitCurve",{enumerable:!0,get:function(){return a.fitCurve}});var i=s(1),n=s(4),a=s(30),r=s(5);const o=16;class InkEditor extends n.AnnotationEditor{#ee=0;#se=0;#ie=0;#ne=this.canvasPointermove.bind(this);#ae=this.canvasPointerleave.bind(this);#re=this.canvasPointerup.bind(this);#oe=this.canvasPointerdown.bind(this);#le=!1;#ce=!1;#he=null;#de=null;#ue=0;#pe=0;#fe=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _l10nPromise;static _type="ink";constructor(t){super({...t,name:"inkEditor"});this.color=t.color||null;this.thickness=t.thickness||null;this.opacity=t.opacity||null;this.paths=[];this.bezierPath2D=[];this.currentPath=[];this.scaleFactor=1;this.translationX=this.translationY=0;this.x=0;this.y=0}static initialize(t){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink2_aria_label"].map((e=>[e,t.get(e)])))}static updateDefaultParams(t,e){switch(t){case i.AnnotationEditorParamsType.INK_THICKNESS:InkEditor._defaultThickness=e;break;case i.AnnotationEditorParamsType.INK_COLOR:InkEditor._defaultColor=e;break;case i.AnnotationEditorParamsType.INK_OPACITY:InkEditor._defaultOpacity=e/100}}updateParams(t,e){switch(t){case i.AnnotationEditorParamsType.INK_THICKNESS:this.#ge(e);break;case i.AnnotationEditorParamsType.INK_COLOR:this.#Qt(e);break;case i.AnnotationEditorParamsType.INK_OPACITY:this.#me(e)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,InkEditor._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,InkEditor._defaultColor||n.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*InkEditor._defaultOpacity)]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||InkEditor._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,this.color||InkEditor._defaultColor||n.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??InkEditor._defaultOpacity))]]}#ge(t){const e=this.thickness;this.addCommands({cmd:()=>{this.thickness=t;this.#be()},undo:()=>{this.thickness=e;this.#be()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#Qt(t){const e=this.color;this.addCommands({cmd:()=>{this.color=t;this.#Ae()},undo:()=>{this.color=e;this.#Ae()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#me(t){t/=100;const e=this.opacity;this.addCommands({cmd:()=>{this.opacity=t;this.#Ae()},undo:()=>{this.opacity=e;this.#Ae()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){super.rebuild();if(null!==this.div){if(!this.canvas){this.#_e();this.#ye()}if(!this.isAttachedToDOM){this.parent.add(this);this.#ve()}this.#be()}}remove(){if(null!==this.canvas){this.isEmpty()||this.commit();this.canvas.width=this.canvas.height=0;this.canvas.remove();this.canvas=null;this.#de.disconnect();this.#de=null;super.remove()}}setParent(t){!this.parent&&t?this._uiManager.removeShouldRescale(this):this.parent&&null===t&&this._uiManager.addShouldRescale(this);super.setParent(t)}onScaleChanging(){const[t,e]=this.parentDimensions,s=this.width*t,i=this.height*e;this.setDimensions(s,i)}enableEditMode(){if(!this.#le&&null!==this.canvas){super.enableEditMode();this.div.draggable=!1;this.canvas.addEventListener("pointerdown",this.#oe);this.canvas.addEventListener("pointerup",this.#re)}}disableEditMode(){if(this.isInEditMode()&&null!==this.canvas){super.disableEditMode();this.div.draggable=!this.isEmpty();this.div.classList.remove("editing");this.canvas.removeEventListener("pointerdown",this.#oe);this.canvas.removeEventListener("pointerup",this.#re)}}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}#Se(){const{parentRotation:t,parentDimensions:[e,s]}=this;switch(t){case 90:return[0,s,s,e];case 180:return[e,s,e,s];case 270:return[e,0,s,e];default:return[0,0,e,s]}}#xe(){const{ctx:t,color:e,opacity:s,thickness:i,parentScale:n,scaleFactor:a}=this;t.lineWidth=i*n/a;t.lineCap="round";t.lineJoin="round";t.miterLimit=10;t.strokeStyle=`${e}${(0,r.opacityToHex)(s)}`}#Ee(t,e){this.isEditing=!0;if(!this.#ce){this.#ce=!0;this.#ve();this.thickness||=InkEditor._defaultThickness;this.color||=InkEditor._defaultColor||n.AnnotationEditor._defaultLineColor;this.opacity??=InkEditor._defaultOpacity}this.currentPath.push([t,e]);this.#he=null;this.#xe();this.ctx.beginPath();this.ctx.moveTo(t,e);this.#fe=()=>{if(this.#fe){if(this.#he){if(this.isEmpty()){this.ctx.setTransform(1,0,0,1,0,0);this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}else this.#Ae();this.ctx.lineTo(...this.#he);this.#he=null;this.ctx.stroke()}window.requestAnimationFrame(this.#fe)}};window.requestAnimationFrame(this.#fe)}#Ce(t,e){const[s,i]=this.currentPath.at(-1);if(t!==s||e!==i){this.currentPath.push([t,e]);this.#he=[t,e]}}#Pe(t,e){this.ctx.closePath();this.#fe=null;t=Math.min(Math.max(t,0),this.canvas.width);e=Math.min(Math.max(e,0),this.canvas.height);const[s,i]=this.currentPath.at(-1);t===s&&e===i||this.currentPath.push([t,e]);let n;if(1!==this.currentPath.length)n=(0,a.fitCurve)(this.currentPath,30,null);else{const s=[t,e];n=[[s,s.slice(),s.slice(),s]]}const r=InkEditor.#Te(n);this.currentPath.length=0;this.addCommands({cmd:()=>{this.paths.push(n);this.bezierPath2D.push(r);this.rebuild()},undo:()=>{this.paths.pop();this.bezierPath2D.pop();if(0===this.paths.length)this.remove();else{if(!this.canvas){this.#_e();this.#ye()}this.#be()}},mustExec:!0})}#Ae(){if(this.isEmpty()){this.#we();return}this.#xe();const{canvas:t,ctx:e}=this;e.setTransform(1,0,0,1,0,0);e.clearRect(0,0,t.width,t.height);this.#we();for(const t of this.bezierPath2D)e.stroke(t)}commit(){if(!this.#le){super.commit();this.isEditing=!1;this.disableEditMode();this.setInForeground();this.#le=!0;this.div.classList.add("disabled");this.#be(!0);this.parent.addInkEditorIfNeeded(!0);this.parent.moveEditorInDOM(this);this.div.focus({preventScroll:!0})}}focusin(t){super.focusin(t);this.enableEditMode()}canvasPointerdown(t){if(0===t.button&&this.isInEditMode()&&!this.#le){this.setInForeground();"mouse"!==t.type&&this.div.focus();t.stopPropagation();this.canvas.addEventListener("pointerleave",this.#ae);this.canvas.addEventListener("pointermove",this.#ne);this.#Ee(t.offsetX,t.offsetY)}}canvasPointermove(t){t.stopPropagation();this.#Ce(t.offsetX,t.offsetY)}canvasPointerup(t){if(0===t.button&&this.isInEditMode()&&0!==this.currentPath.length){t.stopPropagation();this.#ke(t);this.setInBackground()}}canvasPointerleave(t){this.#ke(t);this.setInBackground()}#ke(t){this.#Pe(t.offsetX,t.offsetY);this.canvas.removeEventListener("pointerleave",this.#ae);this.canvas.removeEventListener("pointermove",this.#ne);this.addToAnnotationStorage()}#_e(){this.canvas=document.createElement("canvas");this.canvas.width=this.canvas.height=0;this.canvas.className="inkEditorCanvas";InkEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((t=>this.canvas?.setAttribute("aria-label",t)));this.div.append(this.canvas);this.ctx=this.canvas.getContext("2d")}#ye(){this.#de=new ResizeObserver((t=>{const e=t[0].contentRect;e.width&&e.height&&this.setDimensions(e.width,e.height)}));this.#de.observe(this.div)}render(){if(this.div)return this.div;let t,e;if(this.width){t=this.x;e=this.y}super.render();InkEditor._l10nPromise.get("editor_ink2_aria_label").then((t=>this.div?.setAttribute("aria-label",t)));const[s,i,n,a]=this.#Se();this.setAt(s,i,0,0);this.setDims(n,a);this.#_e();if(this.width){const[s,i]=this.parentDimensions;this.setAt(t*s,e*i,this.width*s,this.height*i);this.#ce=!0;this.#ve();this.setDims(this.width*s,this.height*i);this.#Ae();this.#Fe();this.div.classList.add("disabled")}else{this.div.classList.add("editing");this.enableEditMode()}this.#ye();return this.div}#ve(){if(!this.#ce)return;const[t,e]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*t);this.canvas.height=Math.ceil(this.height*e);this.#we()}setDimensions(t,e){const s=Math.round(t),i=Math.round(e);if(this.#ue===s&&this.#pe===i)return;this.#ue=s;this.#pe=i;this.canvas.style.visibility="hidden";if(this.#ee&&Math.abs(this.#ee-t/e)>.01){e=Math.ceil(t/this.#ee);this.setDims(t,e)}const[n,a]=this.parentDimensions;this.width=t/n;this.height=e/a;this.#le&&this.#Me(t,e);this.#ve();this.#Ae();this.canvas.style.visibility="visible";this.fixDims()}#Me(t,e){const s=this.#Re(),i=(t-s)/this.#ie,n=(e-s)/this.#se;this.scaleFactor=Math.min(i,n)}#we(){const t=this.#Re()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+t,this.translationY*this.scaleFactor+t)}static#Te(t){const e=new Path2D;for(let s=0,i=t.length;s=1){t.minHeight="16px";t.minWidth=`${Math.round(this.#ee*o)}px`}else{t.minWidth="16px";t.minHeight=`${Math.round(o/this.#ee)}px`}}static deserialize(t,e,s){const n=super.deserialize(t,e,s);n.thickness=t.thickness;n.color=i.Util.makeHexColor(...t.color);n.opacity=t.opacity;const[a,r]=n.pageDimensions,l=n.width*a,c=n.height*r,h=n.parentScale,d=t.thickness/2;n.#ee=l/c;n.#le=!0;n.#ue=Math.round(l);n.#pe=Math.round(c);for(const{bezier:e}of t.paths){const t=[];n.paths.push(t);let s=h*(e[0]-d),i=h*(c-e[1]-d);for(let n=2,a=e.length;n{Object.defineProperty(e,"__esModule",{value:!0});e.fitCurve=void 0;const i=s(31);e.fitCurve=i},t=>{function fitCubic(t,e,s,i,n){var a,r,o,l,c,h,d,u,p,f,g,m,b;if(2===t.length){m=maths.vectorLen(maths.subtract(t[0],t[1]))/3;return[a=[t[0],maths.addArrays(t[0],maths.mulItems(e,m)),maths.addArrays(t[1],maths.mulItems(s,m)),t[1]]]}r=function chordLengthParameterize(t){var e,s,i,n=[];t.forEach(((t,a)=>{e=a?s+maths.vectorLen(maths.subtract(t,i)):0;n.push(e);s=e;i=t}));n=n.map((t=>t/s));return n}(t);[a,l,h]=generateAndReport(t,r,r,e,s,n);if(0===l||l.9999&&t<1.0001)break}c=l;d=h}}g=[];if((u=maths.subtract(t[h-1],t[h+1])).every((t=>0===t))){u=maths.subtract(t[h-1],t[h]);[u[0],u[1]]=[-u[1],u[0]]}p=maths.normalize(u);f=maths.mulItems(p,-1);return g=(g=g.concat(fitCubic(t.slice(0,h+1),e,p,i,n))).concat(fitCubic(t.slice(h),f,s,i,n))}function generateAndReport(t,e,s,i,n,a){var r,o,l;r=function generateBezier(t,e,s,i){var n,a,r,o,l,c,h,d,u,p,f,g,m,b,A,_,y,v=t[0],S=t[t.length-1];n=[v,null,null,S];a=maths.zeros_Xx2x2(e.length);for(m=0,b=e.length;mn){n=i;a=o}}return[n,a]}(t,r,e);a&&a({bez:r,points:t,params:e,maxErr:o,maxPoint:l});return[r,o,l]}function reparameterize(t,e,s){return s.map(((s,i)=>newtonRaphsonRootFind(t,e[i],s)))}function newtonRaphsonRootFind(t,e,s){var i=maths.subtract(bezier.q(t,s),e),n=bezier.qprime(t,s),a=maths.mulMatrix(i,n),r=maths.sum(maths.squareItems(n))+2*maths.mulMatrix(i,bezier.qprimeprime(t,s));return 0===r?s:s-a/r}var mapTtoRelativeDistances=function(t,e){for(var s,i=[0],n=t[0],a=0,r=1;r<=e;r++){s=bezier.q(t,r/e);a+=maths.vectorLen(maths.subtract(s,n));i.push(a);n=s}return i=i.map((t=>t/a))};function find_t(t,e,s,i){if(e<0)return 0;if(e>1)return 1;for(var n,a,r,o,l=1;l<=i;l++)if(e<=s[l]){r=(l-1)/i;a=l/i;o=(e-(n=s[l-1]))/(s[l]-n)*(a-r)+r;break}return o}function createTangent(t,e){return maths.normalize(maths.subtract(t,e))}class maths{static zeros_Xx2x2(t){for(var e=[];t--;)e.push([0,0]);return e}static mulItems(t,e){return t.map((t=>t*e))}static mulMatrix(t,e){return t.reduce(((t,s,i)=>t+s*e[i]),0)}static subtract(t,e){return t.map(((t,s)=>t-e[s]))}static addArrays(t,e){return t.map(((t,s)=>t+e[s]))}static addItems(t,e){return t.map((t=>t+e))}static sum(t){return t.reduce(((t,e)=>t+e))}static dot(t,e){return maths.mulMatrix(t,e)}static vectorLen(t){return Math.hypot(...t)}static divItems(t,e){return t.map((t=>t/e))}static squareItems(t){return t.map((t=>t*t))}static normalize(t){return this.divItems(t,this.vectorLen(t))}}class bezier{static q(t,e){var s=1-e,i=maths.mulItems(t[0],s*s*s),n=maths.mulItems(t[1],3*s*s*e),a=maths.mulItems(t[2],3*s*e*e),r=maths.mulItems(t[3],e*e*e);return maths.addArrays(maths.addArrays(i,n),maths.addArrays(a,r))}static qprime(t,e){var s=1-e,i=maths.mulItems(maths.subtract(t[1],t[0]),3*s*s),n=maths.mulItems(maths.subtract(t[2],t[1]),6*s*e),a=maths.mulItems(maths.subtract(t[3],t[2]),3*e*e);return maths.addArrays(maths.addArrays(i,n),a)}static qprimeprime(t,e){return maths.addArrays(maths.mulItems(maths.addArrays(maths.subtract(t[2],maths.mulItems(t[1],2)),t[0]),6*(1-e)),maths.mulItems(maths.addArrays(maths.subtract(t[3],maths.mulItems(t[2],2)),t[1]),6*e))}}t.exports=function fitCurve(t,e,s){if(!Array.isArray(t))throw new TypeError("First argument should be an array");t.forEach((e=>{if(!Array.isArray(e)||e.some((t=>"number"!=typeof t))||e.length!==t[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")}));if((t=t.filter(((e,s)=>0===s||!e.every(((e,i)=>e===t[s-1][i]))))).length<2)return[];const i=t.length,n=createTangent(t[1],t[0]),a=createTangent(t[i-2],t[i-1]);return fitCubic(t,n,a,e,s)};t.exports.fitCubic=fitCubic;t.exports.createTangent=createTangent},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.AnnotationLayer=void 0;var i=s(1),n=s(6),a=s(3),r=s(33),o=s(34);const l=1e3,c=new WeakSet;function getRectDims(t){return{width:t[2]-t[0],height:t[3]-t[1]}}class AnnotationElementFactory{static create(t){switch(t.data.annotationType){case i.AnnotationType.LINK:return new LinkAnnotationElement(t);case i.AnnotationType.TEXT:return new TextAnnotationElement(t);case i.AnnotationType.WIDGET:switch(t.data.fieldType){case"Tx":return new TextWidgetAnnotationElement(t);case"Btn":return t.data.radioButton?new RadioButtonWidgetAnnotationElement(t):t.data.checkBox?new CheckboxWidgetAnnotationElement(t):new PushButtonWidgetAnnotationElement(t);case"Ch":return new ChoiceWidgetAnnotationElement(t)}return new WidgetAnnotationElement(t);case i.AnnotationType.POPUP:return new PopupAnnotationElement(t);case i.AnnotationType.FREETEXT:return new FreeTextAnnotationElement(t);case i.AnnotationType.LINE:return new LineAnnotationElement(t);case i.AnnotationType.SQUARE:return new SquareAnnotationElement(t);case i.AnnotationType.CIRCLE:return new CircleAnnotationElement(t);case i.AnnotationType.POLYLINE:return new PolylineAnnotationElement(t);case i.AnnotationType.CARET:return new CaretAnnotationElement(t);case i.AnnotationType.INK:return new InkAnnotationElement(t);case i.AnnotationType.POLYGON:return new PolygonAnnotationElement(t);case i.AnnotationType.HIGHLIGHT:return new HighlightAnnotationElement(t);case i.AnnotationType.UNDERLINE:return new UnderlineAnnotationElement(t);case i.AnnotationType.SQUIGGLY:return new SquigglyAnnotationElement(t);case i.AnnotationType.STRIKEOUT:return new StrikeOutAnnotationElement(t);case i.AnnotationType.STAMP:return new StampAnnotationElement(t);case i.AnnotationType.FILEATTACHMENT:return new FileAttachmentAnnotationElement(t);default:return new AnnotationElement(t)}}}class AnnotationElement{constructor(t,{isRenderable:e=!1,ignoreBorder:s=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=e;this.data=t.data;this.layer=t.layer;this.page=t.page;this.viewport=t.viewport;this.linkService=t.linkService;this.downloadManager=t.downloadManager;this.imageResourcesPath=t.imageResourcesPath;this.renderForms=t.renderForms;this.svgFactory=t.svgFactory;this.annotationStorage=t.annotationStorage;this.enableScripting=t.enableScripting;this.hasJSActions=t.hasJSActions;this._fieldObjects=t.fieldObjects;e&&(this.container=this._createContainer(s));i&&(this.quadrilaterals=this._createQuadrilaterals(s))}_createContainer(t=!1){const{data:e,page:s,viewport:n}=this,a=document.createElement("section");a.setAttribute("data-annotation-id",e.id);e.noRotate&&a.classList.add("norotate");const{pageWidth:r,pageHeight:o,pageX:l,pageY:c}=n.rawDims,{width:h,height:d}=getRectDims(e.rect),u=i.Util.normalizeRect([e.rect[0],s.view[3]-e.rect[1]+s.view[1],e.rect[2],s.view[3]-e.rect[3]+s.view[1]]);if(!t&&e.borderStyle.width>0){a.style.borderWidth=`${e.borderStyle.width}px`;const t=e.borderStyle.horizontalCornerRadius,s=e.borderStyle.verticalCornerRadius;if(t>0||s>0){const e=`calc(${t}px * var(--scale-factor)) / calc(${s}px * var(--scale-factor))`;a.style.borderRadius=e}else if(this instanceof RadioButtonWidgetAnnotationElement){const t=`calc(${h}px * var(--scale-factor)) / calc(${d}px * var(--scale-factor))`;a.style.borderRadius=t}switch(e.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}const n=e.borderColor||null;n?a.style.borderColor=i.Util.makeHexColor(0|n[0],0|n[1],0|n[2]):a.style.borderWidth=0}a.style.left=100*(u[0]-l)/r+"%";a.style.top=100*(u[1]-c)/o+"%";const{rotation:p}=e;if(e.hasOwnCanvas||0===p){a.style.width=100*h/r+"%";a.style.height=100*d/o+"%"}else this.setRotation(p,a);return a}setRotation(t,e=this.container){const{pageWidth:s,pageHeight:i}=this.viewport.rawDims,{width:n,height:a}=getRectDims(this.data.rect);let r,o;if(t%180==0){r=100*n/s;o=100*a/i}else{r=100*a/s;o=100*n/i}e.style.width=`${r}%`;e.style.height=`${o}%`;e.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const setColor=(t,e,s)=>{const i=s.detail[t];s.target.style[e]=r.ColorConverters[`${i[0]}_HTML`](i.slice(1))};return(0,i.shadow)(this,"_commonActions",{display:t=>{const e=t.detail.display%2==1;this.container.style.visibility=e?"hidden":"visible";this.annotationStorage.setValue(this.data.id,{hidden:e,print:0===t.detail.display||3===t.detail.display})},print:t=>{this.annotationStorage.setValue(this.data.id,{print:t.detail.print})},hidden:t=>{this.container.style.visibility=t.detail.hidden?"hidden":"visible";this.annotationStorage.setValue(this.data.id,{hidden:t.detail.hidden})},focus:t=>{setTimeout((()=>t.target.focus({preventScroll:!1})),0)},userName:t=>{t.target.title=t.detail.userName},readonly:t=>{t.detail.readonly?t.target.setAttribute("readonly",""):t.target.removeAttribute("readonly")},required:t=>{this._setRequired(t.target,t.detail.required)},bgColor:t=>{setColor("bgColor","backgroundColor",t)},fillColor:t=>{setColor("fillColor","backgroundColor",t)},fgColor:t=>{setColor("fgColor","color",t)},textColor:t=>{setColor("textColor","color",t)},borderColor:t=>{setColor("borderColor","borderColor",t)},strokeColor:t=>{setColor("strokeColor","borderColor",t)},rotation:t=>{const e=t.detail.rotation;this.setRotation(e);this.annotationStorage.setValue(this.data.id,{rotation:e})}})}_dispatchEventFromSandbox(t,e){const s=this._commonActions;for(const i of Object.keys(e.detail)){const n=t[i]||s[i];n?.(e)}}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const e=this.annotationStorage.getRawValue(this.data.id);if(!e)return;const s=this._commonActions;for(const[i,n]of Object.entries(e)){const a=s[i];if(a){a({detail:{[i]:n},target:t});delete e[i]}}}_createQuadrilaterals(t=!1){if(!this.data.quadPoints)return null;const e=[],s=this.data.rect;for(const s of this.data.quadPoints){this.data.rect=[s[2].x,s[2].y,s[1].x,s[1].y];e.push(this._createContainer(t))}this.data.rect=s;return e}_createPopup(t,e){let s=this.container;if(this.quadrilaterals){t=t||this.quadrilaterals;s=this.quadrilaterals[0]}if(!t){(t=document.createElement("div")).classList.add("popupTriggerArea");s.append(t)}const i=new PopupElement({container:s,trigger:t,color:e.color,titleObj:e.titleObj,modificationDate:e.modificationDate,contentsObj:e.contentsObj,richText:e.richText,hideWrapper:!0}).render();i.style.left="100%";s.append(i)}_renderQuadrilaterals(t){for(const e of this.quadrilaterals)e.classList.add(t);return this.quadrilaterals}render(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,e=null){const s=[];if(this._fieldObjects){const n=this._fieldObjects[t];if(n)for(const{page:t,id:a,exportValues:r}of n){if(-1===t)continue;if(a===e)continue;const n="string"==typeof r?r:null,o=document.querySelector(`[data-element-id="${a}"]`);!o||c.has(o)?s.push({id:a,exportValue:n,domElement:o}):(0,i.warn)(`_getElementsByName - element not allowed: ${a}`)}return s}for(const i of document.getElementsByName(t)){const{exportValue:t}=i,n=i.getAttribute("data-element-id");n!==e&&(c.has(i)&&s.push({id:n,exportValue:t,domElement:i}))}return s}}class LinkAnnotationElement extends AnnotationElement{constructor(t,e=null){super(t,{isRenderable:!0,ignoreBorder:!!e?.ignoreBorder,createQuadrilaterals:!0});this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:e}=this,s=document.createElement("a");s.setAttribute("data-element-id",t.id);let i=!1;if(t.url){e.addLinkAttributes(s,t.url,t.newWindow);i=!0}else if(t.action){this._bindNamedAction(s,t.action);i=!0}else if(t.attachment){this._bindAttachment(s,t.attachment);i=!0}else if(t.setOCGState){this.#Ne(s,t.setOCGState);i=!0}else if(t.dest){this._bindLink(s,t.dest);i=!0}else{if(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions){this._bindJSAction(s,t);i=!0}if(t.resetForm){this._bindResetFormAction(s,t.resetForm);i=!0}else if(this.isTooltipOnly&&!i){this._bindLink(s,"");i=!0}}if(this.quadrilaterals)return this._renderQuadrilaterals("linkAnnotation").map(((t,e)=>{const i=0===e?s:s.cloneNode();t.append(i);return t}));this.container.classList.add("linkAnnotation");i&&this.container.append(s);return this.container}#Be(){this.container.setAttribute("data-internal-link","")}_bindLink(t,e){t.href=this.linkService.getDestinationHash(e);t.onclick=()=>{e&&this.linkService.goToDestination(e);return!1};(e||""===e)&&this.#Be()}_bindNamedAction(t,e){t.href=this.linkService.getAnchorUrl("");t.onclick=()=>{this.linkService.executeNamedAction(e);return!1};this.#Be()}_bindAttachment(t,e){t.href=this.linkService.getAnchorUrl("");t.onclick=()=>{this.downloadManager?.openOrDownloadData(this.container,e.content,e.filename);return!1};this.#Be()}#Ne(t,e){t.href=this.linkService.getAnchorUrl("");t.onclick=()=>{this.linkService.executeSetOCGState(e);return!1};this.#Be()}_bindJSAction(t,e){t.href=this.linkService.getAnchorUrl("");const s=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const i of Object.keys(e.actions)){const n=s.get(i);n&&(t[n]=()=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e.id,name:i}});return!1})}t.onclick||(t.onclick=()=>!1);this.#Be()}_bindResetFormAction(t,e){const s=t.onclick;s||(t.href=this.linkService.getAnchorUrl(""));this.#Be();if(this._fieldObjects)t.onclick=()=>{s?.();const{fields:t,refs:n,include:a}=e,r=[];if(0!==t.length||0!==n.length){const e=new Set(n);for(const s of t){const t=this._fieldObjects[s]||[];for(const{id:s}of t)e.add(s)}for(const t of Object.values(this._fieldObjects))for(const s of t)e.has(s.id)===a&&r.push(s)}else for(const t of Object.values(this._fieldObjects))r.push(...t);const o=this.annotationStorage,l=[];for(const t of r){const{id:e}=t;l.push(e);switch(t.type){case"text":{const s=t.defaultValue||"";o.setValue(e,{value:s});break}case"checkbox":case"radiobutton":{const s=t.defaultValue===t.exportValues;o.setValue(e,{value:s});break}case"combobox":case"listbox":{const s=t.defaultValue||"";o.setValue(e,{value:s});break}default:continue}const s=document.querySelector(`[data-element-id="${e}"]`);s&&(c.has(s)?s.dispatchEvent(new Event("resetform")):(0,i.warn)(`_bindResetFormAction - element not allowed: ${e}`))}this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}});return!1};else{(0,i.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.');s||(t.onclick=()=>!1)}}}class TextAnnotationElement extends AnnotationElement{constructor(t){super(t,{isRenderable:!!(t.data.hasPopup||t.data.titleObj?.str||t.data.contentsObj?.str||t.data.richText?.str)})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg";t.alt="[{{type}} Annotation]";t.dataset.l10nId="text_annotation_type";t.dataset.l10nArgs=JSON.stringify({type:this.data.name});this.data.hasPopup||this._createPopup(t,this.data);this.container.append(t);return this.container}}class WidgetAnnotationElement extends AnnotationElement{render(){this.data.alternativeText&&(this.container.title=this.data.alternativeText);return this.container}_getKeyModifier(t){const{isWin:e,isMac:s}=i.FeatureTest.platform;return e&&t.ctrlKey||s&&t.metaKey}_setEventListener(t,e,s,i){e.includes("mouse")?t.addEventListener(e,(t=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:s,value:i(t),shift:t.shiftKey,modifier:this._getKeyModifier(t)}})})):t.addEventListener(e,(t=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:s,value:i(t)}})}))}_setEventListeners(t,e,s){for(const[i,n]of e)("Action"===n||this.data.actions?.[n])&&this._setEventListener(t,i,n,s)}_setBackgroundColor(t){const e=this.data.backgroundColor||null;t.style.backgroundColor=null===e?"transparent":i.Util.makeHexColor(e[0],e[1],e[2])}_setTextStyle(t){const e=["left","center","right"],{fontColor:s}=this.data.defaultAppearanceData,n=this.data.defaultAppearanceData.fontSize||9,a=t.style;let r;const roundToOneDecimal=t=>Math.round(10*t)/10;if(this.data.multiLine){const t=Math.abs(this.data.rect[3]-this.data.rect[1]-2),e=t/(Math.round(t/(i.LINE_FACTOR*n))||1);r=Math.min(n,roundToOneDecimal(e/i.LINE_FACTOR))}else{const t=Math.abs(this.data.rect[3]-this.data.rect[1]-2);r=Math.min(n,roundToOneDecimal(t/i.LINE_FACTOR))}a.fontSize=`calc(${r}px * var(--scale-factor))`;a.color=i.Util.makeHexColor(s[0],s[1],s[2]);null!==this.data.textAlignment&&(a.textAlign=e[this.data.textAlignment])}_setRequired(t,e){e?t.setAttribute("required",!0):t.removeAttribute("required");t.setAttribute("aria-required",e)}}class TextWidgetAnnotationElement extends WidgetAnnotationElement{constructor(t){super(t,{isRenderable:t.renderForms||!t.data.hasAppearance&&!!t.data.fieldValue})}setPropertyOnSiblings(t,e,s,i){const n=this.annotationStorage;for(const a of this._getElementsByName(t.name,t.id)){a.domElement&&(a.domElement[e]=s);n.setValue(a.id,{[i]:s})}}render(){const t=this.annotationStorage,e=this.data.id;this.container.classList.add("textWidgetAnnotation");let s=null;if(this.renderForms){const i=t.getValue(e,{value:this.data.fieldValue});let n=i.formattedValue||i.value||"";const a=t.getValue(e,{charLimit:this.data.maxLen}).charLimit;a&&n.length>a&&(n=n.slice(0,a));const r={userValue:n,formattedValue:null,lastCommittedValue:null,commitKey:1};if(this.data.multiLine){s=document.createElement("textarea");s.textContent=n;this.data.doNotScroll&&(s.style.overflowY="hidden")}else{s=document.createElement("input");s.type="text";s.setAttribute("value",n);this.data.doNotScroll&&(s.style.overflowX="hidden")}c.add(s);s.setAttribute("data-element-id",e);s.disabled=this.data.readOnly;s.name=this.data.fieldName;s.tabIndex=l;this._setRequired(s,this.data.required);a&&(s.maxLength=a);s.addEventListener("input",(i=>{t.setValue(e,{value:i.target.value});this.setPropertyOnSiblings(s,"value",i.target.value,"value")}));s.addEventListener("resetform",(t=>{const e=this.data.defaultFieldValue??"";s.value=r.userValue=e;r.formattedValue=null}));let blurListener=t=>{const{formattedValue:e}=r;null!=e&&(t.target.value=e);t.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){s.addEventListener("focus",(t=>{const{target:e}=t;r.userValue&&(e.value=r.userValue);r.lastCommittedValue=e.value;r.commitKey=1}));s.addEventListener("updatefromsandbox",(s=>{const i={value(s){r.userValue=s.detail.value??"";t.setValue(e,{value:r.userValue.toString()});s.target.value=r.userValue},formattedValue(s){const{formattedValue:i}=s.detail;r.formattedValue=i;null!=i&&s.target!==document.activeElement&&(s.target.value=i);t.setValue(e,{formattedValue:i})},selRange(t){t.target.setSelectionRange(...t.detail.selRange)},charLimit:s=>{const{charLimit:i}=s.detail,{target:n}=s;if(0===i){n.removeAttribute("maxLength");return}n.setAttribute("maxLength",i);let a=r.userValue;if(a&&!(a.length<=i)){a=a.slice(0,i);n.value=r.userValue=a;t.setValue(e,{value:a});this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:a,willCommit:!0,commitKey:1,selStart:n.selectionStart,selEnd:n.selectionEnd}})}}};this._dispatchEventFromSandbox(i,s)}));s.addEventListener("keydown",(t=>{r.commitKey=1;let s=-1;"Escape"===t.key?s=0:"Enter"!==t.key||this.data.multiLine?"Tab"===t.key&&(r.commitKey=3):s=2;if(-1===s)return;const{value:i}=t.target;if(r.lastCommittedValue!==i){r.lastCommittedValue=i;r.userValue=i;this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:i,willCommit:!0,commitKey:s,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}})}}));const i=blurListener;blurListener=null;s.addEventListener("blur",(t=>{if(!t.relatedTarget)return;const{value:s}=t.target;r.userValue=s;r.lastCommittedValue!==s&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:s,willCommit:!0,commitKey:r.commitKey,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}});i(t)}));this.data.actions?.Keystroke&&s.addEventListener("beforeinput",(t=>{r.lastCommittedValue=null;const{data:s,target:i}=t,{value:n,selectionStart:a,selectionEnd:o}=i;let l=a,c=o;switch(t.inputType){case"deleteWordBackward":{const t=n.substring(0,a).match(/\w*[^\w]*$/);t&&(l-=t[0].length);break}case"deleteWordForward":{const t=n.substring(a).match(/^[^\w]*\w*/);t&&(c+=t[0].length);break}case"deleteContentBackward":a===o&&(l-=1);break;case"deleteContentForward":a===o&&(c+=1)}t.preventDefault();this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:n,change:s||"",willCommit:!1,selStart:l,selEnd:c}})}));this._setEventListeners(s,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(t=>t.target.value))}blurListener&&s.addEventListener("blur",blurListener);if(this.data.comb){const t=(this.data.rect[2]-this.data.rect[0])/a;s.classList.add("comb");s.style.letterSpacing=`calc(${t}px * var(--scale-factor) - 1ch)`}}else{s=document.createElement("div");s.textContent=this.data.fieldValue;s.style.verticalAlign="middle";s.style.display="table-cell"}this._setTextStyle(s);this._setBackgroundColor(s);this._setDefaultPropertiesFromJS(s);this.container.append(s);return this.container}}class CheckboxWidgetAnnotationElement extends WidgetAnnotationElement{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,e=this.data,s=e.id;let i=t.getValue(s,{value:e.exportValue===e.fieldValue}).value;if("string"==typeof i){i="Off"!==i;t.setValue(s,{value:i})}this.container.classList.add("buttonWidgetAnnotation","checkBox");const n=document.createElement("input");c.add(n);n.setAttribute("data-element-id",s);n.disabled=e.readOnly;this._setRequired(n,this.data.required);n.type="checkbox";n.name=e.fieldName;i&&n.setAttribute("checked",!0);n.setAttribute("exportValue",e.exportValue);n.tabIndex=l;n.addEventListener("change",(i=>{const{name:n,checked:a}=i.target;for(const i of this._getElementsByName(n,s)){const s=a&&i.exportValue===e.exportValue;i.domElement&&(i.domElement.checked=s);t.setValue(i.id,{value:s})}t.setValue(s,{value:a})}));n.addEventListener("resetform",(t=>{const s=e.defaultFieldValue||"Off";t.target.checked=s===e.exportValue}));if(this.enableScripting&&this.hasJSActions){n.addEventListener("updatefromsandbox",(e=>{const i={value(e){e.target.checked="Off"!==e.detail.value;t.setValue(s,{value:e.target.checked})}};this._dispatchEventFromSandbox(i,e)}));this._setEventListeners(n,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(t=>t.target.checked))}this._setBackgroundColor(n);this._setDefaultPropertiesFromJS(n);this.container.append(n);return this.container}}class RadioButtonWidgetAnnotationElement extends WidgetAnnotationElement{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,e=this.data,s=e.id;let i=t.getValue(s,{value:e.fieldValue===e.buttonValue}).value;if("string"==typeof i){i=i!==e.buttonValue;t.setValue(s,{value:i})}const n=document.createElement("input");c.add(n);n.setAttribute("data-element-id",s);n.disabled=e.readOnly;this._setRequired(n,this.data.required);n.type="radio";n.name=e.fieldName;i&&n.setAttribute("checked",!0);n.tabIndex=l;n.addEventListener("change",(e=>{const{name:i,checked:n}=e.target;for(const e of this._getElementsByName(i,s))t.setValue(e.id,{value:!1});t.setValue(s,{value:n})}));n.addEventListener("resetform",(t=>{const s=e.defaultFieldValue;t.target.checked=null!=s&&s===e.buttonValue}));if(this.enableScripting&&this.hasJSActions){const i=e.buttonValue;n.addEventListener("updatefromsandbox",(e=>{const n={value:e=>{const n=i===e.detail.value;for(const i of this._getElementsByName(e.target.name)){const e=n&&i.id===s;i.domElement&&(i.domElement.checked=e);t.setValue(i.id,{value:e})}}};this._dispatchEventFromSandbox(n,e)}));this._setEventListeners(n,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(t=>t.target.checked))}this._setBackgroundColor(n);this._setDefaultPropertiesFromJS(n);this.container.append(n);return this.container}}class PushButtonWidgetAnnotationElement extends LinkAnnotationElement{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");this.data.alternativeText&&(t.title=this.data.alternativeText);const e=t.lastChild;if(this.enableScripting&&this.hasJSActions&&e){this._setDefaultPropertiesFromJS(e);e.addEventListener("updatefromsandbox",(t=>{this._dispatchEventFromSandbox({},t)}))}return t}}class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,e=this.data.id,s=t.getValue(e,{value:this.data.fieldValue}),i=document.createElement("select");c.add(i);i.setAttribute("data-element-id",e);i.disabled=this.data.readOnly;this._setRequired(i,this.data.required);i.name=this.data.fieldName;i.tabIndex=l;let n=this.data.combo&&this.data.options.length>0;if(!this.data.combo){i.size=this.data.options.length;this.data.multiSelect&&(i.multiple=!0)}i.addEventListener("resetform",(t=>{const e=this.data.defaultFieldValue;for(const t of i.options)t.selected=t.value===e}));for(const t of this.data.options){const e=document.createElement("option");e.textContent=t.displayValue;e.value=t.exportValue;if(s.value.includes(t.exportValue)){e.setAttribute("selected",!0);n=!1}i.append(e)}let a=null;if(n){const t=document.createElement("option");t.value=" ";t.setAttribute("hidden",!0);t.setAttribute("selected",!0);i.prepend(t);a=()=>{t.remove();i.removeEventListener("input",a);a=null};i.addEventListener("input",a)}const getValue=t=>{const e=t?"value":"textContent",{options:s,multiple:n}=i;return n?Array.prototype.filter.call(s,(t=>t.selected)).map((t=>t[e])):-1===s.selectedIndex?null:s[s.selectedIndex][e]};let r=getValue(!1);const getItems=t=>{const e=t.target.options;return Array.prototype.map.call(e,(t=>({displayValue:t.textContent,exportValue:t.value})))};if(this.enableScripting&&this.hasJSActions){i.addEventListener("updatefromsandbox",(s=>{const n={value(s){a?.();const n=s.detail.value,o=new Set(Array.isArray(n)?n:[n]);for(const t of i.options)t.selected=o.has(t.value);t.setValue(e,{value:getValue(!0)});r=getValue(!1)},multipleSelection(t){i.multiple=!0},remove(s){const n=i.options,a=s.detail.remove;n[a].selected=!1;i.remove(a);if(n.length>0){-1===Array.prototype.findIndex.call(n,(t=>t.selected))&&(n[0].selected=!0)}t.setValue(e,{value:getValue(!0),items:getItems(s)});r=getValue(!1)},clear(s){for(;0!==i.length;)i.remove(0);t.setValue(e,{value:null,items:[]});r=getValue(!1)},insert(s){const{index:n,displayValue:a,exportValue:o}=s.detail.insert,l=i.children[n],c=document.createElement("option");c.textContent=a;c.value=o;l?l.before(c):i.append(c);t.setValue(e,{value:getValue(!0),items:getItems(s)});r=getValue(!1)},items(s){const{items:n}=s.detail;for(;0!==i.length;)i.remove(0);for(const t of n){const{displayValue:e,exportValue:s}=t,n=document.createElement("option");n.textContent=e;n.value=s;i.append(n)}i.options.length>0&&(i.options[0].selected=!0);t.setValue(e,{value:getValue(!0),items:getItems(s)});r=getValue(!1)},indices(s){const i=new Set(s.detail.indices);for(const t of s.target.options)t.selected=i.has(t.index);t.setValue(e,{value:getValue(!0)});r=getValue(!1)},editable(t){t.target.disabled=!t.detail.editable}};this._dispatchEventFromSandbox(n,s)}));i.addEventListener("input",(s=>{const i=getValue(!0);t.setValue(e,{value:i});s.preventDefault();this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:r,changeEx:i,willCommit:!1,commitKey:1,keyDown:!1}})}));this._setEventListeners(i,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(t=>t.target.value))}else i.addEventListener("input",(function(s){t.setValue(e,{value:getValue(!0)})}));this.data.combo&&this._setTextStyle(i);this._setBackgroundColor(i);this._setDefaultPropertiesFromJS(i);this.container.append(i);return this.container}}class PopupAnnotationElement extends AnnotationElement{static IGNORE_TYPES=new Set(["Line","Square","Circle","PolyLine","Polygon","Ink"]);constructor(t){const{data:e}=t;super(t,{isRenderable:!PopupAnnotationElement.IGNORE_TYPES.has(e.parentType)&&!!(e.titleObj?.str||e.contentsObj?.str||e.richText?.str)})}render(){this.container.classList.add("popupAnnotation");const t=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(0===t.length)return this.container;const e=new PopupElement({container:this.container,trigger:Array.from(t),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),s=this.page,n=i.Util.normalizeRect([this.data.parentRect[0],s.view[3]-this.data.parentRect[1]+s.view[1],this.data.parentRect[2],s.view[3]-this.data.parentRect[3]+s.view[1]]),a=n[0]+this.data.parentRect[2]-this.data.parentRect[0],r=n[1],{pageWidth:o,pageHeight:l,pageX:c,pageY:h}=this.viewport.rawDims;this.container.style.left=100*(a-c)/o+"%";this.container.style.top=100*(r-h)/l+"%";this.container.append(e.render());return this.container}}class PopupElement{constructor(t){this.container=t.container;this.trigger=t.trigger;this.color=t.color;this.titleObj=t.titleObj;this.modificationDate=t.modificationDate;this.contentsObj=t.contentsObj;this.richText=t.richText;this.hideWrapper=t.hideWrapper||!1;this.pinned=!1}render(){const t=document.createElement("div");t.classList.add("popupWrapper");this.hideElement=this.hideWrapper?t:this.container;this.hideElement.hidden=!0;const e=document.createElement("div");e.classList.add("popup");const s=this.color;if(s){const t=.7*(255-s[0])+s[0],n=.7*(255-s[1])+s[1],a=.7*(255-s[2])+s[2];e.style.backgroundColor=i.Util.makeHexColor(0|t,0|n,0|a)}const a=document.createElement("h1");a.dir=this.titleObj.dir;a.textContent=this.titleObj.str;e.append(a);const r=n.PDFDateString.toDateObject(this.modificationDate);if(r){const t=document.createElement("span");t.classList.add("popupDate");t.textContent="{{date}}, {{time}}";t.dataset.l10nId="annotation_date_string";t.dataset.l10nArgs=JSON.stringify({date:r.toLocaleDateString(),time:r.toLocaleTimeString()});e.append(t)}if(!this.richText?.str||this.contentsObj?.str&&this.contentsObj.str!==this.richText.str){const t=this._formatContents(this.contentsObj);e.append(t)}else{o.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:e});e.lastChild.classList.add("richText","popupContent")}Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const t of this.trigger){t.addEventListener("click",this._toggle.bind(this));t.addEventListener("mouseover",this._show.bind(this,!1));t.addEventListener("mouseout",this._hide.bind(this,!1))}e.addEventListener("click",this._hide.bind(this,!0));t.append(e);return t}_formatContents({str:t,dir:e}){const s=document.createElement("p");s.classList.add("popupContent");s.dir=e;const i=t.split(/(?:\r\n?|\n)/);for(let t=0,e=i.length;t{Object.defineProperty(e,"__esModule",{value:!0});e.ColorConverters=void 0;function makeColorComp(t){return Math.floor(255*Math.max(0,Math.min(1,t))).toString(16).padStart(2,"0")}e.ColorConverters=class ColorConverters{static CMYK_G([t,e,s,i]){return["G",1-Math.min(1,.3*t+.59*s+.11*e+i)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_HTML([t]){const e=makeColorComp(t);return`#${e}${e}${e}`}static RGB_G([t,e,s]){return["G",.3*t+.59*e+.11*s]}static RGB_HTML([t,e,s]){return`#${makeColorComp(t)}${makeColorComp(e)}${makeColorComp(s)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([t,e,s,i]){return["RGB",1-Math.min(1,t+i),1-Math.min(1,s+i),1-Math.min(1,e+i)]}static CMYK_HTML(t){const e=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(e)}static RGB_CMYK([t,e,s]){const i=1-t,n=1-e,a=1-s;return["CMYK",i,n,a,Math.min(i,n,a)]}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.XfaLayer=void 0;var i=s(19);e.XfaLayer=class XfaLayer{static setupStorage(t,e,s,i,n){const a=i.getValue(e,{value:null});switch(s.name){case"textarea":null!==a.value&&(t.textContent=a.value);if("print"===n)break;t.addEventListener("input",(t=>{i.setValue(e,{value:t.target.value})}));break;case"input":if("radio"===s.attributes.type||"checkbox"===s.attributes.type){a.value===s.attributes.xfaOn?t.setAttribute("checked",!0):a.value===s.attributes.xfaOff&&t.removeAttribute("checked");if("print"===n)break;t.addEventListener("change",(t=>{i.setValue(e,{value:t.target.checked?t.target.getAttribute("xfaOn"):t.target.getAttribute("xfaOff")})}))}else{null!==a.value&&t.setAttribute("value",a.value);if("print"===n)break;t.addEventListener("input",(t=>{i.setValue(e,{value:t.target.value})}))}break;case"select":if(null!==a.value)for(const t of s.children)t.attributes.value===a.value&&(t.attributes.selected=!0);t.addEventListener("input",(t=>{const s=t.target.options,n=-1===s.selectedIndex?"":s[s.selectedIndex].value;i.setValue(e,{value:n})}))}}static setAttributes({html:t,element:e,storage:s=null,intent:i,linkService:n}){const{attributes:a}=e,r=t instanceof HTMLAnchorElement;"radio"===a.type&&(a.name=`${a.name}-${i}`);for(const[e,s]of Object.entries(a))if(null!=s)switch(e){case"class":s.length&&t.setAttribute(e,s.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",s);break;case"style":Object.assign(t.style,s);break;case"textContent":t.textContent=s;break;default:(!r||"href"!==e&&"newWindow"!==e)&&t.setAttribute(e,s)}r&&n.addLinkAttributes(t,a.href,a.newWindow);s&&a.dataId&&this.setupStorage(t,a.dataId,e,s)}static render(t){const e=t.annotationStorage,s=t.linkService,n=t.xfaHtml,a=t.intent||"display",r=document.createElement(n.name);n.attributes&&this.setAttributes({html:r,element:n,intent:a,linkService:s});const o=[[n,-1,r]],l=t.div;l.append(r);if(t.viewport){const e=`matrix(${t.viewport.transform.join(",")})`;l.style.transform=e}"richText"!==a&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;o.length>0;){const[t,n,r]=o.at(-1);if(n+1===t.children.length){o.pop();continue}const l=t.children[++o.at(-1)[1]];if(null===l)continue;const{name:h}=l;if("#text"===h){const t=document.createTextNode(l.value);c.push(t);r.append(t);continue}let d;d=l?.attributes?.xmlns?document.createElementNS(l.attributes.xmlns,h):document.createElement(h);r.append(d);l.attributes&&this.setAttributes({html:d,element:l,storage:e,intent:a,linkService:s});if(l.children&&l.children.length>0)o.push([l,-1,d]);else if(l.value){const t=document.createTextNode(l.value);i.XfaText.shouldBuildText(h)&&c.push(t);d.append(t)}}for(const t of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))t.setAttribute("readOnly",!0);return{textDivs:c}}static update(t){const e=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=e;t.div.hidden=!1}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0});e.SVGGraphics=void 0;var i=s(6),n=s(1),a=s(10);let r=class{constructor(){(0,n.unreachable)("Not implemented: SVGGraphics")}};e.SVGGraphics=r;{const o={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",h=["butt","round","square"],d=["miter","round","bevel"],createObjectURL=function(t,e="",s=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!s)return URL.createObjectURL(new Blob([t],{type:e}));const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n=`data:${e};base64,`;for(let e=0,s=t.length;e>2]+i[(3&a)<<4|r>>4]+i[e+1>6:64]+i[e+2>1&2147483647:s>>1&2147483647;e[t]=s}function writePngChunk(t,s,i,n){let a=n;const r=s.length;i[a]=r>>24&255;i[a+1]=r>>16&255;i[a+2]=r>>8&255;i[a+3]=255&r;a+=4;i[a]=255&t.charCodeAt(0);i[a+1]=255&t.charCodeAt(1);i[a+2]=255&t.charCodeAt(2);i[a+3]=255&t.charCodeAt(3);a+=4;i.set(s,a);a+=s.length;const o=function crc32(t,s,i){let n=-1;for(let a=s;a>>8^e[s]}return-1^n}(i,n+4,a);i[a]=o>>24&255;i[a+1]=o>>16&255;i[a+2]=o>>8&255;i[a+3]=255&o}function deflateSyncUncompressed(t){let e=t.length;const s=65535,i=Math.ceil(e/s),n=new Uint8Array(2+e+5*i+4);let a=0;n[a++]=120;n[a++]=156;let r=0;for(;e>s;){n[a++]=0;n[a++]=255;n[a++]=255;n[a++]=0;n[a++]=0;n.set(t.subarray(r,r+s),a);a+=s;r+=s;e-=s}n[a++]=1;n[a++]=255&e;n[a++]=e>>8&255;n[a++]=255&~e;n[a++]=(65535&~e)>>8&255;n.set(t.subarray(r),a);a+=t.length-r;const o=function adler32(t,e,s){let i=1,n=0;for(let a=e;a>24&255;n[a++]=o>>16&255;n[a++]=o>>8&255;n[a++]=255&o;return n}function encode(e,s,i,r){const o=e.width,l=e.height;let c,h,d;const u=e.data;switch(s){case n.ImageKind.GRAYSCALE_1BPP:h=0;c=1;d=o+7>>3;break;case n.ImageKind.RGB_24BPP:h=2;c=8;d=3*o;break;case n.ImageKind.RGBA_32BPP:h=6;c=8;d=4*o;break;default:throw new Error("invalid format")}const p=new Uint8Array((1+d)*l);let f=0,g=0;for(let t=0;t>24&255,o>>16&255,o>>8&255,255&o,l>>24&255,l>>16&255,l>>8&255,255&l,c,h,0,0,0]),b=function deflateSync(t){if(!a.isNodeJS)return deflateSyncUncompressed(t);try{let e;e=parseInt(process.versions.node)>=8?t:Buffer.from(t);const s=require("zlib").deflateSync(e,{level:9});return s instanceof Uint8Array?s:new Uint8Array(s)}catch(t){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return deflateSyncUncompressed(t)}(p),A=t.length+36+m.length+b.length,_=new Uint8Array(A);let y=0;_.set(t,y);y+=t.length;writePngChunk("IHDR",m,_,y);y+=12+m.length;writePngChunk("IDATA",b,_,y);y+=12+b.length;writePngChunk("IEND",new Uint8Array(0),_,y);return createObjectURL(_,"image/png",i)}return function convertImgDataToPng(t,e,s){return encode(t,void 0===t.kind?n.ImageKind.GRAYSCALE_1BPP:t.kind,e,s)}}();class SVGExtraState{constructor(){this.fontSizeScale=1;this.fontWeight=o.fontWeight;this.fontSize=0;this.textMatrix=n.IDENTITY_MATRIX;this.fontMatrix=n.FONT_IDENTITY_MATRIX;this.leading=0;this.textRenderingMode=n.TextRenderingMode.FILL;this.textMatrixScale=1;this.x=0;this.y=0;this.lineX=0;this.lineY=0;this.charSpacing=0;this.wordSpacing=0;this.textHScale=1;this.textRise=0;this.fillColor=o.fillColor;this.strokeColor="#000000";this.fillAlpha=1;this.strokeAlpha=1;this.lineWidth=1;this.lineJoin="";this.lineCap="";this.miterLimit=0;this.dashArray=[];this.dashPhase=0;this.dependencies=[];this.activeClipUrl=null;this.clipGroup=null;this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(t,e){this.x=t;this.y=e}}function opListToTree(t){let e=[];const s=[];for(const i of t)if("save"!==i.fn)"restore"===i.fn?e=s.pop():e.push(i);else{e.push({fnId:92,fn:"group",items:[]});s.push(e);e=e.at(-1).items}return e}function pf(t){if(Number.isInteger(t))return t.toString();const e=t.toFixed(10);let s=e.length-1;if("0"!==e[s])return e;do{s--}while("0"===e[s]);return e.substring(0,"."===e[s]?s:s+1)}function pm(t){if(0===t[4]&&0===t[5]){if(0===t[1]&&0===t[2])return 1===t[0]&&1===t[3]?"":`scale(${pf(t[0])} ${pf(t[3])})`;if(t[0]===t[3]&&t[1]===-t[2]){return`rotate(${pf(180*Math.acos(t[0])/Math.PI)})`}}else if(1===t[0]&&0===t[1]&&0===t[2]&&1===t[3])return`translate(${pf(t[4])} ${pf(t[5])})`;return`matrix(${pf(t[0])} ${pf(t[1])} ${pf(t[2])} ${pf(t[3])} ${pf(t[4])} ${pf(t[5])})`}let p=0,f=0,g=0;e.SVGGraphics=r=class{constructor(t,e,s=!1){(0,i.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future.");this.svgFactory=new i.DOMSVGFactory;this.current=new SVGExtraState;this.transformMatrix=n.IDENTITY_MATRIX;this.transformStack=[];this.extraStack=[];this.commonObjs=t;this.objs=e;this.pendingClip=null;this.pendingEOFill=!1;this.embedFonts=!1;this.embeddedFonts=Object.create(null);this.cssStyle=null;this.forceDataSchema=!!s;this._operatorIdMapping=[];for(const t in n.OPS)this._operatorIdMapping[n.OPS[t]]=t}getObject(t,e=null){return"string"==typeof t?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):e}save(){this.transformStack.push(this.transformMatrix);const t=this.current;this.extraStack.push(t);this.current=t.clone()}restore(){this.transformMatrix=this.transformStack.pop();this.current=this.extraStack.pop();this.pendingClip=null;this.tgrp=null}group(t){this.save();this.executeOpTree(t);this.restore()}loadDependencies(t){const e=t.fnArray,s=t.argsArray;for(let t=0,i=e.length;t{t.get(e,s)}));this.current.dependencies.push(s)}return Promise.all(this.current.dependencies)}transform(t,e,s,i,a,r){const o=[t,e,s,i,a,r];this.transformMatrix=n.Util.transform(this.transformMatrix,o);this.tgrp=null}getSVG(t,e){this.viewport=e;const s=this._initialize(e);return this.loadDependencies(t).then((()=>{this.transformMatrix=n.IDENTITY_MATRIX;this.executeOpTree(this.convertOpList(t));return s}))}convertOpList(t){const e=this._operatorIdMapping,s=t.argsArray,i=t.fnArray,n=[];for(let t=0,a=i.length;t0&&(this.current.lineWidth=t)}setLineCap(t){this.current.lineCap=h[t]}setLineJoin(t){this.current.lineJoin=d[t]}setMiterLimit(t){this.current.miterLimit=t}setStrokeAlpha(t){this.current.strokeAlpha=t}setStrokeRGBColor(t,e,s){this.current.strokeColor=n.Util.makeHexColor(t,e,s)}setFillAlpha(t){this.current.fillAlpha=t}setFillRGBColor(t,e,s){this.current.fillColor=n.Util.makeHexColor(t,e,s);this.current.tspan=this.svgFactory.createElement("svg:tspan");this.current.xcoords=[];this.current.ycoords=[]}setStrokeColorN(t){this.current.strokeColor=this._makeColorN_Pattern(t)}setFillColorN(t){this.current.fillColor=this._makeColorN_Pattern(t)}shadingFill(t){const e=this.viewport.width,s=this.viewport.height,i=n.Util.inverseTransform(this.transformMatrix),a=n.Util.applyTransform([0,0],i),r=n.Util.applyTransform([0,s],i),o=n.Util.applyTransform([e,0],i),l=n.Util.applyTransform([e,s],i),c=Math.min(a[0],r[0],o[0],l[0]),h=Math.min(a[1],r[1],o[1],l[1]),d=Math.max(a[0],r[0],o[0],l[0]),u=Math.max(a[1],r[1],o[1],l[1]),p=this.svgFactory.createElement("svg:rect");p.setAttributeNS(null,"x",c);p.setAttributeNS(null,"y",h);p.setAttributeNS(null,"width",d-c);p.setAttributeNS(null,"height",u-h);p.setAttributeNS(null,"fill",this._makeShadingPattern(t));this.current.fillAlpha<1&&p.setAttributeNS(null,"fill-opacity",this.current.fillAlpha);this._ensureTransformGroup().append(p)}_makeColorN_Pattern(t){return"TilingPattern"===t[0]?this._makeTilingPattern(t):this._makeShadingPattern(t)}_makeTilingPattern(t){const e=t[1],s=t[2],i=t[3]||n.IDENTITY_MATRIX,[a,r,o,l]=t[4],c=t[5],h=t[6],d=t[7],u="shading"+g++,[p,f,m,b]=n.Util.normalizeRect([...n.Util.applyTransform([a,r],i),...n.Util.applyTransform([o,l],i)]),[A,_]=n.Util.singularValueDecompose2dScale(i),y=c*A,v=h*_,S=this.svgFactory.createElement("svg:pattern");S.setAttributeNS(null,"id",u);S.setAttributeNS(null,"patternUnits","userSpaceOnUse");S.setAttributeNS(null,"width",y);S.setAttributeNS(null,"height",v);S.setAttributeNS(null,"x",`${p}`);S.setAttributeNS(null,"y",`${f}`);const x=this.svg,E=this.transformMatrix,C=this.current.fillColor,P=this.current.strokeColor,T=this.svgFactory.create(m-p,b-f);this.svg=T;this.transformMatrix=i;if(2===d){const t=n.Util.makeHexColor(...e);this.current.fillColor=t;this.current.strokeColor=t}this.executeOpTree(this.convertOpList(s));this.svg=x;this.transformMatrix=E;this.current.fillColor=C;this.current.strokeColor=P;S.append(T.childNodes[0]);this.defs.append(S);return`url(#${u})`}_makeShadingPattern(t){"string"==typeof t&&(t=this.objs.get(t));switch(t[0]){case"RadialAxial":const e="shading"+g++,s=t[3];let i;switch(t[1]){case"axial":const s=t[4],n=t[5];i=this.svgFactory.createElement("svg:linearGradient");i.setAttributeNS(null,"id",e);i.setAttributeNS(null,"gradientUnits","userSpaceOnUse");i.setAttributeNS(null,"x1",s[0]);i.setAttributeNS(null,"y1",s[1]);i.setAttributeNS(null,"x2",n[0]);i.setAttributeNS(null,"y2",n[1]);break;case"radial":const a=t[4],r=t[5],o=t[6],l=t[7];i=this.svgFactory.createElement("svg:radialGradient");i.setAttributeNS(null,"id",e);i.setAttributeNS(null,"gradientUnits","userSpaceOnUse");i.setAttributeNS(null,"cx",r[0]);i.setAttributeNS(null,"cy",r[1]);i.setAttributeNS(null,"r",l);i.setAttributeNS(null,"fx",a[0]);i.setAttributeNS(null,"fy",a[1]);i.setAttributeNS(null,"fr",o);break;default:throw new Error(`Unknown RadialAxial type: ${t[1]}`)}for(const t of s){const e=this.svgFactory.createElement("svg:stop");e.setAttributeNS(null,"offset",t[0]);e.setAttributeNS(null,"stop-color",t[1]);i.append(e)}this.defs.append(i);return`url(#${e})`;case"Mesh":(0,n.warn)("Unimplemented pattern Mesh");return null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${t[0]}`)}}setDash(t,e){this.current.dashArray=t;this.current.dashPhase=e}constructPath(t,e){const s=this.current;let i=s.x,a=s.y,r=[],o=0;for(const s of t)switch(0|s){case n.OPS.rectangle:i=e[o++];a=e[o++];const t=i+e[o++],s=a+e[o++];r.push("M",pf(i),pf(a),"L",pf(t),pf(a),"L",pf(t),pf(s),"L",pf(i),pf(s),"Z");break;case n.OPS.moveTo:i=e[o++];a=e[o++];r.push("M",pf(i),pf(a));break;case n.OPS.lineTo:i=e[o++];a=e[o++];r.push("L",pf(i),pf(a));break;case n.OPS.curveTo:i=e[o+4];a=e[o+5];r.push("C",pf(e[o]),pf(e[o+1]),pf(e[o+2]),pf(e[o+3]),pf(i),pf(a));o+=6;break;case n.OPS.curveTo2:r.push("C",pf(i),pf(a),pf(e[o]),pf(e[o+1]),pf(e[o+2]),pf(e[o+3]));i=e[o+2];a=e[o+3];o+=4;break;case n.OPS.curveTo3:i=e[o+2];a=e[o+3];r.push("C",pf(e[o]),pf(e[o+1]),pf(i),pf(a),pf(i),pf(a));o+=4;break;case n.OPS.closePath:r.push("Z")}r=r.join(" ");if(s.path&&t.length>0&&t[0]!==n.OPS.rectangle&&t[0]!==n.OPS.moveTo)r=s.path.getAttributeNS(null,"d")+r;else{s.path=this.svgFactory.createElement("svg:path");this._ensureTransformGroup().append(s.path)}s.path.setAttributeNS(null,"d",r);s.path.setAttributeNS(null,"fill","none");s.element=s.path;s.setCurrentPoint(i,a)}endPath(){const t=this.current;t.path=null;if(!this.pendingClip)return;if(!t.element){this.pendingClip=null;return}const e="clippath"+p++,s=this.svgFactory.createElement("svg:clipPath");s.setAttributeNS(null,"id",e);s.setAttributeNS(null,"transform",pm(this.transformMatrix));const i=t.element.cloneNode(!0);"evenodd"===this.pendingClip?i.setAttributeNS(null,"clip-rule","evenodd"):i.setAttributeNS(null,"clip-rule","nonzero");this.pendingClip=null;s.append(i);this.defs.append(s);if(t.activeClipUrl){t.clipGroup=null;for(const t of this.extraStack)t.clipGroup=null;s.setAttributeNS(null,"clip-path",t.activeClipUrl)}t.activeClipUrl=`url(#${e})`;this.tgrp=null}clip(t){this.pendingClip=t}closePath(){const t=this.current;if(t.path){const e=`${t.path.getAttributeNS(null,"d")}Z`;t.path.setAttributeNS(null,"d",e)}}setLeading(t){this.current.leading=-t}setTextRise(t){this.current.textRise=t}setTextRenderingMode(t){this.current.textRenderingMode=t}setHScale(t){this.current.textHScale=t/100}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[e,s]of t)switch(e){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s);break;case"CA":this.setStrokeAlpha(s);break;case"ca":this.setFillAlpha(s);break;default:(0,n.warn)(`Unimplemented graphic state operator ${e}`)}}fill(){const t=this.current;if(t.element){t.element.setAttributeNS(null,"fill",t.fillColor);t.element.setAttributeNS(null,"fill-opacity",t.fillAlpha);this.endPath()}}stroke(){const t=this.current;if(t.element){this._setStrokeAttributes(t.element);t.element.setAttributeNS(null,"fill","none");this.endPath()}}_setStrokeAttributes(t,e=1){const s=this.current;let i=s.dashArray;1!==e&&i.length>0&&(i=i.map((function(t){return e*t})));t.setAttributeNS(null,"stroke",s.strokeColor);t.setAttributeNS(null,"stroke-opacity",s.strokeAlpha);t.setAttributeNS(null,"stroke-miterlimit",pf(s.miterLimit));t.setAttributeNS(null,"stroke-linecap",s.lineCap);t.setAttributeNS(null,"stroke-linejoin",s.lineJoin);t.setAttributeNS(null,"stroke-width",pf(e*s.lineWidth)+"px");t.setAttributeNS(null,"stroke-dasharray",i.map(pf).join(" "));t.setAttributeNS(null,"stroke-dashoffset",pf(e*s.dashPhase)+"px")}eoFill(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd");this.fill()}fillStroke(){this.stroke();this.fill()}eoFillStroke(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd");this.fillStroke()}closeStroke(){this.closePath();this.stroke()}closeFillStroke(){this.closePath();this.fillStroke()}closeEOFillStroke(){this.closePath();this.eoFillStroke()}paintSolidColorImageMask(){const t=this.svgFactory.createElement("svg:rect");t.setAttributeNS(null,"x","0");t.setAttributeNS(null,"y","0");t.setAttributeNS(null,"width","1px");t.setAttributeNS(null,"height","1px");t.setAttributeNS(null,"fill",this.current.fillColor);this._ensureTransformGroup().append(t)}paintImageXObject(t){const e=this.getObject(t);e?this.paintInlineImageXObject(e):(0,n.warn)(`Dependent image with object ID ${t} is not ready yet`)}paintInlineImageXObject(t,e){const s=t.width,i=t.height,n=u(t,this.forceDataSchema,!!e),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0");a.setAttributeNS(null,"y","0");a.setAttributeNS(null,"width",pf(s));a.setAttributeNS(null,"height",pf(i));this.current.element=a;this.clip("nonzero");const r=this.svgFactory.createElement("svg:image");r.setAttributeNS(c,"xlink:href",n);r.setAttributeNS(null,"x","0");r.setAttributeNS(null,"y",pf(-i));r.setAttributeNS(null,"width",pf(s)+"px");r.setAttributeNS(null,"height",pf(i)+"px");r.setAttributeNS(null,"transform",`scale(${pf(1/s)} ${pf(-1/i)})`);e?e.append(r):this._ensureTransformGroup().append(r)}paintImageMaskXObject(t){const e=this.getObject(t.data,t);if(e.bitmap){(0,n.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const s=this.current,i=e.width,a=e.height,r=s.fillColor;s.maskId="mask"+f++;const o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",s.maskId);const l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0");l.setAttributeNS(null,"y","0");l.setAttributeNS(null,"width",pf(i));l.setAttributeNS(null,"height",pf(a));l.setAttributeNS(null,"fill",r);l.setAttributeNS(null,"mask",`url(#${s.maskId})`);this.defs.append(o);this._ensureTransformGroup().append(l);this.paintInlineImageXObject(e,o)}paintFormXObjectBegin(t,e){Array.isArray(t)&&6===t.length&&this.transform(t[0],t[1],t[2],t[3],t[4],t[5]);if(e){const t=e[2]-e[0],s=e[3]-e[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",e[0]);i.setAttributeNS(null,"y",e[1]);i.setAttributeNS(null,"width",pf(t));i.setAttributeNS(null,"height",pf(s));this.current.element=i;this.clip("nonzero");this.endPath()}}paintFormXObjectEnd(){}_initialize(t){const e=this.svgFactory.create(t.width,t.height),s=this.svgFactory.createElement("svg:defs");e.append(s);this.defs=s;const i=this.svgFactory.createElement("svg:g");i.setAttributeNS(null,"transform",pm(t.transform));e.append(i);this.svg=i;return e}_ensureClipGroup(){if(!this.current.clipGroup){const t=this.svgFactory.createElement("svg:g");t.setAttributeNS(null,"clip-path",this.current.activeClipUrl);this.svg.append(t);this.current.clipGroup=t}return this.current.clipGroup}_ensureTransformGroup(){if(!this.tgrp){this.tgrp=this.svgFactory.createElement("svg:g");this.tgrp.setAttributeNS(null,"transform",pm(this.transformMatrix));this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)}return this.tgrp}}}}],__webpack_module_cache__={};function __w_pdfjs_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var s=__webpack_module_cache__[t]={exports:{}};__webpack_modules__[t](s,s.exports,__w_pdfjs_require__);return s.exports}var __webpack_exports__={};(()=>{var t=__webpack_exports__;Object.defineProperty(t,"__esModule",{value:!0});Object.defineProperty(t,"AbortException",{enumerable:!0,get:function(){return e.AbortException}});Object.defineProperty(t,"AnnotationEditorLayer",{enumerable:!0,get:function(){return a.AnnotationEditorLayer}});Object.defineProperty(t,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return e.AnnotationEditorParamsType}});Object.defineProperty(t,"AnnotationEditorType",{enumerable:!0,get:function(){return e.AnnotationEditorType}});Object.defineProperty(t,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return r.AnnotationEditorUIManager}});Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}});Object.defineProperty(t,"AnnotationMode",{enumerable:!0,get:function(){return e.AnnotationMode}});Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return e.CMapCompressionType}});Object.defineProperty(t,"FeatureTest",{enumerable:!0,get:function(){return e.FeatureTest}});Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}});Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return e.InvalidPDFException}});Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return e.MissingPDFException}});Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return e.OPS}});Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return s.PDFDataRangeTransport}});Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return i.PDFDateString}});Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return s.PDFWorker}});Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return e.PasswordResponses}});Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return e.PermissionFlag}});Object.defineProperty(t,"PixelsPerInch",{enumerable:!0,get:function(){return i.PixelsPerInch}});Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return i.RenderingCancelledException}});Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}});Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return e.UnexpectedResponseException}});Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return e.Util}});Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return e.VerbosityLevel}});Object.defineProperty(t,"XfaLayer",{enumerable:!0,get:function(){return h.XfaLayer}});Object.defineProperty(t,"build",{enumerable:!0,get:function(){return s.build}});Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return e.createPromiseCapability}});Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return e.createValidAbsoluteUrl}});Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return s.getDocument}});Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return i.getFilenameFromUrl}});Object.defineProperty(t,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return i.getPdfFilenameFromUrl}});Object.defineProperty(t,"getXfaPageViewport",{enumerable:!0,get:function(){return i.getXfaPageViewport}});Object.defineProperty(t,"isDataScheme",{enumerable:!0,get:function(){return i.isDataScheme}});Object.defineProperty(t,"isPdfFile",{enumerable:!0,get:function(){return i.isPdfFile}});Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return i.loadScript}});Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return n.renderTextLayer}});Object.defineProperty(t,"setLayerDimensions",{enumerable:!0,get:function(){return i.setLayerDimensions}});Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return e.shadow}});Object.defineProperty(t,"updateTextLayer",{enumerable:!0,get:function(){return n.updateTextLayer}});Object.defineProperty(t,"version",{enumerable:!0,get:function(){return s.version}});var e=__w_pdfjs_require__(1),s=__w_pdfjs_require__(2),i=__w_pdfjs_require__(6),n=__w_pdfjs_require__(26),a=__w_pdfjs_require__(27),r=__w_pdfjs_require__(5),o=__w_pdfjs_require__(32),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(35),h=__w_pdfjs_require__(34)})();return __webpack_exports__})())); \ No newline at end of file diff --git a/web-v2-res/static/js/pdf.worker.min.js b/web-v2-res/static/js/pdf.worker.min.js deleted file mode 100644 index f0b7d6d..0000000 --- a/web-v2-res/static/js/pdf.worker.min.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @licstart The following is the entire license notice for the - * JavaScript code in this page - * - * Copyright 2023 Mozilla Foundation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * @licend The above is the entire license notice for the - * JavaScript code in this page - */ -!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsWorker=t()}(globalThis,(()=>(()=>{"use strict";var e=[,(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.WorkerTask=t.WorkerMessageHandler=void 0;var r=a(2),n=a(3),i=a(4),s=a(6),o=a(70),c=a(64),l=a(101),h=a(102),u=a(103);class WorkerTask{constructor(e){this.name=e;this.terminated=!1;this._capability=(0,r.createPromiseCapability)()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}t.WorkerTask=WorkerTask;class WorkerMessageHandler{static setup(e,t){let a=!1;e.on("test",(function(t){if(!a){a=!0;e.send("test",t instanceof Uint8Array)}}));e.on("configure",(function(e){(0,r.setVerbosityLevel)(e.verbosity)}));e.on("GetDocRequest",(function(e){return WorkerMessageHandler.createDocumentHandler(e,t)}))}static createDocumentHandler(e,t){let a,d=!1,f=null;const g=new Set,p=(0,r.getVerbosityLevel)(),{docId:m,apiVersion:b}=e,y="3.5.141";if(b!==y)throw new Error(`The API version "${b}" does not match the Worker version "${y}".`);const w=[];for(const e in[])w.push(e);if(w.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+w.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"==typeof Path2D||"undefined"==typeof ReadableStream){const e="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `Path2D` and/or `ReadableStream`); ";if(l.isNodeJS)throw new Error(e+"please use a `legacy`-build instead.");throw new Error(e+"please update to a supported browser.")}const S=m+"_worker";let x=new h.MessageHandler(S,m,t);function ensureNotTerminated(){if(d)throw new Error("Worker was terminated")}function startWorkerTask(e){g.add(e)}function finishWorkerTask(e){e.finish();g.delete(e)}async function loadDocument(e){await a.ensureDoc("checkHeader");await a.ensureDoc("parseStartXRef");await a.ensureDoc("parse",[e]);await a.ensureDoc("checkFirstPage",[e]);await a.ensureDoc("checkLastPage",[e]);const t=await a.ensureDoc("isPureXfa");if(t){const e=new WorkerTask("loadXfaFonts");startWorkerTask(e);await Promise.all([a.loadXfaFonts(x,e).catch((e=>{})).then((()=>finishWorkerTask(e))),a.loadXfaImages()])}const[r,n]=await Promise.all([a.ensureDoc("numPages"),a.ensureDoc("fingerprints")]);return{numPages:r,fingerprints:n,htmlForXfa:t?await a.ensureDoc("htmlForXfa"):null}}function getPdfManager({data:e,password:t,disableAutoFetch:a,rangeChunkSize:i,length:o,docBaseUrl:c,enableXfa:l,evaluatorOptions:h}){const d={source:null,disableAutoFetch:a,docBaseUrl:c,docId:m,enableXfa:l,evaluatorOptions:h,handler:x,length:o,password:t,rangeChunkSize:i},g=(0,r.createPromiseCapability)();let p;if(e){try{d.source=e;p=new s.LocalPdfManager(d);g.resolve(p)}catch(e){g.reject(e)}return g.promise}let b,y=[];try{b=new u.PDFWorkerStream(x)}catch(e){g.reject(e);return g.promise}const w=b.getFullReader();w.headersReady.then((function(){if(w.isRangeSupported){d.source=b;d.length=w.contentLength;d.disableAutoFetch=d.disableAutoFetch||w.isStreamingSupported;p=new s.NetworkPdfManager(d);for(const e of y)p.sendProgressiveData(e);y=[];g.resolve(p);f=null}})).catch((function(e){g.reject(e);f=null}));let S=0;new Promise((function(e,t){const readChunk=function({value:e,done:a}){try{ensureNotTerminated();if(a){p||function(){const e=(0,n.arrayBuffersToBytes)(y);o&&e.length!==o&&(0,r.warn)("reported HTTP length is different from actual");try{d.source=e;p=new s.LocalPdfManager(d);g.resolve(p)}catch(e){g.reject(e)}y=[]}();f=null;return}S+=e.byteLength;w.isStreamingSupported||x.send("DocProgress",{loaded:S,total:Math.max(S,w.contentLength||0)});p?p.sendProgressiveData(e):y.push(e);w.read().then(readChunk,t)}catch(e){t(e)}};w.read().then(readChunk,t)})).catch((function(e){g.reject(e);f=null}));f=function(e){b.cancelAllRequests(e)};return g.promise}x.on("GetPage",(function(e){return a.getPage(e.pageIndex).then((function(e){return Promise.all([a.ensure(e,"rotate"),a.ensure(e,"ref"),a.ensure(e,"userUnit"),a.ensure(e,"view")]).then((function([e,t,a,r]){return{rotate:e,ref:t,userUnit:a,view:r}}))}))}));x.on("GetPageIndex",(function(e){const t=i.Ref.get(e.num,e.gen);return a.ensureCatalog("getPageIndex",[t])}));x.on("GetDestinations",(function(e){return a.ensureCatalog("destinations")}));x.on("GetDestination",(function(e){return a.ensureCatalog("getDestination",[e.id])}));x.on("GetPageLabels",(function(e){return a.ensureCatalog("pageLabels")}));x.on("GetPageLayout",(function(e){return a.ensureCatalog("pageLayout")}));x.on("GetPageMode",(function(e){return a.ensureCatalog("pageMode")}));x.on("GetViewerPreferences",(function(e){return a.ensureCatalog("viewerPreferences")}));x.on("GetOpenAction",(function(e){return a.ensureCatalog("openAction")}));x.on("GetAttachments",(function(e){return a.ensureCatalog("attachments")}));x.on("GetJavaScript",(function(e){return a.ensureCatalog("javaScript")}));x.on("GetDocJSActions",(function(e){return a.ensureCatalog("jsActions")}));x.on("GetPageJSActions",(function({pageIndex:e}){return a.getPage(e).then((function(e){return a.ensure(e,"jsActions")}))}));x.on("GetOutline",(function(e){return a.ensureCatalog("documentOutline")}));x.on("GetOptionalContentConfig",(function(e){return a.ensureCatalog("optionalContentConfig")}));x.on("GetPermissions",(function(e){return a.ensureCatalog("permissions")}));x.on("GetMetadata",(function(e){return Promise.all([a.ensureDoc("documentInfo"),a.ensureCatalog("metadata")])}));x.on("GetMarkInfo",(function(e){return a.ensureCatalog("markInfo")}));x.on("GetData",(function(e){return a.requestLoadedStream().then((function(e){return e.bytes}))}));x.on("GetAnnotations",(function({pageIndex:e,intent:t}){return a.getPage(e).then((function(a){const r=new WorkerTask(`GetAnnotations: page ${e}`);startWorkerTask(r);return a.getAnnotationsData(x,r,t).then((e=>{finishWorkerTask(r);return e}),(e=>{finishWorkerTask(r);throw e}))}))}));x.on("GetFieldObjects",(function(e){return a.ensureDoc("fieldObjects")}));x.on("HasJSActions",(function(e){return a.ensureDoc("hasJSActions")}));x.on("GetCalculationOrderIds",(function(e){return a.ensureDoc("calculationOrderIds")}));x.on("SaveDocument",(function({isPureXfa:e,numPages:t,annotationStorage:s,filename:o}){const l=[a.requestLoadedStream(),a.ensureCatalog("acroForm"),a.ensureCatalog("acroFormRef"),a.ensureDoc("xref"),a.ensureDoc("startXRef")],h=e?null:(0,n.getNewAnnotationsMap)(s);if(h)for(const[e,t]of h)l.push(a.getPage(e).then((a=>{const r=new WorkerTask(`Save (editor): page ${e}`);return a.saveNewAnnotations(x,r,t).finally((function(){finishWorkerTask(r)}))})));if(e)l.push(a.serializeXfaData(s));else for(let e=0;ee.needAppearances)),g=a instanceof i.Dict&&a.get("XFA")||null;let p=null,m=!1;if(Array.isArray(g)){for(let e=0,t=g.length;e{"string"==typeof a&&(e[t]=(0,r.stringToPDFString)(a))}));const a=s.lastXRefStreamPos;b={rootRef:s.trailer.getRaw("Root")||null,encryptRef:s.trailer.getRaw("Encrypt")||null,newRef:s.getNewTemporaryRef(),infoRef:s.trailer.getRaw("Info")||null,info:e,fileIds:s.trailer.get("ID")||null,startXRef:null===a?l:a,filename:o}}try{return(0,c.incrementalUpdate)({originalData:t.bytes,xrefInfo:b,newRefs:u,xref:s,hasXfa:!!g,xfaDatasetsRef:p,hasXfaDatasetsEntry:m,needAppearances:f,acroFormRef:n,acroForm:a,xfaData:d})}finally{s.resetNewTemporaryRef()}}))}));x.on("GetOperatorList",(function(e,t){const n=e.pageIndex;a.getPage(n).then((function(a){const i=new WorkerTask(`GetOperatorList: page ${n}`);startWorkerTask(i);const s=p>=r.VerbosityLevel.INFOS?Date.now():0;a.getOperatorList({handler:x,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){finishWorkerTask(i);s&&(0,r.info)(`page=${n+1} - getOperatorList: time=${Date.now()-s}ms, len=${e.length}`);t.close()}),(function(e){finishWorkerTask(i);i.terminated||t.error(e)}))}))}));x.on("GetTextContent",(function(e,t){const{pageIndex:n,includeMarkedContent:i}=e;a.getPage(n).then((function(e){const a=new WorkerTask("GetTextContent: page "+n);startWorkerTask(a);const s=p>=r.VerbosityLevel.INFOS?Date.now():0;e.extractTextContent({handler:x,task:a,sink:t,includeMarkedContent:i}).then((function(){finishWorkerTask(a);s&&(0,r.info)(`page=${n+1} - getTextContent: time=`+(Date.now()-s)+"ms");t.close()}),(function(e){finishWorkerTask(a);a.terminated||t.error(e)}))}))}));x.on("GetStructTree",(function(e){return a.getPage(e.pageIndex).then((function(e){return a.ensure(e,"getStructTree")}))}));x.on("FontFallback",(function(e){return a.fontFallback(e.id,x)}));x.on("Cleanup",(function(e){return a.cleanup(!0)}));x.on("Terminate",(function(e){d=!0;const t=[];if(a){a.terminate(new r.AbortException("Worker was terminated."));const e=a.cleanup();t.push(e);a=null}else(0,o.clearGlobalCaches)();f&&f(new r.AbortException("Worker was terminated."));for(const e of g){t.push(e.finished);e.terminate()}return Promise.all(t).then((function(){x.destroy();x=null}))}));x.on("Ready",(function(t){!function setupDoc(e){function onSuccess(e){ensureNotTerminated();x.send("GetDoc",{pdfInfo:e})}function onFailure(e){ensureNotTerminated();if(e instanceof r.PasswordException){const t=new WorkerTask(`PasswordException: response ${e.code}`);startWorkerTask(t);x.sendWithPromise("PasswordRequest",e).then((function({password:e}){finishWorkerTask(t);a.updatePassword(e);pdfManagerReady()})).catch((function(){finishWorkerTask(t);x.send("DocException",e)}))}else e instanceof r.InvalidPDFException||e instanceof r.MissingPDFException||e instanceof r.UnexpectedResponseException||e instanceof r.UnknownErrorException?x.send("DocException",e):x.send("DocException",new r.UnknownErrorException(e.message,e.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(e){ensureNotTerminated();e instanceof n.XRefParseException?a.requestLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)})):onFailure(e)}))}ensureNotTerminated();getPdfManager(e).then((function(e){if(d){e.terminate(new r.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}a=e;a.requestLoadedStream(!0).then((e=>{x.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(e);e=null}));return S}static initializeFromPort(e){const t=new h.MessageHandler("worker","main",e);WorkerMessageHandler.setup(t,e);t.send("ready",null)}}t.WorkerMessageHandler=WorkerMessageHandler;"undefined"==typeof window&&!l.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(e){return"function"==typeof e.postMessage&&"onmessage"in e}(self)&&WorkerMessageHandler.initializeFromPort(self)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0;t.assert=function assert(e,t){e||unreachable(t)};t.bytesToString=function bytesToString(e){"object"==typeof e&&null!==e&&void 0!==e.length||unreachable("Invalid argument for bytesToString");const t=e.length,a=8192;if(tt});e.promise=new Promise((function(a,r){e.resolve=function(e){t=!0;a(e)};e.reject=function(e){t=!0;r(e)}}));return e};t.createValidAbsoluteUrl=function createValidAbsoluteUrl(e,t=null,a=null){if(!e)return null;try{if(a&&"string"==typeof e){if(a.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(a.tryConvertEncoding)try{e=stringToUTF8String(e)}catch(e){}}const r=t?new URL(e,t):new URL(e);if(function _isValidProtocol(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null};t.getModificationDate=function getModificationDate(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")};t.getVerbosityLevel=function getVerbosityLevel(){return r};t.info=function info(e){r>=a.INFOS&&console.log(`Info: ${e}`)};t.isArrayBuffer=function isArrayBuffer(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength};t.isArrayEqual=function isArrayEqual(e,t){if(e.length!==t.length)return!1;for(let a=0,r=e.length;a>24&255,e>>16&255,e>>8&255,255&e)};t.stringToBytes=stringToBytes;t.stringToPDFString=function stringToPDFString(e){if(e[0]>="ï"){let t;"þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8");if(t)try{const a=new TextDecoder(t,{fatal:!0}),r=stringToBytes(e);return a.decode(r)}catch(e){warn(`stringToPDFString: "${e}".`)}}const t=[];for(let a=0,r=e.length;a=a.WARNINGS&&console.log(`Warning: ${e}`)}function unreachable(e){throw new Error(e)}function shadow(e,t,a,r=!1){Object.defineProperty(e,t,{value:a,enumerable:!r,configurable:!0,writable:!1});return a}const n=function BaseExceptionClosure(){function BaseException(e,t){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=e;this.name=t}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();t.BaseException=n;t.PasswordException=class PasswordException extends n{constructor(e,t){super(e,"PasswordException");this.code=t}};t.UnknownErrorException=class UnknownErrorException extends n{constructor(e,t){super(e,"UnknownErrorException");this.details=t}};t.InvalidPDFException=class InvalidPDFException extends n{constructor(e){super(e,"InvalidPDFException")}};t.MissingPDFException=class MissingPDFException extends n{constructor(e){super(e,"MissingPDFException")}};t.UnexpectedResponseException=class UnexpectedResponseException extends n{constructor(e,t){super(e,"UnexpectedResponseException");this.status=t}};t.FormatError=class FormatError extends n{constructor(e){super(e,"FormatError")}};t.AbortException=class AbortException extends n{constructor(e){super(e,"AbortException")}};function stringToBytes(e){"string"!=typeof e&&unreachable("Invalid argument for stringToBytes");const t=e.length,a=new Uint8Array(t);for(let r=0;re.toString(16).padStart(2,"0")));class Util{static makeHexColor(e,t,a){return`#${i[e]}${i[t]}${i[a]}`}static scaleMinMax(e,t){let a;if(e[0]){if(e[0]<0){a=t[0];t[0]=t[1];t[1]=a}t[0]*=e[0];t[1]*=e[0];if(e[3]<0){a=t[2];t[2]=t[3];t[3]=a}t[2]*=e[3];t[3]*=e[3]}else{a=t[0];t[0]=t[2];t[2]=a;a=t[1];t[1]=t[3];t[3]=a;if(e[1]<0){a=t[2];t[2]=t[3];t[3]=a}t[2]*=e[1];t[3]*=e[1];if(e[2]<0){a=t[0];t[0]=t[1];t[1]=a}t[0]*=e[2];t[1]*=e[2]}t[0]+=e[4];t[1]+=e[4];t[2]+=e[5];t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const a=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/a,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/a]}static getAxialAlignedBoundingBox(e,t){const a=Util.applyTransform(e,t),r=Util.applyTransform(e.slice(2,4),t),n=Util.applyTransform([e[0],e[3]],t),i=Util.applyTransform([e[2],e[1]],t);return[Math.min(a[0],r[0],n[0],i[0]),Math.min(a[1],r[1],n[1],i[1]),Math.max(a[0],r[0],n[0],i[0]),Math.max(a[1],r[1],n[1],i[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],a=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],s=(a+i)/2,o=Math.sqrt((a+i)**2-4*(a*i-n*r))/2,c=s+o||1,l=s-o||1;return[Math.sqrt(c),Math.sqrt(l)]}static normalizeRect(e){const t=e.slice(0);if(e[0]>e[2]){t[0]=e[2];t[2]=e[0]}if(e[1]>e[3]){t[1]=e[3];t[3]=e[1]}return t}static intersect(e,t){const a=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(a>r)return null;const n=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return n>i?null:[a,n,r,i]}static bezierBoundingBox(e,t,a,r,n,i,s,o){const c=[],l=[[],[]];let h,u,d,f,g,p,m,b;for(let l=0;l<2;++l){if(0===l){u=6*e-12*a+6*n;h=-3*e+9*a-9*n+3*s;d=3*a-3*e}else{u=6*t-12*r+6*i;h=-3*t+9*r-9*i+3*o;d=3*r-3*t}if(Math.abs(h)<1e-12){if(Math.abs(u)<1e-12)continue;f=-d/u;0{Object.defineProperty(t,"__esModule",{value:!0});t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.PDF_VERSION_REGEXP=t.MissingDataException=void 0;t.arrayBuffersToBytes=function arrayBuffersToBytes(e){const t=e.length;if(0===t)return new Uint8Array(0);if(1===t)return new Uint8Array(e[0]);let a=0;for(let r=0;r=0;t--){const r=s[t];if(r instanceof n.Dict)for(const t of r.getKeys()){const s=a[t];if(!s)continue;const o=[];_collectJS(r.getRaw(t),e,o,new n.RefSet);o.length>0&&(i[s]=o)}}if(t.has("A")){const a=[];_collectJS(t.get("A"),e,a,new n.RefSet);a.length>0&&(i.Action=a)}return(0,r.objectSize)(i)>0?i:null};t.encodeToXmlString=function encodeToXmlString(e){const t=[];let a=0;for(let r=0,n=e.length;r55295&&(n<57344||n>65533)&&r++;a=r+1}}if(0===t.length)return e;a126||35===n||40===n||41===n||60===n||62===n||91===n||93===n||123===n||125===n||47===n||37===n){a"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))};t.getArrayLookupTableFactory=function getArrayLookupTableFactory(e){let t;return function(){if(e){let a=e();e=null;t=Object.create(null);for(let e=0,r=a.length;e0?t:null};t.getRotationMatrix=function getRotationMatrix(e,t,a){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,a];case 270:return[0,-1,1,0,0,a];default:throw new Error("Invalid rotation")}};t.isAscii=function isAscii(e){return/^[\x00-\x7F]*$/.test(e)};t.isWhiteSpace=function isWhiteSpace(e){return 32===e||9===e||13===e||10===e};t.log2=function log2(e){if(e<=0)return 0;return Math.ceil(Math.log2(e))};t.numberToString=function numberToString(e){if(Number.isInteger(e))return e.toString();const t=Math.round(100*e);if(t%100==0)return(t/100).toString();if(t%10==0)return e.toFixed(1);return e.toFixed(2)};t.parseXFAPath=function parseXFAPath(e){const t=/(.+)\[(\d+)\]$/;return e.split(".").map((e=>{const a=e.match(t);return a?{name:a[1],pos:parseInt(a[2],10)}:{name:e,pos:0}}))};t.readInt8=function readInt8(e,t){return e[t]<<24>>24};t.readUint16=function readUint16(e,t){return e[t]<<8|e[t+1]};t.readUint32=function readUint32(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0};t.recoverJsURL=function recoverJsURL(e){const t=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(e);if(t&&t[2]){const e=t[2];let a=!1;"true"===t[3]&&"app.launchURL"===t[1]&&(a=!0);return{url:e,newWindow:a}}return null};t.stringToUTF16HexString=function stringToUTF16HexString(e){const t=[];for(let a=0,r=e.length;a>8&255).toString(16).padStart(2,"0"),(255&r).toString(16).padStart(2,"0"))}return t.join("")};t.stringToUTF16String=function stringToUTF16String(e,t=!1){const a=[];t&&a.push("þÿ");for(let t=0,r=e.length;t>8&255),String.fromCharCode(255&r))}return a.join("")};t.toRomanNumerals=function toRomanNumerals(e,t=!1){(0,r.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");const a=[];let n;for(;e>=1e3;){e-=1e3;a.push("M")}n=e/100|0;e%=100;a.push(s[n]);n=e/10|0;e%=10;a.push(s[10+n]);a.push(s[20+e]);const i=a.join("");return t?i.toLowerCase():i};t.validateCSSFont=function validateCSSFont(e){const t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:a,fontWeight:n,italicAngle:i}=e,s=/^("|').*("|')$/.exec(a);if(s&&s[1]===s[2]){if(new RegExp(`[^\\\\]${s[1]}`).test(a.slice(1,-1))){(0,r.warn)(`XFA - FontFamily contains unescaped ${s[1]}: ${a}.`);return!1}}else for(const e of a.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(e)||!/^[\w-\\]+$/.test(e)){(0,r.warn)(`XFA - FontFamily contains invalid : ${a}.`);return!1}const o=n?n.toString():"";e.fontWeight=t.has(o)?o:"400";const c=parseFloat(i);e.italicAngle=isNaN(c)||c<-90||c>90?"14":i.toString();return!0};var r=a(2),n=a(4),i=a(5);t.PDF_VERSION_REGEXP=/^[1-9]\.\d$/;class MissingDataException extends r.BaseException{constructor(e,t){super(`Missing data [${e}, ${t})`,"MissingDataException");this.begin=e;this.end=t}}t.MissingDataException=MissingDataException;class ParserEOFException extends r.BaseException{constructor(e){super(e,"ParserEOFException")}}t.ParserEOFException=ParserEOFException;class XRefEntryException extends r.BaseException{constructor(e){super(e,"XRefEntryException")}}t.XRefEntryException=XRefEntryException;class XRefParseException extends r.BaseException{constructor(e){super(e,"XRefParseException")}}t.XRefParseException=XRefParseException;function getInheritableProperty({dict:e,key:t,getArray:a=!1,stopWhenFound:r=!0}){let i;const s=new n.RefSet;for(;e instanceof n.Dict&&(!e.objId||!s.has(e.objId));){e.objId&&s.put(e.objId);const n=a?e.getArray(t):e.get(t);if(void 0!==n){if(r)return n;i||(i=[]);i.push(n)}e=e.get("Parent")}return i}const s=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function _collectJS(e,t,a,s){if(!e)return;let o=null;if(e instanceof n.Ref){if(s.has(e))return;o=e;s.put(o);e=t.fetch(e)}if(Array.isArray(e))for(const r of e)_collectJS(r,t,a,s);else if(e instanceof n.Dict){if((0,n.isName)(e.get("S"),"JavaScript")){const t=e.get("JS");let n;t instanceof i.BaseStream?n=t.getString():"string"==typeof t&&(n=t);n=n&&(0,r.stringToPDFString)(n).replaceAll("\0","");n&&a.push(n)}_collectJS(e.getRaw("Next"),t,a,s)}o&&s.remove(o)}const o={60:"<",62:">",38:"&",34:""",39:"'"}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0;t.clearPrimitiveCaches=function clearPrimitiveCaches(){o._clearCache();s._clearCache();l._clearCache()};t.isCmd=function isCmd(e,t){return e instanceof o&&(void 0===t||e.cmd===t)};t.isDict=function isDict(e,t){return e instanceof Dict&&(void 0===t||isName(e.get("Type"),t))};t.isName=isName;t.isRefsEqual=function isRefsEqual(e,t){return e.num===t.num&&e.gen===t.gen};var r=a(2);const n=Symbol("CIRCULAR_REF");t.CIRCULAR_REF=n;const i=Symbol("EOF");t.EOF=i;const s=function NameClosure(){let e=Object.create(null);class Name{constructor(e){this.name=e}static get(t){return e[t]||(e[t]=new Name(t))}static _clearCache(){e=Object.create(null)}}return Name}();t.Name=s;const o=function CmdClosure(){let e=Object.create(null);class Cmd{constructor(e){this.cmd=e}static get(t){return e[t]||(e[t]=new Cmd(t))}static _clearCache(){e=Object.create(null)}}return Cmd}();t.Cmd=o;const c=function nonSerializableClosure(){return c};class Dict{constructor(e=null){this._map=Object.create(null);this.xref=e;this.objId=null;this.suppressEncryption=!1;this.__nonSerializable__=c}assignXref(e){this.xref=e}get size(){return Object.keys(this._map).length}get(e,t,a){let r=this._map[e];if(void 0===r&&void 0!==t){r=this._map[t];void 0===r&&void 0!==a&&(r=this._map[a])}return r instanceof l&&this.xref?this.xref.fetch(r,this.suppressEncryption):r}async getAsync(e,t,a){let r=this._map[e];if(void 0===r&&void 0!==t){r=this._map[t];void 0===r&&void 0!==a&&(r=this._map[a])}return r instanceof l&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r}getArray(e,t,a){let r=this._map[e];if(void 0===r&&void 0!==t){r=this._map[t];void 0===r&&void 0!==a&&(r=this._map[a])}r instanceof l&&this.xref&&(r=this.xref.fetch(r,this.suppressEncryption));if(Array.isArray(r)){r=r.slice();for(let e=0,t=r.length;e{(0,r.unreachable)("Should not call `set` on the empty dictionary.")};return(0,r.shadow)(this,"empty",e)}static merge({xref:e,dictArray:t,mergeSubDicts:a=!1}){const r=new Dict(e),n=new Map;for(const e of t)if(e instanceof Dict)for(const[t,r]of Object.entries(e._map)){let e=n.get(t);if(void 0===e){e=[];n.set(t,e)}else if(!(a&&r instanceof Dict))continue;e.push(r)}for(const[t,a]of n){if(1===a.length||!(a[0]instanceof Dict)){r._map[t]=a[0];continue}const n=new Dict(e);for(const e of a)for(const[t,a]of Object.entries(e._map))void 0===n._map[t]&&(n._map[t]=a);n.size>0&&(r._map[t]=n)}n.clear();return r.size>0?r:Dict.empty}}t.Dict=Dict;const l=function RefClosure(){let e=Object.create(null);class Ref{constructor(e,t){this.num=e;this.gen=t}toString(){return 0===this.gen?`${this.num}R`:`${this.num}R${this.gen}`}static get(t,a){const r=0===a?`${t}R`:`${t}R${a}`;return e[r]||(e[r]=new Ref(t,a))}static _clearCache(){e=Object.create(null)}}return Ref}();t.Ref=l;class RefSet{constructor(e=null){this._set=new Set(e&&e._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}t.RefSet=RefSet;class RefSetCache{constructor(){this._map=new Map}get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}t.RefSetCache=RefSetCache;function isName(e,t){return e instanceof s&&(void 0===t||e.name===t)}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.BaseStream=void 0;var r=a(2);class BaseStream{constructor(){this.constructor===BaseStream&&(0,r.unreachable)("Cannot initialize BaseStream.")}get length(){(0,r.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,r.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,r.shadow)(this,"isDataLoaded",!0)}getByte(){(0,r.unreachable)("Abstract method `getByte` called")}getBytes(e){(0,r.unreachable)("Abstract method `getBytes` called")}peekByte(){const e=this.getByte();-1!==e&&this.pos--;return e}peekBytes(e){const t=this.getBytes(e);this.pos-=t.length;return t}getUint16(){const e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(e,t){(0,r.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,r.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,r.unreachable)("Abstract method `reset` called")}moveStart(){(0,r.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t,a=null){(0,r.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}t.BaseStream=BaseStream},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.NetworkPdfManager=t.LocalPdfManager=void 0;var r=a(2),n=a(7),i=a(3),s=a(9),o=a(8);class BasePdfManager{constructor(e){this.constructor===BasePdfManager&&(0,r.unreachable)("Cannot initialize BasePdfManager.");this._docBaseUrl=function parseDocBaseUrl(e){if(e){const t=(0,r.createValidAbsoluteUrl)(e);if(t)return t.href;(0,r.warn)(`Invalid absolute docBaseUrl: "${e}".`)}return null}(e.docBaseUrl);this._docId=e.docId;this._password=e.password;this.enableXfa=e.enableXfa;e.evaluatorOptions.isOffscreenCanvasSupported=e.evaluatorOptions.isOffscreenCanvasSupported&&r.FeatureTest.isOffscreenCanvasSupported;this.evaluatorOptions=e.evaluatorOptions}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){const e=this.pdfDocument.catalog;return(0,r.shadow)(this,"docBaseUrl",e.baseUrl||this._docBaseUrl)}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}loadXfaFonts(e,t){return this.pdfDocument.loadXfaFonts(e,t)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(e){return this.pdfDocument.serializeXfaData(e)}cleanup(e=!1){return this.pdfDocument.cleanup(e)}async ensure(e,t,a){(0,r.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,r.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(e=!1){(0,r.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,r.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){(0,r.unreachable)("Abstract method `terminate` called")}}t.LocalPdfManager=class LocalPdfManager extends BasePdfManager{constructor(e){super(e);const t=new o.Stream(e.source);this.pdfDocument=new s.PDFDocument(this,t);this._loadedStreamPromise=Promise.resolve(t)}async ensure(e,t,a){const r=e[t];return"function"==typeof r?r.apply(e,a):r}requestRange(e,t){return Promise.resolve()}requestLoadedStream(e=!1){return this._loadedStreamPromise}terminate(e){}};t.NetworkPdfManager=class NetworkPdfManager extends BasePdfManager{constructor(e){super(e);this.streamManager=new n.ChunkedStreamManager(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize});this.pdfDocument=new s.PDFDocument(this,this.streamManager.getStream())}async ensure(e,t,a){try{const r=e[t];return"function"==typeof r?r.apply(e,a):r}catch(r){if(!(r instanceof i.MissingDataException))throw r;await this.requestRange(r.begin,r.end);return this.ensure(e,t,a)}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(e=!1){return this.streamManager.requestAllChunks(e)}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}terminate(e){this.streamManager.abort(e)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.ChunkedStreamManager=t.ChunkedStream=void 0;var r=a(3),n=a(2),i=a(8);class ChunkedStream extends i.Stream{constructor(e,t,a){super(new Uint8Array(e),0,e,null);this.chunkSize=t;this._loadedChunks=new Set;this.numChunks=Math.ceil(e/t);this.manager=a;this.progressiveDataLength=0;this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const e=[];for(let t=0,a=this.numChunks;t=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let e=a;ethis.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new r.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t)return;if(t<=this.progressiveDataLength)return;const a=Math.floor(e/this.chunkSize);if(a>this.numChunks)return;const n=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(let i=a;i=this.end)return-1;e>=this.progressiveDataLength&&this.ensureByte(e);return this.bytes[this.pos++]}getBytes(e){const t=this.bytes,a=this.pos,r=this.end;if(!e){r>this.progressiveDataLength&&this.ensureRange(a,r);return t.subarray(a,r)}let n=a+e;n>r&&(n=r);n>this.progressiveDataLength&&this.ensureRange(a,n);this.pos=n;return t.subarray(a,n)}getByteRange(e,t){e<0&&(e=0);t>this.end&&(t=this.end);t>this.progressiveDataLength&&this.ensureRange(e,t);return this.bytes.subarray(e,t)}makeSubStream(e,t,a=null){t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e);function ChunkedStreamSubstream(){}ChunkedStreamSubstream.prototype=Object.create(this);ChunkedStreamSubstream.prototype.getMissingChunks=function(){const e=this.chunkSize,t=Math.floor(this.start/e),a=Math.floor((this.end-1)/e)+1,r=[];for(let e=t;e{const readChunk=({value:s,done:o})=>{try{if(o){const t=(0,r.arrayBuffersToBytes)(n);n=null;e(t);return}i+=s.byteLength;a.isStreamingSupported&&this.onProgress({loaded:i});n.push(s);a.read().then(readChunk,t)}catch(e){t(e)}};a.read().then(readChunk,t)})).then((t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})}))}requestAllChunks(e=!1){if(!e){const e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(e){const t=this.currRequestId++,a=new Set;this._chunksNeededByRequest.set(t,a);for(const t of e)this.stream.hasChunk(t)||a.add(t);if(0===a.size)return Promise.resolve();const r=(0,n.createPromiseCapability)();this._promisesByRequest.set(t,r);const i=[];for(const e of a){let a=this._requestsByChunk.get(e);if(!a){a=[];this._requestsByChunk.set(e,a);i.push(e)}a.push(t)}if(i.length>0){const e=this.groupChunks(i);for(const t of e){const e=t.beginChunk*this.chunkSize,a=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(e,a).catch(r.reject)}}return r.promise.catch((e=>{if(!this.aborted)throw e}))}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);const a=this.getBeginChunk(e),r=this.getEndChunk(t),n=[];for(let e=a;e=0&&r+1!==i){t.push({beginChunk:a,endChunk:r+1});a=i}n+1===e.length&&t.push({beginChunk:a,endChunk:i+1});r=i}return t}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){const t=e.chunk,a=void 0===e.begin,r=a?this.progressiveDataLength:e.begin,n=r+t.byteLength,i=Math.floor(r/this.chunkSize),s=n0||o.push(a)}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let e;if(1===this.stream.numChunksLoaded){const t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(s);Number.isInteger(e)&&this._requestChunks([e])}for(const e of o){const t=this._promisesByRequest.get(e);this._promisesByRequest.delete(e);t.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0;this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);for(const t of this._promisesByRequest.values())t.reject(e)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.StringStream=t.Stream=t.NullStream=void 0;var r=a(5),n=a(2);class Stream extends r.BaseStream{constructor(e,t,a,r){super();this.bytes=e instanceof Uint8Array?e:new Uint8Array(e);this.start=t||0;this.pos=this.start;this.end=t+a||this.bytes.length;this.dict=r}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){const t=this.bytes,a=this.pos,r=this.end;if(!e)return t.subarray(a,r);let n=a+e;n>r&&(n=r);this.pos=n;return t.subarray(a,n)}getByteRange(e,t){e<0&&(e=0);t>this.end&&(t=this.end);return this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t,a=null){return new Stream(this.bytes.buffer,e,t,a)}}t.Stream=Stream;t.StringStream=class StringStream extends Stream{constructor(e){super((0,n.stringToBytes)(e))}};t.NullStream=class NullStream extends Stream{constructor(){super(new Uint8Array(0))}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.Page=t.PDFDocument=void 0;var r=a(10),n=a(2),i=a(3),s=a(4),o=a(50),c=a(5),l=a(66),h=a(68),u=a(70),d=a(99),f=a(15),g=a(8),p=a(74),m=a(62),b=a(13),y=a(17),w=a(73),S=a(64),x=a(75),C=a(100);const k=[0,0,612,792];class Page{constructor({pdfManager:e,xref:t,pageIndex:a,pageDict:r,ref:n,globalIdFactory:i,fontCache:s,builtInCMapCache:o,standardFontDataCache:c,globalImageCache:l,nonBlendModesSet:h,xfaFactory:u}){this.pdfManager=e;this.pageIndex=a;this.pageDict=r;this.xref=t;this.ref=n;this.fontCache=s;this.builtInCMapCache=o;this.standardFontDataCache=c;this.globalImageCache=l;this.nonBlendModesSet=h;this.evaluatorOptions=e.evaluatorOptions;this.resourcesPromise=null;this.xfaFactory=u;const d={obj:0};this._localIdFactory=class extends i{static createObjId(){return`p${a}_${++d.obj}`}static getPageObjId(){return`page${n.toString()}`}}}_getInheritableProperty(e,t=!1){const a=(0,i.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(a)?1!==a.length&&a[0]instanceof s.Dict?s.Dict.merge({xref:this.xref,dictArray:a}):a[0]:a}get content(){return this.pageDict.getArray("Contents")}get resources(){const e=this._getInheritableProperty("Resources");return(0,n.shadow)(this,"resources",e instanceof s.Dict?e:s.Dict.empty)}_getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox;let t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){t=n.Util.normalizeRect(t);if(t[2]-t[0]>0&&t[3]-t[1]>0)return t;(0,n.warn)(`Empty, or invalid, /${e} entry.`)}return null}get mediaBox(){return(0,n.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||k)}get cropBox(){return(0,n.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let e=this.pageDict.get("UserUnit");("number"!=typeof e||e<=0)&&(e=1);return(0,n.shadow)(this,"userUnit",e)}get view(){const{cropBox:e,mediaBox:t}=this;if(e!==t&&!(0,n.isArrayEqual)(e,t)){const a=n.Util.intersect(e,t);if(a&&a[2]-a[0]>0&&a[3]-a[1]>0)return(0,n.shadow)(this,"view",a);(0,n.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,n.shadow)(this,"view",t)}get rotate(){let e=this._getInheritableProperty("Rotate")||0;e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360);return(0,n.shadow)(this,"rotate",e)}_onSubStreamError(e,t){if(!this.evaluatorOptions.ignoreErrors)throw e;(0,n.warn)(`getContentStream - ignoring sub-stream (${t}): "${e}".`)}getContentStream(){return this.pdfManager.ensure(this,"content").then((e=>e instanceof c.BaseStream?e:Array.isArray(e)?new y.StreamsSequenceStream(e,this._onSubStreamError.bind(this)):new g.NullStream))}get xfaData(){return(0,n.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(e,t,a){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const n=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),i=this.pageDict,s=this.annotations.slice(),o=await r.AnnotationFactory.saveNewAnnotations(n,t,a);for(const{ref:e}of o.annotations)s.push(e);const c=i.get("Annots");i.set("Annots",s);const l=[];let h=null;this.xref.encrypt&&(h=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen));(0,S.writeObject)(this.ref,i,l,h);c&&i.set("Annots",c);const u=o.dependencies;u.push({ref:this.ref,data:l.join("")},...o.annotations);return u}save(e,t,a){const r=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(e){const i=[];for(const s of e)s.mustBePrinted(a)&&i.push(s.save(r,t,a).catch((function(e){(0,n.warn)(`save - ignoring annotation data during "${t.name}" task: "${e}".`);return null})));return Promise.all(i).then((function(e){return e.filter((e=>!!e))}))}))}loadResources(e){this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources"));return this.resourcesPromise.then((()=>new p.ObjectLoader(this.resources,e,this.xref).load()))}getOperatorList({handler:e,sink:t,task:a,intent:s,cacheKey:o,annotationStorage:c=null}){const l=this.getContentStream(),h=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),u=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),d=this.xfaFactory?null:(0,i.getNewAnnotationsMap)(c);let f=Promise.resolve(null);if(d){const e=d.get(this.pageIndex);e&&(f=r.AnnotationFactory.printNewAnnotations(u,a,e))}const g=Promise.all([l,h]).then((([r])=>{const n=new m.OperatorList(s,t);e.send("StartRenderPage",{transparency:u.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:o});return u.getOperatorList({stream:r,task:a,resources:this.resources,operatorList:n}).then((function(){return n}))}));return Promise.all([g,this._parsedAnnotations,f]).then((function([e,t,r]){r&&(t=t.concat(r));if(0===t.length||s&n.RenderingIntentFlag.ANNOTATIONS_DISABLE){e.flush(!0);return{length:e.totalLength}}const i=!!(s&n.RenderingIntentFlag.ANNOTATIONS_FORMS),o=!!(s&n.RenderingIntentFlag.ANY),l=!!(s&n.RenderingIntentFlag.DISPLAY),h=!!(s&n.RenderingIntentFlag.PRINT),d=[];for(const e of t)(o||l&&e.mustBeViewed(c)||h&&e.mustBePrinted(c))&&d.push(e.getOperatorList(u,a,s,i,c).catch((function(e){(0,n.warn)(`getOperatorList - ignoring annotation data during "${a.name}" task: "${e}".`);return{opList:null,separateForm:!1,separateCanvas:!1}})));return Promise.all(d).then((function(t){let a=!1,r=!1;for(const{opList:n,separateForm:i,separateCanvas:s}of t){e.addOpList(n);i&&(a=i);s&&(r=s)}e.flush(!0,{form:a,canvas:r});return{length:e.totalLength}}))}))}extractTextContent({handler:e,task:t,includeMarkedContent:a,sink:r}){const n=this.getContentStream(),i=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([n,i]).then((([n])=>new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}).getTextContent({stream:n,task:t,resources:this.resources,includeMarkedContent:a,sink:r,viewBox:this.view})))}async getStructTree(){const e=await this.pdfManager.ensureCatalog("structTreeRoot");if(!e)return null;return(await this.pdfManager.ensure(this,"_parseStructTree",[e])).serializable}_parseStructTree(e){const t=new w.StructTreePage(e,this.pageDict);t.parse();return t}async getAnnotationsData(e,t,a){const r=await this._parsedAnnotations;if(0===r.length)return[];const i=[],s=[];let o;const c=!!(a&n.RenderingIntentFlag.ANY),l=!!(a&n.RenderingIntentFlag.DISPLAY),h=!!(a&n.RenderingIntentFlag.PRINT);for(const a of r){const r=c||l&&a.viewable;(r||h&&a.printable)&&s.push(a.data);if(a.hasTextContent&&r){o||(o=new b.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}));i.push(a.extractTextContent(o,t,this.view).catch((function(e){(0,n.warn)(`getAnnotationsData - ignoring textContent during "${t.name}" task: "${e}".`)})))}}await Promise.all(i);return s}get annotations(){const e=this._getInheritableProperty("Annots");return(0,n.shadow)(this,"annotations",Array.isArray(e)?e:[])}get _parsedAnnotations(){const e=this.pdfManager.ensure(this,"annotations").then((()=>{const e=[];for(const t of this.annotations)e.push(r.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!1).catch((function(e){(0,n.warn)(`_parsedAnnotations: "${e}".`);return null})));return Promise.all(e).then((function(e){if(0===e.length)return e;const t=[];let a;for(const n of e)if(n)if(n instanceof r.PopupAnnotation){a||(a=[]);a.push(n)}else t.push(n);a&&t.push(...a);return t}))}));return(0,n.shadow)(this,"_parsedAnnotations",e)}get jsActions(){const e=(0,i.collectActions)(this.xref,this.pageDict,n.PageActionEventType);return(0,n.shadow)(this,"jsActions",e)}}t.Page=Page;const v=new Uint8Array([37,80,68,70,45]),F=new Uint8Array([115,116,97,114,116,120,114,101,102]),O=new Uint8Array([101,110,100,111,98,106]);function find(e,t,a=1024,r=!1){const n=t.length,i=e.peekBytes(a),s=i.length-n;if(s<=0)return!1;if(r){const a=n-1;let r=i.length-1;for(;r>=a;){let s=0;for(;s=n){e.pos+=r-a;return!0}r--}}else{let a=0;for(;a<=s;){let r=0;for(;r=n){e.pos+=a;return!0}a++}}return!1}t.PDFDocument=class PDFDocument{constructor(e,t){if(t.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e;this.stream=t;this.xref=new C.XRef(t,e);this._pagePromises=new Map;this._version=null;const a={font:0};this._globalIdFactory=class{static getDocId(){return`g_${e.docId}`}static createFontId(){return"f"+ ++a.font}static createObjId(){(0,n.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,n.unreachable)("Abstract method `getPageObjId` called.")}}}parse(e){this.xref.parse(e);this.catalog=new h.Catalog(this.pdfManager,this.xref)}get linearization(){let e=null;try{e=f.Linearization.create(this.stream)}catch(e){if(e instanceof i.MissingDataException)throw e;(0,n.info)(e)}return(0,n.shadow)(this,"linearization",e)}get startXRef(){const e=this.stream;let t=0;if(this.linearization){e.reset();find(e,O)&&(t=e.pos+6-e.start)}else{const a=1024,r=F.length;let n=!1,s=e.end;for(;!n&&s>0;){s-=a-r;s<0&&(s=0);e.pos=s;n=find(e,F,a,!0)}if(n){e.skip(9);let a;do{a=e.getByte()}while((0,i.isWhiteSpace)(a));let r="";for(;a>=32&&a<=57;){r+=String.fromCharCode(a);a=e.getByte()}t=parseInt(r,10);isNaN(t)&&(t=0)}}return(0,n.shadow)(this,"startXRef",t)}checkHeader(){const e=this.stream;e.reset();if(!find(e,v))return;e.moveStart();e.skip(v.length);let t,a="";for(;(t=e.getByte())>32&&a.length<7;)a+=String.fromCharCode(t);i.PDF_VERSION_REGEXP.test(a)?this._version=a:(0,n.warn)(`Invalid PDF header version: ${a}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let e=0;e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages;return(0,n.shadow)(this,"numPages",e)}_hasOnlyDocumentSignatures(e,t=0){return!!Array.isArray(e)&&e.every((e=>{if(!((e=this.xref.fetchIfRef(e))instanceof s.Dict))return!1;if(e.has("Kids")){if(++t>10){(0,n.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached");return!1}return this._hasOnlyDocumentSignatures(e.get("Kids"),t)}const a=(0,s.isName)(e.get("FT"),"Sig"),r=e.get("Rect"),i=Array.isArray(r)&&r.every((e=>0===e));return a&&i}))}get _xfaStreams(){const e=this.catalog.acroForm;if(!e)return null;const t=e.get("XFA"),a={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(t instanceof c.BaseStream&&!t.isEmpty){a["xdp:xdp"]=t;return a}if(!Array.isArray(t)||0===t.length)return null;for(let e=0,r=t.length;e{y.set(e,t)}));const w=[];for(const[e,a]of y){const o=a.get("FontDescriptor");if(!(o instanceof s.Dict))continue;let c=o.get("FontFamily");c=c.replaceAll(/[ ]+(\d)/g,"$1");const l={fontFamily:c,fontWeight:o.get("FontWeight"),italicAngle:-o.get("ItalicAngle")};(0,i.validateCSSFont)(l)&&w.push(u.handleSetFont(r,[s.Name.get(e),1],null,d,t,g,null,l).catch((function(e){(0,n.warn)(`loadXfaFonts: "${e}".`);return null})))}await Promise.all(w);const S=this.xfaFactory.setFonts(f);if(!S)return;h.ignoreErrors=!0;w.length=0;f.length=0;const x=new Set;for(const e of S)(0,o.getXfaFontName)(`${e}-Regular`)||x.add(e);x.size&&S.push("PdfJS-Fallback");for(const e of S)if(!x.has(e))for(const a of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const i=`${e}-${a.name}`,c=(0,o.getXfaFontDict)(i);w.push(u.handleSetFont(r,[s.Name.get(i),1],null,d,t,g,c,{fontFamily:e,fontWeight:a.fontWeight,italicAngle:a.italicAngle}).catch((function(e){(0,n.warn)(`loadXfaFonts: "${e}".`);return null})))}await Promise.all(w);this.xfaFactory.appendFonts(f,x)}async serializeXfaData(e){return this.xfaFactory?this.xfaFactory.serializeData(e):null}get version(){return this.catalog.version||this._version}get formInfo(){const e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(!t)return(0,n.shadow)(this,"formInfo",e);try{const a=t.get("Fields"),r=Array.isArray(a)&&a.length>0;e.hasFields=r;const n=t.get("XFA");e.hasXfa=Array.isArray(n)&&n.length>0||n instanceof c.BaseStream&&!n.isEmpty;const i=!!(1&t.get("SigFlags")),s=i&&this._hasOnlyDocumentSignatures(a);e.hasAcroForm=r&&!s;e.hasSignatures=i}catch(e){if(e instanceof i.MissingDataException)throw e;(0,n.warn)(`Cannot fetch form information: "${e}".`)}return(0,n.shadow)(this,"formInfo",e)}get documentInfo(){const e={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let t;try{t=this.xref.trailer.get("Info")}catch(e){if(e instanceof i.MissingDataException)throw e;(0,n.info)("The document information dictionary is invalid.")}if(!(t instanceof s.Dict))return(0,n.shadow)(this,"documentInfo",e);for(const a of t.getKeys()){const r=t.get(a);switch(a){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof r){e[a]=(0,n.stringToPDFString)(r);continue}break;case"Trapped":if(r instanceof s.Name){e[a]=r;continue}break;default:let t;switch(typeof r){case"string":t=(0,n.stringToPDFString)(r);break;case"number":case"boolean":t=r;break;default:r instanceof s.Name&&(t=r)}if(void 0===t){(0,n.warn)(`Bad value, for custom key "${a}", in Info: ${r}.`);continue}e.Custom||(e.Custom=Object.create(null));e.Custom[a]=t;continue}(0,n.warn)(`Bad value, for key "${a}", in Info: ${r}.`)}return(0,n.shadow)(this,"documentInfo",e)}get fingerprints(){function validate(e){return"string"==typeof e&&e.length>0&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==e}function hexString(e){const t=[];for(const a of e){const e=a.toString(16);t.push(e.padStart(2,"0"))}return t.join("")}const e=this.xref.trailer.get("ID");let t,a;if(Array.isArray(e)&&validate(e[0])){t=(0,n.stringToBytes)(e[0]);e[1]!==e[0]&&validate(e[1])&&(a=(0,n.stringToBytes)(e[1]))}else t=(0,l.calculateMD5)(this.stream.getByteRange(0,1024),0,1024);return(0,n.shadow)(this,"fingerprints",[hexString(t),a?hexString(a):null])}async _getLinearizationPage(e){const{catalog:t,linearization:a,xref:r}=this,i=s.Ref.get(a.objectNumberFirst,0);try{const e=await r.fetchAsync(i);if(e instanceof s.Dict){let a=e.getRaw("Type");a instanceof s.Ref&&(a=await r.fetchAsync(a));if((0,s.isName)(a,"Page")||!e.has("Type")&&!e.has("Kids")){t.pageKidsCountCache.has(i)||t.pageKidsCountCache.put(i,1);t.pageIndexCache.has(i)||t.pageIndexCache.put(i,0);return[e,i]}}throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(a){(0,n.warn)(`_getLinearizationPage: "${a.message}".`);return t.getPageDict(e)}}getPage(e){const t=this._pagePromises.get(e);if(t)return t;const{catalog:a,linearization:r,xfaFactory:n}=this;let i;i=n?Promise.resolve([s.Dict.empty,null]):r&&r.pageFirst===e?this._getLinearizationPage(e):a.getPageDict(e);i=i.then((([t,r])=>new Page({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:t,ref:r,globalIdFactory:this._globalIdFactory,fontCache:a.fontCache,builtInCMapCache:a.builtInCMapCache,standardFontDataCache:a.standardFontDataCache,globalImageCache:a.globalImageCache,nonBlendModesSet:a.nonBlendModesSet,xfaFactory:n})));this._pagePromises.set(e,i);return i}async checkFirstPage(e=!1){if(!e)try{await this.getPage(0)}catch(e){if(e instanceof i.XRefEntryException){this._pagePromises.delete(0);await this.cleanup();throw new i.XRefParseException}}}async checkLastPage(e=!1){const{catalog:t,pdfManager:a}=this;t.setActualNumPages();let r;try{await Promise.all([a.ensureDoc("xfaFactory"),a.ensureDoc("linearization"),a.ensureCatalog("numPages")]);if(this.xfaFactory)return;r=this.linearization?this.linearization.numPages:t.numPages;if(!Number.isInteger(r))throw new n.FormatError("Page count is not an integer.");if(r<=1)return;await this.getPage(r-1)}catch(s){this._pagePromises.delete(r-1);await this.cleanup();if(s instanceof i.XRefEntryException&&!e)throw new i.XRefParseException;(0,n.warn)(`checkLastPage - invalid /Pages tree /Count: ${r}.`);let o;try{o=await t.getAllPageDicts(e)}catch(a){if(a instanceof i.XRefEntryException&&!e)throw new i.XRefParseException;t.setActualNumPages(1);return}for(const[e,[r,n]]of o){let i;if(r instanceof Error){i=Promise.reject(r);i.catch((()=>{}))}else i=Promise.resolve(new Page({pdfManager:a,xref:this.xref,pageIndex:e,pageDict:r,ref:n,globalIdFactory:this._globalIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalImageCache:t.globalImageCache,nonBlendModesSet:t.nonBlendModesSet,xfaFactory:null}));this._pagePromises.set(e,i)}t.setActualNumPages(o.size)}}fontFallback(e,t){return this.catalog.fontFallback(e,t)}async cleanup(e=!1){return this.catalog?this.catalog.cleanup(e):(0,u.clearGlobalCaches)()}_collectFieldObjects(e,t,a){const i=this.xref.fetchIfRef(t);if(i.has("T")){const t=(0,n.stringToPDFString)(i.get("T"));e=""===e?t:`${e}.${t}`}a.has(e)||a.set(e,[]);a.get(e).push(r.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!0).then((e=>e&&e.getFieldObject())).catch((function(e){(0,n.warn)(`_collectFieldObjects: "${e}".`);return null})));if(i.has("Kids")){const t=i.get("Kids");for(const r of t)this._collectFieldObjects(e,r,a)}}get fieldObjects(){if(!this.formInfo.hasFields)return(0,n.shadow)(this,"fieldObjects",Promise.resolve(null));const e=Object.create(null),t=new Map;for(const e of this.catalog.acroForm.get("Fields"))this._collectFieldObjects("",e,t);const a=[];for(const[r,n]of t)a.push(Promise.all(n).then((t=>{(t=t.filter((e=>!!e))).length>0&&(e[r]=t)})));return(0,n.shadow)(this,"fieldObjects",Promise.all(a).then((()=>e)))}get hasJSActions(){const e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,n.shadow)(this,"hasJSActions",e)}async _parseHasJSActions(){const[e,t]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!e||!!t&&Object.values(t).some((e=>e.some((e=>null!==e.actions))))}get calculationOrderIds(){const e=this.catalog.acroForm;if(!e||!e.has("CO"))return(0,n.shadow)(this,"calculationOrderIds",null);const t=e.get("CO");if(!Array.isArray(t)||0===t.length)return(0,n.shadow)(this,"calculationOrderIds",null);const a=[];for(const e of t)e instanceof s.Ref&&a.push(e.toString());return 0===a.length?(0,n.shadow)(this,"calculationOrderIds",null):(0,n.shadow)(this,"calculationOrderIds",a)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.PopupAnnotation=t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;t.getQuadPoints=getQuadPoints;var r=a(2),n=a(3),i=a(11),s=a(4),o=a(64),c=a(5),l=a(59),h=a(68),u=a(12),d=a(71),f=a(74),g=a(62),p=a(8),m=a(75);t.AnnotationFactory=class AnnotationFactory{static create(e,t,a,r,n){return Promise.all([a.ensureCatalog("acroForm"),a.ensureCatalog("baseUrl"),a.ensureCatalog("attachments"),a.ensureDoc("xfaDatasets"),n?this._getPageIndex(e,t,a):-1]).then((([i,s,o,c,l])=>a.ensure(this,"_create",[e,t,a,r,i,o,c,n,l])))}static _create(e,t,a,i,o,c=null,l,h,u=-1){const d=e.fetchIfRef(t);if(!(d instanceof s.Dict))return;const f=t instanceof s.Ref?t.toString():`annot_${i.createObjId()}`;let g=d.get("Subtype");g=g instanceof s.Name?g.name:null;const p=o instanceof s.Dict?o:s.Dict.empty,m={xref:e,ref:t,dict:d,subtype:g,id:f,pdfManager:a,acroForm:p,attachments:c,xfaDatasets:l,collectFields:h,needAppearances:!h&&!0===p.get("NeedAppearances"),pageIndex:u,isOffscreenCanvasSupported:a.evaluatorOptions.isOffscreenCanvasSupported};switch(g){case"Link":return new LinkAnnotation(m);case"Text":return new TextAnnotation(m);case"Widget":let e=(0,n.getInheritableProperty)({dict:d,key:"FT"});e=e instanceof s.Name?e.name:null;switch(e){case"Tx":return new TextWidgetAnnotation(m);case"Btn":return new ButtonWidgetAnnotation(m);case"Ch":return new ChoiceWidgetAnnotation(m);case"Sig":return new SignatureWidgetAnnotation(m)}(0,r.warn)(`Unimplemented widget field type "${e}", falling back to base field type.`);return new WidgetAnnotation(m);case"Popup":return new PopupAnnotation(m);case"FreeText":return new FreeTextAnnotation(m);case"Line":return new LineAnnotation(m);case"Square":return new SquareAnnotation(m);case"Circle":return new CircleAnnotation(m);case"PolyLine":return new PolylineAnnotation(m);case"Polygon":return new PolygonAnnotation(m);case"Caret":return new CaretAnnotation(m);case"Ink":return new InkAnnotation(m);case"Highlight":return new HighlightAnnotation(m);case"Underline":return new UnderlineAnnotation(m);case"Squiggly":return new SquigglyAnnotation(m);case"StrikeOut":return new StrikeOutAnnotation(m);case"Stamp":return new StampAnnotation(m);case"FileAttachment":return new FileAttachmentAnnotation(m);default:h||(g?(0,r.warn)(`Unimplemented annotation type "${g}", falling back to base annotation.`):(0,r.warn)("Annotation is missing the required /Subtype."));return new Annotation(m)}}static async _getPageIndex(e,t,a){try{const r=await e.fetchIfRefAsync(t);if(!(r instanceof s.Dict))return-1;const n=r.getRaw("P");if(!(n instanceof s.Ref))return-1;return await a.ensureCatalog("getPageIndex",[n])}catch(e){(0,r.warn)(`_getPageIndex: "${e}".`);return-1}}static async saveNewAnnotations(e,t,a){const n=e.xref;let i;const c=[],l=[];for(const h of a)switch(h.annotationType){case r.AnnotationEditorType.FREETEXT:if(!i){const e=new s.Dict(n);e.set("BaseFont",s.Name.get("Helvetica"));e.set("Type",s.Name.get("Font"));e.set("Subtype",s.Name.get("Type1"));e.set("Encoding",s.Name.get("WinAnsiEncoding"));const t=[];i=n.getNewTemporaryRef();(0,o.writeObject)(i,e,t,null);c.push({ref:i,data:t.join("")})}l.push(FreeTextAnnotation.createNewAnnotation(n,h,c,{evaluator:e,task:t,baseFontRef:i}));break;case r.AnnotationEditorType.INK:l.push(InkAnnotation.createNewAnnotation(n,h,c))}return{annotations:await Promise.all(l),dependencies:c}}static async printNewAnnotations(e,t,a){if(!a)return null;const n=e.xref,{isOffscreenCanvasSupported:i}=e.options,s=[];for(const o of a)switch(o.annotationType){case r.AnnotationEditorType.FREETEXT:s.push(FreeTextAnnotation.createNewPrintAnnotation(n,o,{evaluator:e,task:t,isOffscreenCanvasSupported:i}));break;case r.AnnotationEditorType.INK:s.push(InkAnnotation.createNewPrintAnnotation(n,o,{isOffscreenCanvasSupported:i}))}return Promise.all(s)}};function getRgbColor(e,t=new Uint8ClampedArray(3)){if(!Array.isArray(e))return t;const a=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:u.ColorSpace.singletons.gray.getRgbItem(e,0,a,0);return a;case 3:u.ColorSpace.singletons.rgb.getRgbItem(e,0,a,0);return a;case 4:u.ColorSpace.singletons.cmyk.getRgbItem(e,0,a,0);return a;default:return t}}function getPdfColorArray(e){return Array.from(e,(e=>e/255))}function getQuadPoints(e,t){const a=e.getArray("QuadPoints");if(!Array.isArray(a)||0===a.length||a.length%8>0)return null;const r=[];for(let e=0,n=a.length/8;et[2]||st[3]))return null;r.push([{x:n,y:o},{x:i,y:o},{x:n,y:s},{x:i,y:s}])}return r}function getTransformMatrix(e,t,a){const[n,i,s,o]=r.Util.getAxialAlignedBoundingBox(t,a);if(n===s||i===o)return[1,0,0,1,e[0],e[1]];const c=(e[2]-e[0])/(s-n),l=(e[3]-e[1])/(o-i);return[c,0,0,l,e[0]-n*c,e[1]-i*l]}class Annotation{constructor(e){const{dict:t,xref:a}=e;this.setTitle(t.get("T"));this.setContents(t.get("Contents"));this.setModificationDate(t.get("M"));this.setFlags(t.get("F"));this.setRectangle(t.getArray("Rect"));this.setColor(t.getArray("C"));this.setBorderStyle(t);this.setAppearance(t);this.setOptionalContent(t);const i=t.get("MK");this.setBorderAndBackgroundColors(i);this.setRotation(i);this._streams=[];this.appearance&&this._streams.push(this.appearance);const o=!!(this.flags&r.AnnotationFlag.LOCKED),c=!!(this.flags&r.AnnotationFlag.LOCKEDCONTENTS);this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&r.AnnotationFlag.NOROTATE),noHTML:o&&c};if(e.collectFields){const i=t.get("Kids");if(Array.isArray(i)){const e=[];for(const t of i)t instanceof s.Ref&&e.push(t.toString());0!==e.length&&(this.data.kidIds=e)}this.data.actions=(0,n.collectActions)(a,t,r.AnnotationActionEventType);this.data.fieldName=this._constructFieldName(t);this.data.pageIndex=e.pageIndex}this._isOffscreenCanvasSupported=e.isOffscreenCanvasSupported;this._fallbackFontDict=null;this._needAppearances=!1}_hasFlag(e,t){return!!(e&t)}_isViewable(e){return!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,r.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,r.AnnotationFlag.PRINT)&&!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)}mustBeViewed(e){const t=e&&e.get(this.data.id);return t&&void 0!==t.hidden?!t.hidden:this.viewable&&!this._hasFlag(this.flags,r.AnnotationFlag.HIDDEN)}mustBePrinted(e){const t=e&&e.get(this.data.id);return t&&void 0!==t.print?t.print:this.printable}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&(0!==this.flags&&this._isPrintable(this.flags))}_parseStringHelper(e){const t="string"==typeof e?(0,r.stringToPDFString)(e):"";return{str:t,dir:t&&"rtl"===(0,l.bidi)(t).dir?"rtl":"ltr"}}setDefaultAppearance(e){const t=(0,n.getInheritableProperty)({dict:e.dict,key:"DA"})||e.acroForm.get("DA");this._defaultAppearance="string"==typeof t?t:"";this.data.defaultAppearanceData=(0,i.parseDefaultAppearance)(this._defaultAppearance)}setTitle(e){this._title=this._parseStringHelper(e)}setContents(e){this._contents=this._parseStringHelper(e)}setModificationDate(e){this.modificationDate="string"==typeof e?e:null}setFlags(e){this.flags=Number.isInteger(e)&&e>0?e:0}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){Array.isArray(e)&&4===e.length?this.rectangle=r.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}setColor(e){this.color=getRgbColor(e)}setLineEndings(e){this.lineEndings=["None","None"];if(Array.isArray(e)&&2===e.length)for(let t=0;t<2;t++){const a=e[t];if(a instanceof s.Name)switch(a.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=a.name;continue}(0,r.warn)(`Ignoring invalid lineEnding: ${a}`)}}setRotation(e){this.rotation=0;if(e instanceof s.Dict){let t=e.get("R")||0;if(Number.isInteger(t)&&0!==t){t%=360;t<0&&(t+=360);t%90==0&&(this.rotation=t)}}}setBorderAndBackgroundColors(e){if(e instanceof s.Dict){this.borderColor=getRgbColor(e.getArray("BC"),null);this.backgroundColor=getRgbColor(e.getArray("BG"),null)}else this.borderColor=this.backgroundColor=null}setBorderStyle(e){this.borderStyle=new AnnotationBorderStyle;if(e instanceof s.Dict)if(e.has("BS")){const t=e.get("BS"),a=t.get("Type");if(!a||(0,s.isName)(a,"Border")){this.borderStyle.setWidth(t.get("W"),this.rectangle);this.borderStyle.setStyle(t.get("S"));this.borderStyle.setDashArray(t.getArray("D"))}}else if(e.has("Border")){const t=e.getArray("Border");if(Array.isArray(t)&&t.length>=3){this.borderStyle.setHorizontalCornerRadius(t[0]);this.borderStyle.setVerticalCornerRadius(t[1]);this.borderStyle.setWidth(t[2],this.rectangle);4===t.length&&this.borderStyle.setDashArray(t[3],!0)}}else this.borderStyle.setWidth(0)}setAppearance(e){this.appearance=null;const t=e.get("AP");if(!(t instanceof s.Dict))return;const a=t.get("N");if(a instanceof c.BaseStream){this.appearance=a;return}if(!(a instanceof s.Dict))return;const r=e.get("AS");if(!(r instanceof s.Name&&a.has(r.name)))return;const n=a.get(r.name);n instanceof c.BaseStream&&(this.appearance=n)}setOptionalContent(e){this.oc=null;const t=e.get("OC");t instanceof s.Name?(0,r.warn)("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof s.Dict&&(this.oc=t)}loadResources(e,t){return t.dict.getAsync("Resources").then((t=>{if(!t)return;return new f.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}async getOperatorList(e,t,a,n,i){const o=this.data;let c=this.appearance;const l=!!(this.data.hasOwnCanvas&&a&r.RenderingIntentFlag.DISPLAY);if(!c){if(!l)return{opList:new g.OperatorList,separateForm:!1,separateCanvas:!1};c=new p.StringStream("");c.dict=new s.Dict}const h=c.dict,u=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],c),d=h.getArray("BBox")||[0,0,1,1],f=h.getArray("Matrix")||[1,0,0,1,0,0],m=getTransformMatrix(o.rect,d,f),b=new g.OperatorList;let y;this.oc&&(y=await e.parseMarkedContentProps(this.oc,null));void 0!==y&&b.addOp(r.OPS.beginMarkedContentProps,["OC",y]);b.addOp(r.OPS.beginAnnotation,[o.id,o.rect,m,f,l]);await e.getOperatorList({stream:c,task:t,resources:u,operatorList:b,fallbackFontDict:this._fallbackFontDict});b.addOp(r.OPS.endAnnotation,[]);void 0!==y&&b.addOp(r.OPS.endMarkedContent,[]);this.reset();return{opList:b,separateForm:!1,separateCanvas:l}}async save(e,t,a){return null}get hasTextContent(){return!1}async extractTextContent(e,t,a){if(!this.appearance)return;const r=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),n=[],i=[],s={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(const t of e.items){i.push(t.str);if(t.hasEOL){n.push(i.join(""));i.length=0}}}};await e.getTextContent({stream:this.appearance,task:t,resources:r,includeMarkedContent:!0,sink:s,viewBox:a});this.reset();i.length&&n.push(i.join(""));n.length>0&&(this.data.textContent=n)}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const e of this._streams)e.reset()}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent")){(0,r.warn)("Unknown field name, falling back to empty field name.");return""}if(!e.has("Parent"))return(0,r.stringToPDFString)(e.get("T"));const t=[];e.has("T")&&t.unshift((0,r.stringToPDFString)(e.get("T")));let a=e;const n=new s.RefSet;e.objId&&n.put(e.objId);for(;a.has("Parent");){a=a.get("Parent");if(!(a instanceof s.Dict)||a.objId&&n.has(a.objId))break;a.objId&&n.put(a.objId);if(a.has("T")){const e=(0,r.stringToPDFString)(a.get("T"));e.startsWith("#")||t.unshift(e)}}return t.join(".")}}t.Annotation=Annotation;class AnnotationBorderStyle{constructor(){this.width=1;this.style=r.AnnotationBorderStyleType.SOLID;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0}setWidth(e,t=[0,0,0,0]){if(e instanceof s.Name)this.width=0;else if("number"==typeof e){if(e>0){const a=(t[2]-t[0])/2,n=(t[3]-t[1])/2;if(a>0&&n>0&&(e>a||e>n)){(0,r.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${e}`);e=1}}this.width=e}}setStyle(e){if(e instanceof s.Name)switch(e.name){case"S":this.style=r.AnnotationBorderStyleType.SOLID;break;case"D":this.style=r.AnnotationBorderStyleType.DASHED;break;case"B":this.style=r.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=r.AnnotationBorderStyleType.INSET;break;case"U":this.style=r.AnnotationBorderStyleType.UNDERLINE}}setDashArray(e,t=!1){if(Array.isArray(e)&&e.length>0){let a=!0,r=!0;for(const t of e){if(!(+t>=0)){a=!1;break}t>0&&(r=!1)}if(a&&!r){this.dashArray=e;t&&this.setStyle(s.Name.get("D"))}else this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}t.AnnotationBorderStyle=AnnotationBorderStyle;class MarkupAnnotation extends Annotation{constructor(e){super(e);const{dict:t}=e;if(t.has("IRT")){const e=t.getRaw("IRT");this.data.inReplyTo=e instanceof s.Ref?e.toString():null;const a=t.get("RT");this.data.replyType=a instanceof s.Name?a.name:r.AnnotationReplyType.REPLY}if(this.data.replyType===r.AnnotationReplyType.GROUP){const e=t.get("IRT");this.setTitle(e.get("T"));this.data.titleObj=this._title;this.setContents(e.get("Contents"));this.data.contentsObj=this._contents;if(e.has("CreationDate")){this.setCreationDate(e.get("CreationDate"));this.data.creationDate=this.creationDate}else this.data.creationDate=null;if(e.has("M")){this.setModificationDate(e.get("M"));this.data.modificationDate=this.modificationDate}else this.data.modificationDate=null;this.data.hasPopup=e.has("Popup");if(e.has("C")){this.setColor(e.getArray("C"));this.data.color=this.color}else this.data.color=null}else{this.data.titleObj=this._title;this.setCreationDate(t.get("CreationDate"));this.data.creationDate=this.creationDate;this.data.hasPopup=t.has("Popup");t.has("C")||(this.data.color=null)}t.has("RC")&&(this.data.richText=m.XFAFactory.getRichTextAsHtml(t.get("RC")))}setCreationDate(e){this.creationDate="string"==typeof e?e:null}_setDefaultAppearance({xref:e,extra:t,strokeColor:a,fillColor:r,blendMode:n,strokeAlpha:i,fillAlpha:o,pointsCallback:c}){let l=Number.MAX_VALUE,h=Number.MAX_VALUE,u=Number.MIN_VALUE,d=Number.MIN_VALUE;const f=["q"];t&&f.push(t);a&&f.push(`${a[0]} ${a[1]} ${a[2]} RG`);r&&f.push(`${r[0]} ${r[1]} ${r[2]} rg`);let g=this.data.quadPoints;g||(g=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);for(const e of g){const[t,a,r,n]=c(f,e);l=Math.min(l,t);u=Math.max(u,a);h=Math.min(h,r);d=Math.max(d,n)}f.push("Q");const m=new s.Dict(e),b=new s.Dict(e);b.set("Subtype",s.Name.get("Form"));const y=new p.StringStream(f.join(" "));y.dict=b;m.set("Fm0",y);const w=new s.Dict(e);n&&w.set("BM",s.Name.get(n));"number"==typeof i&&w.set("CA",i);"number"==typeof o&&w.set("ca",o);const S=new s.Dict(e);S.set("GS0",w);const x=new s.Dict(e);x.set("ExtGState",S);x.set("XObject",m);const C=new s.Dict(e);C.set("Resources",x);const k=this.data.rect=[l,h,u,d];C.set("BBox",k);this.appearance=new p.StringStream("/GS0 gs /Fm0 Do");this.appearance.dict=C;this._streams.push(this.appearance,y)}static async createNewAnnotation(e,t,a,r){const n=e.getNewTemporaryRef(),i=await this.createNewAppearanceStream(t,e,r),s=[];let c;if(i){const r=e.getNewTemporaryRef();c=this.createNewDict(t,e,{apRef:r});const n=e.encrypt?e.encrypt.createCipherTransform(r.num,r.gen):null;(0,o.writeObject)(r,i,s,n);a.push({ref:r,data:s.join("")})}else c=this.createNewDict(t,e,{});s.length=0;const l=e.encrypt?e.encrypt.createCipherTransform(n.num,n.gen):null;(0,o.writeObject)(n,c,s,l);return{ref:n,data:s.join("")}}static async createNewPrintAnnotation(e,t,a){const r=await this.createNewAppearanceStream(t,e,a),n=this.createNewDict(t,e,{ap:r});return new this.prototype.constructor({dict:n,xref:e,isOffscreenCanvasSupported:a.isOffscreenCanvasSupported})}}t.MarkupAnnotation=MarkupAnnotation;class WidgetAnnotation extends Annotation{constructor(e){super(e);const{dict:t,xref:a}=e,i=this.data;this.ref=e.ref;this._needAppearances=e.needAppearances;i.annotationType=r.AnnotationType.WIDGET;void 0===i.fieldName&&(i.fieldName=this._constructFieldName(t));void 0===i.actions&&(i.actions=(0,n.collectActions)(a,t,r.AnnotationActionEventType));let o=(0,n.getInheritableProperty)({dict:t,key:"V",getArray:!0});i.fieldValue=this._decodeFormValue(o);const c=(0,n.getInheritableProperty)({dict:t,key:"DV",getArray:!0});i.defaultFieldValue=this._decodeFormValue(c);if(void 0===o&&e.xfaDatasets){const t=this._title.str;if(t){this._hasValueFromXFA=!0;i.fieldValue=o=e.xfaDatasets.getValue(t)}}void 0===o&&null!==i.defaultFieldValue&&(i.fieldValue=i.defaultFieldValue);i.alternativeText=(0,r.stringToPDFString)(t.get("TU")||"");this.setDefaultAppearance(e);i.hasAppearance=this._needAppearances&&void 0!==i.fieldValue&&null!==i.fieldValue||i.hasAppearance;const l=(0,n.getInheritableProperty)({dict:t,key:"FT"});i.fieldType=l instanceof s.Name?l.name:null;const h=(0,n.getInheritableProperty)({dict:t,key:"DR"}),u=e.acroForm.get("DR"),d=this.appearance&&this.appearance.dict.get("Resources");this._fieldResources={localResources:h,acroFormResources:u,appearanceResources:d,mergedResources:s.Dict.merge({xref:a,dictArray:[h,d,u],mergeSubDicts:!0})};i.fieldFlags=(0,n.getInheritableProperty)({dict:t,key:"Ff"});(!Number.isInteger(i.fieldFlags)||i.fieldFlags<0)&&(i.fieldFlags=0);i.readOnly=this.hasFieldFlag(r.AnnotationFieldFlag.READONLY);i.required=this.hasFieldFlag(r.AnnotationFieldFlag.REQUIRED);i.hidden=this._hasFlag(i.annotationFlags,r.AnnotationFlag.HIDDEN)}_decodeFormValue(e){return Array.isArray(e)?e.filter((e=>"string"==typeof e)).map((e=>(0,r.stringToPDFString)(e))):e instanceof s.Name?(0,r.stringToPDFString)(e.name):"string"==typeof e?(0,r.stringToPDFString)(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}getRotationMatrix(e){const t=e?e.get(this.data.id):void 0;let a=t&&t.rotation;void 0===a&&(a=this.rotation);if(0===a)return r.IDENTITY_MATRIX;const i=this.data.rect[2]-this.data.rect[0],s=this.data.rect[3]-this.data.rect[1];return(0,n.getRotationMatrix)(a,i,s)}getBorderAndBackgroundAppearances(e){const t=e?e.get(this.data.id):void 0;let a=t&&t.rotation;void 0===a&&(a=this.rotation);if(!this.backgroundColor&&!this.borderColor)return"";const r=this.data.rect[2]-this.data.rect[0],n=this.data.rect[3]-this.data.rect[1],s=0===a||180===a?`0 0 ${r} ${n} re`:`0 0 ${n} ${r} re`;let o="";this.backgroundColor&&(o=`${(0,i.getPdfColor)(this.backgroundColor,!0)} ${s} f `);if(this.borderColor){o+=`${this.borderStyle.width||1} w ${(0,i.getPdfColor)(this.borderColor,!1)} ${s} S `}return o}async getOperatorList(e,t,a,n,i){if(n&&!(this instanceof SignatureWidgetAnnotation)&&!this.data.noHTML)return{opList:new g.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(e,t,a,n,i);const s=await this._getAppearance(e,t,a,i);if(this.appearance&&null===s)return super.getOperatorList(e,t,a,n,i);const o=new g.OperatorList;if(!this._defaultAppearance||null===s)return{opList:o,separateForm:!1,separateCanvas:!1};const c=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],l=getTransformMatrix(this.data.rect,c,[1,0,0,1,0,0]);let h;this.oc&&(h=await e.parseMarkedContentProps(this.oc,null));void 0!==h&&o.addOp(r.OPS.beginMarkedContentProps,["OC",h]);o.addOp(r.OPS.beginAnnotation,[this.data.id,this.data.rect,l,this.getRotationMatrix(i),!1]);const u=new p.StringStream(s);await e.getOperatorList({stream:u,task:t,resources:this._fieldResources.mergedResources,operatorList:o});o.addOp(r.OPS.endAnnotation,[]);void 0!==h&&o.addOp(r.OPS.endMarkedContent,[]);return{opList:o,separateForm:!1,separateCanvas:!1}}_getMKDict(e){const t=new s.Dict(null);e&&t.set("R",e);this.borderColor&&t.set("BC",getPdfColorArray(this.borderColor));this.backgroundColor&&t.set("BG",getPdfColorArray(this.backgroundColor));return t.size>0?t:null}amendSavedDict(e,t){}async save(e,t,a){const i=a?a.get(this.data.id):void 0;let c=i&&i.value,l=i&&i.rotation;if(c===this.data.fieldValue||void 0===c){if(!this._hasValueFromXFA&&void 0===l)return null;c=c||this.data.fieldValue}if(void 0===l&&!this._hasValueFromXFA&&Array.isArray(c)&&Array.isArray(this.data.fieldValue)&&c.length===this.data.fieldValue.length&&c.every(((e,t)=>e===this.data.fieldValue[t])))return null;void 0===l&&(l=this.rotation);let h=null;if(!this._needAppearances){h=await this._getAppearance(e,t,r.RenderingIntentFlag.SAVE,a);if(null===h)return null}let u=!1;if(h&&h.needAppearances){u=!0;h=null}const{xref:d}=e,f=d.fetchIfRef(this.ref);if(!(f instanceof s.Dict))return null;const g=new s.Dict(d);for(const e of f.getKeys())"AP"!==e&&g.set(e,f.getRaw(e));const m={path:this.data.fieldName,value:c},encoder=e=>(0,n.isAscii)(e)?e:(0,n.stringToUTF16String)(e,!0);g.set("V",Array.isArray(c)?c.map(encoder):encoder(c));this.amendSavedDict(a,g);const b=this._getMKDict(l);b&&g.set("MK",b);const y=d.encrypt,w=y?y.createCipherTransform(this.ref.num,this.ref.gen):null,S=[],x=[{ref:this.ref,data:"",xfa:m,needAppearances:u}];if(null!==h){const e=d.getNewTemporaryRef(),t=new s.Dict(d);g.set("AP",t);t.set("N",e);let n=null;y&&(n=y.createCipherTransform(e.num,e.gen));const i=this._getSaveFieldResources(d),c=new p.StringStream(h),l=c.dict=new s.Dict(d);l.set("Subtype",s.Name.get("Form"));l.set("Resources",i);l.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);const u=this.getRotationMatrix(a);u!==r.IDENTITY_MATRIX&&l.set("Matrix",u);(0,o.writeObject)(e,c,S,n);x.push({ref:e,data:S.join(""),xfa:null,needAppearances:!1});S.length=0}g.set("M",`D:${(0,r.getModificationDate)()}`);(0,o.writeObject)(this.ref,g,S,w);x[0].data=S.join("");return x}async _getAppearance(e,t,a,s){if(this.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD))return null;const o=s?s.get(this.data.id):void 0;let c,l;if(o){c=o.formattedValue||o.value;l=o.rotation}if(void 0===l&&void 0===c&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const h=this.getBorderAndBackgroundAppearances(s);if(void 0===c){c=this.data.fieldValue;if(!c)return`/Tx BMC q ${h}Q EMC`}Array.isArray(c)&&1===c.length&&(c=c[0]);(0,r.assert)("string"==typeof c,"Expected `value` to be a string.");c=c.trim();if(this.data.combo){const e=this.data.options.find((({exportValue:e})=>c===e));c=e&&e.displayValue||c}if(""===c)return`/Tx BMC q ${h}Q EMC`;void 0===l&&(l=this.rotation);let u,d=-1;if(this.data.multiLine){u=c.split(/\r\n?|\n/).map((e=>e.normalize("NFC")));d=u.length}else u=[c.replace(/\r\n?|\n/,"").normalize("NFC")];let f=this.data.rect[3]-this.data.rect[1],g=this.data.rect[2]-this.data.rect[0];90!==l&&270!==l||([g,f]=[f,g]);this._defaultAppearance||(this.data.defaultAppearanceData=(0,i.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let p,m,b,y=await WidgetAnnotation._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);const w=[];let S=!1;for(const e of u){const t=y.encodeString(e);t.length>1&&(S=!0);w.push(t.join(""))}if(S&&a&r.RenderingIntentFlag.SAVE)return{needAppearances:!0};if(S&&this._isOffscreenCanvasSupported){const a=this.data.comb?"monospace":"sans-serif",r=new i.FakeUnicodeFont(e.xref,a),s=r.createFontResources(u.join("")),o=s.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const e=this._fieldResources.mergedResources.get("Font");for(const t of o.getKeys())e.set(t,o.getRaw(t))}else this._fieldResources.mergedResources.set("Font",o);const l=r.fontName.name;y=await WidgetAnnotation._getFontData(e,t,{fontName:l,fontSize:0},s);for(let e=0,t=w.length;e2)return`/Tx BMC q ${h}BT `+p+` 1 0 0 1 ${(0,n.numberToString)(2)} ${(0,n.numberToString)(v)} Tm (${(0,n.escapeString)(w[0])}) Tj ET Q EMC`;return`/Tx BMC q ${h}BT `+p+` 1 0 0 1 0 0 Tm ${this._renderText(w[0],y,m,g,k,{shift:0},2,v)} ET Q EMC`}static async _getFontData(e,t,a,r){const n=new g.OperatorList,i={font:null,clone(){return this}},{fontName:o,fontSize:c}=a;await e.handleSetFont(r,[o&&s.Name.get(o),c],null,n,t,i,null);return i.font}_getTextWidth(e,t){return t.charsToGlyphs(e).reduce(((e,t)=>e+t.width),0)/1e3}_computeFontSize(e,t,a,n,s){let{fontSize:o}=this.data.defaultAppearanceData,c=(o||12)*r.LINE_FACTOR,l=Math.round(e/c);if(!o){const roundWithTwoDigits=e=>Math.floor(100*e)/100;if(-1===s){const i=this._getTextWidth(a,n);o=roundWithTwoDigits(Math.min(e/r.LINE_FACTOR,i>t?t/i:1/0));l=1}else{const i=a.split(/\r\n?|\n/),h=[];for(const e of i){const t=n.encodeString(e).join(""),a=n.charsToGlyphs(t),r=n.getCharPositions(t);h.push({line:t,glyphs:a,positions:r})}const isTooBig=a=>{let r=0;for(const i of h){r+=this._splitLine(null,n,a,t,i).length*a;if(r>e)return!0}return!1};l=Math.max(l,s);for(;;){c=e/l;o=roundWithTwoDigits(c/r.LINE_FACTOR);if(!isTooBig(o))break;l++}}const{fontName:h,fontColor:u}=this.data.defaultAppearanceData;this._defaultAppearance=(0,i.createDefaultAppearance)({fontSize:o,fontName:h,fontColor:u})}return[this._defaultAppearance,o,e/l]}_renderText(e,t,a,r,i,s,o,c){let l;if(1===i){l=(r-this._getTextWidth(e,t)*a)/2}else if(2===i){l=r-this._getTextWidth(e,t)*a-o}else l=o;const h=(0,n.numberToString)(l-s.shift);s.shift=l;return`${h} ${c=(0,n.numberToString)(c)} Td (${(0,n.escapeString)(e)}) Tj`}_getSaveFieldResources(e){const{localResources:t,appearanceResources:a,acroFormResources:r}=this._fieldResources,n=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!n)return t||s.Dict.empty;for(const e of[t,a])if(e instanceof s.Dict){const t=e.get("Font");if(t instanceof s.Dict&&t.has(n))return e}if(r instanceof s.Dict){const a=r.get("Font");if(a instanceof s.Dict&&a.has(n)){const r=new s.Dict(e);r.set(n,a.getRaw(n));const i=new s.Dict(e);i.set("Font",r);return s.Dict.merge({xref:e,dictArray:[i,t],mergeSubDicts:!0})}}return t||s.Dict.empty}getFieldObject(){return null}}class TextWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);this._hasText=!0;const t=e.dict;"string"!=typeof this.data.fieldValue&&(this.data.fieldValue="");let a=(0,n.getInheritableProperty)({dict:t,key:"Q"});(!Number.isInteger(a)||a<0||a>2)&&(a=null);this.data.textAlignment=a;let i=(0,n.getInheritableProperty)({dict:t,key:"MaxLen"});(!Number.isInteger(i)||i<0)&&(i=0);this.data.maxLen=i;this.data.multiLine=this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE);this.data.comb=this.hasFieldFlag(r.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(r.AnnotationFieldFlag.FILESELECT)&&0!==this.data.maxLen;this.data.doNotScroll=this.hasFieldFlag(r.AnnotationFieldFlag.DONOTSCROLL)}_getCombAppearance(e,t,a,r,i,s,o,c,l,h,u){const d=i/this.data.maxLen,f=this.getBorderAndBackgroundAppearances(u),g=[],p=t.getCharPositions(a);for(const[e,t]of p)g.push(`(${(0,n.escapeString)(a.substring(e,t))}) Tj`);const m=g.join(` ${(0,n.numberToString)(d)} 0 Td `);return`/Tx BMC q ${f}BT `+e+` 1 0 0 1 ${(0,n.numberToString)(o)} ${(0,n.numberToString)(c+l)} Tm ${m} ET Q EMC`}_getMultilineAppearance(e,t,a,r,i,s,o,c,l,h,u,d){const f=[],g=i-2*c,p={shift:0};for(let e=0,n=t.length;er){c.push(e.substring(d,a));d=a;f=p;l=-1;u=-1}else{f+=p;l=a;h=n;u=t}else if(f+p>r)if(-1!==l){c.push(e.substring(d,h));d=h;t=u+1;l=-1;f=0}else{c.push(e.substring(d,a));d=a;f=p}else f+=p}d"Off"!==e));i.length=0;i.push("Off",e)}i.includes(this.data.fieldValue)||(this.data.fieldValue="Off");this.data.exportValue=i[1];const o=a.get(this.data.exportValue);this.checkedAppearance=o instanceof c.BaseStream?o:null;const l=a.get("Off");this.uncheckedAppearance=l instanceof c.BaseStream?l:null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict}_processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null;const t=e.dict.get("Parent");if(t instanceof s.Dict){this.parent=e.dict.getRaw("Parent");const a=t.get("V");a instanceof s.Name&&(this.data.fieldValue=this._decodeFormValue(a))}const a=e.dict.get("AP");if(!(a instanceof s.Dict))return;const r=a.get("N");if(!(r instanceof s.Dict))return;for(const e of r.getKeys())if("Off"!==e){this.data.buttonValue=this._decodeFormValue(e);break}const n=r.get(this.data.buttonValue);this.checkedAppearance=n instanceof c.BaseStream?n:null;const i=r.get("Off");this.uncheckedAppearance=i instanceof c.BaseStream?i:null;this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc");this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict}_processPushButton(e){if(e.dict.has("A")||e.dict.has("AA")||this.data.alternativeText){this.data.isTooltipOnly=!e.dict.has("A")&&!e.dict.has("AA");h.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl,docAttachments:e.attachments})}else(0,r.warn)("Push buttons without action dictionaries are not supported")}getFieldObject(){let e,t="button";if(this.data.checkBox){t="checkbox";e=this.data.exportValue}else if(this.data.radioButton){t="radiobutton";e=this.data.buttonValue}return{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}get fallbackFontDict(){const e=new s.Dict;e.set("BaseFont",s.Name.get("ZapfDingbats"));e.set("Type",s.Name.get("FallbackType"));e.set("Subtype",s.Name.get("FallbackType"));e.set("Encoding",s.Name.get("ZapfDingbatsEncoding"));return(0,r.shadow)(this,"fallbackFontDict",e)}}class ChoiceWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.indices=t.getArray("I");this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0;this.data.options=[];const i=(0,n.getInheritableProperty)({dict:t,key:"Opt"});if(Array.isArray(i))for(let e=0,t=i.length;e=0&&t0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}amendSavedDict(e,t){if(!this.hasIndices)return;const a=e?e.get(this.data.id):void 0;let r=a&&a.value;Array.isArray(r)||(r=[r]);const n=[],{options:i}=this.data;for(let e=0,t=0,a=i.length;ea){a=r;t=e}}[g,p]=this._computeFontSize(e,h-4,t,f,-1)}const m=p*r.LINE_FACTOR,b=(m-p)/2,y=Math.floor(l/m);let w;if(1===d.length){const e=d[0];w=e-e%y}else w=d.length?d[0]:0;const S=Math.min(w+y+1,u),x=["/Tx BMC q",`1 1 ${h} ${l} re W n`];if(d.length){x.push("0.600006 0.756866 0.854904 rg");for(const e of d)w<=e&&e1)return null;e=t.join("");M.push(e);let a=0;const r=y.charsToGlyphs(e);for(const e of r)a+=e.width*O;T=Math.max(T,a)}let E=1;T>k&&(E=k/T);let D=1;const N=r.LINE_FACTOR*u,R=r.LINE_DESCENT_FACTOR*u,L=N*F.length;L>v&&(D=v/L);const _=u*Math.min(E,D),$=["q",`0 0 ${(0,n.numberToString)(k)} ${(0,n.numberToString)(v)} re W n`,"BT",`1 0 0 1 0 ${(0,n.numberToString)(v+R)} Tm 0 Tc ${(0,i.getPdfColor)(h,!0)}`,`/Helv ${(0,n.numberToString)(_)} Tf`],j=(0,n.numberToString)(N);for(const e of M)$.push(`0 -${j} Td (${(0,n.escapeString)(e)}) Tj`);$.push("ET","Q");const U=$.join("\n"),X=new s.Dict(t);X.set("FormType",1);X.set("Subtype",s.Name.get("Form"));X.set("Type",s.Name.get("XObject"));X.set("BBox",[0,0,k,v]);X.set("Resources",m);if(f){const e=(0,n.getRotationMatrix)(f,k,v);X.set("Matrix",e)}const H=new p.StringStream(U);H.dict=X;return H}}class LineAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=r.AnnotationType.LINE;this.data.hasOwnCanvas=this.data.noRotate;const n=t.getArray("L");this.data.lineCoordinates=r.Util.normalizeRect(n);this.setLineEndings(t.getArray("LE"));this.data.lineEndings=this.lineEndings;if(!this.appearance){const e=this.color?getPdfColorArray(this.color):[0,0,0],i=t.get("CA"),s=getRgbColor(t.getArray("IC"),null),o=s?getPdfColorArray(s):null,c=o?i:null,l=this.borderStyle.width||1,h=2*l,u=[this.data.lineCoordinates[0]-h,this.data.lineCoordinates[1]-h,this.data.lineCoordinates[2]+h,this.data.lineCoordinates[3]+h];r.Util.intersect(this.rectangle,u)||(this.rectangle=u);this._setDefaultAppearance({xref:a,extra:`${l} w`,strokeColor:e,fillColor:o,strokeAlpha:i,fillAlpha:c,pointsCallback:(e,t)=>{e.push(`${n[0]} ${n[1]} m`,`${n[2]} ${n[3]} l`,"S");return[t[0].x-l,t[1].x+l,t[3].y-l,t[1].y+l]}})}}}class SquareAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=r.AnnotationType.SQUARE;this.data.hasOwnCanvas=this.data.noRotate;if(!this.appearance){const e=this.color?getPdfColorArray(this.color):[0,0,0],r=t.get("CA"),n=getRgbColor(t.getArray("IC"),null),i=n?getPdfColorArray(n):null,s=i?r:null;if(0===this.borderStyle.width&&!i)return;this._setDefaultAppearance({xref:a,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:i,strokeAlpha:r,fillAlpha:s,pointsCallback:(e,t)=>{const a=t[2].x+this.borderStyle.width/2,r=t[2].y+this.borderStyle.width/2,n=t[3].x-t[2].x-this.borderStyle.width,s=t[1].y-t[3].y-this.borderStyle.width;e.push(`${a} ${r} ${n} ${s} re`);i?e.push("B"):e.push("S");return[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class CircleAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=r.AnnotationType.CIRCLE;if(!this.appearance){const e=this.color?getPdfColorArray(this.color):[0,0,0],r=t.get("CA"),n=getRgbColor(t.getArray("IC"),null),i=n?getPdfColorArray(n):null,s=i?r:null;if(0===this.borderStyle.width&&!i)return;const o=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:a,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:i,strokeAlpha:r,fillAlpha:s,pointsCallback:(e,t)=>{const a=t[0].x+this.borderStyle.width/2,r=t[0].y-this.borderStyle.width/2,n=t[3].x-this.borderStyle.width/2,s=t[3].y+this.borderStyle.width/2,c=a+(n-a)/2,l=r+(s-r)/2,h=(n-a)/2*o,u=(s-r)/2*o;e.push(`${c} ${s} m`,`${c+h} ${s} ${n} ${l+u} ${n} ${l} c`,`${n} ${l-u} ${c+h} ${r} ${c} ${r} c`,`${c-h} ${r} ${a} ${l-u} ${a} ${l} c`,`${a} ${l+u} ${c-h} ${s} ${c} ${s} c`,"h");i?e.push("B"):e.push("S");return[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class PolylineAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=r.AnnotationType.POLYLINE;this.data.hasOwnCanvas=this.data.noRotate;this.data.vertices=[];if(!(this instanceof PolygonAnnotation)){this.setLineEndings(t.getArray("LE"));this.data.lineEndings=this.lineEndings}const n=t.getArray("Vertices");if(Array.isArray(n)){for(let e=0,t=n.length;e{const a=this.data.vertices;for(let t=0,r=a.length;t{for(const t of this.data.inkLists){for(let a=0,r=t.length;ae.points)));l.set("F",4);l.set("Border",[0,0,0]);l.set("Rotate",c);const h=new s.Dict(t);l.set("AP",h);a?h.set("N",a):h.set("N",n);return l}static async createNewAppearanceStream(e,t,a){const{color:r,rect:o,rotation:c,paths:l,thickness:h,opacity:u}=e,[d,f,g,m]=o;let b=g-d,y=m-f;c%180!=0&&([b,y]=[y,b]);const w=[`${h} w 1 J 1 j`,`${(0,i.getPdfColor)(r,!1)}`];1!==u&&w.push("/R0 gs");const S=[];for(const{bezier:e}of l){S.length=0;S.push(`${(0,n.numberToString)(e[0])} ${(0,n.numberToString)(e[1])} m`);for(let t=2,a=e.length;t{e.push(`${t[0].x} ${t[0].y} m`,`${t[1].x} ${t[1].y} l`,`${t[3].x} ${t[3].y} l`,`${t[2].x} ${t[2].y} l`,"f");return[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else this.data.hasPopup=!1}}class UnderlineAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=r.AnnotationType.UNDERLINE;if(this.data.quadPoints=getQuadPoints(t,null)){if(!this.appearance){const e=this.color?getPdfColorArray(this.color):[0,0,0],r=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>{e.push(`${t[2].x} ${t[2].y} m`,`${t[3].x} ${t[3].y} l`,"S");return[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else this.data.hasPopup=!1}}class SquigglyAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.annotationType=r.AnnotationType.SQUIGGLY;if(this.data.quadPoints=getQuadPoints(t,null)){if(!this.appearance){const e=this.color?getPdfColorArray(this.color):[0,0,0],r=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>{const a=(t[0].y-t[2].y)/6;let r=a,n=t[2].x;const i=t[2].y,s=t[3].x;e.push(`${n} ${i+r} m`);do{n+=2;r=0===r?a:0;e.push(`${n} ${i+r} l`)}while(n{e.push((t[0].x+t[2].x)/2+" "+(t[0].y+t[2].y)/2+" m",(t[1].x+t[3].x)/2+" "+(t[1].y+t[3].y)/2+" l","S");return[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else this.data.hasPopup=!1}}class StampAnnotation extends MarkupAnnotation{constructor(e){super(e);this.data.annotationType=r.AnnotationType.STAMP;this.data.hasOwnCanvas=this.data.noRotate}}class FileAttachmentAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e,n=new d.FileSpec(t.get("FS"),a);this.data.annotationType=r.AnnotationType.FILEATTACHMENT;this.data.hasOwnCanvas=this.data.noRotate;this.data.file=n.serializable;const i=t.get("Name");this.data.name=i instanceof s.Name?(0,r.stringToPDFString)(i.name):"PushPin"}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.FakeUnicodeFont=void 0;t.createDefaultAppearance=function createDefaultAppearance({fontSize:e,fontName:t,fontColor:a}){return`/${(0,n.escapePDFName)(t)} ${e} Tf ${getPdfColor(a,!0)}`};t.getPdfColor=getPdfColor;t.parseDefaultAppearance=function parseDefaultAppearance(e){return new DefaultAppearanceEvaluator(e).parse()};var r=a(4),n=a(3),i=a(2),s=a(12),o=a(13),c=a(8);class DefaultAppearanceEvaluator extends o.EvaluatorPreprocessor{constructor(e){super(new c.StringStream(e))}parse(){const e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;;){e.args.length=0;if(!this.read(e))break;if(0!==this.savedStatesDepth)continue;const{fn:a,args:n}=e;switch(0|a){case i.OPS.setFont:const[e,a]=n;e instanceof r.Name&&(t.fontName=e.name);"number"==typeof a&&a>0&&(t.fontSize=a);break;case i.OPS.setFillRGBColor:s.ColorSpace.singletons.rgb.getRgbItem(n,0,t.fontColor,0);break;case i.OPS.setFillGray:s.ColorSpace.singletons.gray.getRgbItem(n,0,t.fontColor,0);break;case i.OPS.setFillColorSpace:s.ColorSpace.singletons.cmyk.getRgbItem(n,0,t.fontColor,0)}}}catch(e){(0,i.warn)(`parseDefaultAppearance - ignoring errors: "${e}".`)}return t}}function getPdfColor(e,t){if(e[0]===e[1]&&e[1]===e[2]){const a=e[0]/255;return`${(0,n.numberToString)(a)} ${t?"g":"G"}`}return Array.from(e,(e=>(0,n.numberToString)(e/255))).join(" ")+" "+(t?"rg":"RG")}class FakeUnicodeFont{constructor(e,t){this.xref=e;this.widths=null;this.firstChar=1/0;this.lastChar=-1/0;this.fontFamily=t;const a=new OffscreenCanvas(1,1);this.ctxMeasure=a.getContext("2d");FakeUnicodeFont._fontNameId||(FakeUnicodeFont._fontNameId=1);this.fontName=r.Name.get(`InvalidPDFjsFont_${t}_${FakeUnicodeFont._fontNameId++}`)}get toUnicodeRef(){if(!FakeUnicodeFont._toUnicodeRef){const e="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo\n<< /Registry (Adobe)\n/Ordering (UCS) /Supplement 0 >> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000> \nendcodespacerange\n1 beginbfrange\n<0000> <0000>\nendbfrange\nendcmap CMapName currentdict /CMap defineresource pop end end",t=FakeUnicodeFont.toUnicodeStream=new c.StringStream(e),a=new r.Dict(this.xref);t.dict=a;a.set("Length",e.length);FakeUnicodeFont._toUnicodeRef=this.xref.getNewPersistentRef(t)}return FakeUnicodeFont._toUnicodeRef}get fontDescriptorRef(){if(!FakeUnicodeFont._fontDescriptorRef){const e=new r.Dict(this.xref);e.set("Type",r.Name.get("FontDescriptor"));e.set("FontName",this.fontName);e.set("FontFamily","MyriadPro Regular");e.set("FontBBox",[0,0,0,0]);e.set("FontStretch",r.Name.get("Normal"));e.set("FontWeight",400);e.set("ItalicAngle",0);FakeUnicodeFont._fontDescriptorRef=this.xref.getNewPersistentRef(e)}return FakeUnicodeFont._fontDescriptorRef}get descendantFontRef(){const e=new r.Dict(this.xref);e.set("BaseFont",this.fontName);e.set("Type",r.Name.get("Font"));e.set("Subtype",r.Name.get("CIDFontType0"));e.set("CIDToGIDMap",r.Name.get("Identity"));e.set("FirstChar",this.firstChar);e.set("LastChar",this.lastChar);e.set("FontDescriptor",this.fontDescriptorRef);e.set("DW",1e3);const t=[],a=[...this.widths.entries()].sort();let n=null,i=null;for(const[e,r]of a)if(n)if(e===n+i.length)i.push(r);else{t.push(n,i);n=e;i=[r]}else{n=e;i=[r]}n&&t.push(n,i);e.set("W",t);const s=new r.Dict(this.xref);s.set("Ordering","Identity");s.set("Registry","Adobe");s.set("Supplement",0);e.set("CIDSystemInfo",s);return this.xref.getNewPersistentRef(e)}get baseFontRef(){const e=new r.Dict(this.xref);e.set("BaseFont",this.fontName);e.set("Type",r.Name.get("Font"));e.set("Subtype",r.Name.get("Type0"));e.set("Encoding",r.Name.get("Identity-H"));e.set("DescendantFonts",[this.descendantFontRef]);e.set("ToUnicode",this.toUnicodeRef);return this.xref.getNewPersistentRef(e)}get resources(){const e=new r.Dict(this.xref),t=new r.Dict(this.xref);t.set(this.fontName.name,this.baseFontRef);e.set("Font",t);return e}_createContext(){this.widths=new Map;this.ctxMeasure.font=`1000px ${this.fontFamily}`;return this.ctxMeasure}createFontResources(e){const t=this._createContext();for(const a of e.split(/\r\n?|\n/))for(const e of a.split("")){const a=e.charCodeAt(0);if(this.widths.has(a))continue;const r=t.measureText(e),n=Math.ceil(r.width);this.widths.set(a,n);this.firstChar=Math.min(a,this.firstChar);this.lastChar=Math.max(a,this.lastChar)}return this.resources}createAppearance(e,t,a,s,o,l){const h=this._createContext(),u=[];let d=-1/0;for(const t of e.split(/\r\n?|\n/)){u.push(t);const e=h.measureText(t).width;d=Math.max(d,e);for(const e of t.split("")){const t=e.charCodeAt(0);let a=this.widths.get(t);if(void 0===a){const r=h.measureText(e);a=Math.ceil(r.width);this.widths.set(t,a);this.firstChar=Math.min(t,this.firstChar);this.lastChar=Math.max(t,this.lastChar)}}}d*=s/1e3;const[f,g,p,m]=t;let b=p-f,y=m-g;a%180!=0&&([b,y]=[y,b]);let w=1;d>b&&(w=b/d);let S=1;const x=i.LINE_FACTOR*s,C=i.LINE_DESCENT_FACTOR*s,k=x*u.length;k>y&&(S=y/k);const v=s*Math.min(w,S),F=["q",`0 0 ${(0,n.numberToString)(b)} ${(0,n.numberToString)(y)} re W n`,"BT",`1 0 0 1 0 ${(0,n.numberToString)(y+C)} Tm 0 Tc ${getPdfColor(o,!0)}`,`/${this.fontName.name} ${(0,n.numberToString)(v)} Tf`],{resources:O}=this;if(1!==(l="number"==typeof l&&l>=0&&l<=1?l:1)){F.push("/R0 gs");const e=new r.Dict(this.xref),t=new r.Dict(this.xref);t.set("ca",l);t.set("CA",l);t.set("Type",r.Name.get("ExtGState"));e.set("R0",t);O.set("ExtGState",e)}const T=(0,n.numberToString)(x);for(const e of u)F.push(`0 -${T} Td <${(0,n.stringToUTF16HexString)(e)}> Tj`);F.push("ET","Q");const M=F.join("\n"),E=new r.Dict(this.xref);E.set("Subtype",r.Name.get("Form"));E.set("Type",r.Name.get("XObject"));E.set("BBox",[0,0,b,y]);E.set("Length",M.length);E.set("Resources",O);if(a){const e=(0,n.getRotationMatrix)(a,b,y);E.set("Matrix",e)}const D=new c.StringStream(M);D.dict=E;return D}}t.FakeUnicodeFont=FakeUnicodeFont},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.ColorSpace=void 0;var r=a(2),n=a(4),i=a(5),s=a(3);class ColorSpace{constructor(e,t){this.constructor===ColorSpace&&(0,r.unreachable)("Cannot initialize ColorSpace.");this.name=e;this.numComps=t}getRgb(e,t){const a=new Uint8ClampedArray(3);this.getRgbItem(e,t,a,0);return a}getRgbItem(e,t,a,n){(0,r.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,a,n,i,s,o){(0,r.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){(0,r.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return ColorSpace.isDefaultDecode(e,this.numComps)}fillRgb(e,t,a,r,n,i,s,o,c){const l=t*a;let h=null;const u=1<u&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const t=s<=8?new Uint8Array(u):new Uint16Array(u);for(let e=0;e=.99554525?1:adjustToRange(0,1,1.055*e**(1/2.4)-.055)}function adjustToRange(e,t,a){return Math.max(e,Math.min(t,a))}function decodeL(e){return e<0?-decodeL(-e):e>8?((e+16)/116)**3:e*c}function convertToRgb(r,c,l,h,u,d){const f=adjustToRange(0,1,c[l]*d),g=adjustToRange(0,1,c[l+1]*d),p=adjustToRange(0,1,c[l+2]*d),m=1===f?1:f**r.GR,b=1===g?1:g**r.GG,y=1===p?1:p**r.GB,w=r.MXA*m+r.MXB*b+r.MXC*y,S=r.MYA*m+r.MYB*b+r.MYC*y,x=r.MZA*m+r.MZB*b+r.MZC*y,C=s;C[0]=w;C[1]=S;C[2]=x;const k=o;!function normalizeWhitePointToFlat(a,r,n){if(1===a[0]&&1===a[2]){n[0]=r[0];n[1]=r[1];n[2]=r[2];return}const s=n;matrixProduct(e,r,s);const o=i;!function convertToFlat(e,t,a){a[0]=1*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1*t[2]/e[2]}(a,s,o);matrixProduct(t,o,n)}(r.whitePoint,C,k);const v=s;!function compensateBlackPoint(e,t,a){if(0===e[0]&&0===e[1]&&0===e[2]){a[0]=t[0];a[1]=t[1];a[2]=t[2];return}const r=decodeL(0),n=(1-r)/(1-decodeL(e[0])),i=1-n,s=(1-r)/(1-decodeL(e[1])),o=1-s,c=(1-r)/(1-decodeL(e[2])),l=1-c;a[0]=t[0]*n+i;a[1]=t[1]*s+o;a[2]=t[2]*c+l}(r.blackPoint,k,v);const F=o;!function normalizeWhitePointToD65(a,r,n){const s=n;matrixProduct(e,r,s);const o=i;!function convertToD65(e,t,a){a[0]=.95047*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1.08883*t[2]/e[2]}(a,s,o);matrixProduct(t,o,n)}(n,v,F);const O=s;matrixProduct(a,F,O);h[u]=255*sRGBTransferFunction(O[0]);h[u+1]=255*sRGBTransferFunction(O[1]);h[u+2]=255*sRGBTransferFunction(O[2])}return class CalRGBCS extends ColorSpace{constructor(e,t,a,n){super("CalRGB",3);if(!e)throw new r.FormatError("WhitePoint missing - required for color space CalRGB");t=t||new Float32Array(3);a=a||new Float32Array([1,1,1]);n=n||new Float32Array([1,0,0,0,1,0,0,0,1]);const i=e[0],s=e[1],o=e[2];this.whitePoint=e;const c=t[0],l=t[1],h=t[2];this.blackPoint=t;this.GR=a[0];this.GG=a[1];this.GB=a[2];this.MXA=n[0];this.MYA=n[1];this.MZA=n[2];this.MXB=n[3];this.MYB=n[4];this.MZB=n[5];this.MXC=n[6];this.MYC=n[7];this.MZC=n[8];if(i<0||o<0||1!==s)throw new r.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);if(c<0||l<0||h<0){(0,r.info)(`Invalid BlackPoint for ${this.name} [${c}, ${l}, ${h}], falling back to default.`);this.blackPoint=new Float32Array(3)}if(this.GR<0||this.GG<0||this.GB<0){(0,r.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`);this.GR=this.GG=this.GB=1}}getRgbItem(e,t,a,r){convertToRgb(this,e,t,a,r,1)}getRgbBuffer(e,t,a,r,n,i,s){const o=1/((1<=6/29?e**3:108/841*(e-4/29);return t}function decode(e,t,a,r){return a+e*(r-a)/t}function convertToRgb(e,t,a,r,n,i){let s=t[a],o=t[a+1],c=t[a+2];if(!1!==r){s=decode(s,r,0,100);o=decode(o,r,e.amin,e.amax);c=decode(c,r,e.bmin,e.bmax)}o>e.amax?o=e.amax:oe.bmax?c=e.bmax:cthis.amax||this.bmin>this.bmax){(0,r.info)("Invalid Range, falling back to defaults");this.amin=-100;this.amax=100;this.bmin=-100;this.bmax=100}}getRgbItem(e,t,a,r){convertToRgb(this,e,t,!1,a,r)}getRgbBuffer(e,t,a,r,n,i,s){const o=(1<{Object.defineProperty(t,"__esModule",{value:!0});t.PartialEvaluator=t.EvaluatorPreprocessor=void 0;var r=a(2),n=a(14),i=a(4),s=a(33),o=a(36),c=a(40),l=a(49),h=a(50),u=a(41),d=a(56),f=a(15),g=a(58),p=a(8),m=a(5),b=a(59),y=a(12),w=a(17),S=a(37),x=a(38),C=a(3),k=a(44),v=a(39),F=a(60),O=a(61),T=a(62),M=a(63);const E=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),D=1,N=2,R=Promise.resolve();function normalizeBlendMode(e,t=!1){if(Array.isArray(e)){for(const t of e){const e=normalizeBlendMode(t,!0);if(e)return e}(0,r.warn)(`Unsupported blend mode Array: ${e}`);return"source-over"}if(!(e instanceof i.Name))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}if(t)return null;(0,r.warn)(`Unsupported blend mode: ${e.name}`);return"source-over"}function incrementCachedImageMaskCount(e){e.fn===r.OPS.paintImageMaskXObject&&e.args[0]&&e.args[0].count>0&&e.args[0].count++}class TimeSlotManager{static get TIME_SLOT_DURATION_MS(){return(0,r.shadow)(this,"TIME_SLOT_DURATION_MS",20)}static get CHECK_TIME_EVERY(){return(0,r.shadow)(this,"CHECK_TIME_EVERY",100)}constructor(){this.reset()}check(){if(++this.checkedd){const e="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors){(0,r.warn)(e);return}throw new Error(e)}let f;c.has("OC")&&(f=await this.parseMarkedContentProps(c.get("OC"),e));let g,p;if(c.get("IM","ImageMask")||!1){const e=c.get("I","Interpolate"),a=h+7>>3,o=t.getBytes(a*u),d=c.getArray("D","Decode");if(this.parsingType3Font){g=M.PDFImage.createRawMask({imgArray:o,width:h,height:u,imageIsFromDecodeStream:t instanceof w.DecodeStream,inverseDecode:!!d&&d[0]>0,interpolate:e});g.cached=!!i;p=[g];n.addImageOps(r.OPS.paintImageMaskXObject,p,f);i&&s.set(i,l,{fn:r.OPS.paintImageMaskXObject,args:p,optionalContent:f});return}g=await M.PDFImage.createMask({imgArray:o,width:h,height:u,imageIsFromDecodeStream:t instanceof w.DecodeStream,inverseDecode:!!d&&d[0]>0,interpolate:e,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported});if(g.isSingleOpaquePixel){n.addImageOps(r.OPS.paintSolidColorImageMask,[],f);i&&s.set(i,l,{fn:r.OPS.paintSolidColorImageMask,args:[],optionalContent:f});return}const m=`mask_${this.idFactory.createObjId()}`;n.addDependency(m);this._sendImgData(m,g);p=[{data:m,width:g.width,height:g.height,interpolate:g.interpolate,count:1}];n.addImageOps(r.OPS.paintImageMaskXObject,p,f);i&&s.set(i,l,{fn:r.OPS.paintImageMaskXObject,args:p,optionalContent:f});return}const m=c.get("SM","SMask")||!1,b=c.get("Mask")||!1;if(a&&!m&&!b&&h+u<200){const i=new M.PDFImage({xref:this.xref,res:e,image:t,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:o});g=await i.createImageData(!0,!1);n.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported;n.addImageOps(r.OPS.paintInlineImageXObject,[g],f);return}let y=`img_${this.idFactory.createObjId()}`,S=!1;if(this.parsingType3Font)y=`${this.idFactory.getDocId()}_type3_${y}`;else if(l){S=this.globalImageCache.shouldCache(l,this.pageIndex);S&&(y=`${this.idFactory.getDocId()}_${y}`)}n.addDependency(y);p=[y,h,u];M.PDFImage.buildImage({xref:this.xref,res:e,image:t,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:o}).then((async e=>{g=await e.createImageData(!1,this.options.isOffscreenCanvasSupported);if(i&&l&&S){let e=0;e=g.bitmap?g.width*g.height*4:g.data.length;this.globalImageCache.addByteSize(l,e)}return this._sendImgData(y,g,S)})).catch((e=>{(0,r.warn)(`Unable to decode image "${y}": "${e}".`);return this._sendImgData(y,null,S)}));n.addImageOps(r.OPS.paintImageXObject,p,f);if(i){s.set(i,l,{fn:r.OPS.paintImageXObject,args:p,optionalContent:f});if(l){(0,r.assert)(!a,"Cannot cache an inline image globally.");this.globalImageCache.addPageIndex(l,this.pageIndex);S&&this.globalImageCache.setData(l,{objId:y,fn:r.OPS.paintImageXObject,args:p,optionalContent:f,byteSize:0})}}}handleSMask(e,t,a,r,n,i){const s=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},c=e.get("TR");if((0,d.isPDFFunction)(c)){const e=this._pdfFunctionFactory.create(c),t=new Uint8Array(256),a=new Float32Array(1);for(let r=0;r<256;r++){a[0]=r/255;e(a,0,a,0);t[r]=255*a[0]|0}o.transferMap=t}return this.buildFormXObject(t,s,o,a,r,n.state.clone(),i)}handleTransferFunction(e){let t;if(Array.isArray(e))t=e;else{if(!(0,d.isPDFFunction)(e))return null;t=[e]}const a=[];let r=0,n=0;for(const e of t){const t=this.xref.fetchIfRef(e);r++;if((0,i.isName)(t,"Identity")){a.push(null);continue}if(!(0,d.isPDFFunction)(t))return null;const s=this._pdfFunctionFactory.create(t),o=new Uint8Array(256),c=new Float32Array(1);for(let e=0;e<256;e++){c[0]=e/255;s(c,0,c,0);o[e]=255*c[0]|0}a.push(o);n++}return 1!==r&&4!==r||0===n?null:a}handleTilingType(e,t,a,n,s,o,c,h){const u=new T.OperatorList,d=i.Dict.merge({xref:this.xref,dictArray:[s.get("Resources"),a]});return this.getOperatorList({stream:n,task:c,resources:d,operatorList:u}).then((function(){const a=u.getIR(),r=(0,l.getTilingPatternIR)(a,s,t);o.addDependencies(u.dependencies);o.addOp(e,r);s.objId&&h.set(null,s.objId,{operatorListIR:a,dict:s})})).catch((e=>{if(!(e instanceof r.AbortException)){if(!this.options.ignoreErrors)throw e;(0,r.warn)(`handleTilingType - ignoring pattern: "${e}".`)}}))}handleSetFont(e,t,a,r,n,o,c=null,l=null){const h=t&&t[0]instanceof i.Name?t[0].name:null;return this.loadFont(h,a,e,c,l).then((t=>t.font.isType3Font?t.loadType3Data(this,e,n).then((function(){r.addDependencies(t.type3Dependencies);return t})).catch((e=>new TranslatedFont({loadedName:"g_font_error",font:new s.ErrorFont(`Type3 font load error: ${e}`),dict:t.font,evaluatorOptions:this.options}))):t)).then((e=>{o.font=e.font;e.send(this.handler);return e.loadedName}))}handleText(e,t){const a=t.font,n=a.charsToGlyphs(e);if(a.data){(!!(t.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===t.fillColorSpace.name||a.disableFontFace||this.options.disableFontFace)&&PartialEvaluator.buildFontPaths(a,n,this.handler,this.options)}return n}ensureStateFont(e){if(e.font)return;const t=new r.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw t;(0,r.warn)(`ensureStateFont: "${t}".`)}async setGState({resources:e,gState:t,operatorList:a,cacheKey:n,task:s,stateManager:o,localGStateCache:c,localColorSpaceCache:l}){const h=t.objId;let u=!0;const d=[];let f=Promise.resolve();for(const n of t.getKeys()){const c=t.get(n);switch(n){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":d.push([n,c]);break;case"Font":u=!1;f=f.then((()=>this.handleSetFont(e,null,c[0],a,s,o.state).then((function(e){a.addDependency(e);d.push([n,[e,c[1]]])}))));break;case"BM":d.push([n,normalizeBlendMode(c)]);break;case"SMask":if((0,i.isName)(c,"None")){d.push([n,!1]);break}if(c instanceof i.Dict){u=!1;f=f.then((()=>this.handleSMask(c,e,a,s,o,l)));d.push([n,!0])}else(0,r.warn)("Unsupported SMask type");break;case"TR":const t=this.handleTransferFunction(c);d.push([n,t]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,r.info)("graphic state operator "+n);break;default:(0,r.info)("Unknown graphic state operator "+n)}}return f.then((function(){d.length>0&&a.addOp(r.OPS.setGState,[d]);u&&c.set(n,h,d)}))}loadFont(e,t,a,n=null,o=null){const errorFont=async()=>new TranslatedFont({loadedName:"g_font_error",font:new s.ErrorFont(`Font "${e}" is not available.`),dict:t,evaluatorOptions:this.options}),c=this.xref;let l;if(t)t instanceof i.Ref&&(l=t);else{const t=a.get("Font");t&&(l=t.getRaw(e))}if(!l){const a=`Font "${e||t&&t.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,r.warn)(`${a}.`);return errorFont()}(0,r.warn)(`${a} -- attempting to fallback to a default font.`);l=n||PartialEvaluator.fallbackFontDict}if(this.parsingType3Font&&this.type3FontRefs.has(l))return errorFont();if(this.fontCache.has(l))return this.fontCache.get(l);if(!((t=c.fetchIfRef(l))instanceof i.Dict))return errorFont();if(t.cacheKey&&this.fontCache.has(t.cacheKey))return this.fontCache.get(t.cacheKey);const h=(0,r.createPromiseCapability)();let u;try{u=this.preEvaluateFont(t);u.cssFontInfo=o}catch(e){(0,r.warn)(`loadFont - preEvaluateFont failed: "${e}".`);return errorFont()}const{descriptor:d,hash:f}=u,g=l instanceof i.Ref;let p;g&&(p=`f${l.toString()}`);if(f&&d instanceof i.Dict){d.fontAliases||(d.fontAliases=Object.create(null));const e=d.fontAliases;if(e[f]){const t=e[f].aliasRef;if(g&&t&&this.fontCache.has(t)){this.fontCache.putAlias(l,t);return this.fontCache.get(l)}}else e[f]={fontID:this.idFactory.createFontId()};g&&(e[f].aliasRef=l);p=e[f].fontID}if(g)this.fontCache.put(l,h.promise);else{p||(p=this.idFactory.createFontId());t.cacheKey=`cacheKey_${p}`;this.fontCache.put(t.cacheKey,h.promise)}(0,r.assert)(p&&p.startsWith("f"),'The "fontID" must be (correctly) defined.');t.loadedName=`${this.idFactory.getDocId()}_${p}`;this.translateFont(u).then((e=>{h.resolve(new TranslatedFont({loadedName:t.loadedName,font:e,dict:t,evaluatorOptions:this.options}))})).catch((e=>{(0,r.warn)(`loadFont - translateFont failed: "${e}".`);h.resolve(new TranslatedFont({loadedName:t.loadedName,font:new s.ErrorFont(e instanceof Error?e.message:e),dict:t,evaluatorOptions:this.options}))}));return h.promise}buildPath(e,t,a,n=!1){const i=e.length-1;a||(a=[]);if(i<0||e.fnArray[i]!==r.OPS.constructPath){if(n){(0,r.warn)(`Encountered path operator "${t}" inside of a text object.`);e.addOp(r.OPS.save,null)}let i;switch(t){case r.OPS.rectangle:const e=a[0]+a[2],t=a[1]+a[3];i=[Math.min(a[0],e),Math.max(a[0],e),Math.min(a[1],t),Math.max(a[1],t)];break;case r.OPS.moveTo:case r.OPS.lineTo:i=[a[0],a[0],a[1],a[1]];break;default:i=[1/0,-1/0,1/0,-1/0]}e.addOp(r.OPS.constructPath,[[t],a,i]);n&&e.addOp(r.OPS.restore,null)}else{const n=e.argsArray[i];n[0].push(t);n[1].push(...a);const s=n[2];switch(t){case r.OPS.rectangle:const e=a[0]+a[2],t=a[1]+a[3];s[0]=Math.min(s[0],a[0],e);s[1]=Math.max(s[1],a[0],e);s[2]=Math.min(s[2],a[1],t);s[3]=Math.max(s[3],a[1],t);break;case r.OPS.moveTo:case r.OPS.lineTo:s[0]=Math.min(s[0],a[0]);s[1]=Math.max(s[1],a[0]);s[2]=Math.min(s[2],a[1]);s[3]=Math.max(s[3],a[1])}}}parseColorSpace({cs:e,resources:t,localColorSpaceCache:a}){return y.ColorSpace.parseAsync({cs:e,xref:this.xref,resources:t,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:a}).catch((e=>{if(e instanceof r.AbortException)return null;if(this.options.ignoreErrors){(0,r.warn)(`parseColorSpace - ignoring ColorSpace: "${e}".`);return null}throw e}))}parseShading({shading:e,resources:t,localColorSpaceCache:a,localShadingPatternCache:r}){let n=r.get(e);if(!n){const i=l.Pattern.parseShading(e,this.xref,t,this._pdfFunctionFactory,a).getIR();n=`pattern_${this.idFactory.createObjId()}`;this.parsingType3Font&&(n=`${this.idFactory.getDocId()}_type3_${n}`);r.set(e,n);this.parsingType3Font?this.handler.send("commonobj",[n,"Pattern",i]):this.handler.send("obj",[n,this.pageIndex,"Pattern",i])}return n}handleColorN(e,t,a,n,s,o,c,h,u,d){const f=a.pop();if(f instanceof i.Name){const g=s.getRaw(f.name),p=g instanceof i.Ref&&u.getByRef(g);if(p)try{const r=n.base?n.base.getRgb(a,0):null,i=(0,l.getTilingPatternIR)(p.operatorListIR,p.dict,r);e.addOp(t,i);return}catch(e){}const b=this.xref.fetchIfRef(g);if(b){const i=b instanceof m.BaseStream?b.dict:b,s=i.get("PatternType");if(s===D){const r=n.base?n.base.getRgb(a,0):null;return this.handleTilingType(t,r,o,b,i,e,c,u)}if(s===N){const a=i.get("Shading"),r=i.getArray("Matrix"),n=this.parseShading({shading:a,resources:o,localColorSpaceCache:h,localShadingPatternCache:d});e.addOp(t,["Shading",n,r]);return}throw new r.FormatError(`Unknown PatternType: ${s}`)}}throw new r.FormatError(`Unknown PatternName: ${f}`)}_parseVisibilityExpression(e,t,a){if(++t>10){(0,r.warn)("Visibility expression is too deeply nested");return}const n=e.length,s=this.xref.fetchIfRef(e[0]);if(!(n<2)&&s instanceof i.Name){switch(s.name){case"And":case"Or":case"Not":a.push(s.name);break;default:(0,r.warn)(`Invalid operator ${s.name} in visibility expression`);return}for(let r=1;r0)return{type:"OCMD",expression:t}}const t=a.get("OCGs");if(Array.isArray(t)||t instanceof i.Dict){const e=[];if(Array.isArray(t))for(const a of t)e.push(a.toString());else e.push(t.objId);return{type:n,ids:e,policy:a.get("P")instanceof i.Name?a.get("P").name:null,expression:null}}if(t instanceof i.Ref)return{type:n,id:t.toString()}}return null}getOperatorList({stream:e,task:t,resources:a,operatorList:n,initialState:s=null,fallbackFontDict:o=null}){a=a||i.Dict.empty;s=s||new EvalState;if(!n)throw new Error('getOperatorList: missing "operatorList" parameter');const c=this,l=this.xref;let h=!1;const u=new g.LocalImageCache,d=new g.LocalColorSpaceCache,f=new g.LocalGStateCache,p=new g.LocalTilingPatternCache,b=new Map,w=a.get("XObject")||i.Dict.empty,S=a.get("Pattern")||i.Dict.empty,x=new StateManager(s),C=new EvaluatorPreprocessor(e,l,x),k=new TimeSlotManager;function closePendingRestoreOPS(e){for(let e=0,t=C.savedStatesDepth;e0&&n.addOp(r.OPS.setGState,[t]);e=null;continue}}next(new Promise((function(e,s){if(!E)throw new r.FormatError("GState must be referred to by name.");const o=a.get("ExtGState");if(!(o instanceof i.Dict))throw new r.FormatError("ExtGState should be a dictionary.");const l=o.get(M);if(!(l instanceof i.Dict))throw new r.FormatError("GState should be a dictionary.");c.setGState({resources:a,gState:l,operatorList:n,cacheKey:M,task:t,stateManager:x,localGStateCache:f,localColorSpaceCache:d}).then(e,s)})).catch((function(e){if(!(e instanceof r.AbortException)){if(!c.options.ignoreErrors)throw e;(0,r.warn)(`getOperatorList - ignoring ExtGState: "${e}".`)}})));return;case r.OPS.moveTo:case r.OPS.lineTo:case r.OPS.curveTo:case r.OPS.curveTo2:case r.OPS.curveTo3:case r.OPS.closePath:case r.OPS.rectangle:c.buildPath(n,s,e,h);continue;case r.OPS.markPoint:case r.OPS.markPointProps:case r.OPS.beginCompat:case r.OPS.endCompat:continue;case r.OPS.beginMarkedContentProps:if(!(e[0]instanceof i.Name)){(0,r.warn)(`Expected name for beginMarkedContentProps arg0=${e[0]}`);continue}if("OC"===e[0].name){next(c.parseMarkedContentProps(e[1],a).then((e=>{n.addOp(r.OPS.beginMarkedContentProps,["OC",e])})).catch((e=>{if(!(e instanceof r.AbortException)){if(!c.options.ignoreErrors)throw e;(0,r.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${e}".`)}})));return}e=[e[0].name,e[1]instanceof i.Dict?e[1].get("MCID"):null];break;case r.OPS.beginMarkedContent:case r.OPS.endMarkedContent:default:if(null!==e){for(F=0,O=e.length;F{if(!(e instanceof r.AbortException)){if(!this.options.ignoreErrors)throw e;(0,r.warn)(`getOperatorList - ignoring errors during "${t.name}" task: "${e}".`);closePendingRestoreOPS()}}))}getTextContent({stream:e,task:t,resources:a,stateManager:n=null,includeMarkedContent:s=!1,sink:o,seenStyles:c=new Set,viewBox:l,markedContentData:h=null}){a=a||i.Dict.empty;n=n||new StateManager(new TextState);s&&(h=h||{level:0});const u={items:[],styles:Object.create(null)},d={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},f=[" "," "];let p=0;function saveLastChar(e){const t=(p+1)%2,a=" "!==f[p]&&" "===f[t];f[p]=e;p=t;return a}function resetLastChars(){f[0]=f[1]=" ";p=0}const y=this,w=this.xref,S=[];let x=null;const C=new g.LocalImageCache,k=new g.LocalGStateCache,v=new EvaluatorPreprocessor(e,w,n);let F;function getCurrentTextTransform(){const e=F.font,t=[F.fontSize*F.textHScale,0,0,F.fontSize,0,F.textRise];if(e.isType3Font&&(F.fontSize<=1||e.isCharBBox)&&!(0,r.isArrayEqual)(F.fontMatrix,r.FONT_IDENTITY_MATRIX)){const a=e.bbox[3]-e.bbox[1];a>0&&(t[3]*=a*F.fontMatrix[3])}return r.Util.transform(F.ctm,r.Util.transform(F.textMatrix,t))}function ensureTextContentItem(){if(d.initialized)return d;const{font:e,loadedName:t}=F;if(!c.has(t)){c.add(t);u.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}}d.fontName=t;const a=d.transform=getCurrentTextTransform();if(e.vertical){d.width=d.totalWidth=Math.hypot(a[0],a[1]);d.height=d.totalHeight=0;d.vertical=!0}else{d.width=d.totalWidth=0;d.height=d.totalHeight=Math.hypot(a[2],a[3]);d.vertical=!1}const r=Math.hypot(F.textLineMatrix[0],F.textLineMatrix[1]),n=Math.hypot(F.ctm[0],F.ctm[1]);d.textAdvanceScale=n*r;const{fontSize:i}=F;d.trackingSpaceMin=.102*i;d.notASpace=.03*i;d.negativeSpaceMax=-.2*i;d.spaceInFlowMin=.102*i;d.spaceInFlowMax=.6*i;d.hasEOL=!1;d.initialized=!0;return d}function updateAdvanceScale(){if(!d.initialized)return;const e=Math.hypot(F.textLineMatrix[0],F.textLineMatrix[1]),t=Math.hypot(F.ctm[0],F.ctm[1])*e;if(t!==d.textAdvanceScale){if(d.vertical){d.totalHeight+=d.height*d.textAdvanceScale;d.height=0}else{d.totalWidth+=d.width*d.textAdvanceScale;d.width=0}d.textAdvanceScale=t}}function handleSetFont(e,n){return y.loadFont(e,n,a).then((function(e){return e.font.isType3Font?e.loadType3Data(y,a,t).catch((function(){})).then((function(){return e})):e})).then((function(e){F.loadedName=e.loadedName;F.font=e.font;F.fontMatrix=e.font.fontMatrix||r.FONT_IDENTITY_MATRIX}))}function applyInverseRotation(e,t,a){const r=Math.hypot(a[0],a[1]);return[(a[0]*e+a[1]*t)/r,(a[2]*e+a[3]*t)/r]}function compareWithLastPosition(){const e=getCurrentTextTransform();let t=e[4],a=e[5];const r=t-l[0],n=a-l[1];if(r<0||r>l[2]||n<0||n>l[3])return!1;if(!F.font||!d.prevTransform)return!0;let i=d.prevTransform[4],s=d.prevTransform[5];if(i===t&&s===a)return!0;let o=-1;e[0]&&0===e[1]&&0===e[2]?o=e[0]>0?0:180:e[1]&&0===e[0]&&0===e[3]&&(o=e[1]>0?90:270);switch(o){case 0:break;case 90:[t,a]=[a,t];[i,s]=[s,i];break;case 180:[t,a,i,s]=[-t,-a,-i,-s];break;case 270:[t,a]=[-a,-t];[i,s]=[-s,-i];break;default:[t,a]=applyInverseRotation(t,a,e);[i,s]=applyInverseRotation(i,s,d.prevTransform)}if(F.font.vertical){const e=(s-a)/d.textAdvanceScale,r=t-i,n=Math.sign(d.height);if(e.5*d.width){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}if(Math.abs(r)>d.width){appendEOL();return!0}e<=n*d.notASpace&&resetLastChars();if(e<=n*d.trackingSpaceMin)d.height+=e;else if(!addFakeSpaces(e,d.prevTransform,n))if(0===d.str.length){resetLastChars();u.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(e),transform:d.prevTransform,fontName:d.fontName,hasEOL:!1})}else d.height+=e;Math.abs(r)>.25*d.width&&flushTextContentItem();return!0}const c=(t-i)/d.textAdvanceScale,h=a-s,f=Math.sign(d.width);if(c.5*d.height){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}if(Math.abs(h)>d.height){appendEOL();return!0}c<=f*d.notASpace&&resetLastChars();if(c<=f*d.trackingSpaceMin)d.width+=c;else if(!addFakeSpaces(c,d.prevTransform,f))if(0===d.str.length){resetLastChars();u.items.push({str:" ",dir:"ltr",width:Math.abs(c),height:0,transform:d.prevTransform,fontName:d.fontName,hasEOL:!1})}else d.width+=c;Math.abs(h)>.25*d.height&&flushTextContentItem();return!0}function buildTextContentItem({chars:e,extraSpacing:t}){const a=F.font;if(!e){const e=F.charSpacing+t;e&&(a.vertical?F.translateTextMatrix(0,-e):F.translateTextMatrix(e*F.textHScale,0));return}const r=a.charsToGlyphs(e),n=F.fontMatrix[0]*F.fontSize;for(let e=0,i=r.length;e0){const e=S.join("");S.length=0;buildTextContentItem({chars:e,extraSpacing:0})}break;case r.OPS.showText:if(!n.state.font){y.ensureStateFont(n.state);continue}buildTextContentItem({chars:p[0],extraSpacing:0});break;case r.OPS.nextLineShowText:if(!n.state.font){y.ensureStateFont(n.state);continue}F.carriageReturn();buildTextContentItem({chars:p[0],extraSpacing:0});break;case r.OPS.nextLineSetSpacingShowText:if(!n.state.font){y.ensureStateFont(n.state);continue}F.wordSpacing=p[0];F.charSpacing=p[1];F.carriageReturn();buildTextContentItem({chars:p[2],extraSpacing:0});break;case r.OPS.paintXObject:flushTextContentItem();x||(x=a.get("XObject")||i.Dict.empty);var M=p[0]instanceof i.Name,E=p[0].name;if(M&&C.getByName(E))break;next(new Promise((function(e,u){if(!M)throw new r.FormatError("XObject must be referred to by name.");let d=x.getRaw(E);if(d instanceof i.Ref){if(C.getByRef(d)){e();return}if(y.globalImageCache.getData(d,y.pageIndex)){e();return}d=w.fetch(d)}if(!(d instanceof m.BaseStream))throw new r.FormatError("XObject should be a stream");const f=d.dict.get("Subtype");if(!(f instanceof i.Name))throw new r.FormatError("XObject should have a Name subtype");if("Form"!==f.name){C.set(E,d.dict.objId,!0);e();return}const g=n.state.clone(),p=new StateManager(g),b=d.dict.getArray("Matrix");Array.isArray(b)&&6===b.length&&p.transform(b);enqueueChunk();const S={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0;o.enqueue(e,t)},get desiredSize(){return o.desiredSize},get ready(){return o.ready}};y.getTextContent({stream:d,task:t,resources:d.dict.get("Resources")||a,stateManager:p,includeMarkedContent:s,sink:S,seenStyles:c,viewBox:l,markedContentData:h}).then((function(){S.enqueueInvoked||C.set(E,d.dict.objId,!0);e()}),u)})).catch((function(e){if(!(e instanceof r.AbortException)){if(!y.options.ignoreErrors)throw e;(0,r.warn)(`getTextContent - ignoring XObject: "${e}".`)}})));return;case r.OPS.setGState:M=p[0]instanceof i.Name;E=p[0].name;if(M&&k.getByName(E))break;next(new Promise((function(e,t){if(!M)throw new r.FormatError("GState must be referred to by name.");const n=a.get("ExtGState");if(!(n instanceof i.Dict))throw new r.FormatError("ExtGState should be a dictionary.");const s=n.get(E);if(!(s instanceof i.Dict))throw new r.FormatError("GState should be a dictionary.");const o=s.get("Font");if(o){flushTextContentItem();F.fontName=null;F.fontSize=o[1];handleSetFont(null,o[0]).then(e,t)}else{k.set(E,s.objId,!0);e()}})).catch((function(e){if(!(e instanceof r.AbortException)){if(!y.options.ignoreErrors)throw e;(0,r.warn)(`getTextContent - ignoring ExtGState: "${e}".`)}})));return;case r.OPS.beginMarkedContent:flushTextContentItem();if(s){h.level++;u.items.push({type:"beginMarkedContent",tag:p[0]instanceof i.Name?p[0].name:null})}break;case r.OPS.beginMarkedContentProps:flushTextContentItem();if(s){h.level++;let e=null;p[1]instanceof i.Dict&&(e=p[1].get("MCID"));u.items.push({type:"beginMarkedContentProps",id:Number.isInteger(e)?`${y.idFactory.getPageObjId()}_mcid${e}`:null,tag:p[0]instanceof i.Name?p[0].name:null})}break;case r.OPS.endMarkedContent:flushTextContentItem();if(s){if(0===h.level)break;h.level--;u.items.push({type:"endMarkedContent"})}}if(u.items.length>=o.desiredSize){g=!0;break}}if(g)next(R);else{flushTextContentItem();enqueueChunk();e()}})).catch((e=>{if(!(e instanceof r.AbortException)){if(!this.options.ignoreErrors)throw e;(0,r.warn)(`getTextContent - ignoring errors during "${t.name}" task: "${e}".`);flushTextContentItem();enqueueChunk()}}))}extractDataStructures(e,t,a){const n=this.xref;let s;const c=this.readToUnicode(a.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"));if(a.composite){const t=e.get("CIDSystemInfo");t instanceof i.Dict&&(a.cidSystemInfo={registry:(0,r.stringToPDFString)(t.get("Registry")),ordering:(0,r.stringToPDFString)(t.get("Ordering")),supplement:t.get("Supplement")});try{const t=e.get("CIDToGIDMap");t instanceof m.BaseStream&&(s=t.getBytes())}catch(e){if(!this.options.ignoreErrors)throw e;(0,r.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${e}".`)}}const l=[];let h,u=null;if(e.has("Encoding")){h=e.get("Encoding");if(h instanceof i.Dict){u=h.get("BaseEncoding");u=u instanceof i.Name?u.name:null;if(h.has("Differences")){const e=h.get("Differences");let t=0;for(const a of e){const e=n.fetchIfRef(a);if("number"==typeof e)t=e;else{if(!(e instanceof i.Name))throw new r.FormatError(`Invalid entry in 'Differences' array: ${e}`);l[t++]=e.name}}}}else if(h instanceof i.Name)u=h.name;else{const e="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new r.FormatError(e);(0,r.warn)(e)}"MacRomanEncoding"!==u&&"MacExpertEncoding"!==u&&"WinAnsiEncoding"!==u&&(u=null)}if(u)a.defaultEncoding=(0,o.getEncoding)(u);else{const e=!!(a.flags&S.FontFlags.Symbolic),t=!!(a.flags&S.FontFlags.Nonsymbolic);h=o.StandardEncoding;"TrueType"!==a.type||t||(h=o.WinAnsiEncoding);if(e){h=o.MacRomanEncoding;a.file&&!a.isInternalFont||(/Symbol/i.test(a.name)?h=o.SymbolSetEncoding:/Dingbats|Wingdings/i.test(a.name)&&(h=o.ZapfDingbatsEncoding))}a.defaultEncoding=h}a.differences=l;a.baseEncodingName=u;a.hasEncoding=!!u||l.length>0;a.dict=e;return c.then((e=>{a.toUnicode=e;return this.buildToUnicode(a)})).then((e=>{a.toUnicode=e;s&&(a.cidToGidMap=this.readCidToGidMap(s,e));return a}))}_simpleFontToUnicode(e,t=!1){(0,r.assert)(!e.composite,"Must be a simple font.");const a=[],n=e.defaultEncoding.slice(),i=e.baseEncodingName,s=e.differences;for(const e in s){const t=s[e];".notdef"!==t&&(n[e]=t)}const c=(0,x.getGlyphsUnicode)();for(const r in n){let s=n[r];if(""===s)continue;let l=c[s];if(void 0!==l){a[r]=String.fromCharCode(l);continue}let h=0;switch(s[0]){case"G":3===s.length&&(h=parseInt(s.substring(1),16));break;case"g":5===s.length&&(h=parseInt(s.substring(1),16));break;case"C":case"c":if(s.length>=3&&s.length<=4){const a=s.substring(1);if(t){h=parseInt(a,16);break}h=+a;if(Number.isNaN(h)&&Number.isInteger(parseInt(a,16)))return this._simpleFontToUnicode(e,!0)}break;case"u":l=(0,v.getUnicodeForGlyph)(s,c);-1!==l&&(h=l);break;default:switch(s){case"f_h":case"f_t":case"T_h":a[r]=s.replaceAll("_","");continue}}if(h>0&&h<=1114111&&Number.isInteger(h)){if(i&&h===+r){const e=(0,o.getEncoding)(i);if(e&&(s=e[r])){a[r]=String.fromCharCode(c[s]);continue}}a[r]=String.fromCodePoint(h)}}return a}async buildToUnicode(e){e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0;if(e.hasIncludedToUnicodeMap){!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e));return e.toUnicode}if(!e.composite)return new u.ToUnicodeMap(this._simpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof n.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){const{registry:t,ordering:a}=e.cidSystemInfo,s=i.Name.get(`${t}-${a}-UCS2`),o=await n.CMapFactory.create({encoding:s,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),c=[],l=[];e.cMap.forEach((function(e,t){if(t>65535)throw new r.FormatError("Max size of CID is 65,535");const a=o.lookup(t);if(a){l.length=0;for(let e=0,t=a.length;e{if(e instanceof r.AbortException)return null;if(this.options.ignoreErrors){(0,r.warn)(`readToUnicode - ignoring ToUnicode data: "${e}".`);return null}throw e})):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(e,t){const a=[];for(let r=0,n=e.length;r>1;(0!==n||t.has(i))&&(a[i]=n)}return a}extractWidths(e,t,a){const r=this.xref;let n=[],s=0;const o=[];let c,l,h,u,d,f,g,p;if(a.composite){s=e.has("DW")?e.get("DW"):1e3;p=e.get("W");if(p)for(l=0,h=p.length;l{if(g){const e=[];let a=u;for(const t of g)e[a++]=this.xref.fetchIfRef(t);t.widths=e}else t.widths=this.buildCharCodeToWidth(n.widths,t);return new s.Font(e,y,t)}))}(e=new i.Dict(null)).set("FontName",i.Name.get(l));e.set("FontBBox",t.getArray("FontBBox")||[0,0,0,0])}let y,w,x,C,k,v=e.get("FontName"),F=t.get("BaseFont");"string"==typeof v&&(v=i.Name.get(v));"string"==typeof F&&(F=i.Name.get(F));if(!m){const e=v&&v.name,t=F&&F.name;if(e!==t){(0,r.info)(`The FontDescriptor's FontName is "${e}" but should be the same as the Font's BaseFont "${t}".`);e&&t&&t.startsWith(e)&&(v=F)}}v=v||F;if(!(v instanceof i.Name))throw new r.FormatError("invalid font name");try{y=e.get("FontFile","FontFile2","FontFile3")}catch(e){if(!this.options.ignoreErrors)throw e;(0,r.warn)(`translateFont - fetching "${v.name}" font file: "${e}".`);y=new p.NullStream}let O=!1,T=!1,M=null;if(y){if(y.dict){const e=y.dict.get("Subtype");e instanceof i.Name&&(w=e.name);x=y.dict.get("Length1");C=y.dict.get("Length2");k=y.dict.get("Length3")}}else if(g){const e=(0,h.getXfaFontName)(v.name);if(e){g.fontFamily=`${g.fontFamily}-PdfJS-XFA`;g.metrics=e.metrics||null;M=e.factors||null;y=await this.fetchStandardFontData(e.name);T=!!y;a=t=(0,h.getXfaFontDict)(v.name);o=!0}}else if(!m){const e=(0,c.getStandardFontName)(v.name);if(e){O=!0;y=await this.fetchStandardFontData(e);T=!!y}}b={type:l,name:v.name,subtype:w,file:y,length1:x,length2:C,length3:k,isStandardFont:O,isInternalFont:T,loadedName:a.loadedName,composite:o,fixedPitch:!1,fontMatrix:t.getArray("FontMatrix")||r.FONT_IDENTITY_MATRIX,firstChar:u,lastChar:d,toUnicode:f,bbox:e.getArray("FontBBox")||t.getArray("FontBBox"),ascent:e.get("Ascent"),descent:e.get("Descent"),xHeight:e.get("XHeight")||0,capHeight:e.get("CapHeight")||0,flags:e.get("Flags"),italicAngle:e.get("ItalicAngle")||0,isType3Font:m,cssFontInfo:g,scaleFactors:M};if(o){const e=a.get("Encoding");e instanceof i.Name&&(b.cidEncoding=e.name);const t=await n.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});b.cMap=t;b.vertical=b.cMap.vertical}return this.extractDataStructures(t,a,b).then((a=>{this.extractWidths(t,e,a);return new s.Font(v.name,y,a)}))}static buildFontPaths(e,t,a,n){function buildPath(t){const i=`${e.loadedName}_path_${t}`;try{if(e.renderer.hasBuiltPath(t))return;a.send("commonobj",[i,"FontPath",e.renderer.getPathJs(t)])}catch(e){if(n.ignoreErrors){(0,r.warn)(`buildFontPaths - ignoring ${i} glyph: "${e}".`);return}throw e}}for(const e of t){buildPath(e.fontChar);const t=e.accent;t&&t.fontChar&&buildPath(t.fontChar)}}static get fallbackFontDict(){const e=new i.Dict;e.set("BaseFont",i.Name.get("PDFJS-FallbackFont"));e.set("Type",i.Name.get("FallbackType"));e.set("Subtype",i.Name.get("FallbackType"));e.set("Encoding",i.Name.get("WinAnsiEncoding"));return(0,r.shadow)(this,"fallbackFontDict",e)}}t.PartialEvaluator=PartialEvaluator;class TranslatedFont{constructor({loadedName:e,font:t,dict:a,evaluatorOptions:r}){this.loadedName=e;this.font=t;this.dict=a;this._evaluatorOptions=r||E;this.type3Loaded=null;this.type3Dependencies=t.isType3Font?new Set:null;this.sent=!1}send(e){if(!this.sent){this.sent=!0;e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)])}}fallback(e){if(this.font.data){this.font.disableFontFace=!0;PartialEvaluator.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions)}}loadType3Data(e,t,a){if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const n=e.clone({ignoreErrors:!1});n.parsingType3Font=!0;const s=new i.RefSet(e.type3FontRefs);this.dict.objId&&!s.has(this.dict.objId)&&s.put(this.dict.objId);n.type3FontRefs=s;const o=this.font,c=this.type3Dependencies;let l=Promise.resolve();const h=this.dict.get("CharProcs"),u=this.dict.get("Resources")||t,d=Object.create(null),f=r.Util.normalizeRect(o.bbox||[0,0,0,0]),g=f[2]-f[0],p=f[3]-f[1],m=Math.hypot(g,p);for(const e of h.getKeys())l=l.then((()=>{const t=h.get(e),i=new T.OperatorList;return n.getOperatorList({stream:t,task:a,resources:u,operatorList:i}).then((()=>{i.fnArray[0]===r.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(i,m);d[e]=i.getIR();for(const e of i.dependencies)c.add(e)})).catch((function(t){(0,r.warn)(`Type3 font resource "${e}" is not available.`);const a=new T.OperatorList;d[e]=a.getIR()}))}));this.type3Loaded=l.then((()=>{o.charProcOperatorList=d;if(this._bbox){o.isCharBBox=!0;o.bbox=this._bbox}}));return this.type3Loaded}_removeType3ColorOperators(e,t=NaN){const a=r.Util.normalizeRect(e.argsArray[0].slice(2)),n=a[2]-a[0],i=a[3]-a[1],s=Math.hypot(n,i);if(0===n||0===i){e.fnArray.splice(0,1);e.argsArray.splice(0,1)}else if(0===t||Math.round(s/t)>=10){this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]);this._bbox[0]=Math.min(this._bbox[0],a[0]);this._bbox[1]=Math.min(this._bbox[1],a[1]);this._bbox[2]=Math.max(this._bbox[2],a[2]);this._bbox[3]=Math.max(this._bbox[3],a[3])}let o=0,c=e.length;for(;o=r.OPS.moveTo&&s<=r.OPS.endPath;if(i.variableArgs)c>o&&(0,r.info)(`Command ${n}: expected [0, ${o}] args, but received ${c} args.`);else{if(c!==o){const e=this.nonProcessedArgs;for(;c>o;){e.push(t.shift());c--}for(;cEvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new r.FormatError(`Invalid ${e}`);(0,r.warn)(`Skipping ${e}`);null!==t&&(t.length=0);continue}}this.preprocessCommand(s,t);e.fn=s;e.args=t;return!0}if(a===i.EOF)return!1;if(null!==a){null===t&&(t=[]);t.push(a);if(t.length>33)throw new r.FormatError("Too many arguments")}}}preprocessCommand(e,t){switch(0|e){case r.OPS.save:this.stateManager.save();break;case r.OPS.restore:this.stateManager.restore();break;case r.OPS.transform:this.stateManager.transform(t)}}}t.EvaluatorPreprocessor=EvaluatorPreprocessor},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var r=a(2),n=a(4),i=a(5),s=a(15),o=a(3),c=a(8);const l=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],h=2**24-1;class CMap{constructor(e=!1){this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;this._map=[];this.name="";this.vertical=!1;this.useCMap=null;this.builtInCMap=e}addCodespaceRange(e,t,a){this.codespaceRanges[e-1].push(t,a);this.numCodespaceRanges++}mapCidRange(e,t,a){if(t-e>h)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=a++}mapBfRange(e,t,a){if(t-e>h)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const r=a.length-1;for(;e<=t;){this._map[e++]=a;const t=a.charCodeAt(r)+1;t>255?a=a.substring(0,r-1)+String.fromCharCode(a.charCodeAt(r-1)+1)+"\0":a=a.substring(0,r)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,a){if(t-e>h)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const r=a.length;let n=0;for(;e<=t&&n>>0;const s=n[i];for(let e=0,t=s.length;e=t&&r<=n){a.charcode=r;a.length=i+1;return}}}a.charcode=0;a.length=1}getCharCodeLength(e){const t=this.codespaceRanges;for(let a=0,r=t.length;a=n&&e<=i)return a+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}t.CMap=CMap;class IdentityCMap extends CMap{constructor(e,t){super();this.vertical=e;this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,a){(0,r.unreachable)("should not call mapCidRange")}mapBfRange(e,t,a){(0,r.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,a){(0,r.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,r.unreachable)("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){const e=new Array(65536);for(let t=0;t<=65535;t++)e[t]=t;return e}get length(){return 65536}get isIdentityCMap(){(0,r.unreachable)("should not access .isIdentityCMap")}}t.IdentityCMap=IdentityCMap;const u=function BinaryCMapReaderClosure(){function hexToInt(e,t){let a=0;for(let r=0;r<=t;r++)a=a<<8|e[r];return a>>>0}function hexToStr(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function addHex(e,t,a){let r=0;for(let n=a;n>=0;n--){r+=e[n]+t[n];e[n]=255&r;r>>=8}}function incHex(e,t){let a=1;for(let r=t;r>=0&&a>0;r--){a+=e[r];e[r]=255&a;a>>=8}}const e=16;class BinaryCMapStream{constructor(e){this.buffer=e;this.pos=0;this.end=e.length;this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e,t=0;do{const a=this.readByte();if(a<0)throw new r.FormatError("unexpected EOF in bcmap");e=!(128&a);t=t<<7|127&a}while(!e);return t}readSigned(){const e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1));this.pos+=t+1}readHexNumber(e,t){let a;const n=this.tmpBuf;let i=0;do{const e=this.readByte();if(e<0)throw new r.FormatError("unexpected EOF in bcmap");a=!(128&e);n[i++]=127&e}while(!a);let s=t,o=0,c=0;for(;s>=0;){for(;c<8&&n.length>0;){o|=n[--i]<>=8;c-=8}}readHexSigned(e,t){this.readHexNumber(e,t);const a=1&e[t]?255:0;let r=0;for(let n=0;n<=t;n++){r=(1&r)<<8|e[n];e[n]=r>>1^a}}readString(){const e=this.readNumber();let t="";for(let a=0;a=0;){const t=f>>5;if(7===t){switch(31&f){case 0:n.readString();break;case 1:s=n.readString()}continue}const r=!!(16&f),i=15&f;if(i+1>e)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const g=1,p=n.readNumber();switch(t){case 0:n.readHex(o,i);n.readHexNumber(c,i);addHex(c,o,i);a.addCodespaceRange(i+1,hexToInt(o,i),hexToInt(c,i));for(let e=1;e>>0}function expectString(e){if("string"!=typeof e)throw new r.FormatError("Malformed CMap: expected string.")}function expectInt(e){if(!Number.isInteger(e))throw new r.FormatError("Malformed CMap: expected int.")}function parseBfChar(e,t){for(;;){let a=t.getObj();if(a===n.EOF)break;if((0,n.isCmd)(a,"endbfchar"))return;expectString(a);const r=strToInt(a);a=t.getObj();expectString(a);const i=a;e.mapOne(r,i)}}function parseBfRange(e,t){for(;;){let a=t.getObj();if(a===n.EOF)break;if((0,n.isCmd)(a,"endbfrange"))return;expectString(a);const r=strToInt(a);a=t.getObj();expectString(a);const i=strToInt(a);a=t.getObj();if(Number.isInteger(a)||"string"==typeof a){const t=Number.isInteger(a)?String.fromCharCode(a):a;e.mapBfRange(r,i,t)}else{if(!(0,n.isCmd)(a,"["))break;{a=t.getObj();const s=[];for(;!(0,n.isCmd)(a,"]")&&a!==n.EOF;){s.push(a);a=t.getObj()}e.mapBfRangeToArray(r,i,s)}}}throw new r.FormatError("Invalid bf range.")}function parseCidChar(e,t){for(;;){let a=t.getObj();if(a===n.EOF)break;if((0,n.isCmd)(a,"endcidchar"))return;expectString(a);const r=strToInt(a);a=t.getObj();expectInt(a);const i=a;e.mapOne(r,i)}}function parseCidRange(e,t){for(;;){let a=t.getObj();if(a===n.EOF)break;if((0,n.isCmd)(a,"endcidrange"))return;expectString(a);const r=strToInt(a);a=t.getObj();expectString(a);const i=strToInt(a);a=t.getObj();expectInt(a);const s=a;e.mapCidRange(r,i,s)}}function parseCodespaceRange(e,t){for(;;){let a=t.getObj();if(a===n.EOF)break;if((0,n.isCmd)(a,"endcodespacerange"))return;if("string"!=typeof a)break;const r=strToInt(a);a=t.getObj();if("string"!=typeof a)break;const i=strToInt(a);e.addCodespaceRange(a.length,r,i)}throw new r.FormatError("Invalid codespace range.")}function parseWMode(e,t){const a=t.getObj();Number.isInteger(a)&&(e.vertical=!!a)}function parseCMapName(e,t){const a=t.getObj();a instanceof n.Name&&(e.name=a.name)}async function parseCMap(e,t,a,i){let s,c;e:for(;;)try{const a=t.getObj();if(a===n.EOF)break;if(a instanceof n.Name){"WMode"===a.name?parseWMode(e,t):"CMapName"===a.name&&parseCMapName(e,t);s=a}else if(a instanceof n.Cmd)switch(a.cmd){case"endcmap":break e;case"usecmap":s instanceof n.Name&&(c=s.name);break;case"begincodespacerange":parseCodespaceRange(e,t);break;case"beginbfchar":parseBfChar(e,t);break;case"begincidchar":parseCidChar(e,t);break;case"beginbfrange":parseBfRange(e,t);break;case"begincidrange":parseCidRange(e,t)}}catch(e){if(e instanceof o.MissingDataException)throw e;(0,r.warn)("Invalid cMap data: "+e);continue}!i&&c&&(i=c);return i?extendCMap(e,a,i):e}async function extendCMap(e,t,a){e.useCMap=await createBuiltInCMap(a,t);if(0===e.numCodespaceRanges){const t=e.useCMap.codespaceRanges;for(let a=0;aextendCMap(i,t,e)));if(n===r.CMapCompressionType.NONE){const e=new s.Lexer(new c.Stream(a));return parseCMap(i,e,t,null)}throw new Error(`Invalid CMap "compressionType" value: ${n}`)}return{async create(e){const t=e.encoding,a=e.fetchBuiltInCMap,r=e.useCMap;if(t instanceof n.Name)return createBuiltInCMap(t.name,a);if(t instanceof i.BaseStream){const e=await parseCMap(new CMap,new s.Lexer(t),a,r);return e.isIdentityCMap?createBuiltInCMap(e.name,a):e}throw new Error("Encoding required.")}}}();t.CMapFactory=d},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.Parser=t.Linearization=t.Lexer=void 0;var r=a(2),n=a(4),i=a(3),s=a(16),o=a(18),c=a(19),l=a(21),h=a(22),u=a(25),d=a(28),f=a(30),g=a(8),p=a(31),m=a(32);class Parser{constructor({lexer:e,xref:t,allowStreams:a=!1,recoveryMode:r=!1}){this.lexer=e;this.xref=t;this.allowStreams=a;this.recoveryMode=r;this.imageCache=Object.create(null);this._imageId=0;this.refill()}refill(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj()}shift(){if(this.buf2 instanceof n.Cmd&&"ID"===this.buf2.cmd){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}}tryShift(){try{this.shift();return!0}catch(e){if(e instanceof i.MissingDataException)throw e;return!1}}getObj(e=null){const t=this.buf1;this.shift();if(t instanceof n.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":const a=[];for(;!(0,n.isCmd)(this.buf1,"]")&&this.buf1!==n.EOF;)a.push(this.getObj(e));if(this.buf1===n.EOF){if(this.recoveryMode)return a;throw new i.ParserEOFException("End of file inside array.")}this.shift();return a;case"<<":const s=new n.Dict(this.xref);for(;!(0,n.isCmd)(this.buf1,">>")&&this.buf1!==n.EOF;){if(!(this.buf1 instanceof n.Name)){(0,r.info)("Malformed dictionary: key must be a name object");this.shift();continue}const t=this.buf1.name;this.shift();if(this.buf1===n.EOF)break;s.set(t,this.getObj(e))}if(this.buf1===n.EOF){if(this.recoveryMode)return s;throw new i.ParserEOFException("End of file inside dictionary.")}if((0,n.isCmd)(this.buf2,"stream"))return this.allowStreams?this.makeStream(s,e):s;this.shift();return s;default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,n.isCmd)(this.buf2,"R")){const e=n.Ref.get(t,this.buf1);this.shift();this.shift();return e}return t}return"string"==typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){const t=this.lexer,a=e.pos;let s,o,c=0;for(;-1!==(s=e.getByte());)if(0===c)c=69===s?1:0;else if(1===c)c=73===s?2:0;else if(32===s||10===s||13===s){o=e.pos;const a=e.peekBytes(10);for(let e=0,t=a.length;e127))){c=0;break}}if(2!==c)continue;if(t.knownCommands){const e=t.peekObj();e instanceof n.Cmd&&!t.knownCommands[e.cmd]&&(c=0)}else(0,r.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(2===c)break}else c=0;if(-1===s){(0,r.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker");if(o){(0,r.warn)('... trying to recover by using the last "EI" occurrence.');e.skip(-(e.pos-o))}}let l=4;e.skip(-l);s=e.peekByte();e.skip(l);(0,i.isWhiteSpace)(s)||l--;return e.pos-l-a}findDCTDecodeInlineStreamEnd(e){const t=e.pos;let a,n,i=!1;for(;-1!==(a=e.getByte());)if(255===a){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:n=e.getUint16();n>2?e.skip(n-2):e.skip(-2)}if(i)break}const s=e.pos-t;if(-1===a){(0,r.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.");e.skip(-s);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return s}findASCII85DecodeInlineStreamEnd(e){const t=e.pos;let a;for(;-1!==(a=e.getByte());)if(126===a){const t=e.pos;a=e.peekByte();for(;(0,i.isWhiteSpace)(a);){e.skip();a=e.peekByte()}if(62===a){e.skip();break}if(e.pos>t){const t=e.peekBytes(2);if(69===t[0]&&73===t[1])break}}const n=e.pos-t;if(-1===a){(0,r.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.");e.skip(-n);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return n}findASCIIHexDecodeInlineStreamEnd(e){const t=e.pos;let a;for(;-1!==(a=e.getByte())&&62!==a;);const n=e.pos-t;if(-1===a){(0,r.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.");e.skip(-n);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return n}inlineStreamSkipEI(e){let t,a=0;for(;-1!==(t=e.getByte());)if(0===a)a=69===t?1:0;else if(1===a)a=73===t?2:0;else if(2===a)break}makeInlineImage(e){const t=this.lexer,a=t.stream,i=Object.create(null);let s;for(;!(0,n.isCmd)(this.buf1,"ID")&&this.buf1!==n.EOF;){if(!(this.buf1 instanceof n.Name))throw new r.FormatError("Dictionary key must be a name object");const t=this.buf1.name;this.shift();if(this.buf1===n.EOF)break;i[t]=this.getObj(e)}-1!==t.beginInlineImagePos&&(s=a.pos-t.beginInlineImagePos);const o=this.xref.fetchIfRef(i.F||i.Filter);let c;if(o instanceof n.Name)c=o.name;else if(Array.isArray(o)){const e=this.xref.fetchIfRef(o[0]);e instanceof n.Name&&(c=e.name)}const l=a.pos;let h,u;switch(c){case"DCT":case"DCTDecode":h=this.findDCTDecodeInlineStreamEnd(a);break;case"A85":case"ASCII85Decode":h=this.findASCII85DecodeInlineStreamEnd(a);break;case"AHx":case"ASCIIHexDecode":h=this.findASCIIHexDecodeInlineStreamEnd(a);break;default:h=this.findDefaultInlineStreamEnd(a)}if(h<1e3&&s>0){const e=a.pos;a.pos=t.beginInlineImagePos;u=function getInlineImageCacheKey(e){const t=[],a=e.length;let r=0;for(;r=r){a.pos+=s;return a.pos-e}s++}a.pos+=i}return-1}makeStream(e,t){const a=this.lexer;let s=a.stream;a.skipToNextLine();const o=s.pos-1;let c=e.get("Length");if(!Number.isInteger(c)){(0,r.info)(`Bad length "${c&&c.toString()}" in stream.`);c=0}s.pos=o+c;a.nextChar();if(this.tryShift()&&(0,n.isCmd)(this.buf2,"endstream"))this.shift();else{const e=new Uint8Array([101,110,100,115,116,114,101,97,109]);let t=this._findStreamLength(o,e);if(t<0){const a=1;for(let n=1;n<=a;n++){const a=e.length-n,c=e.slice(0,a),l=this._findStreamLength(o,c);if(l>=0){const e=s.peekBytes(a+1)[a];if(!(0,i.isWhiteSpace)(e))break;(0,r.info)(`Found "${(0,r.bytesToString)(c)}" when searching for endstream command.`);t=l;break}}if(t<0)throw new r.FormatError("Missing endstream command.")}c=t;a.nextChar();this.shift();this.shift()}this.shift();s=s.makeSubStream(o,c,e);t&&(s=t.createStream(s,c));s=this.filter(s,e,c);s.dict=e;return s}filter(e,t,a){let i=t.get("F","Filter"),s=t.get("DP","DecodeParms");if(i instanceof n.Name){Array.isArray(s)&&(0,r.warn)("/DecodeParms should not be an Array, when /Filter is a Name.");return this.makeFilter(e,i.name,a,s)}let o=a;if(Array.isArray(i)){const t=i,a=s;for(let c=0,l=t.length;c=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}class Lexer{constructor(e,t=null){this.stream=e;this.nextChar();this.strBuf=[];this.knownCommands=t;this._hexStringNumWarn=0;this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,a=0,n=0;if(45===e){n=-1;e=this.nextChar();45===e&&(e=this.nextChar())}else if(43===e){n=1;e=this.nextChar()}if(10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e){a=10;e=this.nextChar()}if(e<48||e>57){const t=`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`;if((0,i.isWhiteSpace)(e)||-1===e){(0,r.info)(`Lexer.getNumber - "${t}".`);return 0}throw new r.FormatError(t)}n=n||1;let s=e-48,o=0,c=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){const r=e-48;if(t)o=10*o+r;else{0!==a&&(a*=10);s=10*s+r}}else if(46===e){if(0!==a)break;a=1}else if(45===e)(0,r.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;e=this.peekChar();if(43===e||45===e){c=45===e?-1:1;this.nextChar()}else if(e<48||e>57)break;t=!0}0!==a&&(s/=a);t&&(s*=10**(c*o));return n*s}getString(){let e=1,t=!1;const a=this.strBuf;a.length=0;let n=this.nextChar();for(;;){let i=!1;switch(0|n){case-1:(0,r.warn)("Unterminated string");t=!0;break;case 40:++e;a.push("(");break;case 41:if(0==--e){this.nextChar();t=!0}else a.push(")");break;case 92:n=this.nextChar();switch(n){case-1:(0,r.warn)("Unterminated string");t=!0;break;case 110:a.push("\n");break;case 114:a.push("\r");break;case 116:a.push("\t");break;case 98:a.push("\b");break;case 102:a.push("\f");break;case 92:case 40:case 41:a.push(String.fromCharCode(n));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&n;n=this.nextChar();i=!0;if(n>=48&&n<=55){e=(e<<3)+(15&n);n=this.nextChar();if(n>=48&&n<=55){i=!1;e=(e<<3)+(15&n)}}a.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:a.push(String.fromCharCode(n))}break;default:a.push(String.fromCharCode(n))}if(t)break;i||(n=this.nextChar())}return a.join("")}getName(){let e,t;const a=this.strBuf;a.length=0;for(;(e=this.nextChar())>=0&&!b[e];)if(35===e){e=this.nextChar();if(b[e]){(0,r.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");a.push("#");break}const n=toHexDigit(e);if(-1!==n){t=e;e=this.nextChar();const i=toHexDigit(e);if(-1===i){(0,r.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) in hexadecimal number.`);a.push("#",String.fromCharCode(t));if(b[e])break;a.push(String.fromCharCode(e));continue}a.push(String.fromCharCode(n<<4|i))}else a.push("#",String.fromCharCode(e))}else a.push(String.fromCharCode(e));a.length>127&&(0,r.warn)(`Name token is longer than allowed by the spec: ${a.length}`);return n.Name.get(a.join(""))}_hexStringWarn(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,r.warn)(`getHexString - ignoring invalid character: ${e}`):(0,r.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){const e=this.strBuf;e.length=0;let t,a,n=this.currentChar,i=!0;this._hexStringNumWarn=0;for(;;){if(n<0){(0,r.warn)("Unterminated hex string");break}if(62===n){this.nextChar();break}if(1!==b[n]){if(i){t=toHexDigit(n);if(-1===t){this._hexStringWarn(n);n=this.nextChar();continue}}else{a=toHexDigit(n);if(-1===a){this._hexStringWarn(n);n=this.nextChar();continue}e.push(String.fromCharCode(t<<4|a))}i=!i;n=this.nextChar()}else n=this.nextChar()}return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return n.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==b[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:this.nextChar();return n.Cmd.get("[");case 93:this.nextChar();return n.Cmd.get("]");case 60:t=this.nextChar();if(60===t){this.nextChar();return n.Cmd.get("<<")}return this.getHexString();case 62:t=this.nextChar();if(62===t){this.nextChar();return n.Cmd.get(">>")}return n.Cmd.get(">");case 123:this.nextChar();return n.Cmd.get("{");case 125:this.nextChar();return n.Cmd.get("}");case 41:this.nextChar();throw new r.FormatError(`Illegal character: ${t}`)}let a=String.fromCharCode(t);if(t<32||t>127){const e=this.peekChar();if(e>=32&&e<=127){this.nextChar();return n.Cmd.get(a)}}const i=this.knownCommands;let s=i&&void 0!==i[a];for(;(t=this.nextChar())>=0&&!b[t];){const e=a+String.fromCharCode(t);if(s&&void 0===i[e])break;if(128===a.length)throw new r.FormatError(`Command token too long: ${a.length}`);a=e;s=i&&void 0!==i[a]}if("true"===a)return!0;if("false"===a)return!1;if("null"===a)return null;"BI"===a&&(this.beginInlineImagePos=this.stream.pos);return n.Cmd.get(a)}peekObj(){const e=this.stream.pos,t=this.currentChar,a=this.beginInlineImagePos;let n;try{n=this.getObj()}catch(e){if(e instanceof i.MissingDataException)throw e;(0,r.warn)(`peekObj: ${e}`)}this.stream.pos=e;this.currentChar=t;this.beginInlineImagePos=a;return n}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(13===e){e=this.nextChar();10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}t.Lexer=Lexer;t.Linearization=class Linearization{static create(e){function getInt(e,t,a=!1){const r=e.get(t);if(Number.isInteger(r)&&(a?r>=0:r>0))return r;throw new Error(`The "${t}" parameter in the linearization dictionary is invalid.`)}const t=new Parser({lexer:new Lexer(e),xref:null}),a=t.getObj(),r=t.getObj(),i=t.getObj(),s=t.getObj();let o,c;if(!(Number.isInteger(a)&&Number.isInteger(r)&&(0,n.isCmd)(i,"obj")&&s instanceof n.Dict&&"number"==typeof(o=s.get("Linearized"))&&o>0))return null;if((c=getInt(s,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:c,hints:function getHints(e){const t=e.get("H");let a;if(Array.isArray(t)&&(2===(a=t.length)||4===a)){for(let e=0;e0))throw new Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}throw new Error("Hint array in the linearization dictionary is invalid.")}(s),objectNumberFirst:getInt(s,"O"),endFirst:getInt(s,"E"),numPages:getInt(s,"N"),mainXRefEntriesOffset:getInt(s,"T"),pageFirst:s.has("P")?getInt(s,"P",!0):0}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.Ascii85Stream=void 0;var r=a(17),n=a(3);class Ascii85Stream extends r.DecodeStream{constructor(e,t){t&&(t*=.8);super(t);this.str=e;this.dict=e.dict;this.input=new Uint8Array(5)}readBlock(){const e=this.str;let t=e.getByte();for(;(0,n.isWhiteSpace)(t);)t=e.getByte();if(-1===t||126===t){this.eof=!0;return}const a=this.bufferLength;let r,i;if(122===t){r=this.ensureBuffer(a+4);for(i=0;i<4;++i)r[a+i]=0;this.bufferLength+=4}else{const s=this.input;s[0]=t;for(i=1;i<5;++i){t=e.getByte();for(;(0,n.isWhiteSpace)(t);)t=e.getByte();s[i]=t;if(-1===t||126===t)break}r=this.ensureBuffer(a+i-1);this.bufferLength+=i-1;if(i<5){for(;i<5;++i)s[i]=117;this.eof=!0}let o=0;for(i=0;i<5;++i)o=85*o+(s[i]-33);for(i=3;i>=0;--i){r[a+i]=255&o;o>>=8}}}}t.Ascii85Stream=Ascii85Stream},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.StreamsSequenceStream=t.DecodeStream=void 0;var r=a(5),n=a(8);const i=new Uint8Array(0);class DecodeStream extends r.BaseStream{constructor(e){super();this._rawMinBufferLength=e||0;this.pos=0;this.bufferLength=0;this.eof=!1;this.buffer=i;this.minBufferLength=512;if(e)for(;this.minBufferLengthr&&(a=r)}else{for(;!this.eof;)this.readBlock();a=this.bufferLength}this.pos=a;return this.buffer.subarray(t,a)}reset(){this.pos=0}makeSubStream(e,t,a=null){if(void 0===t)for(;!this.eof;)this.readBlock();else{const a=e+t;for(;this.bufferLength<=a&&!this.eof;)this.readBlock()}return new n.Stream(this.buffer,e,t,a)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}t.DecodeStream=DecodeStream;t.StreamsSequenceStream=class StreamsSequenceStream extends DecodeStream{constructor(e,t=null){let a=0;for(const t of e)a+=t instanceof DecodeStream?t._rawMinBufferLength:t.length;super(a);this.streams=e;this._onError=t}readBlock(){const e=this.streams;if(0===e.length){this.eof=!0;return}const t=e.shift();let a;try{a=t.getBytes()}catch(e){if(this._onError){this._onError(e,t.dict&&t.dict.objId);return}throw e}const r=this.bufferLength,n=r+a.length;this.ensureBuffer(n).set(a,r);this.bufferLength=n}getBaseStreams(){const e=[];for(const t of this.streams){const a=t.getBaseStreams();a&&e.push(...a)}return e.length>0?e:null}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.AsciiHexStream=void 0;var r=a(17);class AsciiHexStream extends r.DecodeStream{constructor(e,t){t&&(t*=.5);super(t);this.str=e;this.dict=e.dict;this.firstDigit=-1}readBlock(){const e=this.str.getBytes(8e3);if(!e.length){this.eof=!0;return}const t=e.length+1>>1,a=this.ensureBuffer(this.bufferLength+t);let r=this.bufferLength,n=this.firstDigit;for(const t of e){let e;if(t>=48&&t<=57)e=15&t;else{if(!(t>=65&&t<=70||t>=97&&t<=102)){if(62===t){this.eof=!0;break}continue}e=9+(15&t)}if(n<0)n=e;else{a[r++]=n<<4|e;n=-1}}if(n>=0&&this.eof){a[r++]=n<<4;n=-1}this.firstDigit=n;this.bufferLength=r}}t.AsciiHexStream=AsciiHexStream},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.CCITTFaxStream=void 0;var r=a(20),n=a(17),i=a(4);class CCITTFaxStream extends n.DecodeStream{constructor(e,t,a){super(t);this.str=e;this.dict=e.dict;a instanceof i.Dict||(a=i.Dict.empty);const n={next:()=>e.getByte()};this.ccittFaxDecoder=new r.CCITTFaxDecoder(n,{K:a.get("K"),EndOfLine:a.get("EndOfLine"),EncodedByteAlign:a.get("EncodedByteAlign"),Columns:a.get("Columns"),Rows:a.get("Rows"),EndOfBlock:a.get("EndOfBlock"),BlackIs1:a.get("BlackIs1")})}readBlock(){for(;!this.eof;){const e=this.ccittFaxDecoder.readNextChar();if(-1===e){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1);this.buffer[this.bufferLength++]=e}}}t.CCITTFaxStream=CCITTFaxStream},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.CCITTFaxDecoder=void 0;var r=a(2);const n=-1,i=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],s=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],o=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],c=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],l=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],h=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];t.CCITTFaxDecoder=class CCITTFaxDecoder{constructor(e,t={}){if(!e||"function"!=typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e;this.eof=!1;this.encoding=t.K||0;this.eoline=t.EndOfLine||!1;this.byteAlign=t.EncodedByteAlign||!1;this.columns=t.Columns||1728;this.rows=t.Rows||0;let a,r=t.EndOfBlock;null==r&&(r=!0);this.eoblock=r;this.black=t.BlackIs1||!1;this.codingLine=new Uint32Array(this.columns+1);this.refLine=new Uint32Array(this.columns+2);this.codingLine[0]=this.columns;this.codingPos=0;this.row=0;this.nextLine2D=this.encoding<0;this.inputBits=0;this.inputBuf=0;this.outputBits=0;this.rowsDone=!1;for(;0===(a=this._lookBits(12));)this._eatBits(1);1===a&&this._eatBits(12);if(this.encoding>0){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}}readNextChar(){if(this.eof)return-1;const e=this.refLine,t=this.codingLine,a=this.columns;let i,s,o,c,l;if(0===this.outputBits){this.rowsDone&&(this.eof=!0);if(this.eof)return-1;this.err=!1;let o,l,h;if(this.nextLine2D){for(c=0;t[c]=64);do{l+=h=this._getWhiteCode()}while(h>=64)}else{do{o+=h=this._getWhiteCode()}while(h>=64);do{l+=h=this._getBlackCode()}while(h>=64)}this._addPixels(t[this.codingPos]+o,s);t[this.codingPos]0?--i:++i;for(;e[i]<=t[this.codingPos]&&e[i]0?--i:++i;for(;e[i]<=t[this.codingPos]&&e[i]0?--i:++i;for(;e[i]<=t[this.codingPos]&&e[i]=64);else do{o+=h=this._getWhiteCode()}while(h>=64);this._addPixels(t[this.codingPos]+o,s);s^=1}}let u=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){o=this._lookBits(12);if(this.eoline)for(;o!==n&&1!==o;){this._eatBits(1);o=this._lookBits(12)}else for(;0===o;){this._eatBits(1);o=this._lookBits(12)}if(1===o){this._eatBits(12);u=!0}else o===n&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}if(this.eoblock&&u&&this.byteAlign){o=this._lookBits(12);if(1===o){this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}if(this.encoding>=0)for(c=0;c<4;++c){o=this._lookBits(12);1!==o&&(0,r.info)("bad rtc code: "+o);this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}}this.eof=!0}}else if(this.err&&this.eoline){for(;;){o=this._lookBits(13);if(o===n){this.eof=!0;return-1}if(o>>1==1)break;this._eatBits(1)}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(1&o)}}t[0]>0?this.outputBits=t[this.codingPos=0]:this.outputBits=t[this.codingPos=1];this.row++}if(this.outputBits>=8){l=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&t[this.codingPos]o){l<<=o;1&this.codingPos||(l|=255>>8-o);this.outputBits-=o;o=0}else{l<<=this.outputBits;1&this.codingPos||(l|=255>>8-this.outputBits);o-=this.outputBits;this.outputBits=0;if(t[this.codingPos]0){l<<=o;o=0}}}while(o)}this.black&&(l^=255);return l}_addPixels(e,t){const a=this.codingLine;let n=this.codingPos;if(e>a[n]){if(e>this.columns){(0,r.info)("row is wrong length");this.err=!0;e=this.columns}1&n^t&&++n;a[n]=e}this.codingPos=n}_addPixelsNeg(e,t){const a=this.codingLine;let n=this.codingPos;if(e>a[n]){if(e>this.columns){(0,r.info)("row is wrong length");this.err=!0;e=this.columns}1&n^t&&++n;a[n]=e}else if(e0&&e=i){const t=a[e-i];if(t[0]===r){this._eatBits(r);return[!0,t[1],!0]}}}return[!1,0,!1]}_getTwoDimCode(){let e,t=0;if(this.eoblock){t=this._lookBits(7);e=i[t];if(e&&e[0]>0){this._eatBits(e[0]);return e[1]}}else{const e=this._findTableCode(1,7,i);if(e[0]&&e[2])return e[1]}(0,r.info)("Bad two dim code");return n}_getWhiteCode(){let e,t=0;if(this.eoblock){t=this._lookBits(12);if(t===n)return 1;e=t>>5==0?s[t]:o[t>>3];if(e[0]>0){this._eatBits(e[0]);return e[1]}}else{let e=this._findTableCode(1,9,o);if(e[0])return e[1];e=this._findTableCode(11,12,s);if(e[0])return e[1]}(0,r.info)("bad white code");this._eatBits(1);return 1}_getBlackCode(){let e,t;if(this.eoblock){e=this._lookBits(13);if(e===n)return 1;t=e>>7==0?c[e]:e>>9==0&&e>>7!=0?l[(e>>1)-64]:h[e>>7];if(t[0]>0){this._eatBits(t[0]);return t[1]}}else{let e=this._findTableCode(2,6,h);if(e[0])return e[1];e=this._findTableCode(7,12,l,64);if(e[0])return e[1];e=this._findTableCode(10,13,c);if(e[0])return e[1]}(0,r.info)("bad black code");this._eatBits(1);return 1}_lookBits(e){let t;for(;this.inputBits>16-e;this.inputBuf=this.inputBuf<<8|t;this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.FlateStream=void 0;var r=a(17),n=a(2);const i=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),o=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),c=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],l=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];class FlateStream extends r.DecodeStream{constructor(e,t){super(t);this.str=e;this.dict=e.dict;const a=e.getByte(),r=e.getByte();if(-1===a||-1===r)throw new n.FormatError(`Invalid header in flate stream: ${a}, ${r}`);if(8!=(15&a))throw new n.FormatError(`Unknown compression method in flate stream: ${a}, ${r}`);if(((a<<8)+r)%31!=0)throw new n.FormatError(`Bad FCHECK in flate stream: ${a}, ${r}`);if(32&r)throw new n.FormatError(`FDICT bit set in flate stream: ${a}, ${r}`);this.codeSize=0;this.codeBuf=0}getBits(e){const t=this.str;let a,r=this.codeSize,i=this.codeBuf;for(;r>e;this.codeSize=r-=e;return a}getCode(e){const t=this.str,a=e[0],r=e[1];let i,s=this.codeSize,o=this.codeBuf;for(;s>16,h=65535&c;if(l<1||s>l;this.codeSize=s-l;return h}generateHuffmanTable(e){const t=e.length;let a,r=0;for(a=0;ar&&(r=e[a]);const n=1<>=1}for(a=e;a>=1;if(0===u){let t;if(-1===(t=a.getByte()))throw new n.FormatError("Bad block header in flate stream");let r=t;if(-1===(t=a.getByte()))throw new n.FormatError("Bad block header in flate stream");r|=t<<8;if(-1===(t=a.getByte()))throw new n.FormatError("Bad block header in flate stream");let i=t;if(-1===(t=a.getByte()))throw new n.FormatError("Bad block header in flate stream");i|=t<<8;if(i!==(65535&~r)&&(0!==r||0!==i))throw new n.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;const s=this.bufferLength,o=s+r;e=this.ensureBuffer(o);this.bufferLength=o;if(0===r)-1===a.peekByte()&&(this.eof=!0);else{const t=a.getBytes(r);e.set(t,s);t.length0;)u[o++]=g}r=this.generateHuffmanTable(u.subarray(0,e));h=this.generateHuffmanTable(u.subarray(e,l))}}e=this.buffer;let d=e?e.length:0,f=this.bufferLength;for(;;){let a=this.getCode(r);if(a<256){if(f+1>=d){e=this.ensureBuffer(f+1);d=e.length}e[f++]=a;continue}if(256===a){this.bufferLength=f;return}a-=257;a=s[a];let n=a>>16;n>0&&(n=this.getBits(n));t=(65535&a)+n;a=this.getCode(h);a=o[a];n=a>>16;n>0&&(n=this.getBits(n));const i=(65535&a)+n;if(f+t>=d){e=this.ensureBuffer(f+t);d=e.length}for(let a=0;a{Object.defineProperty(t,"__esModule",{value:!0});t.Jbig2Stream=void 0;var r=a(5),n=a(17),i=a(4),s=a(23),o=a(2);class Jbig2Stream extends n.DecodeStream{constructor(e,t,a){super(t);this.stream=e;this.dict=e.dict;this.maybeLength=t;this.params=a}get bytes(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e=new s.Jbig2Image,t=[];if(this.params instanceof i.Dict){const e=this.params.get("JBIG2Globals");if(e instanceof r.BaseStream){const a=e.getBytes();t.push({data:a,start:0,end:a.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});const a=e.parseChunks(t),n=a.length;for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0});t.Jbig2Image=void 0;var r=a(2),n=a(3),i=a(24),s=a(20);class Jbig2Error extends r.BaseException{constructor(e){super(`JBIG2 error: ${e}`,"Jbig2Error")}}class ContextCache{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}class DecodingContext{constructor(e,t,a){this.data=e;this.start=t;this.end=a}get decoder(){const e=new i.ArithmeticDecoder(this.data,this.start,this.end);return(0,r.shadow)(this,"decoder",e)}get contextCache(){const e=new ContextCache;return(0,r.shadow)(this,"contextCache",e)}}const o=2**31-1,c=-(2**31);function decodeInteger(e,t,a){const r=e.getContexts(t);let n=1;function readBits(e){let t=0;for(let i=0;i>>0}const i=readBits(1),s=readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(32)+4436:readBits(12)+340:readBits(8)+84:readBits(6)+20:readBits(4)+4:readBits(2);let l;0===i?l=s:s>0&&(l=-s);return l>=c&&l<=o?l:null}function decodeIAID(e,t,a){const r=e.getContexts("IAID");let n=1;for(let e=0;e=O&&_=T){q=q<<1&y;for(b=0;b=0&&j=0){U=N[$][j];U&&(q|=U<=e?l<<=1:l=l<<1|k[o][c]}for(p=0;p=x||c<0||c>=S?l<<=1:l=l<<1|r[o][c]}const u=v.readBit(F,l);t[s]=u}}return k}function decodeTextRegion(e,t,a,r,n,i,s,o,c,l,h,u,d,f,g,p,m,b,y){if(e&&t)throw new Jbig2Error("refinement with Huffman is not supported");const w=[];let S,x;for(S=0;S1&&(n=e?y.readBits(b):decodeInteger(k,"IAIT",C));const i=s*v+n,F=e?f.symbolIDTable.decode(y):decodeIAID(k,C,c),O=t&&(e?y.readBit():decodeInteger(k,"IARI",C));let T=o[F],M=T[0].length,E=T.length;if(O){const e=decodeInteger(k,"IARDW",C),t=decodeInteger(k,"IARDH",C);M+=e;E+=t;T=decodeRefinement(M,E,g,T,(e>>1)+decodeInteger(k,"IARDX",C),(t>>1)+decodeInteger(k,"IARDY",C),!1,p,m)}const D=i-(1&u?0:E-1),N=r-(2&u?M-1:0);let R,L,_;if(l){for(R=0;R>5&7;const h=[31&o];let u=t+6;if(7===o){c=536870911&(0,n.readUint32)(e,u-1);u+=3;let t=c+7>>3;h[0]=e[u++];for(;--t>0;)h.push(e[u++])}else if(5===o||6===o)throw new Jbig2Error("invalid referred-to flags");a.retainBits=h;let d=4;a.number<=256?d=1:a.number<=65536&&(d=2);const f=[];let p,m;for(p=0;p>>24&255;i[3]=t.height>>16&255;i[4]=t.height>>8&255;i[5]=255&t.height;for(p=u,m=e.length;p>2&3;e.huffmanDWSelector=t>>4&3;e.bitmapSizeSelector=t>>6&1;e.aggregationInstancesSelector=t>>7&1;e.bitmapCodingContextUsed=!!(256&t);e.bitmapCodingContextRetained=!!(512&t);e.template=t>>10&3;e.refinementTemplate=t>>12&1;h+=2;if(!e.huffman){l=0===e.template?4:1;o=[];for(c=0;c>2&3;u.stripSize=1<>4&3;u.transposed=!!(64&d);u.combinationOperator=d>>7&3;u.defaultPixelValue=d>>9&1;u.dsOffset=d<<17>>27;u.refinementTemplate=d>>15&1;if(u.huffman){const e=(0,n.readUint16)(r,h);h+=2;u.huffmanFS=3&e;u.huffmanDS=e>>2&3;u.huffmanDT=e>>4&3;u.huffmanRefinementDW=e>>6&3;u.huffmanRefinementDH=e>>8&3;u.huffmanRefinementDX=e>>10&3;u.huffmanRefinementDY=e>>12&3;u.huffmanRefinementSizeSelector=!!(16384&e)}if(u.refinement&&!u.refinementTemplate){o=[];for(c=0;c<2;c++){o.push({x:(0,n.readInt8)(r,h),y:(0,n.readInt8)(r,h+1)});h+=2}u.refinementAt=o}u.numberOfSymbolInstances=(0,n.readUint32)(r,h);h+=4;s=[u,a.referredTo,r,h,i];break;case 16:const f={},p=r[h++];f.mmr=!!(1&p);f.template=p>>1&3;f.patternWidth=r[h++];f.patternHeight=r[h++];f.maxPatternIndex=(0,n.readUint32)(r,h);h+=4;s=[f,a.number,r,h,i];break;case 22:case 23:const m={};m.info=readRegionSegmentInformation(r,h);h+=g;const b=r[h++];m.mmr=!!(1&b);m.template=b>>1&3;m.enableSkip=!!(8&b);m.combinationOperator=b>>4&7;m.defaultPixelValue=b>>7&1;m.gridWidth=(0,n.readUint32)(r,h);h+=4;m.gridHeight=(0,n.readUint32)(r,h);h+=4;m.gridOffsetX=4294967295&(0,n.readUint32)(r,h);h+=4;m.gridOffsetY=4294967295&(0,n.readUint32)(r,h);h+=4;m.gridVectorX=(0,n.readUint16)(r,h);h+=2;m.gridVectorY=(0,n.readUint16)(r,h);h+=2;s=[m,a.referredTo,r,h,i];break;case 38:case 39:const y={};y.info=readRegionSegmentInformation(r,h);h+=g;const w=r[h++];y.mmr=!!(1&w);y.template=w>>1&3;y.prediction=!!(8&w);if(!y.mmr){l=0===y.template?4:1;o=[];for(c=0;c>2&1;S.combinationOperator=x>>3&3;S.requiresBuffer=!!(32&x);S.combinationOperatorOverride=!!(64&x);s=[S];break;case 49:case 50:case 51:case 62:break;case 53:s=[a.number,r,h,i];break;default:throw new Jbig2Error(`segment type ${a.typeName}(${a.type}) is not implemented`)}const u="on"+a.typeName;u in t&&t[u].apply(t,s)}function processSegments(e,t){for(let a=0,r=e.length;a>3,a=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&a.fill(255);this.buffer=a}drawBitmap(e,t){const a=this.currentPageInfo,r=e.width,n=e.height,i=a.width+7>>3,s=a.combinationOperatorOverride?e.combinationOperator:a.combinationOperator,o=this.buffer,c=128>>(7&e.x);let l,h,u,d,f=e.y*i+(e.x>>3);switch(s){case 0:for(l=0;l>=1;if(!u){u=128;d++}}f+=i}break;case 2:for(l=0;l>=1;if(!u){u=128;d++}}f+=i}break;default:throw new Jbig2Error(`operator ${s} is not supported`)}}onImmediateGenericRegion(e,t,a,r){const n=e.info,i=new DecodingContext(t,a,r),s=decodeBitmap(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,i);this.drawBitmap(n,s)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,a,r,i,s){let o,c;if(e.huffman){o=function getSymbolDictionaryHuffmanTables(e,t,a){let r,n,i,s,o=0;switch(e.huffmanDHSelector){case 0:case 1:r=getStandardTable(e.huffmanDHSelector+4);break;case 3:r=getCustomHuffmanTable(o,t,a);o++;break;default:throw new Jbig2Error("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:n=getStandardTable(e.huffmanDWSelector+2);break;case 3:n=getCustomHuffmanTable(o,t,a);o++;break;default:throw new Jbig2Error("invalid Huffman DW selector")}if(e.bitmapSizeSelector){i=getCustomHuffmanTable(o,t,a);o++}else i=getStandardTable(1);s=e.aggregationInstancesSelector?getCustomHuffmanTable(o,t,a):getStandardTable(1);return{tableDeltaHeight:r,tableDeltaWidth:n,tableBitmapSize:i,tableAggregateInstances:s}}(e,a,this.customTables);c=new Reader(r,i,s)}let l=this.symbols;l||(this.symbols=l={});const h=[];for(const e of a){const t=l[e];t&&h.push(...t)}const u=new DecodingContext(r,i,s);l[t]=function decodeSymbolDictionary(e,t,a,r,i,s,o,c,l,h,u,d){if(e&&t)throw new Jbig2Error("symbol refinement with Huffman is not supported");const f=[];let g=0,p=(0,n.log2)(a.length+r);const m=u.decoder,b=u.contextCache;let y,w;if(e){y=getStandardTable(1);w=[];p=Math.max(p,1)}for(;f.length1)y=decodeTextRegion(e,t,r,g,0,n,1,a.concat(f),p,0,0,1,0,s,l,h,u,0,d);else{const e=decodeIAID(b,m,p),t=decodeInteger(b,"IARDX",m),n=decodeInteger(b,"IARDY",m);y=decodeRefinement(r,g,l,e=32){let a,r,s;switch(t){case 32:if(0===e)throw new Jbig2Error("no previous value in symbol ID table");r=n.readBits(2)+3;a=i[e-1].prefixLength;break;case 33:r=n.readBits(3)+3;a=0;break;case 34:r=n.readBits(7)+11;a=0;break;default:throw new Jbig2Error("invalid code length in symbol ID table")}for(s=0;s=0;b--){M=e?decodeMMRBitmap(T,l,h,!0):decodeBitmap(!1,l,h,a,!1,null,F,p);O[b]=M}for(E=0;E=0;y--){N^=O[y][E][D];R|=N<>8;$=d+E*f-D*g>>8;if(_>=0&&_+C<=r&&$>=0&&$+k<=i)for(b=0;b=i)){U=m[t];j=L[b];for(y=0;y=0&&e>1&7),l=1+(r>>4&7),h=[];let u,d,f=i;do{u=o.readBits(c);d=o.readBits(l);h.push(new HuffmanLine([f,u,d,0]));f+=1<>t&1;if(t<=0)this.children[a]=new HuffmanTreeNode(e);else{let r=this.children[a];r||(this.children[a]=r=new HuffmanTreeNode(null));r.buildTree(e,t-1)}}decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;const t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}const t=this.children[e.readBit()];if(!t)throw new Jbig2Error("invalid Huffman data");return t.decodeNode(e)}}class HuffmanTable{constructor(e,t){t||this.assignPrefixCodes(e);this.rootNode=new HuffmanTreeNode(null);for(let t=0,a=e.length;t0&&this.rootNode.buildTree(a,a.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(e){const t=e.length;let a=0;for(let r=0;r=this.end)throw new Jbig2Error("end of data while reading bit");this.currentByte=this.data[this.position++];this.shift=7}const e=this.currentByte>>this.shift&1;this.shift--;return e}readBits(e){let t,a=0;for(t=e-1;t>=0;t--)a|=this.readBit()<=this.end?-1:this.data[this.position++]}}function getCustomHuffmanTable(e,t,a){let r=0;for(let n=0,i=t.length;n>a&1;a--}}if(r&&!l){const e=5;for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0});t.ArithmeticDecoder=void 0;const a=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];t.ArithmeticDecoder=class ArithmeticDecoder{constructor(e,t,a){this.data=e;this.bp=t;this.dataEnd=a;this.chigh=e[t];this.clow=0;this.byteIn();this.chigh=this.chigh<<7&65535|this.clow>>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768}byteIn(){const e=this.data;let t=this.bp;if(255===e[t])if(e[t+1]>143){this.clow+=65280;this.ct=8}else{t++;this.clow+=e[t]<<9;this.ct=7;this.bp=t}else{t++;this.clow+=t65535){this.chigh+=this.clow>>16;this.clow&=65535}}readBit(e,t){let r=e[t]>>1,n=1&e[t];const i=a[r],s=i.qe;let o,c=this.a-s;if(this.chigh>15&1;this.clow=this.clow<<1&65535;this.ct--}while(0==(32768&c));this.a=c;e[t]=r<<1|n;return o}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.JpegStream=void 0;var r=a(17),n=a(4),i=a(26),s=a(2);class JpegStream extends r.DecodeStream{constructor(e,t,a){let r;for(;-1!==(r=e.getByte());)if(255===r){e.skip(-1);break}super(t);this.stream=e;this.dict=e.dict;this.maybeLength=t;this.params=a}get bytes(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(t)){const a=this.dict.get("BPC","BitsPerComponent")||8,r=t.length,n=new Int32Array(r);let i=!1;const s=(1<{Object.defineProperty(t,"__esModule",{value:!0});t.JpegImage=void 0;var r=a(2),n=a(27),i=a(3);class JpegError extends r.BaseException{constructor(e){super(`JPEG error: ${e}`,"JpegError")}}class DNLMarkerError extends r.BaseException{constructor(e,t){super(e,"DNLMarkerError");this.scanLines=t}}class EOIMarkerError extends r.BaseException{constructor(e){super(e,"EOIMarkerError")}}const s=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),o=4017,c=799,l=3406,h=2276,u=1567,d=3784,f=5793,g=2896;function buildHuffmanTable(e,t){let a,r,n=0,i=16;for(;i>0&&!e[i-1];)i--;const s=[{children:[],index:0}];let o,c=s[0];for(a=0;a0;)c=s.pop();c.index++;s.push(c);for(;s.length<=a;){s.push(o={children:[],index:0});c.children[c.index]=o.children;c=o}n++}if(a+10){b--;return m>>b&1}m=e[t++];if(255===m){const r=e[t++];if(r){if(220===r&&d){t+=2;const r=(0,i.readUint16)(e,t);t+=2;if(r>0&&r!==a.scanLines)throw new DNLMarkerError("Found DNL marker (0xFFDC) while parsing scan data",r)}else if(217===r){if(d){const e=x*(8===a.precision?8:0);if(e>0&&Math.round(a.scanLines/e)>=5)throw new DNLMarkerError("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new EOIMarkerError("Found EOI marker (0xFFD9) while parsing scan data")}throw new JpegError(`unexpected marker ${(m<<8|r).toString(16)}`)}}b=7;return m>>>7}function decodeHuffman(e){let t=e;for(;;){t=t[readBit()];switch(typeof t){case"number":return t;case"object":continue}throw new JpegError("invalid huffman sequence")}}function receive(e){let t=0;for(;e>0;){t=t<<1|readBit();e--}return t}function receiveAndExtend(e){if(1===e)return 1===readBit()?1:-1;const t=receive(e);return t>=1<0){y--;return}let a=c;const r=l;for(;a<=r;){const r=decodeHuffman(e.huffmanTableAC),n=15&r,i=r>>4;if(0===n){if(i<15){y=receive(i)+(1<>4;if(0===n)if(o<15){y=receive(o)+(1<>4;if(0===r){if(i<15)break;n+=16;continue}n+=i;const o=s[n];e.blockData[t+o]=receiveAndExtend(r);n++}};let E,D,N,R,L=0;D=1===C?n[0].blocksPerLine*n[0].blocksPerColumn:f*a.mcusPerColumn;for(;L<=D;){const a=o?Math.min(D-L,o):D;if(a>0){for(v=0;v0?"unexpected":"excessive";(0,r.warn)(`decodeScan - ${e} MCU data, current marker is: ${E.invalid}`);t=E.offset}if(!(E.marker>=65488&&E.marker<=65495))break;t+=2}return t-p}function quantizeAndInverse(e,t,a){const r=e.quantizationTable,n=e.blockData;let i,s,p,m,b,y,w,S,x,C,k,v,F,O,T,M,E;if(!r)throw new JpegError("missing required Quantization Table.");for(let e=0;e<64;e+=8){x=n[t+e];C=n[t+e+1];k=n[t+e+2];v=n[t+e+3];F=n[t+e+4];O=n[t+e+5];T=n[t+e+6];M=n[t+e+7];x*=r[e];if(0!=(C|k|v|F|O|T|M)){C*=r[e+1];k*=r[e+2];v*=r[e+3];F*=r[e+4];O*=r[e+5];T*=r[e+6];M*=r[e+7];i=f*x+128>>8;s=f*F+128>>8;p=k;m=T;b=g*(C-M)+128>>8;S=g*(C+M)+128>>8;y=v<<4;w=O<<4;i=i+s+1>>1;s=i-s;E=p*d+m*u+128>>8;p=p*u-m*d+128>>8;m=E;b=b+w+1>>1;w=b-w;S=S+y+1>>1;y=S-y;i=i+m+1>>1;m=i-m;s=s+p+1>>1;p=s-p;E=b*h+S*l+2048>>12;b=b*l-S*h+2048>>12;S=E;E=y*c+w*o+2048>>12;y=y*o-w*c+2048>>12;w=E;a[e]=i+S;a[e+7]=i-S;a[e+1]=s+w;a[e+6]=s-w;a[e+2]=p+y;a[e+5]=p-y;a[e+3]=m+b;a[e+4]=m-b}else{E=f*x+512>>10;a[e]=E;a[e+1]=E;a[e+2]=E;a[e+3]=E;a[e+4]=E;a[e+5]=E;a[e+6]=E;a[e+7]=E}}for(let e=0;e<8;++e){x=a[e];C=a[e+8];k=a[e+16];v=a[e+24];F=a[e+32];O=a[e+40];T=a[e+48];M=a[e+56];if(0!=(C|k|v|F|O|T|M)){i=f*x+2048>>12;s=f*F+2048>>12;p=k;m=T;b=g*(C-M)+2048>>12;S=g*(C+M)+2048>>12;y=v;w=O;i=4112+(i+s+1>>1);s=i-s;E=p*d+m*u+2048>>12;p=p*u-m*d+2048>>12;m=E;b=b+w+1>>1;w=b-w;S=S+y+1>>1;y=S-y;i=i+m+1>>1;m=i-m;s=s+p+1>>1;p=s-p;E=b*h+S*l+2048>>12;b=b*l-S*h+2048>>12;S=E;E=y*c+w*o+2048>>12;y=y*o-w*c+2048>>12;w=E;x=i+S;M=i-S;C=s+w;T=s-w;k=p+y;O=p-y;v=m+b;F=m-b;x<16?x=0:x>=4080?x=255:x>>=4;C<16?C=0:C>=4080?C=255:C>>=4;k<16?k=0:k>=4080?k=255:k>>=4;v<16?v=0:v>=4080?v=255:v>>=4;F<16?F=0:F>=4080?F=255:F>>=4;O<16?O=0:O>=4080?O=255:O>>=4;T<16?T=0:T>=4080?T=255:T>>=4;M<16?M=0:M>=4080?M=255:M>>=4;n[t+e]=x;n[t+e+8]=C;n[t+e+16]=k;n[t+e+24]=v;n[t+e+32]=F;n[t+e+40]=O;n[t+e+48]=T;n[t+e+56]=M}else{E=f*x+8192>>14;E=E<-2040?0:E>=2024?255:E+2056>>4;n[t+e]=E;n[t+e+8]=E;n[t+e+16]=E;n[t+e+24]=E;n[t+e+32]=E;n[t+e+40]=E;n[t+e+48]=E;n[t+e+56]=E}}}function buildComponentData(e,t){const a=t.blocksPerLine,r=t.blocksPerColumn,n=new Int16Array(64);for(let e=0;e=r)return null;const s=(0,i.readUint16)(e,t);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:t};let o=(0,i.readUint16)(e,n);for(;!(o>=65472&&o<=65534);){if(++n>=r)return null;o=(0,i.readUint16)(e,n)}return{invalid:s.toString(16),marker:o,offset:n}}t.JpegImage=class JpegImage{constructor({decodeTransform:e=null,colorTransform:t=-1}={}){this._decodeTransform=e;this._colorTransform=t}parse(e,{dnlScanLines:t=null}={}){function readDataBlock(){const t=(0,i.readUint16)(e,o);o+=2;let a=o+t-2;const n=findNextFileMarker(e,a,o);if(n&&n.invalid){(0,r.warn)("readDataBlock - incorrect length, current marker is: "+n.invalid);a=n.offset}const s=e.subarray(o,a);o+=s.length;return s}function prepareComponents(e){const t=Math.ceil(e.samplesPerLine/8/e.maxH),a=Math.ceil(e.scanLines/8/e.maxV);for(const r of e.components){const n=Math.ceil(Math.ceil(e.samplesPerLine/8)*r.h/e.maxH),i=Math.ceil(Math.ceil(e.scanLines/8)*r.v/e.maxV),s=t*r.h,o=64*(a*r.v)*(s+1);r.blockData=new Int16Array(o);r.blocksPerLine=n;r.blocksPerColumn=i}e.mcusPerLine=t;e.mcusPerColumn=a}let a,n,o=0,c=null,l=null,h=0;const u=[],d=[],f=[];let g=(0,i.readUint16)(e,o);o+=2;if(65496!==g)throw new JpegError("SOI not found");g=(0,i.readUint16)(e,o);o+=2;e:for(;65497!==g;){let p,m,b;switch(g){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const y=readDataBlock();65504===g&&74===y[0]&&70===y[1]&&73===y[2]&&70===y[3]&&0===y[4]&&(c={version:{major:y[5],minor:y[6]},densityUnits:y[7],xDensity:y[8]<<8|y[9],yDensity:y[10]<<8|y[11],thumbWidth:y[12],thumbHeight:y[13],thumbData:y.subarray(14,14+3*y[12]*y[13])});65518===g&&65===y[0]&&100===y[1]&&111===y[2]&&98===y[3]&&101===y[4]&&(l={version:y[5]<<8|y[6],flags0:y[7]<<8|y[8],flags1:y[9]<<8|y[10],transformCode:y[11]});break;case 65499:const w=(0,i.readUint16)(e,o);o+=2;const S=w+o-2;let x;for(;o>4==0)for(m=0;m<64;m++){x=s[m];a[x]=e[o++]}else{if(t>>4!=1)throw new JpegError("DQT - invalid table spec");for(m=0;m<64;m++){x=s[m];a[x]=(0,i.readUint16)(e,o);o+=2}}u[15&t]=a}break;case 65472:case 65473:case 65474:if(a)throw new JpegError("Only single frame JPEGs supported");o+=2;a={};a.extended=65473===g;a.progressive=65474===g;a.precision=e[o++];const C=(0,i.readUint16)(e,o);o+=2;a.scanLines=t||C;a.samplesPerLine=(0,i.readUint16)(e,o);o+=2;a.components=[];a.componentIds={};const k=e[o++];let v=0,F=0;for(p=0;p>4,n=15&e[o+1];v>4==0?f:d)[15&t]=buildHuffmanTable(a,n)}break;case 65501:o+=2;n=(0,i.readUint16)(e,o);o+=2;break;case 65498:const T=1==++h&&!t;o+=2;const M=e[o++],E=[];for(p=0;p>4];n.huffmanTableAC=d[15&i];E.push(n)}const D=e[o++],N=e[o++],R=e[o++];try{const t=decodeScan(e,o,a,E,n,D,N,R>>4,15&R,T);o+=t}catch(t){if(t instanceof DNLMarkerError){(0,r.warn)(`${t.message} -- attempting to re-parse the JPEG image.`);return this.parse(e,{dnlScanLines:t.scanLines})}if(t instanceof EOIMarkerError){(0,r.warn)(`${t.message} -- ignoring the rest of the image data.`);break e}throw t}break;case 65500:o+=4;break;case 65535:255!==e[o]&&o--;break;default:const L=findNextFileMarker(e,o-2,o-3);if(L&&L.invalid){(0,r.warn)("JpegImage.parse - unexpected data, current marker is: "+L.invalid);o=L.offset;break}if(!L||o>=e.length-1){(0,r.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new JpegError("JpegImage.parse - unknown marker: "+g.toString(16))}g=(0,i.readUint16)(e,o);o+=2}this.width=a.samplesPerLine;this.height=a.scanLines;this.jfif=c;this.adobe=l;this.components=[];for(const e of a.components){const t=u[e.quantizationId];t&&(e.quantizationTable=t);this.components.push({index:e.index,output:buildComponentData(0,e),scaleX:e.h/a.maxH,scaleY:e.v/a.maxV,blocksPerLine:e.blocksPerLine,blocksPerColumn:e.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t,a=!1){const r=this.width/e,n=this.height/t;let i,s,o,c,l,h,u,d,f,g,p,m=0;const b=this.components.length,y=e*t*b,w=new Uint8ClampedArray(y),S=new Uint32Array(e),x=4294967288;let C;for(u=0;u>8)+k[f+1];return w}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}_convertYccToRgb(e){let t,a,r;for(let n=0,i=e.length;n4)throw new JpegError("Unsupported color mode");const s=this._getLinearizedBlockData(e,t,i);if(1===this.numComponents&&(a||r)){const e=s.length*(a?4:3),t=new Uint8ClampedArray(e);let r=0;if(a)(0,n.grayToRGBA)(s,new Uint32Array(t.buffer));else for(const e of s){t[r++]=e;t[r++]=e;t[r++]=e}return t}if(3===this.numComponents&&this._isColorConversionNeeded){if(a){const e=new Uint8ClampedArray(s.length/3*4);return this._convertYccToRgba(s,e)}return this._convertYccToRgb(s)}if(4===this.numComponents){if(this._isColorConversionNeeded)return a?this._convertYcckToRgba(s):r?this._convertYcckToRgb(s):this._convertYcckToCmyk(s);if(a)return this._convertCmykToRgba(s);if(r)return this._convertCmykToRgb(s)}return s}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.convertBlackAndWhiteToRGBA=convertBlackAndWhiteToRGBA;t.convertToRGBA=function convertToRGBA(e){switch(e.kind){case r.ImageKind.GRAYSCALE_1BPP:return convertBlackAndWhiteToRGBA(e);case r.ImageKind.RGB_24BPP:return function convertRGBToRGBA({src:e,srcPos:t=0,dest:a,destPos:n=0,width:i,height:s}){let o=0;const c=e.length>>2,l=new Uint32Array(e.buffer,t,c);if(r.FeatureTest.isLittleEndian){for(;o>>24|t<<8|4278190080;a[n+2]=t>>>16|r<<16|4278190080;a[n+3]=r>>>8|4278190080}for(let t=4*o,r=e.length;t>>8|255;a[n+2]=t<<16|r>>>16|255;a[n+3]=r<<8|255}for(let t=4*o,r=e.length;t>3,d=7&n,f=e.length;a=new Uint32Array(a.buffer);let g=0;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0});t.JpxStream=void 0;var r=a(17),n=a(29),i=a(2);class JpxStream extends r.DecodeStream{constructor(e,t,a){super(t);this.stream=e;this.dict=e.dict;this.maybeLength=t;this.params=a}get bytes(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e=new n.JpxImage;e.parse(this.bytes);const t=e.width,a=e.height,r=e.componentsCount,i=e.tiles.length;if(1===i)this.buffer=e.tiles[0].items;else{const n=new Uint8ClampedArray(t*a*r);for(let a=0;a{Object.defineProperty(t,"__esModule",{value:!0});t.JpxImage=void 0;var r=a(2),n=a(3),i=a(24);class JpxError extends r.BaseException{constructor(e){super(`JPX error: ${e}`,"JpxError")}}const s={LL:0,LH:1,HL:1,HH:2};t.JpxImage=class JpxImage{constructor(){this.failOnCorruptedImage=!1}parse(e){if(65359===(0,n.readUint16)(e,0)){this.parseCodestream(e,0,e.length);return}const t=e.length;let a=0;for(;a>24&255,o>>16&255,o>>8&255,255&o);(0,r.warn)(`Unsupported header type ${o} (${i}).`)}l&&(a+=c)}}parseImageProperties(e){let t=e.getByte();for(;t>=0;){const a=t;t=e.getByte();if(65361===(a<<8|t)){e.skip(4);const t=e.getInt32()>>>0,a=e.getInt32()>>>0,r=e.getInt32()>>>0,n=e.getInt32()>>>0;e.skip(16);const i=e.getUint16();this.width=t-r;this.height=a-n;this.componentsCount=i;this.bitsPerComponent=8;return}}throw new JpxError("No size marker found in JPX stream")}parseCodestream(e,t,a){const i={};let s=!1;try{let o=t;for(;o+1>5;l=[];for(;a>3;t.mu=0}else{t.epsilon=e[a]>>3;t.mu=(7&e[a])<<8|e[a+1];a+=2}l.push(t)}b.SPqcds=l;if(i.mainHeader)i.QCD=b;else{i.currentTile.QCD=b;i.currentTile.QCC=[]}break;case 65373:f=(0,n.readUint16)(e,o);const y={};a=o+2;let w;if(i.SIZ.Csiz<257)w=e[a++];else{w=(0,n.readUint16)(e,a);a+=2}c=e[a++];switch(31&c){case 0:h=8;u=!0;break;case 1:h=16;u=!1;break;case 2:h=16;u=!0;break;default:throw new Error("Invalid SQcd value "+c)}y.noQuantization=8===h;y.scalarExpounded=u;y.guardBits=c>>5;l=[];for(;a>3;t.mu=0}else{t.epsilon=e[a]>>3;t.mu=(7&e[a])<<8|e[a+1];a+=2}l.push(t)}y.SPqcds=l;i.mainHeader?i.QCC[w]=y:i.currentTile.QCC[w]=y;break;case 65362:f=(0,n.readUint16)(e,o);const S={};a=o+2;const x=e[a++];S.entropyCoderWithCustomPrecincts=!!(1&x);S.sopMarkerUsed=!!(2&x);S.ephMarkerUsed=!!(4&x);S.progressionOrder=e[a++];S.layersCount=(0,n.readUint16)(e,a);a+=2;S.multipleComponentTransform=e[a++];S.decompositionLevelsCount=e[a++];S.xcb=2+(15&e[a++]);S.ycb=2+(15&e[a++]);const C=e[a++];S.selectiveArithmeticCodingBypass=!!(1&C);S.resetContextProbabilities=!!(2&C);S.terminationOnEachCodingPass=!!(4&C);S.verticallyStripe=!!(8&C);S.predictableTermination=!!(16&C);S.segmentationSymbolUsed=!!(32&C);S.reversibleTransformation=e[a++];if(S.entropyCoderWithCustomPrecincts){const t=[];for(;a>4})}S.precinctsSizes=t}const k=[];S.selectiveArithmeticCodingBypass&&k.push("selectiveArithmeticCodingBypass");S.terminationOnEachCodingPass&&k.push("terminationOnEachCodingPass");S.verticallyStripe&&k.push("verticallyStripe");S.predictableTermination&&k.push("predictableTermination");if(k.length>0){s=!0;(0,r.warn)(`JPX: Unsupported COD options (${k.join(", ")}).`)}if(i.mainHeader)i.COD=S;else{i.currentTile.COD=S;i.currentTile.COC=[]}break;case 65424:f=(0,n.readUint16)(e,o);d={};d.index=(0,n.readUint16)(e,o+2);d.length=(0,n.readUint32)(e,o+4);d.dataEnd=d.length+o-2;d.partIndex=e[o+8];d.partsCount=e[o+9];i.mainHeader=!1;if(0===d.partIndex){d.COD=i.COD;d.COC=i.COC.slice(0);d.QCD=i.QCD;d.QCC=i.QCC.slice(0)}i.currentTile=d;break;case 65427:d=i.currentTile;if(0===d.partIndex){initializeTile(i,d.index);buildPackets(i)}f=d.dataEnd-o;parseTilePackets(i,e,o,f);break;case 65363:(0,r.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:f=(0,n.readUint16)(e,o);break;default:throw new Error("Unknown codestream code: "+t.toString(16))}o+=f}}catch(e){if(s||this.failOnCorruptedImage)throw new JpxError(e.message);(0,r.warn)(`JPX: Trying to recover from: "${e.message}".`)}this.tiles=function transformComponents(e){const t=e.SIZ,a=e.components,r=t.Csiz,n=[];for(let t=0,i=e.tiles.length;t>2);c[b++]=e+m>>h;c[b++]=e>>h;c[b++]=e+p>>h}else for(d=0;d>h;c[b++]=g-.34413*p-.71414*m>>h;c[b++]=g+1.772*p>>h}if(e)for(d=0,b=3;d>h}else for(let e=0;e>h;b+=r}}n.push(l)}return n}(i);this.width=i.SIZ.Xsiz-i.SIZ.XOsiz;this.height=i.SIZ.Ysiz-i.SIZ.YOsiz;this.componentsCount=i.SIZ.Csiz}};function calculateComponentDimensions(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz);e.x1=Math.ceil(t.Xsiz/e.XRsiz);e.y0=Math.ceil(t.YOsiz/e.YRsiz);e.y1=Math.ceil(t.Ysiz/e.YRsiz);e.width=e.x1-e.x0;e.height=e.y1-e.y0}function calculateTileGrids(e,t){const a=e.SIZ,r=[];let n;const i=Math.ceil((a.Xsiz-a.XTOsiz)/a.XTsiz),s=Math.ceil((a.Ysiz-a.YTOsiz)/a.YTsiz);for(let e=0;e0?Math.min(r.xcb,n.PPx-1):Math.min(r.xcb,n.PPx);n.ycb_=a>0?Math.min(r.ycb,n.PPy-1):Math.min(r.ycb,n.PPy);return n}function buildPrecincts(e,t,a){const r=1<t.trx0?Math.ceil(t.trx1/r)-Math.floor(t.trx0/r):0,l=t.try1>t.try0?Math.ceil(t.try1/n)-Math.floor(t.try0/n):0,h=c*l;t.precinctParameters={precinctWidth:r,precinctHeight:n,numprecinctswide:c,numprecinctshigh:l,numprecincts:h,precinctWidthInSubband:s,precinctHeightInSubband:o}}function buildCodeblocks(e,t,a){const r=a.xcb_,n=a.ycb_,i=1<>r,c=t.tby0>>n,l=t.tbx1+i-1>>r,h=t.tby1+s-1>>n,u=t.resolution.precinctParameters,d=[],f=[];let g,p,m,b;for(p=c;pe.cbxMax&&(e.cbxMax=g);pe.cbyMax&&(e.cbyMax=p)}else f[b]=e={cbxMin:g,cbyMin:p,cbxMax:g,cbyMax:p};m.precinct=e}t.codeblockParameters={codeblockWidth:r,codeblockHeight:n,numcodeblockwide:l-o+1,numcodeblockhigh:h-c+1};t.codeblocks=d;t.precincts=f}function createPacket(e,t,a){const r=[],n=e.subbands;for(let e=0,a=n.length;ee.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[c],a=t.precinctParameters.numprecincts;for(;he.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[o],a=t.precinctParameters.numprecincts;for(;he.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[o],a=t.precinctParameters.numprecincts;if(!(l>=a)){for(;s=0;--e){const a=t.resolutions[e],r=g*a.precinctParameters.precinctWidth,n=g*a.precinctParameters.precinctHeight;h=Math.min(h,r);u=Math.min(u,n);d=Math.max(d,a.precinctParameters.numprecinctswide);f=Math.max(f,a.precinctParameters.numprecinctshigh);l[e]={width:r,height:n};g<<=1}a=Math.min(a,h);r=Math.min(r,u);n=Math.max(n,d);i=Math.max(i,f);s[o]={resolutions:l,minWidth:h,minHeight:u,maxNumWide:d,maxNumHigh:f}}return{components:s,minWidth:a,minHeight:r,maxNumWide:n,maxNumHigh:i}}function buildPackets(e){const t=e.SIZ,a=e.currentTile.index,r=e.tiles[a],n=t.Csiz;for(let e=0;e>>o&(1<0;){const e=i.shift();o=e.codeblock;void 0===o.data&&(o.data=[]);o.data.push({data:t,start:a+s,end:a+s+e.dataLength,codingpasses:e.codingpasses});s+=e.dataLength}}return s}function copyCoefficients(e,t,a,r,n,s,c,l,h){const u=r.tbx0,d=r.tby0,f=r.tbx1-r.tbx0,g=r.codeblocks,p="H"===r.type.charAt(0)?1:0,m="H"===r.type.charAt(1)?t:0;for(let a=0,b=g.length;a=s?U:U*(1<0?1-e:0)}const p=t.subbands[r],m=s[p.type];copyCoefficients(i,a,0,p,g?1:2**(f+m-o)*(1+n/2048),h+o-1,g,u,d)}m.push({width:a,height:n,items:i})}const y=p.calculate(m,r.tcx0,r.tcy0);return{left:r.tcx0,top:r.tcy0,width:y.width,height:y.height,items:y.items}}function initializeTile(e,t){const a=e.SIZ.Csiz,r=e.tiles[t];for(let t=0;t>=1;t>>=1;r++}r--;a=this.levels[r];a.items[a.index]=n;this.currentLevel=r;delete this.value}incrementValue(){const e=this.levels[this.currentLevel];e.items[e.index]++}nextLevel(){let e=this.currentLevel,t=this.levels[e];const a=t.items[t.index];e--;if(e<0){this.value=a;return!1}this.currentLevel=e;t=this.levels[e];t.items[t.index]=a;return!0}}class InclusionTree{constructor(e,t,a){const r=(0,n.log2)(Math.max(e,t))+1;this.levels=[];for(let n=0;na){this.currentLevel=r;this.propagateValues();return!1}e>>=1;t>>=1;r++}this.currentLevel=r-1;return!0}incrementValue(e){const t=this.levels[this.currentLevel];t.items[t.index]=e+1;this.propagateValues()}propagateValues(){let e=this.currentLevel,t=this.levels[e];const a=t.items[t.index];for(;--e>=0;){t=this.levels[e];t.items[t.index]=a}}nextLevel(){let e=this.currentLevel,t=this.levels[e];const a=t.items[t.index];t.items[t.index]=255;e--;if(e<0)return!1;this.currentLevel=e;t=this.levels[e];t.items[t.index]=a;return!0}}const o=function BitModelClosure(){const e=17,t=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),a=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),r=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);return class BitModel{constructor(e,n,i,s,o){this.width=e;this.height=n;let c;c="HH"===i?r:"HL"===i?a:t;this.contextLabelTable=c;const l=e*n;this.neighborsSignificance=new Uint8Array(l);this.coefficentsSign=new Uint8Array(l);let h;h=o>14?new Uint32Array(l):o>6?new Uint16Array(l):new Uint8Array(l);this.coefficentsMagnitude=h;this.processingFlags=new Uint8Array(l);const u=new Uint8Array(l);if(0!==s)for(let e=0;e0,o=t+10){c=a-n;s&&(r[c-1]+=16);o&&(r[c+1]+=16);r[c]+=4}if(e+1=a)break;s[d]&=-2;if(r[d]||!i[d])continue;const g=c[i[d]];if(e.readBit(o,g)){const e=this.decodeSignBit(t,u,d);n[d]=e;r[d]=1;this.setNeighborsSignificance(t,u,d);s[d]|=2}l[d]++;s[d]|=1}}}decodeSignBit(e,t,a){const r=this.width,n=this.height,i=this.coefficentsMagnitude,s=this.coefficentsSign;let o,c,l,h,u,d;h=t>0&&0!==i[a-1];if(t+10&&0!==i[a-r];if(e+1=0){u=9+o;d=this.decoder.readBit(this.contexts,u)}else{u=9-o;d=1^this.decoder.readBit(this.contexts,u)}return d}runMagnitudeRefinementPass(){const e=this.decoder,t=this.width,a=this.height,r=this.coefficentsMagnitude,n=this.neighborsSignificance,i=this.contexts,s=this.bitsDecoded,o=this.processingFlags,c=t*a,l=4*t;for(let a,h=0;h>1;let n,i,s,o;const c=-1.586134342059924,l=-.052980118572961,h=.882911075530934,u=.443506852043971,d=1.230174104914001;n=(t|=0)-3;for(i=r+4;i--;n+=2)e[n]*=.8128930661159609;n=t-2;s=u*e[n-1];for(i=r+3;i--;n+=2){o=u*e[n+1];e[n]=d*e[n]-s-o;if(!i--)break;n+=2;s=u*e[n+1];e[n]=d*e[n]-s-o}n=t-1;s=h*e[n-1];for(i=r+2;i--;n+=2){o=h*e[n+1];e[n]-=s+o;if(!i--)break;n+=2;s=h*e[n+1];e[n]-=s+o}n=t;s=l*e[n-1];for(i=r+1;i--;n+=2){o=l*e[n+1];e[n]-=s+o;if(!i--)break;n+=2;s=l*e[n+1];e[n]-=s+o}if(0!==r){n=t+1;s=c*e[n-1];for(i=r;i--;n+=2){o=c*e[n+1];e[n]-=s+o;if(!i--)break;n+=2;s=c*e[n+1];e[n]-=s+o}}}}class ReversibleTransform extends Transform{filter(e,t,a){const r=a>>1;let n,i;for(n=t|=0,i=r+1;i--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2;for(n=t+1,i=r;i--;n+=2)e[n]+=e[n-1]+e[n+1]>>1}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.LZWStream=void 0;var r=a(17);class LZWStream extends r.DecodeStream{constructor(e,t,a){super(t);this.str=e;this.dict=e.dict;this.cachedData=0;this.bitsCached=0;const r=4096,n={earlyChange:a,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(r),dictionaryLengths:new Uint16Array(r),dictionaryPrevCodes:new Uint16Array(r),currentSequence:new Uint8Array(r),currentSequenceLength:0};for(let e=0;e<256;++e){n.dictionaryValues[e]=e;n.dictionaryLengths[e]=1}this.lzwState=n}readBits(e){let t=this.bitsCached,a=this.cachedData;for(;t>>t&(1<0;if(e<256){d[0]=e;f=1}else{if(!(e>=258)){if(256===e){h=9;s=258;f=0;continue}this.eof=!0;delete this.lzwState;break}if(e=0;t--){d[t]=o[a];a=l[a]}}else d[f++]=d[0]}if(n){l[s]=u;c[s]=c[u]+1;o[s]=d[0];s++;h=s+i&s+i-1?h:0|Math.min(Math.log(s+i)/.6931471805599453+1,12)}u=e;g+=f;if(r{Object.defineProperty(t,"__esModule",{value:!0});t.PredictorStream=void 0;var r=a(17),n=a(4),i=a(2);class PredictorStream extends r.DecodeStream{constructor(e,t,a){super(t);if(!(a instanceof n.Dict))return e;const r=this.predictor=a.get("Predictor")||1;if(r<=1)return e;if(2!==r&&(r<10||r>15))throw new i.FormatError(`Unsupported predictor: ${r}`);this.readBlock=2===r?this.readBlockTiff:this.readBlockPng;this.str=e;this.dict=e.dict;const s=this.colors=a.get("Colors")||1,o=this.bits=a.get("BPC","BitsPerComponent")||8,c=this.columns=a.get("Columns")||1;this.pixBytes=s*o+7>>3;this.rowBytes=c*s*o+7>>3;return this}readBlockTiff(){const e=this.rowBytes,t=this.bufferLength,a=this.ensureBuffer(t+e),r=this.bits,n=this.colors,i=this.str.getBytes(e);this.eof=!i.length;if(this.eof)return;let s,o=0,c=0,l=0,h=0,u=t;if(1===r&&1===n)for(s=0;s>1;e^=e>>2;e^=e>>4;o=(1&e)<<7;a[u++]=e}else if(8===r){for(s=0;s>8&255;a[u++]=255&e}}else{const e=new Uint8Array(n+1),u=(1<>l-r)&u;l-=r;c=c<=8){a[f++]=c>>h-8&255;h-=8}}h>0&&(a[f++]=(c<<8-h)+(o&(1<<8-h)-1))}this.bufferLength+=e}readBlockPng(){const e=this.rowBytes,t=this.pixBytes,a=this.str.getByte(),r=this.str.getBytes(e);this.eof=!r.length;if(this.eof)return;const n=this.bufferLength,s=this.ensureBuffer(n+e);let o=s.subarray(n-e,n);0===o.length&&(o=new Uint8Array(e));let c,l,h,u=n;switch(a){case 0:for(c=0;c>1)+r[c];for(;c>1)+r[c]&255;u++}break;case 4:for(c=0;c{Object.defineProperty(t,"__esModule",{value:!0});t.RunLengthStream=void 0;var r=a(17);class RunLengthStream extends r.DecodeStream{constructor(e,t){super(t);this.str=e;this.dict=e.dict}readBlock(){const e=this.str.getBytes(2);if(!e||e.length<2||128===e[0]){this.eof=!0;return}let t,a=this.bufferLength,r=e[0];if(r<128){t=this.ensureBuffer(a+r+1);t[a++]=e[1];if(r>0){const e=this.str.getBytes(r);t.set(e,a);a+=r}}else{r=257-r;const n=e[1];t=this.ensureBuffer(a+r+1);for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0});t.Font=t.ErrorFont=void 0;var r=a(2),n=a(34),i=a(37),s=a(39),o=a(38),c=a(36),l=a(40),h=a(41),u=a(42),d=a(43),f=a(44),g=a(45),p=a(14),m=a(46),b=a(3),y=a(8),w=a(47);const S=[[57344,63743],[1048576,1114109]],x=1e3,C=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],k=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function adjustWidths(e){if(!e.fontMatrix)return;if(e.fontMatrix[0]===r.FONT_IDENTITY_MATRIX[0])return;const t=.001/e.fontMatrix[0],a=e.widths;for(const e in a)a[e]*=t;e.defaultWidth*=t}function amendFallbackToUnicode(e){if(!e.fallbackToUnicode)return;if(e.toUnicode instanceof h.IdentityToUnicodeMap)return;const t=[];for(const a in e.fallbackToUnicode)e.toUnicode.has(a)||(t[a]=e.fallbackToUnicode[a]);t.length>0&&e.toUnicode.amend(t)}class Glyph{constructor(e,t,a,r,n,i,s,o,c){this.originalCharCode=e;this.fontChar=t;this.unicode=a;this.accent=r;this.width=n;this.vmetric=i;this.operatorListId=s;this.isSpace=o;this.isInFont=c}get category(){return(0,r.shadow)(this,"category",(0,s.getCharUnicodeCategory)(this.unicode),!0)}get normalizedUnicode(){return(0,r.shadow)(this,"normalizedUnicode",(0,s.reverseIfRtl)(Glyph._NormalizedUnicodes[this.unicode]||this.unicode),!0)}static get _NormalizedUnicodes(){return(0,r.shadow)(this,"_NormalizedUnicodes",(0,s.getNormalizedUnicodes)())}}function int16(e,t){return(e<<8)+t}function writeSignedInt16(e,t,a){e[t+1]=a;e[t]=a>>>8}function signedInt16(e,t){const a=(e<<8)+t;return 32768&a?a-65536:a}function string16(e){return String.fromCharCode(e>>8&255,255&e)}function safeString16(e){e>32767?e=32767:e<-32768&&(e=-32768);return String.fromCharCode(e>>8&255,255&e)}function isTrueTypeCollectionFile(e){const t=e.peekBytes(4);return"ttcf"===(0,r.bytesToString)(t)}function getFontFileType(e,{type:t,subtype:a,composite:n}){let i,s;if(function isTrueTypeFile(e){const t=e.peekBytes(4);return 65536===(0,b.readUint32)(t,0)||"true"===(0,r.bytesToString)(t)}(e)||isTrueTypeCollectionFile(e))i=n?"CIDFontType2":"TrueType";else if(function isOpenTypeFile(e){const t=e.peekBytes(4);return"OTTO"===(0,r.bytesToString)(t)}(e))i=n?"CIDFontType2":"OpenType";else if(function isType1File(e){const t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e))i=n?"CIDFontType0":"MMType1"===t?"MMType1":"Type1";else if(function isCFFFile(e){const t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e))if(n){i="CIDFontType0";s="CIDFontType0C"}else{i="MMType1"===t?"MMType1":"Type1";s="Type1C"}else{(0,r.warn)("getFontFileType: Unable to detect correct font file Type/Subtype.");i=t;s=a}return[i,s]}function applyStandardFontGlyphMap(e,t){for(const a in t)e[+a]=t[a]}function buildToFontChar(e,t,a){const r=[];let n;for(let a=0,i=e.length;ad){l++;if(l>=S.length){(0,r.warn)("Ran out of space in font private use area.");break}u=S[l][0];d=S[l][1]}const p=u++;0===g&&(g=a);let m=n.get(f);"string"==typeof m&&(m=m.codePointAt(0));if(m&&m=a||r.push({fontCharCode:0|t,glyphId:e[t]});if(t)for(const[e,n]of t)n>=a||r.push({fontCharCode:e,glyphId:n});0===r.length&&r.push({fontCharCode:0,glyphId:0});r.sort((function fontGetRangesSort(e,t){return e.fontCharCode-t.fontCharCode}));const n=[],i=r.length;for(let e=0;e65535?2:1;let s,o,c,l,h="\0\0"+string16(i)+"\0\0"+(0,r.string32)(4+8*i);for(s=n.length-1;s>=0&&!(n[s][0]<=65535);--s);const u=s+1;n[s][0]<65535&&65535===n[s][1]&&(n[s][1]=65534);const d=n[s][1]<65535?1:0,f=u+d,g=m.OpenTypeFileBuilder.getSearchParams(f,2);let p,b,y,w,S="",x="",C="",k="",v="",F=0;for(s=0,o=u;s0){x+="ÿÿ";S+="ÿÿ";C+="\0";k+="\0\0"}const O="\0\0"+string16(2*f)+string16(g.range)+string16(g.entry)+string16(g.rangeShift)+x+"\0\0"+S+C+k+v;let T="",M="";if(i>1){h+="\0\0\n"+(0,r.string32)(4+8*i+4+O.length);T="";for(s=0,o=n.length;se||!l)&&(l=e);h 123 are reserved for internal usage");c|=1<65535&&(h=65535)}else{l=0;h=255}const u=e.bbox||[0,0,0,0],d=a.unitsPerEm||1/(e.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],f=e.ascentScaled?1:d/x,g=a.ascent||Math.round(f*(e.ascent||u[3]));let p=a.descent||Math.round(f*(e.descent||u[1]));p>0&&e.descent>0&&u[1]<0&&(p=-p);const m=a.yMax||g,b=-a.yMin||-p;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,r.string32)(n)+(0,r.string32)(i)+(0,r.string32)(o)+(0,r.string32)(c)+"*21*"+string16(e.italicAngle?1:0)+string16(l||e.firstChar)+string16(h||e.lastChar)+string16(g)+string16(p)+"\0d"+string16(m)+string16(b)+"\0\0\0\0\0\0\0\0"+string16(e.xHeight)+string16(e.capHeight)+string16(0)+string16(l||e.firstChar)+"\0"}function createPostTable(e){const t=Math.floor(65536*e.italicAngle);return"\0\0\0"+(0,r.string32)(t)+"\0\0\0\0"+(0,r.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function createPostscriptName(e){return e.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function createNameTable(e,t){t||(t=[[],[]]);const a=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||createPostscriptName(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],r=[];let n,i,s,o,c;for(n=0,i=a.length;n0;if((g||p)&&"CIDFontType2"===a&&this.cidEncoding.startsWith("Identity-")){const a=e.cidToGidMap,r=[];applyStandardFontGlyphMap(r,(0,l.getGlyphMapForStandardFonts)());/Arial-?Black/i.test(t)?applyStandardFontGlyphMap(r,(0,l.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(t)&&applyStandardFontGlyphMap(r,(0,l.getSupplementalGlyphMapForCalibri)());if(a){for(const e in r){const t=r[e];void 0!==a[t]&&(r[+e]=a[t])}a.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof h.IdentityToUnicodeMap&&this.toUnicode.forEach((function(e,t){const n=r[e];void 0===a[n]&&(r[+e]=t)}))}this.toUnicode instanceof h.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){r[+e]=t}));this.toFontChar=r;this.toUnicode=new h.ToUnicodeMap(r)}else if(/Symbol/i.test(n))this.toFontChar=buildToFontChar(c.SymbolSetEncoding,(0,o.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(n)){/Wingdings/i.test(t)&&(0,r.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats.");this.toFontChar=buildToFontChar(c.ZapfDingbatsEncoding,(0,o.getDingbatsGlyphsUnicode)(),this.differences)}else if(g){const e=buildToFontChar(this.defaultEncoding,(0,o.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==a||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof h.IdentityToUnicodeMap||this.toUnicode.forEach((function(t,a){e[+t]=a}));this.toFontChar=e}else{const e=(0,o.getGlyphsUnicode)(),a=[];this.toUnicode.forEach(((t,r)=>{if(!this.composite){const a=this.differences[t]||this.defaultEncoding[t],n=(0,s.getUnicodeForGlyph)(a,e);-1!==n&&(r=n)}a[+t]=r}));this.composite&&this.toUnicode instanceof h.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(t)&&applyStandardFontGlyphMap(a,(0,l.getGlyphMapForStandardFonts)());this.toFontChar=a}amendFallbackToUnicode(e);this.loadedName=n.split("-")[0]}checkAndRepair(e,t,a){const s=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function readTables(e,t){const a=Object.create(null);a["OS/2"]=null;a.cmap=null;a.head=null;a.hhea=null;a.hmtx=null;a.maxp=null;a.name=null;a.post=null;for(let r=0;r>>0,r=e.getInt32()>>>0,n=e.getInt32()>>>0,i=e.pos;e.pos=e.start||0;e.skip(r);const s=e.getBytes(n);e.pos=i;if("head"===t){s[8]=s[9]=s[10]=s[11]=0;s[17]|=32}return{tag:t,checksum:a,length:n,offset:r,data:s}}function readOpenTypeHeader(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function sanitizeGlyph(e,t,a,r,n,i){const s={length:0,sizeOfInstructions:0};if(a-t<=12)return s;const o=e.subarray(t,a);let c=signedInt16(o[0],o[1]);if(c<0){c=-1;writeSignedInt16(o,0,c);r.set(o,n);s.length=o.length;return s}let l,h=10,u=0;for(l=0;lo.length)return s;if(!i&&f>0){r.set(o.subarray(0,d),n);r.set([0,0],n+d);r.set(o.subarray(g,m),n+d+2);m-=f;o.length-m>3&&(m=m+3&-4);s.length=m;return s}if(o.length-m>3){m=m+3&-4;r.set(o.subarray(0,m),n);s.length=m;return s}r.set(o,n);s.length=o.length;return s}function readNameTable(e){const a=(t.start||0)+e.offset;t.pos=a;const r=[[],[]],n=[],i=e.length,s=a+i;if(0!==t.getUint16()||i<6)return[r,n];const o=t.getUint16(),c=t.getUint16();let l,h;for(l=0;ls)continue;t.pos=i;const o=e.name;if(e.encoding){let a="";for(let r=0,n=e.length;r0&&(h+=e-1)}}else{if(b||w){(0,r.warn)("TT: nested FDEFs not allowed");m=!0}b=!0;d=h;s=f.pop();t.functionsDefined[s]={data:c,i:h}}else if(!b&&!w){s=f.at(-1);if(isNaN(s))(0,r.info)("TT: CALL empty stack (or invalid entry).");else{t.functionsUsed[s]=!0;if(s in t.functionsStackDeltas){const e=f.length+t.functionsStackDeltas[s];if(e<0){(0,r.warn)("TT: CALL invalid functions stack delta.");t.hintsValid=!1;return}f.length=e}else if(s in t.functionsDefined&&!p.includes(s)){g.push({data:c,i:h,stackTop:f.length-1});p.push(s);o=t.functionsDefined[s];if(!o){(0,r.warn)("TT: CALL non-existent function");t.hintsValid=!1;return}c=o.data;h=o.i}}}if(!b&&!w){let t=0;e<=142?t=l[e]:e>=192&&e<=223?t=-1:e>=224&&(t=-2);if(e>=113&&e<=117){n=f.pop();isNaN(n)||(t=2*-n)}for(;t<0&&f.length>0;){f.pop();t++}for(;t>0;){f.push(NaN);t--}}}t.tooComplexToFollowFunctions=m;const S=[c];h>c.length&&S.push(new Uint8Array(h-c.length));if(d>u){(0,r.warn)("TT: complementing a missing function tail");S.push(new Uint8Array([34,45]))}!function foldTTTable(e,t){if(t.length>1){let a,r,n=0;for(a=0,r=t.length;a>>0,s=[];for(let t=0;t>>0);const o={ttcTag:t,majorVersion:a,minorVersion:n,numFonts:i,offsetTable:s};switch(a){case 1:return o;case 2:o.dsigTag=e.getInt32()>>>0;o.dsigLength=e.getInt32()>>>0;o.dsigOffset=e.getInt32()>>>0;return o}throw new r.FormatError(`Invalid TrueType Collection majorVersion: ${a}.`)}(e),i=t.split("+");let s;for(let o=0;o0||!(a.cMap instanceof p.IdentityCMap));if("OTTO"===d.version&&!t||!f.head||!f.hhea||!f.maxp||!f.post){w=new y.Stream(f["CFF "].data);b=new u.CFFFont(w,a);adjustWidths(a);return this.convert(e,b,a)}delete f.glyf;delete f.loca;delete f.fpgm;delete f.prep;delete f["cvt "];this.isOpenType=!0}if(!f.maxp)throw new r.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+f.maxp.offset;const x=t.getInt32(),C=t.getUint16();if(a.scaleFactors&&a.scaleFactors.length===C&&S){const{scaleFactors:e}=a,t=int16(f.head.data[50],f.head.data[51]),r=new g.GlyfTable({glyfTable:f.glyf.data,isGlyphLocationsLong:t,locaTable:f.loca.data,numGlyphs:C});r.scale(e);const{glyf:n,loca:i,isLocationLong:s}=r.write();f.glyf.data=n;f.loca.data=i;if(s!==!!t){f.head.data[50]=0;f.head.data[51]=s?1:0}const o=f.hmtx.data;for(let t=0;t>8&255;o[a+1]=255&r;writeSignedInt16(o,a+2,Math.round(e[t]*signedInt16(o[a+2],o[a+3])))}}let k=C+1,v=!0;if(k>65535){v=!1;k=C;(0,r.warn)("Not enough space in glyfs to duplicate first glyph.")}let F=0,O=0;if(x>=65536&&f.maxp.length>=22){t.pos+=8;if(t.getUint16()>2){f.maxp.data[14]=0;f.maxp.data[15]=2}t.pos+=4;F=t.getUint16();t.pos+=4;O=t.getUint16()}f.maxp.data[4]=k>>8;f.maxp.data[5]=255&k;const T=function sanitizeTTPrograms(e,t,a,n){const i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};e&&sanitizeTTProgram(e,i);t&&sanitizeTTProgram(t,i);e&&function checkInvalidFunctions(e,t){if(!e.tooComplexToFollowFunctions)if(e.functionsDefined.length>t){(0,r.warn)("TT: more functions defined than expected");e.hintsValid=!1}else for(let a=0,n=e.functionsUsed.length;at){(0,r.warn)("TT: invalid function id: "+a);e.hintsValid=!1;return}if(e.functionsUsed[a]&&!e.functionsDefined[a]){(0,r.warn)("TT: undefined function: "+a);e.hintsValid=!1;return}}}(i,n);if(a&&1&a.length){const e=new Uint8Array(a.length+1);e.set(a.data);a.data=e}return i.hintsValid}(f.fpgm,f.prep,f["cvt "],F);if(!T){delete f.fpgm;delete f.prep;delete f["cvt "]}!function sanitizeMetrics(e,t,a,n,i,s){if(!t){a&&(a.data=null);return}e.pos=(e.start||0)+t.offset;e.pos+=4;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;e.pos+=2;const o=e.getUint16();e.pos+=8;e.pos+=2;let c=e.getUint16();if(0!==o){if(!(2&int16(n.data[44],n.data[45]))){t.data[22]=0;t.data[23]=0}}if(c>i){(0,r.info)(`The numOfMetrics (${c}) should not be greater than the numGlyphs (${i}).`);c=i;t.data[34]=(65280&c)>>8;t.data[35]=255&c}const l=i-c-(a.length-4*c>>1);if(l>0){const e=new Uint8Array(a.length+2*l);e.set(a.data);if(s){e[a.length]=a.data[2];e[a.length+1]=a.data[3]}a.data=e}}(t,f.hhea,f.hmtx,f.head,k,v);if(!f.head)throw new r.FormatError('Required "head" table is not found');!function sanitizeHead(e,t,a){const n=e.data,i=function int32(e,t,a,r){return(e<<24)+(t<<16)+(a<<8)+r}(n[0],n[1],n[2],n[3]);if(i>>16!=1){(0,r.info)("Attempting to fix invalid version in head table: "+i);n[0]=0;n[1]=1;n[2]=0;n[3]=0}const s=int16(n[50],n[51]);if(s<0||s>1){(0,r.info)("Attempting to fix invalid indexToLocFormat in head table: "+s);const e=t+1;if(a===e<<1){n[50]=0;n[51]=0}else{if(a!==e<<2)throw new r.FormatError("Could not fix indexToLocFormat: "+s);n[50]=0;n[51]=1}}}(f.head,C,S?f.loca.length:0);let M=Object.create(null);if(S){const e=int16(f.head.data[50],f.head.data[51]),t=function sanitizeGlyphLocations(e,t,a,r,n,i,s){let o,c,l;if(r){o=4;c=function fontItemDecodeLong(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};l=function fontItemEncodeLong(e,t,a){e[t]=a>>>24&255;e[t+1]=a>>16&255;e[t+2]=a>>8&255;e[t+3]=255&a}}else{o=2;c=function fontItemDecode(e,t){return e[t]<<9|e[t+1]<<1};l=function fontItemEncode(e,t,a){e[t]=a>>9&255;e[t+1]=a>>1&255}}const h=i?a+1:a,u=o*(1+h),d=new Uint8Array(u);d.set(e.data.subarray(0,u));e.data=d;const f=t.data,g=f.length,p=new Uint8Array(g);let m,b;const y=[];for(m=0,b=0;mg&&(e=g);y.push({index:m,offset:e,endOffset:0})}y.sort(((e,t)=>e.offset-t.offset));for(m=0;me.index-t.index));for(m=0;ms&&(s=e.sizeOfInstructions);S+=t;l(d,b,S)}if(0===S){const e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(m=0,b=o;ma+S)t.data=p.subarray(0,a+S);else{t.data=new Uint8Array(a+S);t.data.set(p.subarray(0,S))}t.data.set(p.subarray(0,a),S);l(e.data,d.length-o,S+a)}else t.data=p.subarray(0,S);return{missingGlyphs:w,maxSizeOfInstructions:s}}(f.loca,f.glyf,C,e,T,v,O);M=t.missingGlyphs;if(x>=65536&&f.maxp.length>=22){f.maxp.data[26]=t.maxSizeOfInstructions>>8;f.maxp.data[27]=255&t.maxSizeOfInstructions}}if(!f.hhea)throw new r.FormatError('Required "hhea" table is not found');if(0===f.hhea.data[10]&&0===f.hhea.data[11]){f.hhea.data[10]=255;f.hhea.data[11]=255}const E={unitsPerEm:int16(f.head.data[18],f.head.data[19]),yMax:int16(f.head.data[42],f.head.data[43]),yMin:signedInt16(f.head.data[38],f.head.data[39]),ascent:signedInt16(f.hhea.data[4],f.hhea.data[5]),descent:signedInt16(f.hhea.data[6],f.hhea.data[7]),lineGap:signedInt16(f.hhea.data[8],f.hhea.data[9])};this.ascent=E.ascent/E.unitsPerEm;this.descent=E.descent/E.unitsPerEm;this.lineGap=E.lineGap/E.unitsPerEm;if(this.cssFontInfo&&this.cssFontInfo.lineHeight){this.lineHeight=this.cssFontInfo.metrics.lineHeight;this.lineGap=this.cssFontInfo.metrics.lineGap}else this.lineHeight=this.ascent-this.descent+this.lineGap;f.post&&function readPostScriptTable(e,a,n){const s=(t.start||0)+e.offset;t.pos=s;const o=s+e.length,c=t.getInt32();t.skip(28);let l,h,u=!0;switch(c){case 65536:l=i.MacStandardGlyphOrdering;break;case 131072:const e=t.getUint16();if(e!==n){u=!1;break}const s=[];for(h=0;h=32768){u=!1;break}s.push(e)}if(!u)break;const d=[],f=[];for(;t.pos65535)throw new r.FormatError("Max size of CID is 65,535");let i=-1;t?i=n:void 0!==e[n]&&(i=e[n]);i>=0&&i>>0;let h=!1;if(!c||c.platformId!==r||c.encodingId!==i){if(0!==r||0!==i&&1!==i&&3!==i)if(1===r&&0===i)h=!0;else if(3!==r||1!==i||!n&&c){if(a&&3===r&&0===i){h=!0;let a=!0;if(e>3;e.push(r);a=Math.max(r,a)}const r=[];for(let e=0;e<=a;e++)r.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:signedInt16(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(let a=0;a<256;a++)if(0===e[a]){t.pos=r[0].idRangePos+2*a;g=t.getUint16();d.push({charCode:a,glyphId:g})}else{const n=r[e[a]];for(f=0;f>1;t.skip(6);const a=[];let r;for(r=0;r>1)-(e-r);i.offsetIndex=n;o=Math.max(o,n+i.end-i.start+1)}else i.offsetIndex=-1}const c=[];for(f=0;f>>0;for(f=0;f>>0,a=t.getInt32()>>>0;let r=t.getInt32()>>>0;for(let t=e;t<=a;t++)d.push({charCode:t,glyphId:r++})}}}d.sort((function(e,t){return e.charCode-t.charCode}));for(let e=1;e=61440&&t<=61695&&(t&=255);D[t]=e.glyphId}if(a.glyphNames&&(u.length||this.differences.length))for(let e=0;e<256;++e){if(!d&&void 0!==D[e])continue;const t=this.differences[e]||u[e];if(!t)continue;const r=a.glyphNames.indexOf(t);r>0&&hasGlyph(r)&&(D[e]=r)}}0===D.length&&(D[0]=0);let N=k-1;v||(N=0);if(!a.cssFontInfo){const e=adjustMapping(D,hasGlyph,N,this.toUnicode);this.toFontChar=e.toFontChar;f.cmap={tag:"cmap",data:createCmapTable(e.charCodeToGlyphId,e.toUnicodeExtraMap,k)};f["OS/2"]&&function validateOS2Table(e,t){t.pos=(t.start||0)+e.offset;const a=t.getUint16();t.skip(60);const r=t.getUint16();if(a<4&&768&r)return!1;if(t.getUint16()>t.getUint16())return!1;t.skip(6);if(0===t.getUint16())return!1;e.data[8]=e.data[9]=0;return!0}(f["OS/2"],t)||(f["OS/2"]={tag:"OS/2",data:createOS2Table(a,e.charCodeToGlyphId,E)})}if(!S)try{w=new y.Stream(f["CFF "].data);b=new n.CFFParser(w,a,i.SEAC_ANALYSIS_ENABLED).parse();b.duplicateFirstGlyph();const e=new n.CFFCompiler(b);f["CFF "].data=e.compile()}catch(e){(0,r.warn)("Failed to compile font "+a.loadedName)}if(f.name){const[t,r]=readNameTable(f.name);f.name.data=createNameTable(e,t);this.psName=t[0][6]||null;a.composite||function adjustTrueTypeToUnicode(e,t,a){if(e.isInternalFont)return;if(e.hasIncludedToUnicodeMap)return;if(e.hasEncoding)return;if(e.toUnicode instanceof h.IdentityToUnicodeMap)return;if(!t)return;if(0===a.length)return;if(e.defaultEncoding===c.WinAnsiEncoding)return;for(const e of a)if(!isWinNameRecord(e))return;const r=c.WinAnsiEncoding,n=[],i=(0,o.getGlyphsUnicode)();for(const e in r){const t=r[e];if(""===t)continue;const a=i[t];void 0!==a&&(n[e]=String.fromCharCode(a))}n.length>0&&e.toUnicode.amend(n)}(a,this.isSymbolicFont,r)}else f.name={tag:"name",data:createNameTable(this.name)};const R=new m.OpenTypeFileBuilder(d.version);for(const e in f)R.addTable(e,f[e].data);return R.toArray()}convert(e,t,a){a.fixedPitch=!1;a.builtInEncoding&&function adjustType1ToUnicode(e,t){if(e.isInternalFont)return;if(e.hasIncludedToUnicodeMap)return;if(t===e.defaultEncoding)return;if(e.toUnicode instanceof h.IdentityToUnicodeMap)return;const a=[],r=(0,o.getGlyphsUnicode)();for(const n in t){if(e.hasEncoding&&(e.baseEncodingName||void 0!==e.differences[n]))continue;const i=t[n],o=(0,s.getUnicodeForGlyph)(i,r);-1!==o&&(a[n]=String.fromCharCode(o))}a.length>0&&e.toUnicode.amend(a)}(a,a.builtInEncoding);let n=1;t instanceof u.CFFFont&&(n=t.numGlyphs-1);const l=t.getGlyphMapping(a);let d=null,f=l,g=null;if(!a.cssFontInfo){d=adjustMapping(l,t.hasGlyphId.bind(t),n,this.toUnicode);this.toFontChar=d.toFontChar;f=d.charCodeToGlyphId;g=d.toUnicodeExtraMap}const p=t.numGlyphs;function getCharCodes(e,t){let a=null;for(const r in e)if(t===e[r]){a||(a=[]);a.push(0|r)}return a}function createCharCode(e,t){for(const a in e)if(t===e[a])return 0|a;d.charCodeToGlyphId[d.nextAvailableFontCharCode]=t;return d.nextAvailableFontCharCode++}const b=t.seacs;if(d&&i.SEAC_ANALYSIS_ENABLED&&b&&b.length){const e=a.fontMatrix||r.FONT_IDENTITY_MATRIX,n=t.getCharset(),i=Object.create(null);for(let t in b){t|=0;const a=b[t],r=c.StandardEncoding[a[2]],s=c.StandardEncoding[a[3]],o=n.indexOf(r),h=n.indexOf(s);if(o<0||h<0)continue;const u={x:a[0]*e[0]+a[1]*e[2]+e[4],y:a[0]*e[1]+a[1]*e[3]+e[5]},f=getCharCodes(l,t);if(f)for(const e of f){const t=d.charCodeToGlyphId,a=createCharCode(t,o),r=createCharCode(t,h);i[e]={baseFontCharCode:a,accentFontCharCode:r,accentOffset:u}}}a.seacMap=i}const y=1/(a.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],w=new m.OpenTypeFileBuilder("OTTO");w.addTable("CFF ",t.data);w.addTable("OS/2",createOS2Table(a,f));w.addTable("cmap",createCmapTable(f,g,p));w.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+safeString16(y)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+safeString16(a.descent)+"ÿ"+safeString16(a.ascent)+string16(a.italicAngle?2:0)+"\0\0\0\0\0\0\0");w.addTable("hhea","\0\0\0"+safeString16(a.ascent)+safeString16(a.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+safeString16(a.capHeight)+safeString16(Math.tan(a.italicAngle)*a.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+string16(p));w.addTable("hmtx",function fontFieldsHmtx(){const e=t.charstrings,a=t.cff?t.cff.widths:null;let r="\0\0\0\0";for(let t=1,n=p;tt.length%2==1,r=this.toUnicode instanceof h.IdentityToUnicodeMap?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let n=0,i=e.length;n55295&&(i<57344||i>65533)&&n++;if(this.toUnicode){const e=r(i);if(-1!==e){if(hasCurrentBufErrors()){t.push(a.join(""));a.length=0}for(let t=(this.cMap?this.cMap.getCharCodeLength(e):1)-1;t>=0;t--)a.push(String.fromCharCode(e>>8*t&255));continue}}if(!hasCurrentBufErrors()){t.push(a.join(""));a.length=0}a.push(String.fromCodePoint(i))}t.push(a.join(""));return t}};t.ErrorFont=class ErrorFont{constructor(e){this.error=e;this.loadedName="g_font_error";this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(e=!1){return{error:this.error}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var r=a(2),n=a(35),i=a(36);const s=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];t.CFFStandardStrings=s;const o=391,c=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],l=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];t.CFFParser=class CFFParser{constructor(e,t,a){this.bytes=e.getBytes();this.properties=t;this.seacAnalysisEnabled=!!a}parse(){const e=this.properties,t=new CFF;this.cff=t;const a=this.parseHeader(),r=this.parseIndex(a.endPos),n=this.parseIndex(r.endPos),i=this.parseIndex(n.endPos),s=this.parseIndex(i.endPos),o=this.parseDict(n.obj.get(0)),c=this.createDict(CFFTopDict,o,t.strings);t.header=a.obj;t.names=this.parseNameIndex(r.obj);t.strings=this.parseStringIndex(i.obj);t.topDict=c;t.globalSubrIndex=s.obj;this.parsePrivateDict(t.topDict);t.isCIDFont=c.hasName("ROS");const l=c.getByName("CharStrings"),h=this.parseIndex(l).obj,u=c.getByName("FontMatrix");u&&(e.fontMatrix=u);const d=c.getByName("FontBBox");if(d){e.ascent=Math.max(d[3],d[1]);e.descent=Math.min(d[1],d[3]);e.ascentScaled=!0}let f,g;if(t.isCIDFont){const e=this.parseIndex(c.getByName("FDArray")).obj;for(let a=0,r=e.count;a=t)throw new r.FormatError("Invalid CFF header");if(0!==a){(0,r.info)("cff data is shifted");e=e.subarray(a);this.bytes=e}const n=e[0],i=e[1],s=e[2],o=e[3];return{obj:new CFFHeader(n,i,s,o),endPos:s}}parseDict(e){let t=0;function parseOperand(){let a=e[t++];if(30===a)return function parseFloatOperand(){let a="";const r=15,n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;for(;t>4,o=15&i;if(s===r)break;a+=n[s];if(o===r)break;a+=n[o]}return parseFloat(a)}();if(28===a){a=e[t++];a=(a<<24|e[t++]<<16)>>16;return a}if(29===a){a=e[t++];a=a<<8|e[t++];a=a<<8|e[t++];a=a<<8|e[t++];return a}if(a>=32&&a<=246)return a-139;if(a>=247&&a<=250)return 256*(a-247)+e[t++]+108;if(a>=251&&a<=254)return-256*(a-251)-e[t++]-108;(0,r.warn)('CFFParser_parseDict: "'+a+'" is a reserved command.');return NaN}let a=[];const n=[];t=0;const i=e.length;for(;t10)return!1;let i=e.stackSize;const s=e.stack;let o=t.length;for(let h=0;h>16;h+=2;i++}else if(14===u){if(i>=4){i-=4;if(this.seacAnalysisEnabled){e.seac=s.slice(i,i+4);return!1}}d=c[u]}else if(u>=32&&u<=246){s[i]=u-139;i++}else if(u>=247&&u<=254){s[i]=u<251?(u-247<<8)+t[h]+108:-(u-251<<8)-t[h]-108;h++;i++}else if(255===u){s[i]=(t[h]<<24|t[h+1]<<16|t[h+2]<<8|t[h+3])/65536;h+=4;i++}else if(19===u||20===u){e.hints+=i>>1;h+=e.hints+7>>3;i%=2;d=c[u]}else{if(10===u||29===u){let t;t=10===u?a:n;if(!t){d=c[u];(0,r.warn)("Missing subrsIndex for "+d.id);return!1}let o=32768;t.count<1240?o=107:t.count<33900&&(o=1131);const l=s[--i]+o;if(l<0||l>=t.count||isNaN(l)){d=c[u];(0,r.warn)("Out of bounds subrIndex for "+d.id);return!1}e.stackSize=i;e.callDepth++;if(!this.parseCharString(e,t.get(l),a,n))return!1;e.callDepth--;i=e.stackSize;continue}if(11===u){e.stackSize=i;return!0}if(0===u&&h===t.length){t[h-1]=14;d=c[14]}else{if(9===u){t.copyWithin(h-1,h,-1);h-=1;o-=1;continue}d=c[u]}}if(d){if(d.stem){e.hints+=i>>1;if(3===u||23===u)e.hasVStems=!0;else if(e.hasVStems&&(1===u||18===u)){(0,r.warn)("CFF stem hints are in wrong order");t[h-1]=1===u?3:23}}if("min"in d&&!e.undefStack&&i=2&&d.stem?i%=2:i>1&&(0,r.warn)("Found too many parameters for stack-clearing command");i>0&&(e.width=s[i-1])}if("stackDelta"in d){"stackFn"in d&&d.stackFn(s,i);i+=d.stackDelta}else if(d.stackClearing)i=0;else if(d.resetStack){i=0;e.undefStack=!1}else if(d.undefStack){i=0;e.undefStack=!0;e.firstStackClearing=!1}}}o=i.length){(0,r.warn)("Invalid fd index for glyph index.");d=!1}if(d){g=i[e].privateDict;f=g.subrsIndex}}else t&&(f=t);d&&(d=this.parseCharString(u,l,f,a));if(null!==u.width){const e=g.getByName("nominalWidthX");c[h]=e+u.width}else{const e=g.getByName("defaultWidthX");c[h]=e}null!==u.seac&&(o[h]=u.seac);d||e.set(h,new Uint8Array([14]))}return{charStrings:e,seacs:o,widths:c}}emptyPrivateDictionary(e){const t=this.createDict(CFFPrivateDict,[],e.strings);e.setByKey(18,[0,0]);e.privateDict=t}parsePrivateDict(e){if(!e.hasName("Private")){this.emptyPrivateDictionary(e);return}const t=e.getByName("Private");if(!Array.isArray(t)||2!==t.length){e.removeByName("Private");return}const a=t[0],r=t[1];if(0===a||r>=this.bytes.length){this.emptyPrivateDictionary(e);return}const n=r+a,i=this.bytes.subarray(r,n),s=this.parseDict(i),o=this.createDict(CFFPrivateDict,s,e.strings);e.privateDict=o;0===o.getByName("ExpansionFactor")&&o.setByName("ExpansionFactor",.06);if(!o.getByName("Subrs"))return;const c=o.getByName("Subrs"),l=r+c;if(0===c||l>=this.bytes.length){this.emptyPrivateDictionary(e);return}const h=this.parseIndex(l);o.subrsIndex=h.obj}parseCharsets(e,t,a,i){if(0===e)return new CFFCharset(!0,d.ISO_ADOBE,n.ISOAdobeCharset);if(1===e)return new CFFCharset(!0,d.EXPERT,n.ExpertCharset);if(2===e)return new CFFCharset(!0,d.EXPERT_SUBSET,n.ExpertSubsetCharset);const s=this.bytes,o=e,c=s[e++],l=[i?0:".notdef"];let h,u,f;t-=1;switch(c){case 0:for(f=0;f=65535){(0,r.warn)("Not enough space in charstrings to duplicate first glyph.");return}const e=this.charStrings.get(0);this.charStrings.add(e);this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(e){if(e<0||e>=this.charStrings.count)return!1;return this.charStrings.get(e).length>0}}t.CFF=CFF;class CFFHeader{constructor(e,t,a,r){this.major=e;this.minor=t;this.hdrSize=a;this.offSize=r}}t.CFFHeader=CFFHeader;class CFFStrings{constructor(){this.strings=[]}get(e){return e>=0&&e<=390?s[e]:e-o<=this.strings.length?this.strings[e-o]:s[0]}getSID(e){let t=s.indexOf(e);if(-1!==t)return t;t=this.strings.indexOf(e);return-1!==t?t+o:-1}add(e){this.strings.push(e)}get count(){return this.strings.length}}t.CFFStrings=CFFStrings;class CFFIndex{constructor(){this.objects=[];this.length=0}add(e){this.length+=e.length;this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length;this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}}t.CFFIndex=CFFIndex;class CFFDict{constructor(e,t){this.keyToNameMap=e.keyToNameMap;this.nameToKeyMap=e.nameToKeyMap;this.defaults=e.defaults;this.types=e.types;this.opcodes=e.opcodes;this.order=e.order;this.strings=t;this.values=Object.create(null)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1;if(0===t.length)return!0;for(const a of t)if(isNaN(a)){(0,r.warn)(`Invalid CFFDict value: "${t}" for key "${e}".`);return!0}const a=this.types[e];"num"!==a&&"sid"!==a&&"offset"!==a||(t=t[0]);this.values[e]=t;return!0}setByName(e,t){if(!(e in this.nameToKeyMap))throw new r.FormatError(`Invalid dictionary name "${e}"`);this.values[this.nameToKeyMap[e]]=t}hasName(e){return this.nameToKeyMap[e]in this.values}getByName(e){if(!(e in this.nameToKeyMap))throw new r.FormatError(`Invalid dictionary name ${e}"`);const t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}removeByName(e){delete this.values[this.nameToKeyMap[e]]}static createTables(e){const t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const a of e){const e=Array.isArray(a[0])?(a[0][0]<<8)+a[0][1]:a[0];t.keyToNameMap[e]=a[1];t.nameToKeyMap[a[1]]=e;t.types[e]=a[2];t.defaults[e]=a[3];t.opcodes[e]=Array.isArray(a[0])?a[0]:[a[0]];t.order.push(e)}return t}}const h=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]];class CFFTopDict extends CFFDict{static get tables(){return(0,r.shadow)(this,"tables",this.createTables(h))}constructor(e){super(CFFTopDict.tables,e);this.privateDict=null}}t.CFFTopDict=CFFTopDict;const u=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];class CFFPrivateDict extends CFFDict{static get tables(){return(0,r.shadow)(this,"tables",this.createTables(u))}constructor(e){super(CFFPrivateDict.tables,e);this.subrsIndex=null}}t.CFFPrivateDict=CFFPrivateDict;const d={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class CFFCharset{constructor(e,t,a,r){this.predefined=e;this.format=t;this.charset=a;this.raw=r}}t.CFFCharset=CFFCharset;class CFFEncoding{constructor(e,t,a,r){this.predefined=e;this.format=t;this.encoding=a;this.raw=r}}class CFFFDSelect{constructor(e,t){this.format=e;this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}t.CFFFDSelect=CFFFDSelect;class CFFOffsetTracker{constructor(){this.offsets=Object.create(null)}isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new r.FormatError(`Already tracking location of ${e}`);this.offsets[e]=t}offset(e){for(const t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,t,a){if(!(e in this.offsets))throw new r.FormatError(`Not tracking location of ${e}`);const n=a.data,i=this.offsets[e];for(let e=0,a=t.length;e>24&255;n[o]=h>>16&255;n[c]=h>>8&255;n[l]=255&h}}}class CFFCompiler{constructor(e){this.cff=e}compile(){const e=this.cff,t={data:[],length:0,add(e){this.data=this.data.concat(e);this.length=this.data.length}},a=this.compileHeader(e.header);t.add(a);const n=this.compileNameIndex(e.names);t.add(n);if(e.isCIDFont&&e.topDict.hasName("FontMatrix")){const t=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(const a of e.fdArray){let e=t.slice(0);a.hasName("FontMatrix")&&(e=r.Util.transform(e,a.getByName("FontMatrix")));a.setByName("FontMatrix",e)}}const i=e.topDict.getByName("XUID");i&&i.length>16&&e.topDict.removeByName("XUID");e.topDict.setByName("charset",0);let s=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(s.output);const o=s.trackers[0],c=this.compileStringIndex(e.strings.strings);t.add(c);const l=this.compileIndex(e.globalSubrIndex);t.add(l);if(e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)o.setEntryLocation("Encoding",[e.encoding.format],t);else{const a=this.compileEncoding(e.encoding);o.setEntryLocation("Encoding",[t.length],t);t.add(a)}const h=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);o.setEntryLocation("charset",[t.length],t);t.add(h);const u=this.compileCharStrings(e.charStrings);o.setEntryLocation("CharStrings",[t.length],t);t.add(u);if(e.isCIDFont){o.setEntryLocation("FDSelect",[t.length],t);const a=this.compileFDSelect(e.fdSelect);t.add(a);s=this.compileTopDicts(e.fdArray,t.length,!0);o.setEntryLocation("FDArray",[t.length],t);t.add(s.output);const r=s.trackers;this.compilePrivateDicts(e.fdArray,r,t)}this.compilePrivateDicts([e.topDict],[o],t);t.add([0]);return t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return(0,r.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let t=e.toString();const a=CFFCompiler.EncodeFloatRegExp.exec(t);if(a){const r=parseFloat("1e"+((a[2]?+a[2]:0)+a[1].length));t=(Math.round(e*r)/r).toString()}let r,n,i="";for(r=0,n=t.length;r=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e];return t}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){const t=new CFFIndex;for(const a of e){const e=Math.min(a.length,127);let n=new Array(e);for(let t=0;t"~"||"["===e||"]"===e||"("===e||")"===e||"{"===e||"}"===e||"<"===e||">"===e||"/"===e||"%"===e)&&(e="_");n[t]=e}n=n.join("");""===n&&(n="Bad_Font_Name");t.add((0,r.stringToBytes)(n))}return this.compileIndex(t)}compileTopDicts(e,t,a){const r=[];let n=new CFFIndex;for(const i of e){if(a){i.removeByName("CIDFontVersion");i.removeByName("CIDFontRevision");i.removeByName("CIDFontType");i.removeByName("CIDCount");i.removeByName("UIDBase")}const e=new CFFOffsetTracker,s=this.compileDict(i,e);r.push(e);n.add(s);e.offset(t)}n=this.compileIndex(n,r);return{trackers:r,output:n}}compilePrivateDicts(e,t,a){for(let n=0,i=e.length;n>8&255,255&s]);else{i=new Uint8Array(1+2*s);i[0]=0;let t=0;const n=e.charset.length;let o=!1;for(let s=1;s>8&255;i[s+1]=255&c}}return this.compileTypedArray(i)}compileEncoding(e){return this.compileTypedArray(e.raw)}compileFDSelect(e){const t=e.format;let a,r;switch(t){case 0:a=new Uint8Array(1+e.fdSelect.length);a[0]=t;for(r=0;r>8&255,255&n,i];for(r=1;r>8&255,255&r,t);i=t}}const o=(s.length-3)/3;s[1]=o>>8&255;s[2]=255&o;s.push(r>>8&255,255&r);a=new Uint8Array(s)}return this.compileTypedArray(a)}compileTypedArray(e){const t=[];for(let a=0,r=e.length;a>8&255,255&r];let i,s,o=1;for(i=0;i>8&255,255&c):3===s?n.push(c>>16&255,c>>8&255,255&c):n.push(c>>>24&255,c>>16&255,c>>8&255,255&c);a[i]&&(c+=a[i].length)}for(i=0;i{Object.defineProperty(t,"__esModule",{value:!0});t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0;t.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];t.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0;t.getEncoding=function getEncoding(e){switch(e){case"WinAnsiEncoding":return s;case"StandardEncoding":return i;case"MacRomanEncoding":return n;case"SymbolSetEncoding":return o;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return a;case"MacExpertEncoding":return r;default:return null}};const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertEncoding=a;const r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];t.MacRomanEncoding=n;const i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];t.StandardEncoding=i;const s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];t.WinAnsiEncoding=s;const o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];t.SymbolSetEncoding=o;const c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];t.ZapfDingbatsEncoding=c},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0;t.normalizeFontName=function normalizeFontName(e){return e.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")};t.recoverGlyphName=recoverGlyphName;t.type1FontGlyphMapping=function type1FontGlyphMapping(e,t,a){const i=Object.create(null);let s,c,l;const h=!!(e.flags&o.Symbolic);if(e.isInternalFont){l=t;for(c=0;c=0?s:0}}else if(e.baseEncodingName){l=(0,r.getEncoding)(e.baseEncodingName);for(c=0;c=0?s:0}}else if(h)for(c in t)i[c]=t[c];else{l=r.StandardEncoding;for(c=0;c=0?s:0}}const u=e.differences;let d;if(u)for(c in u){const e=u[c];s=a.indexOf(e);if(-1===s){d||(d=(0,n.getGlyphsUnicode)());const t=recoverGlyphName(e,d);t!==e&&(s=a.indexOf(t))}i[c]=s>=0?s:0}return i};var r=a(36),n=a(38),i=a(39),s=a(2);t.SEAC_ANALYSIS_ENABLED=!0;const o={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=o;t.MacStandardGlyphOrdering=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function recoverGlyphName(e,t){if(void 0!==t[e])return e;const a=(0,i.getUnicodeForGlyph)(e,t);if(-1!==a)for(const e in t)if(t[e]===a)return e;(0,s.info)("Unable to recover a standard glyph name for: "+e);return e}},(e,t,a)=>{a.r(t);a.d(t,{getDingbatsGlyphsUnicode:()=>i,getGlyphsUnicode:()=>n});var r=a(3);const n=(0,r.getArrayLookupTableFactory)((function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"f_f_i",64259,"ffl",64260,"f_f_l",64260,"fi",64257,"f_i",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"f_l",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]})),i=(0,r.getArrayLookupTableFactory)((function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]}))},(e,t,a)=>{a.r(t);a.d(t,{clearUnicodeCaches:()=>clearUnicodeCaches,getCharUnicodeCategory:()=>getCharUnicodeCategory,getNormalizedUnicodes:()=>s,getUnicodeForGlyph:()=>getUnicodeForGlyph,getUnicodeRangeFor:()=>getUnicodeRangeFor,mapSpecialUnicodeValues:()=>mapSpecialUnicodeValues,reverseIfRtl:()=>reverseIfRtl});var r=a(3);const n=(0,r.getLookupTableFactory)((function(e){e[63721]=169;e[63193]=169;e[63720]=174;e[63194]=174;e[63722]=8482;e[63195]=8482;e[63729]=9127;e[63730]=9128;e[63731]=9129;e[63740]=9131;e[63741]=9132;e[63742]=9133;e[63726]=9121;e[63727]=9122;e[63728]=9123;e[63737]=9124;e[63738]=9125;e[63739]=9126;e[63723]=9115;e[63724]=9116;e[63725]=9117;e[63734]=9118;e[63735]=9119;e[63736]=9120}));function mapSpecialUnicodeValues(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?n()[e]||e:173===e?45:e}function getUnicodeForGlyph(e,t){let a=t[e];if(void 0!==a)return a;if(!e)return-1;if("u"===e[0]){const t=e.length;let r;if(7===t&&"n"===e[1]&&"i"===e[2])r=e.substring(3);else{if(!(t>=5&&t<=7))return-1;r=e.substring(1)}if(r===r.toUpperCase()){a=parseInt(r,16);if(a>=0)return a}}return-1}const i=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function getUnicodeRangeFor(e){for(let t=0,a=i.length;t=a.begin&&e=t.begin&&e=t.begin&&e=0;r--)a.push(e[r]);return a.join("")}const o=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),c=new Map;function getCharUnicodeCategory(e){const t=c.get(e);if(t)return t;const a=e.match(o),r={isWhitespace:!(!a||!a[1]),isZeroWidthDiacritic:!(!a||!a[2]),isInvisibleFormatMark:!(!a||!a[3])};c.set(e,r);return r}function clearUnicodeCaches(){c.clear()}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0;t.getStandardFontName=function getStandardFontName(e){const t=(0,n.normalizeFontName)(e);return i()[t]};t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0;var r=a(3),n=a(37);const i=(0,r.getLookupTableFactory)((function(e){e["Times-Roman"]="Times-Roman";e.Helvetica="Helvetica";e.Courier="Courier";e.Symbol="Symbol";e["Times-Bold"]="Times-Bold";e["Helvetica-Bold"]="Helvetica-Bold";e["Courier-Bold"]="Courier-Bold";e.ZapfDingbats="ZapfDingbats";e["Times-Italic"]="Times-Italic";e["Helvetica-Oblique"]="Helvetica-Oblique";e["Courier-Oblique"]="Courier-Oblique";e["Times-BoldItalic"]="Times-BoldItalic";e["Helvetica-BoldOblique"]="Helvetica-BoldOblique";e["Courier-BoldOblique"]="Courier-BoldOblique";e.ArialNarrow="Helvetica";e["ArialNarrow-Bold"]="Helvetica-Bold";e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique";e["ArialNarrow-Italic"]="Helvetica-Oblique";e.ArialBlack="Helvetica";e["ArialBlack-Bold"]="Helvetica-Bold";e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique";e["ArialBlack-Italic"]="Helvetica-Oblique";e["Arial-Black"]="Helvetica";e["Arial-Black-Bold"]="Helvetica-Bold";e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique";e["Arial-Black-Italic"]="Helvetica-Oblique";e.Arial="Helvetica";e["Arial-Bold"]="Helvetica-Bold";e["Arial-BoldItalic"]="Helvetica-BoldOblique";e["Arial-Italic"]="Helvetica-Oblique";e.ArialMT="Helvetica";e["Arial-BoldItalicMT"]="Helvetica-BoldOblique";e["Arial-BoldMT"]="Helvetica-Bold";e["Arial-ItalicMT"]="Helvetica-Oblique";e.ArialUnicodeMS="Helvetica";e["ArialUnicodeMS-Bold"]="Helvetica-Bold";e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique";e["ArialUnicodeMS-Italic"]="Helvetica-Oblique";e["Courier-BoldItalic"]="Courier-BoldOblique";e["Courier-Italic"]="Courier-Oblique";e.CourierNew="Courier";e["CourierNew-Bold"]="Courier-Bold";e["CourierNew-BoldItalic"]="Courier-BoldOblique";e["CourierNew-Italic"]="Courier-Oblique";e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique";e["CourierNewPS-BoldMT"]="Courier-Bold";e["CourierNewPS-ItalicMT"]="Courier-Oblique";e.CourierNewPSMT="Courier";e["Helvetica-BoldItalic"]="Helvetica-BoldOblique";e["Helvetica-Italic"]="Helvetica-Oblique";e["Symbol-Bold"]="Symbol";e["Symbol-BoldItalic"]="Symbol";e["Symbol-Italic"]="Symbol";e.TimesNewRoman="Times-Roman";e["TimesNewRoman-Bold"]="Times-Bold";e["TimesNewRoman-BoldItalic"]="Times-BoldItalic";e["TimesNewRoman-Italic"]="Times-Italic";e.TimesNewRomanPS="Times-Roman";e["TimesNewRomanPS-Bold"]="Times-Bold";e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic";e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic";e["TimesNewRomanPS-BoldMT"]="Times-Bold";e["TimesNewRomanPS-Italic"]="Times-Italic";e["TimesNewRomanPS-ItalicMT"]="Times-Italic";e.TimesNewRomanPSMT="Times-Roman";e["TimesNewRomanPSMT-Bold"]="Times-Bold";e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic";e["TimesNewRomanPSMT-Italic"]="Times-Italic"}));t.getStdFontMap=i;const s=(0,r.getLookupTableFactory)((function(e){e.Courier="FoxitFixed.pfb";e["Courier-Bold"]="FoxitFixedBold.pfb";e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb";e["Courier-Oblique"]="FoxitFixedItalic.pfb";e.Helvetica="FoxitSans.pfb";e["Helvetica-Bold"]="FoxitSansBold.pfb";e["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb";e["Helvetica-Oblique"]="FoxitSansItalic.pfb";e["Times-Roman"]="FoxitSerif.pfb";e["Times-Bold"]="FoxitSerifBold.pfb";e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb";e["Times-Italic"]="FoxitSerifItalic.pfb";e.Symbol="FoxitSymbol.pfb";e.ZapfDingbats="FoxitDingbats.pfb";e["LiberationSans-Regular"]="LiberationSans-Regular.ttf";e["LiberationSans-Bold"]="LiberationSans-Bold.ttf";e["LiberationSans-Italic"]="LiberationSans-Italic.ttf";e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}));t.getFontNameToFileMap=s;const o=(0,r.getLookupTableFactory)((function(e){e.Calibri="Helvetica";e["Calibri-Bold"]="Helvetica-Bold";e["Calibri-BoldItalic"]="Helvetica-BoldOblique";e["Calibri-Italic"]="Helvetica-Oblique";e.CenturyGothic="Helvetica";e["CenturyGothic-Bold"]="Helvetica-Bold";e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique";e["CenturyGothic-Italic"]="Helvetica-Oblique";e.ComicSansMS="Comic Sans MS";e["ComicSansMS-Bold"]="Comic Sans MS-Bold";e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic";e["ComicSansMS-Italic"]="Comic Sans MS-Italic";e["ItcSymbol-Bold"]="Helvetica-Bold";e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique";e["ItcSymbol-Book"]="Helvetica";e["ItcSymbol-BookItalic"]="Helvetica-Oblique";e["ItcSymbol-Medium"]="Helvetica";e["ItcSymbol-MediumItalic"]="Helvetica-Oblique";e.LucidaConsole="Courier";e["LucidaConsole-Bold"]="Courier-Bold";e["LucidaConsole-BoldItalic"]="Courier-BoldOblique";e["LucidaConsole-Italic"]="Courier-Oblique";e["LucidaSans-Demi"]="Helvetica-Bold";e["MS-Gothic"]="MS Gothic";e["MS-Gothic-Bold"]="MS Gothic-Bold";e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic";e["MS-Gothic-Italic"]="MS Gothic-Italic";e["MS-Mincho"]="MS Mincho";e["MS-Mincho-Bold"]="MS Mincho-Bold";e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic";e["MS-Mincho-Italic"]="MS Mincho-Italic";e["MS-PGothic"]="MS PGothic";e["MS-PGothic-Bold"]="MS PGothic-Bold";e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic";e["MS-PGothic-Italic"]="MS PGothic-Italic";e["MS-PMincho"]="MS PMincho";e["MS-PMincho-Bold"]="MS PMincho-Bold";e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic";e["MS-PMincho-Italic"]="MS PMincho-Italic";e.NuptialScript="Times-Italic";e.SegoeUISymbol="Helvetica";e.Wingdings="ZapfDingbats";e["Wingdings-Regular"]="ZapfDingbats"}));t.getNonStdFontMap=o;const c=(0,r.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0;e["Adobe Text"]=!0;e.Albertus=!0;e.Aldus=!0;e.Alexandria=!0;e.Algerian=!0;e["American Typewriter"]=!0;e.Antiqua=!0;e.Apex=!0;e.Arno=!0;e.Aster=!0;e.Aurora=!0;e.Baskerville=!0;e.Bell=!0;e.Bembo=!0;e["Bembo Schoolbook"]=!0;e.Benguiat=!0;e["Berkeley Old Style"]=!0;e["Bernhard Modern"]=!0;e["Berthold City"]=!0;e.Bodoni=!0;e["Bauer Bodoni"]=!0;e["Book Antiqua"]=!0;e.Bookman=!0;e["Bordeaux Roman"]=!0;e["Californian FB"]=!0;e.Calisto=!0;e.Calvert=!0;e.Capitals=!0;e.Cambria=!0;e.Cartier=!0;e.Caslon=!0;e.Catull=!0;e.Centaur=!0;e["Century Old Style"]=!0;e["Century Schoolbook"]=!0;e.Chaparral=!0;e["Charis SIL"]=!0;e.Cheltenham=!0;e["Cholla Slab"]=!0;e.Clarendon=!0;e.Clearface=!0;e.Cochin=!0;e.Colonna=!0;e["Computer Modern"]=!0;e["Concrete Roman"]=!0;e.Constantia=!0;e["Cooper Black"]=!0;e.Corona=!0;e.Ecotype=!0;e.Egyptienne=!0;e.Elephant=!0;e.Excelsior=!0;e.Fairfield=!0;e["FF Scala"]=!0;e.Folkard=!0;e.Footlight=!0;e.FreeSerif=!0;e["Friz Quadrata"]=!0;e.Garamond=!0;e.Gentium=!0;e.Georgia=!0;e.Gloucester=!0;e["Goudy Old Style"]=!0;e["Goudy Schoolbook"]=!0;e["Goudy Pro Font"]=!0;e.Granjon=!0;e["Guardian Egyptian"]=!0;e.Heather=!0;e.Hercules=!0;e["High Tower Text"]=!0;e.Hiroshige=!0;e["Hoefler Text"]=!0;e["Humana Serif"]=!0;e.Imprint=!0;e["Ionic No. 5"]=!0;e.Janson=!0;e.Joanna=!0;e.Korinna=!0;e.Lexicon=!0;e.LiberationSerif=!0;e["Liberation Serif"]=!0;e["Linux Libertine"]=!0;e.Literaturnaya=!0;e.Lucida=!0;e["Lucida Bright"]=!0;e.Melior=!0;e.Memphis=!0;e.Miller=!0;e.Minion=!0;e.Modern=!0;e["Mona Lisa"]=!0;e["Mrs Eaves"]=!0;e["MS Serif"]=!0;e["Museo Slab"]=!0;e["New York"]=!0;e["Nimbus Roman"]=!0;e["NPS Rawlinson Roadway"]=!0;e.NuptialScript=!0;e.Palatino=!0;e.Perpetua=!0;e.Plantin=!0;e["Plantin Schoolbook"]=!0;e.Playbill=!0;e["Poor Richard"]=!0;e["Rawlinson Roadway"]=!0;e.Renault=!0;e.Requiem=!0;e.Rockwell=!0;e.Roman=!0;e["Rotis Serif"]=!0;e.Sabon=!0;e.Scala=!0;e.Seagull=!0;e.Sistina=!0;e.Souvenir=!0;e.STIX=!0;e["Stone Informal"]=!0;e["Stone Serif"]=!0;e.Sylfaen=!0;e.Times=!0;e.Trajan=!0;e["Trinité"]=!0;e["Trump Mediaeval"]=!0;e.Utopia=!0;e["Vale Type"]=!0;e["Bitstream Vera"]=!0;e["Vera Serif"]=!0;e.Versailles=!0;e.Wanted=!0;e.Weiss=!0;e["Wide Latin"]=!0;e.Windsor=!0;e.XITS=!0}));t.getSerifFonts=c;const l=(0,r.getLookupTableFactory)((function(e){e.Dingbats=!0;e.Symbol=!0;e.ZapfDingbats=!0}));t.getSymbolsFonts=l;const h=(0,r.getLookupTableFactory)((function(e){e[2]=10;e[3]=32;e[4]=33;e[5]=34;e[6]=35;e[7]=36;e[8]=37;e[9]=38;e[10]=39;e[11]=40;e[12]=41;e[13]=42;e[14]=43;e[15]=44;e[16]=45;e[17]=46;e[18]=47;e[19]=48;e[20]=49;e[21]=50;e[22]=51;e[23]=52;e[24]=53;e[25]=54;e[26]=55;e[27]=56;e[28]=57;e[29]=58;e[30]=894;e[31]=60;e[32]=61;e[33]=62;e[34]=63;e[35]=64;e[36]=65;e[37]=66;e[38]=67;e[39]=68;e[40]=69;e[41]=70;e[42]=71;e[43]=72;e[44]=73;e[45]=74;e[46]=75;e[47]=76;e[48]=77;e[49]=78;e[50]=79;e[51]=80;e[52]=81;e[53]=82;e[54]=83;e[55]=84;e[56]=85;e[57]=86;e[58]=87;e[59]=88;e[60]=89;e[61]=90;e[62]=91;e[63]=92;e[64]=93;e[65]=94;e[66]=95;e[67]=96;e[68]=97;e[69]=98;e[70]=99;e[71]=100;e[72]=101;e[73]=102;e[74]=103;e[75]=104;e[76]=105;e[77]=106;e[78]=107;e[79]=108;e[80]=109;e[81]=110;e[82]=111;e[83]=112;e[84]=113;e[85]=114;e[86]=115;e[87]=116;e[88]=117;e[89]=118;e[90]=119;e[91]=120;e[92]=121;e[93]=122;e[94]=123;e[95]=124;e[96]=125;e[97]=126;e[98]=196;e[99]=197;e[100]=199;e[101]=201;e[102]=209;e[103]=214;e[104]=220;e[105]=225;e[106]=224;e[107]=226;e[108]=228;e[109]=227;e[110]=229;e[111]=231;e[112]=233;e[113]=232;e[114]=234;e[115]=235;e[116]=237;e[117]=236;e[118]=238;e[119]=239;e[120]=241;e[121]=243;e[122]=242;e[123]=244;e[124]=246;e[125]=245;e[126]=250;e[127]=249;e[128]=251;e[129]=252;e[130]=8224;e[131]=176;e[132]=162;e[133]=163;e[134]=167;e[135]=8226;e[136]=182;e[137]=223;e[138]=174;e[139]=169;e[140]=8482;e[141]=180;e[142]=168;e[143]=8800;e[144]=198;e[145]=216;e[146]=8734;e[147]=177;e[148]=8804;e[149]=8805;e[150]=165;e[151]=181;e[152]=8706;e[153]=8721;e[154]=8719;e[156]=8747;e[157]=170;e[158]=186;e[159]=8486;e[160]=230;e[161]=248;e[162]=191;e[163]=161;e[164]=172;e[165]=8730;e[166]=402;e[167]=8776;e[168]=8710;e[169]=171;e[170]=187;e[171]=8230;e[179]=8220;e[180]=8221;e[181]=8216;e[182]=8217;e[200]=193;e[203]=205;e[207]=211;e[210]=218;e[223]=711;e[224]=321;e[225]=322;e[226]=352;e[227]=353;e[228]=381;e[229]=382;e[233]=221;e[234]=253;e[252]=263;e[253]=268;e[254]=269;e[258]=258;e[260]=260;e[261]=261;e[265]=280;e[266]=281;e[267]=282;e[268]=283;e[269]=313;e[275]=323;e[276]=324;e[278]=328;e[283]=344;e[284]=345;e[285]=346;e[286]=347;e[292]=367;e[295]=377;e[296]=378;e[298]=380;e[305]=963;e[306]=964;e[307]=966;e[308]=8215;e[309]=8252;e[310]=8319;e[311]=8359;e[312]=8592;e[313]=8593;e[337]=9552;e[493]=1039;e[494]=1040;e[672]=1488;e[673]=1489;e[674]=1490;e[675]=1491;e[676]=1492;e[677]=1493;e[678]=1494;e[679]=1495;e[680]=1496;e[681]=1497;e[682]=1498;e[683]=1499;e[684]=1500;e[685]=1501;e[686]=1502;e[687]=1503;e[688]=1504;e[689]=1505;e[690]=1506;e[691]=1507;e[692]=1508;e[693]=1509;e[694]=1510;e[695]=1511;e[696]=1512;e[697]=1513;e[698]=1514;e[705]=1524;e[706]=8362;e[710]=64288;e[711]=64298;e[759]=1617;e[761]=1776;e[763]=1778;e[775]=1652;e[777]=1764;e[778]=1780;e[779]=1781;e[780]=1782;e[782]=771;e[783]=64726;e[786]=8363;e[788]=8532;e[790]=768;e[791]=769;e[792]=768;e[795]=803;e[797]=64336;e[798]=64337;e[799]=64342;e[800]=64343;e[801]=64344;e[802]=64345;e[803]=64362;e[804]=64363;e[805]=64364;e[2424]=7821;e[2425]=7822;e[2426]=7823;e[2427]=7824;e[2428]=7825;e[2429]=7826;e[2430]=7827;e[2433]=7682;e[2678]=8045;e[2679]=8046;e[2830]=1552;e[2838]=686;e[2840]=751;e[2842]=753;e[2843]=754;e[2844]=755;e[2846]=757;e[2856]=767;e[2857]=848;e[2858]=849;e[2862]=853;e[2863]=854;e[2864]=855;e[2865]=861;e[2866]=862;e[2906]=7460;e[2908]=7462;e[2909]=7463;e[2910]=7464;e[2912]=7466;e[2913]=7467;e[2914]=7468;e[2916]=7470;e[2917]=7471;e[2918]=7472;e[2920]=7474;e[2921]=7475;e[2922]=7476;e[2924]=7478;e[2925]=7479;e[2926]=7480;e[2928]=7482;e[2929]=7483;e[2930]=7484;e[2932]=7486;e[2933]=7487;e[2934]=7488;e[2936]=7490;e[2937]=7491;e[2938]=7492;e[2940]=7494;e[2941]=7495;e[2942]=7496;e[2944]=7498;e[2946]=7500;e[2948]=7502;e[2950]=7504;e[2951]=7505;e[2952]=7506;e[2954]=7508;e[2955]=7509;e[2956]=7510;e[2958]=7512;e[2959]=7513;e[2960]=7514;e[2962]=7516;e[2963]=7517;e[2964]=7518;e[2966]=7520;e[2967]=7521;e[2968]=7522;e[2970]=7524;e[2971]=7525;e[2972]=7526;e[2974]=7528;e[2975]=7529;e[2976]=7530;e[2978]=1537;e[2979]=1538;e[2980]=1539;e[2982]=1549;e[2983]=1551;e[2984]=1552;e[2986]=1554;e[2987]=1555;e[2988]=1556;e[2990]=1623;e[2991]=1624;e[2995]=1775;e[2999]=1791;e[3002]=64290;e[3003]=64291;e[3004]=64292;e[3006]=64294;e[3007]=64295;e[3008]=64296;e[3011]=1900;e[3014]=8223;e[3015]=8244;e[3017]=7532;e[3018]=7533;e[3019]=7534;e[3075]=7590;e[3076]=7591;e[3079]=7594;e[3080]=7595;e[3083]=7598;e[3084]=7599;e[3087]=7602;e[3088]=7603;e[3091]=7606;e[3092]=7607;e[3095]=7610;e[3096]=7611;e[3099]=7614;e[3100]=7615;e[3103]=7618;e[3104]=7619;e[3107]=8337;e[3108]=8338;e[3116]=1884;e[3119]=1885;e[3120]=1885;e[3123]=1886;e[3124]=1886;e[3127]=1887;e[3128]=1887;e[3131]=1888;e[3132]=1888;e[3135]=1889;e[3136]=1889;e[3139]=1890;e[3140]=1890;e[3143]=1891;e[3144]=1891;e[3147]=1892;e[3148]=1892;e[3153]=580;e[3154]=581;e[3157]=584;e[3158]=585;e[3161]=588;e[3162]=589;e[3165]=891;e[3166]=892;e[3169]=1274;e[3170]=1275;e[3173]=1278;e[3174]=1279;e[3181]=7622;e[3182]=7623;e[3282]=11799;e[3316]=578;e[3379]=42785;e[3393]=1159;e[3416]=8377}));t.getGlyphMapForStandardFonts=h;const u=(0,r.getLookupTableFactory)((function(e){e[227]=322;e[264]=261;e[291]=346}));t.getSupplementalGlyphMapForArialBlack=u;const d=(0,r.getLookupTableFactory)((function(e){e[1]=32;e[4]=65;e[5]=192;e[6]=193;e[9]=196;e[17]=66;e[18]=67;e[21]=268;e[24]=68;e[28]=69;e[29]=200;e[30]=201;e[32]=282;e[38]=70;e[39]=71;e[44]=72;e[47]=73;e[48]=204;e[49]=205;e[58]=74;e[60]=75;e[62]=76;e[68]=77;e[69]=78;e[75]=79;e[76]=210;e[80]=214;e[87]=80;e[89]=81;e[90]=82;e[92]=344;e[94]=83;e[97]=352;e[100]=84;e[104]=85;e[109]=220;e[115]=86;e[116]=87;e[121]=88;e[122]=89;e[124]=221;e[127]=90;e[129]=381;e[258]=97;e[259]=224;e[260]=225;e[263]=228;e[268]=261;e[271]=98;e[272]=99;e[273]=263;e[275]=269;e[282]=100;e[286]=101;e[287]=232;e[288]=233;e[290]=283;e[295]=281;e[296]=102;e[336]=103;e[346]=104;e[349]=105;e[350]=236;e[351]=237;e[361]=106;e[364]=107;e[367]=108;e[371]=322;e[373]=109;e[374]=110;e[381]=111;e[382]=242;e[383]=243;e[386]=246;e[393]=112;e[395]=113;e[396]=114;e[398]=345;e[400]=115;e[401]=347;e[403]=353;e[410]=116;e[437]=117;e[442]=252;e[448]=118;e[449]=119;e[454]=120;e[455]=121;e[457]=253;e[460]=122;e[462]=382;e[463]=380;e[853]=44;e[855]=58;e[856]=46;e[876]=47;e[878]=45;e[882]=45;e[894]=40;e[895]=41;e[896]=91;e[897]=93;e[923]=64;e[1004]=48;e[1005]=49;e[1006]=50;e[1007]=51;e[1008]=52;e[1009]=53;e[1010]=54;e[1011]=55;e[1012]=56;e[1013]=57;e[1081]=37;e[1085]=43;e[1086]=45}));t.getSupplementalGlyphMapForCalibri=d},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var r=a(2);t.ToUnicodeMap=class ToUnicodeMap{constructor(e=[]){this._map=e}get length(){return this._map.length}forEach(e){for(const t in this._map)e(t,this._map[t].charCodeAt(0))}has(e){return void 0!==this._map[e]}get(e){return this._map[e]}charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const a in t)if(t[a]===e)return 0|a;return-1}amend(e){for(const t in e)this._map[t]=e[t]}};t.IdentityToUnicodeMap=class IdentityToUnicodeMap{constructor(e,t){this.firstChar=e;this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let t=this.firstChar,a=this.lastChar;t<=a;t++)e(t,t)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,r.unreachable)("Should not call amend()")}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.CFFFont=void 0;var r=a(34),n=a(37),i=a(2);t.CFFFont=class CFFFont{constructor(e,t){this.properties=t;const a=new r.CFFParser(e,t,n.SEAC_ANALYSIS_ENABLED);this.cff=a.parse();this.cff.duplicateFirstGlyph();const s=new r.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=s.compile()}catch(a){(0,i.warn)("Failed to compile font "+t.loadedName);this.data=e}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const e=this.cff,t=this.properties,{cidToGidMap:a,cMap:r}=t,i=e.charset.charset;let s,o;if(t.composite){let t,n;if(a&&a.length>0){t=Object.create(null);for(let e=0,r=a.length;e=0){const r=a[t];r&&(n[e]=r)}}n.length>0&&(this.properties.builtInEncoding=n)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.FontRendererFactory=void 0;var r=a(2),n=a(34),i=a(38),s=a(36),o=a(8);function getUint32(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function getUint16(e,t){return e[t]<<8|e[t+1]}function getInt16(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function getInt8(e,t){return e[t]<<24>>24}function getFloat214(e,t){return getInt16(e,t)/16384}function getSubroutineBias(e){const t=e.length;let a=32768;t<1240?a=107:t<33900&&(a=1131);return a}function parseCmap(e,t,a){const n=1===getUint16(e,t+2)?getUint32(e,t+8):getUint32(e,t+16),i=getUint16(e,t+n);let s,o,c;if(4===i){getUint16(e,t+n+2);const a=getUint16(e,t+n+6)>>1;o=t+n+14;s=[];for(c=0;c>1;a0;)h.push({flags:i})}for(a=0;a>1;S=!0;break;case 4:c+=i.pop();moveTo(o,c);S=!0;break;case 5:for(;i.length>0;){o+=i.shift();c+=i.shift();lineTo(o,c)}break;case 6:for(;i.length>0;){o+=i.shift();lineTo(o,c);if(0===i.length)break;c+=i.shift();lineTo(o,c)}break;case 7:for(;i.length>0;){c+=i.shift();lineTo(o,c);if(0===i.length)break;o+=i.shift();lineTo(o,c)}break;case 8:for(;i.length>0;){u=o+i.shift();f=c+i.shift();d=u+i.shift();g=f+i.shift();o=d+i.shift();c=g+i.shift();bezierCurveTo(u,f,d,g,o,c)}break;case 10:y=i.pop();w=null;if(a.isCFFCIDFont){const e=a.fdSelect.getFDIndex(n);if(e>=0&&eMath.abs(c-t)?o+=i.shift():c+=i.shift();bezierCurveTo(u,f,d,g,o,c);break;default:throw new r.FormatError(`unknown operator: 12 ${x}`)}break;case 14:if(i.length>=4){const e=i.pop(),r=i.pop();c=i.pop();o=i.pop();t.push({cmd:"save"},{cmd:"translate",args:[o,c]});let n=lookupCmap(a.cmap,String.fromCharCode(a.glyphNameMap[s.StandardEncoding[e]]));compileCharString(a.glyphs[n.glyphId],t,a,n.glyphId);t.push({cmd:"restore"});n=lookupCmap(a.cmap,String.fromCharCode(a.glyphNameMap[s.StandardEncoding[r]]));compileCharString(a.glyphs[n.glyphId],t,a,n.glyphId)}return;case 19:case 20:l+=i.length>>1;h+=l+7>>3;S=!0;break;case 21:c+=i.pop();o+=i.pop();moveTo(o,c);S=!0;break;case 22:o+=i.pop();moveTo(o,c);S=!0;break;case 24:for(;i.length>2;){u=o+i.shift();f=c+i.shift();d=u+i.shift();g=f+i.shift();o=d+i.shift();c=g+i.shift();bezierCurveTo(u,f,d,g,o,c)}o+=i.shift();c+=i.shift();lineTo(o,c);break;case 25:for(;i.length>6;){o+=i.shift();c+=i.shift();lineTo(o,c)}u=o+i.shift();f=c+i.shift();d=u+i.shift();g=f+i.shift();o=d+i.shift();c=g+i.shift();bezierCurveTo(u,f,d,g,o,c);break;case 26:i.length%2&&(o+=i.shift());for(;i.length>0;){u=o;f=c+i.shift();d=u+i.shift();g=f+i.shift();o=d;c=g+i.shift();bezierCurveTo(u,f,d,g,o,c)}break;case 27:i.length%2&&(c+=i.shift());for(;i.length>0;){u=o+i.shift();f=c;d=u+i.shift();g=f+i.shift();o=d+i.shift();c=g;bezierCurveTo(u,f,d,g,o,c)}break;case 28:i.push((e[h]<<24|e[h+1]<<16)>>16);h+=2;break;case 29:y=i.pop()+a.gsubrsBias;w=a.gsubrs[y];w&&parse(w);break;case 30:for(;i.length>0;){u=o;f=c+i.shift();d=u+i.shift();g=f+i.shift();o=d+i.shift();c=g+(1===i.length?i.shift():0);bezierCurveTo(u,f,d,g,o,c);if(0===i.length)break;u=o+i.shift();f=c;d=u+i.shift();g=f+i.shift();c=g+i.shift();o=d+(1===i.length?i.shift():0);bezierCurveTo(u,f,d,g,o,c)}break;case 31:for(;i.length>0;){u=o+i.shift();f=c;d=u+i.shift();g=f+i.shift();c=g+i.shift();o=d+(1===i.length?i.shift():0);bezierCurveTo(u,f,d,g,o,c);if(0===i.length)break;u=o;f=c+i.shift();d=u+i.shift();g=f+i.shift();o=d+i.shift();c=g+(1===i.length?i.shift():0);bezierCurveTo(u,f,d,g,o,c)}break;default:if(x<32)throw new r.FormatError(`unknown operator: ${x}`);if(x<247)i.push(x-139);else if(x<251)i.push(256*(x-247)+e[h++]+108);else if(x<255)i.push(256*-(x-251)-e[h++]-108);else{i.push((e[h]<<24|e[h+1]<<16|e[h+2]<<8|e[h+3])/65536);h+=4}}S&&(i.length=0)}}(e)}const c=[];class CompiledFont{constructor(e){this.constructor===CompiledFont&&(0,r.unreachable)("Cannot initialize CompiledFont.");this.fontMatrix=e;this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){const{charCode:t,glyphId:a}=lookupCmap(this.cmap,e);let r=this.compiledGlyphs[a];if(!r)try{r=this.compileGlyph(this.glyphs[a],a);this.compiledGlyphs[a]=r}catch(e){this.compiledGlyphs[a]=c;void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=a);throw e}void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=a);return r}compileGlyph(e,t){if(!e||0===e.length||14===e[0])return c;let a=this.fontMatrix;if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(t);if(e>=0&&e2*getUint16(e,t)}const i=[];let s=n(t,0);for(let a=r;a{Object.defineProperty(t,"__esModule",{value:!0});t.getMetrics=t.getFontBasicMetrics=void 0;var r=a(3);const n=(0,r.getLookupTableFactory)((function(e){e.Courier=600;e["Courier-Bold"]=600;e["Courier-BoldOblique"]=600;e["Courier-Oblique"]=600;e.Helvetica=(0,r.getLookupTableFactory)((function(e){e.space=278;e.exclam=278;e.quotedbl=355;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=667;e.quoteright=222;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=278;e.semicolon=278;e.less=584;e.equal=584;e.greater=584;e.question=556;e.at=1015;e.A=667;e.B=667;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=500;e.K=667;e.L=556;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=278;e.backslash=278;e.bracketright=278;e.asciicircum=469;e.underscore=556;e.quoteleft=222;e.a=556;e.b=556;e.c=500;e.d=556;e.e=556;e.f=278;e.g=556;e.h=556;e.i=222;e.j=222;e.k=500;e.l=222;e.m=833;e.n=556;e.o=556;e.p=556;e.q=556;e.r=333;e.s=500;e.t=278;e.u=556;e.v=500;e.w=722;e.x=500;e.y=500;e.z=500;e.braceleft=334;e.bar=260;e.braceright=334;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=191;e.quotedblleft=333;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=500;e.fl=500;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=537;e.bullet=350;e.quotesinglbase=222;e.quotedblbase=333;e.quotedblright=333;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=556;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=222;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=556;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=667;e.aacute=556;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=500;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=500;e.aring=556;e.Ncommaaccent=722;e.lacute=222;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=500;e.scedilla=500;e.iacute=278;e.lozenge=471;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=556;e.acircumflex=556;e.Amacron=667;e.rcaron=333;e.ccedilla=500;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=643;e.Umacron=722;e.uring=556;e.threesuperior=333;e.Ograve=778;e.Agrave=667;e.Abreve=667;e.multiply=584;e.uacute=556;e.Tcaron=611;e.partialdiff=476;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=500;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=260;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=333;e.omacron=556;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=222;e.tcaron=317;e.eogonek=556;e.Uogonek=722;e.Aacute=667;e.Adieresis=667;e.egrave=556;e.zacute=500;e.iogonek=222;e.Oacute=778;e.oacute=556;e.amacron=556;e.sacute=500;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=556;e.twosuperior=333;e.Odieresis=778;e.mu=556;e.igrave=278;e.ohungarumlaut=556;e.Eogonek=667;e.dcroat=556;e.threequarters=834;e.Scedilla=667;e.lcaron=299;e.Kcommaaccent=667;e.Lacute=556;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=556;e.onehalf=834;e.lessequal=549;e.ocircumflex=556;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=556;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=556;e.Ccaron=722;e.ugrave=556;e.radical=453;e.Dcaron=722;e.rcommaaccent=333;e.Ntilde=722;e.otilde=556;e.Rcommaaccent=722;e.Lcommaaccent=556;e.Atilde=667;e.Aogonek=667;e.Aring=667;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=500;e.minus=584;e.Icircumflex=278;e.ncaron=556;e.tcommaaccent=278;e.logicalnot=584;e.odieresis=556;e.udieresis=556;e.notequal=549;e.gcommaaccent=556;e.eth=556;e.zcaron=500;e.ncommaaccent=556;e.onesuperior=333;e.imacron=278;e.Euro=556}));e["Helvetica-Bold"]=(0,r.getLookupTableFactory)((function(e){e.space=278;e.exclam=333;e.quotedbl=474;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=722;e.quoteright=278;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=333;e.semicolon=333;e.less=584;e.equal=584;e.greater=584;e.question=611;e.at=975;e.A=722;e.B=722;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=556;e.K=722;e.L=611;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=584;e.underscore=556;e.quoteleft=278;e.a=556;e.b=611;e.c=556;e.d=611;e.e=556;e.f=333;e.g=611;e.h=611;e.i=278;e.j=278;e.k=556;e.l=278;e.m=889;e.n=611;e.o=611;e.p=611;e.q=611;e.r=389;e.s=556;e.t=333;e.u=611;e.v=556;e.w=778;e.x=556;e.y=556;e.z=500;e.braceleft=389;e.bar=280;e.braceright=389;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=238;e.quotedblleft=500;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=611;e.fl=611;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=556;e.bullet=350;e.quotesinglbase=278;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=611;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=278;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=611;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=722;e.aacute=556;e.Ucircumflex=722;e.yacute=556;e.scommaaccent=556;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=611;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=556;e.aring=556;e.Ncommaaccent=722;e.lacute=278;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=556;e.scedilla=556;e.iacute=278;e.lozenge=494;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=611;e.acircumflex=556;e.Amacron=722;e.rcaron=389;e.ccedilla=556;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=743;e.Umacron=722;e.uring=611;e.threesuperior=333;e.Ograve=778;e.Agrave=722;e.Abreve=722;e.multiply=584;e.uacute=611;e.Tcaron=611;e.partialdiff=494;e.ydieresis=556;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=556;e.nacute=611;e.umacron=611;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=280;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=389;e.omacron=611;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=278;e.tcaron=389;e.eogonek=556;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=556;e.zacute=500;e.iogonek=278;e.Oacute=778;e.oacute=611;e.amacron=556;e.sacute=556;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=611;e.twosuperior=333;e.Odieresis=778;e.mu=611;e.igrave=278;e.ohungarumlaut=611;e.Eogonek=667;e.dcroat=611;e.threequarters=834;e.Scedilla=667;e.lcaron=400;e.Kcommaaccent=722;e.Lacute=611;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=611;e.onehalf=834;e.lessequal=549;e.ocircumflex=611;e.ntilde=611;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=611;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=611;e.Ccaron=722;e.ugrave=611;e.radical=549;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=722;e.otilde=611;e.Rcommaaccent=722;e.Lcommaaccent=611;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=556;e.minus=584;e.Icircumflex=278;e.ncaron=611;e.tcommaaccent=333;e.logicalnot=584;e.odieresis=611;e.udieresis=611;e.notequal=549;e.gcommaaccent=611;e.eth=611;e.zcaron=500;e.ncommaaccent=611;e.onesuperior=333;e.imacron=278;e.Euro=556}));e["Helvetica-BoldOblique"]=(0,r.getLookupTableFactory)((function(e){e.space=278;e.exclam=333;e.quotedbl=474;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=722;e.quoteright=278;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=333;e.semicolon=333;e.less=584;e.equal=584;e.greater=584;e.question=611;e.at=975;e.A=722;e.B=722;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=556;e.K=722;e.L=611;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=584;e.underscore=556;e.quoteleft=278;e.a=556;e.b=611;e.c=556;e.d=611;e.e=556;e.f=333;e.g=611;e.h=611;e.i=278;e.j=278;e.k=556;e.l=278;e.m=889;e.n=611;e.o=611;e.p=611;e.q=611;e.r=389;e.s=556;e.t=333;e.u=611;e.v=556;e.w=778;e.x=556;e.y=556;e.z=500;e.braceleft=389;e.bar=280;e.braceright=389;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=238;e.quotedblleft=500;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=611;e.fl=611;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=556;e.bullet=350;e.quotesinglbase=278;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=611;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=278;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=611;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=722;e.aacute=556;e.Ucircumflex=722;e.yacute=556;e.scommaaccent=556;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=611;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=556;e.aring=556;e.Ncommaaccent=722;e.lacute=278;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=556;e.scedilla=556;e.iacute=278;e.lozenge=494;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=611;e.acircumflex=556;e.Amacron=722;e.rcaron=389;e.ccedilla=556;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=743;e.Umacron=722;e.uring=611;e.threesuperior=333;e.Ograve=778;e.Agrave=722;e.Abreve=722;e.multiply=584;e.uacute=611;e.Tcaron=611;e.partialdiff=494;e.ydieresis=556;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=556;e.nacute=611;e.umacron=611;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=280;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=389;e.omacron=611;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=278;e.tcaron=389;e.eogonek=556;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=556;e.zacute=500;e.iogonek=278;e.Oacute=778;e.oacute=611;e.amacron=556;e.sacute=556;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=611;e.twosuperior=333;e.Odieresis=778;e.mu=611;e.igrave=278;e.ohungarumlaut=611;e.Eogonek=667;e.dcroat=611;e.threequarters=834;e.Scedilla=667;e.lcaron=400;e.Kcommaaccent=722;e.Lacute=611;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=611;e.onehalf=834;e.lessequal=549;e.ocircumflex=611;e.ntilde=611;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=611;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=611;e.Ccaron=722;e.ugrave=611;e.radical=549;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=722;e.otilde=611;e.Rcommaaccent=722;e.Lcommaaccent=611;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=556;e.minus=584;e.Icircumflex=278;e.ncaron=611;e.tcommaaccent=333;e.logicalnot=584;e.odieresis=611;e.udieresis=611;e.notequal=549;e.gcommaaccent=611;e.eth=611;e.zcaron=500;e.ncommaaccent=611;e.onesuperior=333;e.imacron=278;e.Euro=556}));e["Helvetica-Oblique"]=(0,r.getLookupTableFactory)((function(e){e.space=278;e.exclam=278;e.quotedbl=355;e.numbersign=556;e.dollar=556;e.percent=889;e.ampersand=667;e.quoteright=222;e.parenleft=333;e.parenright=333;e.asterisk=389;e.plus=584;e.comma=278;e.hyphen=333;e.period=278;e.slash=278;e.zero=556;e.one=556;e.two=556;e.three=556;e.four=556;e.five=556;e.six=556;e.seven=556;e.eight=556;e.nine=556;e.colon=278;e.semicolon=278;e.less=584;e.equal=584;e.greater=584;e.question=556;e.at=1015;e.A=667;e.B=667;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=722;e.I=278;e.J=500;e.K=667;e.L=556;e.M=833;e.N=722;e.O=778;e.P=667;e.Q=778;e.R=722;e.S=667;e.T=611;e.U=722;e.V=667;e.W=944;e.X=667;e.Y=667;e.Z=611;e.bracketleft=278;e.backslash=278;e.bracketright=278;e.asciicircum=469;e.underscore=556;e.quoteleft=222;e.a=556;e.b=556;e.c=500;e.d=556;e.e=556;e.f=278;e.g=556;e.h=556;e.i=222;e.j=222;e.k=500;e.l=222;e.m=833;e.n=556;e.o=556;e.p=556;e.q=556;e.r=333;e.s=500;e.t=278;e.u=556;e.v=500;e.w=722;e.x=500;e.y=500;e.z=500;e.braceleft=334;e.bar=260;e.braceright=334;e.asciitilde=584;e.exclamdown=333;e.cent=556;e.sterling=556;e.fraction=167;e.yen=556;e.florin=556;e.section=556;e.currency=556;e.quotesingle=191;e.quotedblleft=333;e.guillemotleft=556;e.guilsinglleft=333;e.guilsinglright=333;e.fi=500;e.fl=500;e.endash=556;e.dagger=556;e.daggerdbl=556;e.periodcentered=278;e.paragraph=537;e.bullet=350;e.quotesinglbase=222;e.quotedblbase=333;e.quotedblright=333;e.guillemotright=556;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=611;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=370;e.Lslash=556;e.Oslash=778;e.OE=1e3;e.ordmasculine=365;e.ae=889;e.dotlessi=278;e.lslash=222;e.oslash=611;e.oe=944;e.germandbls=611;e.Idieresis=278;e.eacute=556;e.abreve=556;e.uhungarumlaut=556;e.ecaron=556;e.Ydieresis=667;e.divide=584;e.Yacute=667;e.Acircumflex=667;e.aacute=556;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=500;e.ecircumflex=556;e.Uring=722;e.Udieresis=722;e.aogonek=556;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=737;e.Emacron=667;e.ccaron=500;e.aring=556;e.Ncommaaccent=722;e.lacute=222;e.agrave=556;e.Tcommaaccent=611;e.Cacute=722;e.atilde=556;e.Edotaccent=667;e.scaron=500;e.scedilla=500;e.iacute=278;e.lozenge=471;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=556;e.acircumflex=556;e.Amacron=667;e.rcaron=333;e.ccedilla=500;e.Zdotaccent=611;e.Thorn=667;e.Omacron=778;e.Racute=722;e.Sacute=667;e.dcaron=643;e.Umacron=722;e.uring=556;e.threesuperior=333;e.Ograve=778;e.Agrave=667;e.Abreve=667;e.multiply=584;e.uacute=556;e.Tcaron=611;e.partialdiff=476;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=556;e.edieresis=556;e.cacute=500;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=278;e.plusminus=584;e.brokenbar=260;e.registered=737;e.Gbreve=778;e.Idotaccent=278;e.summation=600;e.Egrave=667;e.racute=333;e.omacron=556;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=222;e.tcaron=317;e.eogonek=556;e.Uogonek=722;e.Aacute=667;e.Adieresis=667;e.egrave=556;e.zacute=500;e.iogonek=222;e.Oacute=778;e.oacute=556;e.amacron=556;e.sacute=500;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=556;e.twosuperior=333;e.Odieresis=778;e.mu=556;e.igrave=278;e.ohungarumlaut=556;e.Eogonek=667;e.dcroat=556;e.threequarters=834;e.Scedilla=667;e.lcaron=299;e.Kcommaaccent=667;e.Lacute=556;e.trademark=1e3;e.edotaccent=556;e.Igrave=278;e.Imacron=278;e.Lcaron=556;e.onehalf=834;e.lessequal=549;e.ocircumflex=556;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=556;e.gbreve=556;e.onequarter=834;e.Scaron=667;e.Scommaaccent=667;e.Ohungarumlaut=778;e.degree=400;e.ograve=556;e.Ccaron=722;e.ugrave=556;e.radical=453;e.Dcaron=722;e.rcommaaccent=333;e.Ntilde=722;e.otilde=556;e.Rcommaaccent=722;e.Lcommaaccent=556;e.Atilde=667;e.Aogonek=667;e.Aring=667;e.Otilde=778;e.zdotaccent=500;e.Ecaron=667;e.Iogonek=278;e.kcommaaccent=500;e.minus=584;e.Icircumflex=278;e.ncaron=556;e.tcommaaccent=278;e.logicalnot=584;e.odieresis=556;e.udieresis=556;e.notequal=549;e.gcommaaccent=556;e.eth=556;e.zcaron=500;e.ncommaaccent=556;e.onesuperior=333;e.imacron=278;e.Euro=556}));e.Symbol=(0,r.getLookupTableFactory)((function(e){e.space=250;e.exclam=333;e.universal=713;e.numbersign=500;e.existential=549;e.percent=833;e.ampersand=778;e.suchthat=439;e.parenleft=333;e.parenright=333;e.asteriskmath=500;e.plus=549;e.comma=250;e.minus=549;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=278;e.semicolon=278;e.less=549;e.equal=549;e.greater=549;e.question=444;e.congruent=549;e.Alpha=722;e.Beta=667;e.Chi=722;e.Delta=612;e.Epsilon=611;e.Phi=763;e.Gamma=603;e.Eta=722;e.Iota=333;e.theta1=631;e.Kappa=722;e.Lambda=686;e.Mu=889;e.Nu=722;e.Omicron=722;e.Pi=768;e.Theta=741;e.Rho=556;e.Sigma=592;e.Tau=611;e.Upsilon=690;e.sigma1=439;e.Omega=768;e.Xi=645;e.Psi=795;e.Zeta=611;e.bracketleft=333;e.therefore=863;e.bracketright=333;e.perpendicular=658;e.underscore=500;e.radicalex=500;e.alpha=631;e.beta=549;e.chi=549;e.delta=494;e.epsilon=439;e.phi=521;e.gamma=411;e.eta=603;e.iota=329;e.phi1=603;e.kappa=549;e.lambda=549;e.mu=576;e.nu=521;e.omicron=549;e.pi=549;e.theta=521;e.rho=549;e.sigma=603;e.tau=439;e.upsilon=576;e.omega1=713;e.omega=686;e.xi=493;e.psi=686;e.zeta=494;e.braceleft=480;e.bar=200;e.braceright=480;e.similar=549;e.Euro=750;e.Upsilon1=620;e.minute=247;e.lessequal=549;e.fraction=167;e.infinity=713;e.florin=500;e.club=753;e.diamond=753;e.heart=753;e.spade=753;e.arrowboth=1042;e.arrowleft=987;e.arrowup=603;e.arrowright=987;e.arrowdown=603;e.degree=400;e.plusminus=549;e.second=411;e.greaterequal=549;e.multiply=549;e.proportional=713;e.partialdiff=494;e.bullet=460;e.divide=549;e.notequal=549;e.equivalence=549;e.approxequal=549;e.ellipsis=1e3;e.arrowvertex=603;e.arrowhorizex=1e3;e.carriagereturn=658;e.aleph=823;e.Ifraktur=686;e.Rfraktur=795;e.weierstrass=987;e.circlemultiply=768;e.circleplus=768;e.emptyset=823;e.intersection=768;e.union=768;e.propersuperset=713;e.reflexsuperset=713;e.notsubset=713;e.propersubset=713;e.reflexsubset=713;e.element=713;e.notelement=713;e.angle=768;e.gradient=713;e.registerserif=790;e.copyrightserif=790;e.trademarkserif=890;e.product=823;e.radical=549;e.dotmath=250;e.logicalnot=713;e.logicaland=603;e.logicalor=603;e.arrowdblboth=1042;e.arrowdblleft=987;e.arrowdblup=603;e.arrowdblright=987;e.arrowdbldown=603;e.lozenge=494;e.angleleft=329;e.registersans=790;e.copyrightsans=790;e.trademarksans=786;e.summation=713;e.parenlefttp=384;e.parenleftex=384;e.parenleftbt=384;e.bracketlefttp=384;e.bracketleftex=384;e.bracketleftbt=384;e.bracelefttp=494;e.braceleftmid=494;e.braceleftbt=494;e.braceex=494;e.angleright=329;e.integral=274;e.integraltp=686;e.integralex=686;e.integralbt=686;e.parenrighttp=384;e.parenrightex=384;e.parenrightbt=384;e.bracketrighttp=384;e.bracketrightex=384;e.bracketrightbt=384;e.bracerighttp=494;e.bracerightmid=494;e.bracerightbt=494;e.apple=790}));e["Times-Roman"]=(0,r.getLookupTableFactory)((function(e){e.space=250;e.exclam=333;e.quotedbl=408;e.numbersign=500;e.dollar=500;e.percent=833;e.ampersand=778;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=564;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=278;e.semicolon=278;e.less=564;e.equal=564;e.greater=564;e.question=444;e.at=921;e.A=722;e.B=667;e.C=667;e.D=722;e.E=611;e.F=556;e.G=722;e.H=722;e.I=333;e.J=389;e.K=722;e.L=611;e.M=889;e.N=722;e.O=722;e.P=556;e.Q=722;e.R=667;e.S=556;e.T=611;e.U=722;e.V=722;e.W=944;e.X=722;e.Y=722;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=469;e.underscore=500;e.quoteleft=333;e.a=444;e.b=500;e.c=444;e.d=500;e.e=444;e.f=333;e.g=500;e.h=500;e.i=278;e.j=278;e.k=500;e.l=278;e.m=778;e.n=500;e.o=500;e.p=500;e.q=500;e.r=333;e.s=389;e.t=278;e.u=500;e.v=500;e.w=722;e.x=500;e.y=500;e.z=444;e.braceleft=480;e.bar=200;e.braceright=480;e.asciitilde=541;e.exclamdown=333;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=180;e.quotedblleft=444;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=556;e.fl=556;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=453;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=444;e.quotedblright=444;e.guillemotright=500;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=444;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=889;e.ordfeminine=276;e.Lslash=611;e.Oslash=722;e.OE=889;e.ordmasculine=310;e.ae=667;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=722;e.germandbls=500;e.Idieresis=333;e.eacute=444;e.abreve=444;e.uhungarumlaut=500;e.ecaron=444;e.Ydieresis=722;e.divide=564;e.Yacute=722;e.Acircumflex=722;e.aacute=444;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=444;e.Uacute=722;e.uogonek=500;e.Edieresis=611;e.Dcroat=722;e.commaaccent=250;e.copyright=760;e.Emacron=611;e.ccaron=444;e.aring=444;e.Ncommaaccent=722;e.lacute=278;e.agrave=444;e.Tcommaaccent=611;e.Cacute=667;e.atilde=444;e.Edotaccent=611;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=471;e.Rcaron=667;e.Gcommaaccent=722;e.ucircumflex=500;e.acircumflex=444;e.Amacron=722;e.rcaron=333;e.ccedilla=444;e.Zdotaccent=611;e.Thorn=556;e.Omacron=722;e.Racute=667;e.Sacute=556;e.dcaron=588;e.Umacron=722;e.uring=500;e.threesuperior=300;e.Ograve=722;e.Agrave=722;e.Abreve=722;e.multiply=564;e.uacute=500;e.Tcaron=611;e.partialdiff=476;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=611;e.adieresis=444;e.edieresis=444;e.cacute=444;e.nacute=500;e.umacron=500;e.Ncaron=722;e.Iacute=333;e.plusminus=564;e.brokenbar=200;e.registered=760;e.Gbreve=722;e.Idotaccent=333;e.summation=600;e.Egrave=611;e.racute=333;e.omacron=500;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=667;e.lcommaaccent=278;e.tcaron=326;e.eogonek=444;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=444;e.zacute=444;e.iogonek=278;e.Oacute=722;e.oacute=500;e.amacron=444;e.sacute=389;e.idieresis=278;e.Ocircumflex=722;e.Ugrave=722;e.Delta=612;e.thorn=500;e.twosuperior=300;e.Odieresis=722;e.mu=500;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=611;e.dcroat=500;e.threequarters=750;e.Scedilla=556;e.lcaron=344;e.Kcommaaccent=722;e.Lacute=611;e.trademark=980;e.edotaccent=444;e.Igrave=333;e.Imacron=333;e.Lcaron=611;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=500;e.Uhungarumlaut=722;e.Eacute=611;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=556;e.Scommaaccent=556;e.Ohungarumlaut=722;e.degree=400;e.ograve=500;e.Ccaron=667;e.ugrave=500;e.radical=453;e.Dcaron=722;e.rcommaaccent=333;e.Ntilde=722;e.otilde=500;e.Rcommaaccent=667;e.Lcommaaccent=611;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=722;e.zdotaccent=444;e.Ecaron=611;e.Iogonek=333;e.kcommaaccent=500;e.minus=564;e.Icircumflex=333;e.ncaron=500;e.tcommaaccent=278;e.logicalnot=564;e.odieresis=500;e.udieresis=500;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=444;e.ncommaaccent=500;e.onesuperior=300;e.imacron=278;e.Euro=500}));e["Times-Bold"]=(0,r.getLookupTableFactory)((function(e){e.space=250;e.exclam=333;e.quotedbl=555;e.numbersign=500;e.dollar=500;e.percent=1e3;e.ampersand=833;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=570;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=333;e.semicolon=333;e.less=570;e.equal=570;e.greater=570;e.question=500;e.at=930;e.A=722;e.B=667;e.C=722;e.D=722;e.E=667;e.F=611;e.G=778;e.H=778;e.I=389;e.J=500;e.K=778;e.L=667;e.M=944;e.N=722;e.O=778;e.P=611;e.Q=778;e.R=722;e.S=556;e.T=667;e.U=722;e.V=722;e.W=1e3;e.X=722;e.Y=722;e.Z=667;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=581;e.underscore=500;e.quoteleft=333;e.a=500;e.b=556;e.c=444;e.d=556;e.e=444;e.f=333;e.g=500;e.h=556;e.i=278;e.j=333;e.k=556;e.l=278;e.m=833;e.n=556;e.o=500;e.p=556;e.q=556;e.r=444;e.s=389;e.t=333;e.u=556;e.v=500;e.w=722;e.x=500;e.y=500;e.z=444;e.braceleft=394;e.bar=220;e.braceright=394;e.asciitilde=520;e.exclamdown=333;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=278;e.quotedblleft=500;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=556;e.fl=556;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=540;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=500;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=500;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=1e3;e.ordfeminine=300;e.Lslash=667;e.Oslash=778;e.OE=1e3;e.ordmasculine=330;e.ae=722;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=722;e.germandbls=556;e.Idieresis=389;e.eacute=444;e.abreve=500;e.uhungarumlaut=556;e.ecaron=444;e.Ydieresis=722;e.divide=570;e.Yacute=722;e.Acircumflex=722;e.aacute=500;e.Ucircumflex=722;e.yacute=500;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=500;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=747;e.Emacron=667;e.ccaron=444;e.aring=500;e.Ncommaaccent=722;e.lacute=278;e.agrave=500;e.Tcommaaccent=667;e.Cacute=722;e.atilde=500;e.Edotaccent=667;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=494;e.Rcaron=722;e.Gcommaaccent=778;e.ucircumflex=556;e.acircumflex=500;e.Amacron=722;e.rcaron=444;e.ccedilla=444;e.Zdotaccent=667;e.Thorn=611;e.Omacron=778;e.Racute=722;e.Sacute=556;e.dcaron=672;e.Umacron=722;e.uring=556;e.threesuperior=300;e.Ograve=778;e.Agrave=722;e.Abreve=722;e.multiply=570;e.uacute=556;e.Tcaron=667;e.partialdiff=494;e.ydieresis=500;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=500;e.edieresis=444;e.cacute=444;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=389;e.plusminus=570;e.brokenbar=220;e.registered=747;e.Gbreve=778;e.Idotaccent=389;e.summation=600;e.Egrave=667;e.racute=444;e.omacron=500;e.Zacute=667;e.Zcaron=667;e.greaterequal=549;e.Eth=722;e.Ccedilla=722;e.lcommaaccent=278;e.tcaron=416;e.eogonek=444;e.Uogonek=722;e.Aacute=722;e.Adieresis=722;e.egrave=444;e.zacute=444;e.iogonek=278;e.Oacute=778;e.oacute=500;e.amacron=500;e.sacute=389;e.idieresis=278;e.Ocircumflex=778;e.Ugrave=722;e.Delta=612;e.thorn=556;e.twosuperior=300;e.Odieresis=778;e.mu=556;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=667;e.dcroat=556;e.threequarters=750;e.Scedilla=556;e.lcaron=394;e.Kcommaaccent=778;e.Lacute=667;e.trademark=1e3;e.edotaccent=444;e.Igrave=389;e.Imacron=389;e.Lcaron=667;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=556;e.Scommaaccent=556;e.Ohungarumlaut=778;e.degree=400;e.ograve=500;e.Ccaron=722;e.ugrave=556;e.radical=549;e.Dcaron=722;e.rcommaaccent=444;e.Ntilde=722;e.otilde=500;e.Rcommaaccent=722;e.Lcommaaccent=667;e.Atilde=722;e.Aogonek=722;e.Aring=722;e.Otilde=778;e.zdotaccent=444;e.Ecaron=667;e.Iogonek=389;e.kcommaaccent=556;e.minus=570;e.Icircumflex=389;e.ncaron=556;e.tcommaaccent=333;e.logicalnot=570;e.odieresis=500;e.udieresis=556;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=444;e.ncommaaccent=556;e.onesuperior=300;e.imacron=278;e.Euro=500}));e["Times-BoldItalic"]=(0,r.getLookupTableFactory)((function(e){e.space=250;e.exclam=389;e.quotedbl=555;e.numbersign=500;e.dollar=500;e.percent=833;e.ampersand=778;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=570;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=333;e.semicolon=333;e.less=570;e.equal=570;e.greater=570;e.question=500;e.at=832;e.A=667;e.B=667;e.C=667;e.D=722;e.E=667;e.F=667;e.G=722;e.H=778;e.I=389;e.J=500;e.K=667;e.L=611;e.M=889;e.N=722;e.O=722;e.P=611;e.Q=722;e.R=667;e.S=556;e.T=611;e.U=722;e.V=667;e.W=889;e.X=667;e.Y=611;e.Z=611;e.bracketleft=333;e.backslash=278;e.bracketright=333;e.asciicircum=570;e.underscore=500;e.quoteleft=333;e.a=500;e.b=500;e.c=444;e.d=500;e.e=444;e.f=333;e.g=500;e.h=556;e.i=278;e.j=278;e.k=500;e.l=278;e.m=778;e.n=556;e.o=500;e.p=500;e.q=500;e.r=389;e.s=389;e.t=278;e.u=556;e.v=444;e.w=667;e.x=500;e.y=444;e.z=389;e.braceleft=348;e.bar=220;e.braceright=348;e.asciitilde=570;e.exclamdown=389;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=278;e.quotedblleft=500;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=556;e.fl=556;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=500;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=500;e.quotedblright=500;e.guillemotright=500;e.ellipsis=1e3;e.perthousand=1e3;e.questiondown=500;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=1e3;e.AE=944;e.ordfeminine=266;e.Lslash=611;e.Oslash=722;e.OE=944;e.ordmasculine=300;e.ae=722;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=722;e.germandbls=500;e.Idieresis=389;e.eacute=444;e.abreve=500;e.uhungarumlaut=556;e.ecaron=444;e.Ydieresis=611;e.divide=570;e.Yacute=611;e.Acircumflex=667;e.aacute=500;e.Ucircumflex=722;e.yacute=444;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=500;e.Uacute=722;e.uogonek=556;e.Edieresis=667;e.Dcroat=722;e.commaaccent=250;e.copyright=747;e.Emacron=667;e.ccaron=444;e.aring=500;e.Ncommaaccent=722;e.lacute=278;e.agrave=500;e.Tcommaaccent=611;e.Cacute=667;e.atilde=500;e.Edotaccent=667;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=494;e.Rcaron=667;e.Gcommaaccent=722;e.ucircumflex=556;e.acircumflex=500;e.Amacron=667;e.rcaron=389;e.ccedilla=444;e.Zdotaccent=611;e.Thorn=611;e.Omacron=722;e.Racute=667;e.Sacute=556;e.dcaron=608;e.Umacron=722;e.uring=556;e.threesuperior=300;e.Ograve=722;e.Agrave=667;e.Abreve=667;e.multiply=570;e.uacute=556;e.Tcaron=611;e.partialdiff=494;e.ydieresis=444;e.Nacute=722;e.icircumflex=278;e.Ecircumflex=667;e.adieresis=500;e.edieresis=444;e.cacute=444;e.nacute=556;e.umacron=556;e.Ncaron=722;e.Iacute=389;e.plusminus=570;e.brokenbar=220;e.registered=747;e.Gbreve=722;e.Idotaccent=389;e.summation=600;e.Egrave=667;e.racute=389;e.omacron=500;e.Zacute=611;e.Zcaron=611;e.greaterequal=549;e.Eth=722;e.Ccedilla=667;e.lcommaaccent=278;e.tcaron=366;e.eogonek=444;e.Uogonek=722;e.Aacute=667;e.Adieresis=667;e.egrave=444;e.zacute=389;e.iogonek=278;e.Oacute=722;e.oacute=500;e.amacron=500;e.sacute=389;e.idieresis=278;e.Ocircumflex=722;e.Ugrave=722;e.Delta=612;e.thorn=500;e.twosuperior=300;e.Odieresis=722;e.mu=576;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=667;e.dcroat=500;e.threequarters=750;e.Scedilla=556;e.lcaron=382;e.Kcommaaccent=667;e.Lacute=611;e.trademark=1e3;e.edotaccent=444;e.Igrave=389;e.Imacron=389;e.Lcaron=611;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=556;e.Uhungarumlaut=722;e.Eacute=667;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=556;e.Scommaaccent=556;e.Ohungarumlaut=722;e.degree=400;e.ograve=500;e.Ccaron=667;e.ugrave=556;e.radical=549;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=722;e.otilde=500;e.Rcommaaccent=667;e.Lcommaaccent=611;e.Atilde=667;e.Aogonek=667;e.Aring=667;e.Otilde=722;e.zdotaccent=389;e.Ecaron=667;e.Iogonek=389;e.kcommaaccent=500;e.minus=606;e.Icircumflex=389;e.ncaron=556;e.tcommaaccent=278;e.logicalnot=606;e.odieresis=500;e.udieresis=556;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=389;e.ncommaaccent=556;e.onesuperior=300;e.imacron=278;e.Euro=500}));e["Times-Italic"]=(0,r.getLookupTableFactory)((function(e){e.space=250;e.exclam=333;e.quotedbl=420;e.numbersign=500;e.dollar=500;e.percent=833;e.ampersand=778;e.quoteright=333;e.parenleft=333;e.parenright=333;e.asterisk=500;e.plus=675;e.comma=250;e.hyphen=333;e.period=250;e.slash=278;e.zero=500;e.one=500;e.two=500;e.three=500;e.four=500;e.five=500;e.six=500;e.seven=500;e.eight=500;e.nine=500;e.colon=333;e.semicolon=333;e.less=675;e.equal=675;e.greater=675;e.question=500;e.at=920;e.A=611;e.B=611;e.C=667;e.D=722;e.E=611;e.F=611;e.G=722;e.H=722;e.I=333;e.J=444;e.K=667;e.L=556;e.M=833;e.N=667;e.O=722;e.P=611;e.Q=722;e.R=611;e.S=500;e.T=556;e.U=722;e.V=611;e.W=833;e.X=611;e.Y=556;e.Z=556;e.bracketleft=389;e.backslash=278;e.bracketright=389;e.asciicircum=422;e.underscore=500;e.quoteleft=333;e.a=500;e.b=500;e.c=444;e.d=500;e.e=444;e.f=278;e.g=500;e.h=500;e.i=278;e.j=278;e.k=444;e.l=278;e.m=722;e.n=500;e.o=500;e.p=500;e.q=500;e.r=389;e.s=389;e.t=278;e.u=500;e.v=444;e.w=667;e.x=444;e.y=444;e.z=389;e.braceleft=400;e.bar=275;e.braceright=400;e.asciitilde=541;e.exclamdown=389;e.cent=500;e.sterling=500;e.fraction=167;e.yen=500;e.florin=500;e.section=500;e.currency=500;e.quotesingle=214;e.quotedblleft=556;e.guillemotleft=500;e.guilsinglleft=333;e.guilsinglright=333;e.fi=500;e.fl=500;e.endash=500;e.dagger=500;e.daggerdbl=500;e.periodcentered=250;e.paragraph=523;e.bullet=350;e.quotesinglbase=333;e.quotedblbase=556;e.quotedblright=556;e.guillemotright=500;e.ellipsis=889;e.perthousand=1e3;e.questiondown=500;e.grave=333;e.acute=333;e.circumflex=333;e.tilde=333;e.macron=333;e.breve=333;e.dotaccent=333;e.dieresis=333;e.ring=333;e.cedilla=333;e.hungarumlaut=333;e.ogonek=333;e.caron=333;e.emdash=889;e.AE=889;e.ordfeminine=276;e.Lslash=556;e.Oslash=722;e.OE=944;e.ordmasculine=310;e.ae=667;e.dotlessi=278;e.lslash=278;e.oslash=500;e.oe=667;e.germandbls=500;e.Idieresis=333;e.eacute=444;e.abreve=500;e.uhungarumlaut=500;e.ecaron=444;e.Ydieresis=556;e.divide=675;e.Yacute=556;e.Acircumflex=611;e.aacute=500;e.Ucircumflex=722;e.yacute=444;e.scommaaccent=389;e.ecircumflex=444;e.Uring=722;e.Udieresis=722;e.aogonek=500;e.Uacute=722;e.uogonek=500;e.Edieresis=611;e.Dcroat=722;e.commaaccent=250;e.copyright=760;e.Emacron=611;e.ccaron=444;e.aring=500;e.Ncommaaccent=667;e.lacute=278;e.agrave=500;e.Tcommaaccent=556;e.Cacute=667;e.atilde=500;e.Edotaccent=611;e.scaron=389;e.scedilla=389;e.iacute=278;e.lozenge=471;e.Rcaron=611;e.Gcommaaccent=722;e.ucircumflex=500;e.acircumflex=500;e.Amacron=611;e.rcaron=389;e.ccedilla=444;e.Zdotaccent=556;e.Thorn=611;e.Omacron=722;e.Racute=611;e.Sacute=500;e.dcaron=544;e.Umacron=722;e.uring=500;e.threesuperior=300;e.Ograve=722;e.Agrave=611;e.Abreve=611;e.multiply=675;e.uacute=500;e.Tcaron=556;e.partialdiff=476;e.ydieresis=444;e.Nacute=667;e.icircumflex=278;e.Ecircumflex=611;e.adieresis=500;e.edieresis=444;e.cacute=444;e.nacute=500;e.umacron=500;e.Ncaron=667;e.Iacute=333;e.plusminus=675;e.brokenbar=275;e.registered=760;e.Gbreve=722;e.Idotaccent=333;e.summation=600;e.Egrave=611;e.racute=389;e.omacron=500;e.Zacute=556;e.Zcaron=556;e.greaterequal=549;e.Eth=722;e.Ccedilla=667;e.lcommaaccent=278;e.tcaron=300;e.eogonek=444;e.Uogonek=722;e.Aacute=611;e.Adieresis=611;e.egrave=444;e.zacute=389;e.iogonek=278;e.Oacute=722;e.oacute=500;e.amacron=500;e.sacute=389;e.idieresis=278;e.Ocircumflex=722;e.Ugrave=722;e.Delta=612;e.thorn=500;e.twosuperior=300;e.Odieresis=722;e.mu=500;e.igrave=278;e.ohungarumlaut=500;e.Eogonek=611;e.dcroat=500;e.threequarters=750;e.Scedilla=500;e.lcaron=300;e.Kcommaaccent=667;e.Lacute=556;e.trademark=980;e.edotaccent=444;e.Igrave=333;e.Imacron=333;e.Lcaron=611;e.onehalf=750;e.lessequal=549;e.ocircumflex=500;e.ntilde=500;e.Uhungarumlaut=722;e.Eacute=611;e.emacron=444;e.gbreve=500;e.onequarter=750;e.Scaron=500;e.Scommaaccent=500;e.Ohungarumlaut=722;e.degree=400;e.ograve=500;e.Ccaron=667;e.ugrave=500;e.radical=453;e.Dcaron=722;e.rcommaaccent=389;e.Ntilde=667;e.otilde=500;e.Rcommaaccent=611;e.Lcommaaccent=556;e.Atilde=611;e.Aogonek=611;e.Aring=611;e.Otilde=722;e.zdotaccent=389;e.Ecaron=611;e.Iogonek=333;e.kcommaaccent=444;e.minus=675;e.Icircumflex=333;e.ncaron=500;e.tcommaaccent=278;e.logicalnot=675;e.odieresis=500;e.udieresis=500;e.notequal=549;e.gcommaaccent=500;e.eth=500;e.zcaron=389;e.ncommaaccent=500;e.onesuperior=300;e.imacron=278;e.Euro=500}));e.ZapfDingbats=(0,r.getLookupTableFactory)((function(e){e.space=278;e.a1=974;e.a2=961;e.a202=974;e.a3=980;e.a4=719;e.a5=789;e.a119=790;e.a118=791;e.a117=690;e.a11=960;e.a12=939;e.a13=549;e.a14=855;e.a15=911;e.a16=933;e.a105=911;e.a17=945;e.a18=974;e.a19=755;e.a20=846;e.a21=762;e.a22=761;e.a23=571;e.a24=677;e.a25=763;e.a26=760;e.a27=759;e.a28=754;e.a6=494;e.a7=552;e.a8=537;e.a9=577;e.a10=692;e.a29=786;e.a30=788;e.a31=788;e.a32=790;e.a33=793;e.a34=794;e.a35=816;e.a36=823;e.a37=789;e.a38=841;e.a39=823;e.a40=833;e.a41=816;e.a42=831;e.a43=923;e.a44=744;e.a45=723;e.a46=749;e.a47=790;e.a48=792;e.a49=695;e.a50=776;e.a51=768;e.a52=792;e.a53=759;e.a54=707;e.a55=708;e.a56=682;e.a57=701;e.a58=826;e.a59=815;e.a60=789;e.a61=789;e.a62=707;e.a63=687;e.a64=696;e.a65=689;e.a66=786;e.a67=787;e.a68=713;e.a69=791;e.a70=785;e.a71=791;e.a72=873;e.a73=761;e.a74=762;e.a203=762;e.a75=759;e.a204=759;e.a76=892;e.a77=892;e.a78=788;e.a79=784;e.a81=438;e.a82=138;e.a83=277;e.a84=415;e.a97=392;e.a98=392;e.a99=668;e.a100=668;e.a89=390;e.a90=390;e.a93=317;e.a94=317;e.a91=276;e.a92=276;e.a205=509;e.a85=509;e.a206=410;e.a86=410;e.a87=234;e.a88=234;e.a95=334;e.a96=334;e.a101=732;e.a102=544;e.a103=544;e.a104=910;e.a106=667;e.a107=760;e.a108=760;e.a112=776;e.a111=595;e.a110=694;e.a109=626;e.a120=788;e.a121=788;e.a122=788;e.a123=788;e.a124=788;e.a125=788;e.a126=788;e.a127=788;e.a128=788;e.a129=788;e.a130=788;e.a131=788;e.a132=788;e.a133=788;e.a134=788;e.a135=788;e.a136=788;e.a137=788;e.a138=788;e.a139=788;e.a140=788;e.a141=788;e.a142=788;e.a143=788;e.a144=788;e.a145=788;e.a146=788;e.a147=788;e.a148=788;e.a149=788;e.a150=788;e.a151=788;e.a152=788;e.a153=788;e.a154=788;e.a155=788;e.a156=788;e.a157=788;e.a158=788;e.a159=788;e.a160=894;e.a161=838;e.a163=1016;e.a164=458;e.a196=748;e.a165=924;e.a192=748;e.a166=918;e.a167=927;e.a168=928;e.a169=928;e.a170=834;e.a171=873;e.a172=828;e.a173=924;e.a162=924;e.a174=917;e.a175=930;e.a176=931;e.a177=463;e.a178=883;e.a179=836;e.a193=836;e.a180=867;e.a199=867;e.a181=696;e.a200=696;e.a182=874;e.a201=874;e.a183=760;e.a184=946;e.a197=771;e.a185=865;e.a194=771;e.a198=888;e.a186=967;e.a195=888;e.a187=831;e.a188=873;e.a189=927;e.a190=970;e.a191=918}))}));t.getMetrics=n;const i=(0,r.getLookupTableFactory)((function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426};e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439};e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523};e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532};e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523};e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532};e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450};e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461};e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441};e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462};e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN};e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));t.getFontBasicMetrics=i},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.GlyfTable=void 0;t.GlyfTable=class GlyfTable{constructor({glyfTable:e,isGlyphLocationsLong:t,locaTable:a,numGlyphs:r}){this.glyphs=[];const n=new DataView(a.buffer,a.byteOffset,a.byteLength),i=new DataView(e.buffer,e.byteOffset,e.byteLength),s=t?4:2;let o=t?n.getUint32(0):2*n.getUint16(0),c=0;for(let e=0;ee+(t.getSize()+3&-4)),0)}write(){const e=this.getSize(),t=new DataView(new ArrayBuffer(e)),a=e>131070,r=a?4:2,n=new DataView(new ArrayBuffer((this.glyphs.length+1)*r));a?n.setUint32(0,0):n.setUint16(0,0);let i=0,s=0;for(const e of this.glyphs){i+=e.write(i,t);i=i+3&-4;s+=r;a?n.setUint32(s,i):n.setUint16(s,i>>1)}return{isLocationLong:a,loca:new Uint8Array(n.buffer),glyf:new Uint8Array(t.buffer)}}scale(e){for(let t=0,a=this.glyphs.length;te+t.getSize()),0);return this.header.getSize()+e}write(e,t){if(!this.header)return 0;const a=e;e+=this.header.write(e,t);if(this.simple)e+=this.simple.write(e,t);else for(const a of this.composites)e+=a.write(e,t);return e-a}scale(e){if(!this.header)return;const t=(this.header.xMin+this.header.xMax)/2;this.header.scale(t,e);if(this.simple)this.simple.scale(t,e);else for(const a of this.composites)a.scale(t,e)}}class GlyphHeader{constructor({numberOfContours:e,xMin:t,yMin:a,xMax:r,yMax:n}){this.numberOfContours=e;this.xMin=t;this.yMin=a;this.xMax=r;this.yMax=n}static parse(e,t){return[10,new GlyphHeader({numberOfContours:t.getInt16(e),xMin:t.getInt16(e+2),yMin:t.getInt16(e+4),xMax:t.getInt16(e+6),yMax:t.getInt16(e+8)})]}getSize(){return 10}write(e,t){t.setInt16(e,this.numberOfContours);t.setInt16(e+2,this.xMin);t.setInt16(e+4,this.yMin);t.setInt16(e+6,this.xMax);t.setInt16(e+8,this.yMax);return 10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t);this.xMax=Math.round(e+(this.xMax-e)*t)}}class Contour{constructor({flags:e,xCoordinates:t,yCoordinates:a}){this.xCoordinates=t;this.yCoordinates=a;this.flags=e}}class SimpleGlyph{constructor({contours:e,instructions:t}){this.contours=e;this.instructions=t}static parse(e,t,a){const r=[];for(let n=0;n255?e+=2:o>0&&(e+=1);t=i;o=Math.abs(s-a);o>255?e+=2:o>0&&(e+=1);a=s}}return e}write(e,t){const a=e,r=[],n=[],i=[];let s=0,o=0;for(const a of this.contours){for(let e=0,t=a.xCoordinates.length;e=0?18:2;r.push(e)}else r.push(l)}s=c;const h=a.yCoordinates[e];l=h-o;if(0===l){t|=32;n.push(0)}else{const e=Math.abs(l);if(e<=255){t|=l>=0?36:4;n.push(e)}else n.push(l)}o=h;i.push(t)}t.setUint16(e,r.length-1);e+=2}t.setUint16(e,this.instructions.length);e+=2;if(this.instructions.length){new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e);e+=this.instructions.length}for(const a of i)t.setUint8(e++,a);for(let a=0,n=r.length;a=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2);return e}write(e,t){const a=e;2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1);t.setUint16(e,this.flags);t.setUint16(e+2,this.glyphIndex);e+=4;if(1&this.flags){if(2&this.flags){t.setInt16(e,this.argument1);t.setInt16(e+2,this.argument2)}else{t.setUint16(e,this.argument1);t.setUint16(e+2,this.argument2)}e+=4}else{t.setUint8(e,this.argument1);t.setUint8(e+1,this.argument2);e+=2}if(256&this.flags){t.setUint16(e,this.instructions.length);e+=2;if(this.instructions.length){new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e);e+=this.instructions.length}}return e-a}scale(e,t){}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.OpenTypeFileBuilder=void 0;var r=a(3),n=a(2);function writeInt16(e,t,a){e[t]=a>>8&255;e[t+1]=255&a}function writeInt32(e,t,a){e[t]=a>>24&255;e[t+1]=a>>16&255;e[t+2]=a>>8&255;e[t+3]=255&a}function writeData(e,t,a){if(a instanceof Uint8Array)e.set(a,t);else if("string"==typeof a)for(let r=0,n=a.length;ra;){a<<=1;r++}const n=a*t;return{range:n,entry:r,rangeShift:t*e-n}}toArray(){let e=this.sfnt;const t=this.tables,a=Object.keys(t);a.sort();const i=a.length;let s,o,c,l,h,u=12+16*i;const d=[u];for(s=0;s>>0;d.push(u)}const f=new Uint8Array(u);for(s=0;s>>0}writeInt32(f,u+4,e);writeInt32(f,u+8,d[s]);writeInt32(f,u+12,t[h].length);u+=16}return f}addTable(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}t.OpenTypeFileBuilder=OpenTypeFileBuilder},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.Type1Font=void 0;var r=a(34),n=a(2),i=a(37),s=a(3),o=a(8),c=a(48);function findBlock(e,t,a){const r=e.length,n=t.length,i=r-n;let o=a,c=!1;for(;o=n){o+=a;for(;o=0&&(r[e]=n)}}return(0,i.type1FontGlyphMapping)(e,r,a)}hasGlyphId(e){if(e<0||e>=this.numGlyphs)return!1;if(0===e)return!0;return this.charstrings[e-1].charstring.length>0}getSeacs(e){const t=[];for(let a=0,r=e.length;a0;e--)t[e]-=t[e-1];g.setByName(e,t)}s.topDict.privateDict=g;const m=new r.CFFIndex;for(u=0,d=n.length;u{Object.defineProperty(t,"__esModule",{value:!0});t.Type1Parser=void 0;var r=a(36),n=a(3),i=a(8),s=a(2);const o=[4],c=[5],l=[6],h=[7],u=[8],d=[12,35],f=[14],g=[21],p=[22],m=[30],b=[31];class Type1CharString{constructor(){this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[]}convert(e,t,a){const r=e.length;let n,i,y,w=!1;for(let S=0;Sr)return!0;const n=r-e;for(let e=n;e>8&255,255&t);else{t=65536*t|0;this.output.push(255,t>>24&255,t>>16&255,t>>8&255,255&t)}}this.output.push(...t);a?this.stack.splice(n,e):this.stack.length=0;return!1}}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function decrypt(e,t,a){if(a>=e.length)return new Uint8Array(0);let r,n,i=0|t;for(r=0;r>8;i=52845*(t+i)+22719&65535}return o}function isSpecial(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}t.Type1Parser=class Type1Parser{constructor(e,t,a){if(t){const t=e.getBytes(),a=!((isHexDigit(t[0])||(0,n.isWhiteSpace)(t[0]))&&isHexDigit(t[1])&&isHexDigit(t[2])&&isHexDigit(t[3])&&isHexDigit(t[4])&&isHexDigit(t[5])&&isHexDigit(t[6])&&isHexDigit(t[7]));e=new i.Stream(a?decrypt(t,55665,4):function decryptAscii(e,t,a){let r=0|t;const n=e.length,i=new Uint8Array(n>>>1);let s,o;for(s=0,o=0;s>8;r=52845*(e+r)+22719&65535}}return i.slice(a,o)}(t,55665,4))}this.seacAnalysisEnabled=!!a;this.stream=e;this.nextChar()}readNumberArray(){this.getToken();const e=[];for(;;){const t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}readNumber(){const e=this.getToken();return parseFloat(e||0)}readInt(){const e=this.getToken();return 0|parseInt(e||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){this.stream.skip(-2);return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,n.isWhiteSpace)(t))break;t=this.nextChar()}if(isSpecial(t)){this.nextChar();return String.fromCharCode(t)}let a="";do{a+=String.fromCharCode(t);t=this.nextChar()}while(t>=0&&!(0,n.isWhiteSpace)(t)&&!isSpecial(t));return a}readCharStrings(e,t){return-1===t?e:decrypt(e,4330,t)}extractFontProgram(e){const t=this.stream,a=[],r=[],n=Object.create(null);n.lenIV=4;const i={subrs:[],charstrings:[],properties:{privateData:n}};let s,o,c,l;for(;null!==(s=this.getToken());)if("/"===s){s=this.getToken();switch(s){case"CharStrings":this.getToken();this.getToken();this.getToken();this.getToken();for(;;){s=this.getToken();if(null===s||"end"===s)break;if("/"!==s)continue;const e=this.getToken();o=this.readInt();this.getToken();c=o>0?t.getBytes(o):new Uint8Array(0);l=i.properties.privateData.lenIV;const a=this.readCharStrings(c,l);this.nextChar();s=this.getToken();"noaccess"===s?this.getToken():"/"===s&&this.prevChar();r.push({glyph:e,encoded:a})}break;case"Subrs":this.readInt();this.getToken();for(;"dup"===this.getToken();){const e=this.readInt();o=this.readInt();this.getToken();c=o>0?t.getBytes(o):new Uint8Array(0);l=i.properties.privateData.lenIV;const r=this.readCharStrings(c,l);this.nextChar();s=this.getToken();"noaccess"===s&&this.getToken();a[e]=r}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const e=this.readNumberArray();e.length>0&&e.length,0;break;case"StemSnapH":case"StemSnapV":i.properties.privateData[s]=this.readNumberArray();break;case"StdHW":case"StdVW":i.properties.privateData[s]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":i.properties.privateData[s]=this.readNumber();break;case"ExpansionFactor":i.properties.privateData[s]=this.readNumber()||.06;break;case"ForceBold":i.properties.privateData[s]=this.readBoolean()}}for(const{encoded:t,glyph:n}of r){const r=new Type1CharString,s=r.convert(t,a,this.seacAnalysisEnabled);let o=r.output;s&&(o=[14]);const c={glyphName:n,charstring:o,width:r.width,lsb:r.lsb,seac:r.seac};".notdef"===n?i.charstrings.unshift(c):i.charstrings.push(c);if(e.builtInEncoding){const t=e.builtInEncoding.indexOf(n);t>-1&&void 0===e.widths[t]&&t>=e.firstChar&&t<=e.lastChar&&(e.widths[t]=r.width)}}return i}extractFontHeader(e){let t;for(;null!==(t=this.getToken());)if("/"===t){t=this.getToken();switch(t){case"FontMatrix":const a=this.readNumberArray();e.fontMatrix=a;break;case"Encoding":const n=this.getToken();let i;if(/^\d+$/.test(n)){i=[];const e=0|parseInt(n,10);this.getToken();for(let a=0;a{Object.defineProperty(t,"__esModule",{value:!0});t.Pattern=void 0;t.getTilingPatternIR=function getTilingPatternIR(e,t,a){const n=t.getArray("Matrix"),i=r.Util.normalizeRect(t.getArray("BBox")),s=t.get("XStep"),o=t.get("YStep"),c=t.get("PaintType"),l=t.get("TilingType");if(i[2]-i[0]==0||i[3]-i[1]==0)throw new r.FormatError(`Invalid getTilingPatternIR /BBox array: [${i}].`);return["TilingPattern",a,e,n,i,s,o,c,l]};var r=a(2),n=a(5),i=a(12),s=a(3);const o=2,c=3,l=4,h=5,u=6,d=7;t.Pattern=class Pattern{constructor(){(0,r.unreachable)("Cannot initialize Pattern.")}static parseShading(e,t,a,i,f){const g=e instanceof n.BaseStream?e.dict:e,p=g.get("ShadingType");try{switch(p){case o:case c:return new RadialAxialShading(g,t,a,i,f);case l:case h:case u:case d:return new MeshShading(e,t,a,i,f);default:throw new r.FormatError("Unsupported ShadingType: "+p)}}catch(e){if(e instanceof s.MissingDataException)throw e;(0,r.warn)(e);return new DummyShading}}};class BaseShading{static get SMALL_NUMBER(){return(0,r.shadow)(this,"SMALL_NUMBER",1e-6)}constructor(){this.constructor===BaseShading&&(0,r.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,r.unreachable)("Abstract method `getIR` called.")}}class RadialAxialShading extends BaseShading{constructor(e,t,a,n,s){super();this.coordsArr=e.getArray("Coords");this.shadingType=e.get("ShadingType");const o=i.ColorSpace.parse({cs:e.getRaw("CS")||e.getRaw("ColorSpace"),xref:t,resources:a,pdfFunctionFactory:n,localColorSpaceCache:s}),l=e.getArray("BBox");Array.isArray(l)&&4===l.length?this.bbox=r.Util.normalizeRect(l):this.bbox=null;let h=0,u=1;if(e.has("Domain")){const t=e.getArray("Domain");h=t[0];u=t[1]}let d=!1,f=!1;if(e.has("Extend")){const t=e.getArray("Extend");d=t[0];f=t[1]}if(!(this.shadingType!==c||d&&f)){const[e,t,a,n,i,s]=this.coordsArr,o=Math.hypot(e-n,t-i);a<=s+o&&s<=a+o&&(0,r.warn)("Unsupported radial gradient.")}this.extendStart=d;this.extendEnd=f;const g=e.getRaw("Function"),p=n.createFromArray(g),m=(u-h)/10,b=this.colorStops=[];if(h>=u||m<=0){(0,r.info)("Bad shading domain.");return}const y=new Float32Array(o.numComps),w=new Float32Array(1);let S;for(let e=0;e<=10;e++){w[0]=h+e*m;p(w,0,y,0);S=o.getRgb(y,0);const t=r.Util.makeHexColor(S[0],S[1],S[2]);b.push([e/10,t])}let x="transparent";if(e.has("Background")){S=o.getRgb(e.get("Background"),0);x=r.Util.makeHexColor(S[0],S[1],S[2])}if(!d){b.unshift([0,x]);b[1][0]+=BaseShading.SMALL_NUMBER}if(!f){b.at(-1)[0]-=BaseShading.SMALL_NUMBER;b.push([1,x])}this.colorStops=b}getIR(){const e=this.coordsArr,t=this.shadingType;let a,n,i,s,l;if(t===o){n=[e[0],e[1]];i=[e[2],e[3]];s=null;l=null;a="axial"}else if(t===c){n=[e[0],e[1]];i=[e[3],e[4]];s=e[2];l=e[5];a="radial"}else(0,r.unreachable)(`getPattern type unknown: ${t}`);return["RadialAxial",a,this.bbox,this.colorStops,n,i,s,l]}}class MeshStreamReader{constructor(e,t){this.stream=e;this.context=t;this.buffer=0;this.bufferLength=0;const a=t.numComps;this.tmpCompsBuf=new Float32Array(a);const r=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(r):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos0)return!0;const e=this.stream.getByte();if(e<0)return!1;this.buffer=e;this.bufferLength=8;return!0}readBits(e){let t=this.buffer,a=this.bufferLength;if(32===e){if(0===a)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const e=this.stream.getByte();this.buffer=e&(1<>a)>>>0}if(8===e&&0===a)return this.stream.getByte();for(;a>a}align(){this.buffer=0;this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const e=this.context.bitsPerCoordinate,t=this.readBits(e),a=this.readBits(e),r=this.context.decode,n=e<32?1/((1<i?i:e;t=t>s?s:t;a=a{Object.defineProperty(t,"__esModule",{value:!0});t.getXfaFontDict=function getXfaFontDict(e){const t=function getXfaFontWidths(e){const t=getXfaFontName(e);if(!t)return null;const{baseWidths:a,baseMapping:r,factors:n}=t;let i;i=n?a.map(((e,t)=>e*n[t])):a;let s,o=-2;const c=[];for(const[e,t]of r.map(((e,t)=>[e,t])).sort((([e],[t])=>e-t)))if(-1!==e)if(e===o+1){s.push(i[t]);o+=1}else{o=e;s=[i[t]];c.push(e,s)}return c}(e),a=new n.Dict(null);a.set("BaseFont",n.Name.get(e));a.set("Type",n.Name.get("Font"));a.set("Subtype",n.Name.get("CIDFontType2"));a.set("Encoding",n.Name.get("Identity-H"));a.set("CIDToGIDMap",n.Name.get("Identity"));a.set("W",t);a.set("FirstChar",t[0]);a.set("LastChar",t.at(-2)+t.at(-1).length-1);const r=new n.Dict(null);a.set("FontDescriptor",r);const i=new n.Dict(null);i.set("Ordering","Identity");i.set("Registry","Adobe");i.set("Supplement",0);a.set("CIDSystemInfo",i);return a};t.getXfaFontName=getXfaFontName;var r=a(51),n=a(4),i=a(52),s=a(53),o=a(54),c=a(55),l=a(3),h=a(37);const u=(0,l.getLookupTableFactory)((function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:o.MyriadProRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:o.MyriadProRegularMetrics};e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:o.MyriadProBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:o.MyriadProBoldMetrics};e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:o.MyriadProItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:o.MyriadProItalicMetrics};e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:o.MyriadProBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:o.MyriadProBoldItalicMetrics};e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping};e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping};e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping};e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping};e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:r.CalibriRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:r.CalibriRegularMetrics};e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:r.CalibriBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:r.CalibriBoldMetrics};e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:r.CalibriItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:r.CalibriItalicMetrics};e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:r.CalibriBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:r.CalibriBoldItalicMetrics};e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:c.SegoeuiRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:c.SegoeuiRegularMetrics};e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:c.SegoeuiBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:c.SegoeuiBoldMetrics};e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:c.SegoeuiItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:c.SegoeuiItalicMetrics};e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:c.SegoeuiBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:c.SegoeuiBoldItalicMetrics};e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:i.HelveticaRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:i.HelveticaRegularMetrics};e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:i.HelveticaBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:i.HelveticaBoldMetrics};e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:i.HelveticaItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:i.HelveticaItalicMetrics};e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:i.HelveticaBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:i.HelveticaBoldItalicMetrics}}));function getXfaFontName(e){const t=(0,h.normalizeFontName)(e);return u()[t]}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0;t.CalibriBoldFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207};t.CalibriBoldItalicFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207};t.CalibriItalicFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207};t.CalibriRegularFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];t.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0;t.HelveticaBoldFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];t.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2};t.HelveticaBoldItalicFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];t.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2};t.HelveticaItalicFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];t.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2};t.HelveticaRegularFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0;t.LiberationSansBoldWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];t.LiberationSansBoldMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.LiberationSansBoldItalicWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];t.LiberationSansBoldItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.LiberationSansItalicWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];t.LiberationSansItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.LiberationSansRegularWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];t.LiberationSansRegularMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0;t.MyriadProBoldFactors=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2};t.MyriadProBoldItalicFactors=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2};t.MyriadProItalicFactors=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2};t.MyriadProRegularFactors=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0;t.SegoeuiBoldFactors=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0};t.SegoeuiBoldItalicFactors=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0};t.SegoeuiItalicFactors=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0};t.SegoeuiRegularFactors=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1];t.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0;t.isPDFFunction=function isPDFFunction(e){let t;if(e instanceof r.Dict)t=e;else{if(!(e instanceof s.BaseStream))return!1;t=e.dict}return t.has("FunctionType")};var r=a(4),n=a(2),i=a(57),s=a(5),o=a(58);t.PDFFunctionFactory=class PDFFunctionFactory{constructor({xref:e,isEvalSupported:t=!0}){this.xref=e;this.isEvalSupported=!1!==t}create(e){const t=this.getCached(e);if(t)return t;const a=PDFFunction.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof r.Ref?this.xref.fetch(e):e});this._cache(e,a);return a}createFromArray(e){const t=this.getCached(e);if(t)return t;const a=PDFFunction.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof r.Ref?this.xref.fetch(e):e});this._cache(e,a);return a}getCached(e){let t;e instanceof r.Ref?t=e:e instanceof r.Dict?t=e.objId:e instanceof s.BaseStream&&(t=e.dict&&e.dict.objId);if(t){const e=this._localFunctionCache.getByRef(t);if(e)return e}return null}_cache(e,t){if(!t)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let a;e instanceof r.Ref?a=e:e instanceof r.Dict?a=e.objId:e instanceof s.BaseStream&&(a=e.dict&&e.dict.objId);a&&this._localFunctionCache.set(null,a,t)}get _localFunctionCache(){return(0,n.shadow)(this,"_localFunctionCache",new o.LocalFunctionCache)}};function toNumberArray(e){if(!Array.isArray(e))return null;const t=e.length;for(let a=0;a>c)*h;l&=(1<a?e=a:e0&&(d=s[u-1]);let f=r[1];u>1,u=s.length>>1,d=new PostScriptEvaluator(l),f=Object.create(null);let g=8192;const p=new Float32Array(u);return function constructPostScriptFn(e,t,a,r){let n,i,s="";const c=p;for(n=0;ne&&(i=e)}m[n]=i}if(g>0){g--;f[s]=m}a.set(m,r)}}}class PostScriptStack{static get MAX_STACK_SIZE(){return(0,n.shadow)(this,"MAX_STACK_SIZE",100)}constructor(e){this.stack=e?Array.from(e):[]}push(e){if(this.stack.length>=PostScriptStack.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(e)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(e){if(this.stack.length+e>=PostScriptStack.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const t=this.stack;for(let a=t.length-e,r=e-1;r>=0;r--,a++)t.push(t[a])}index(e){this.push(this.stack[this.stack.length-e-1])}roll(e,t){const a=this.stack,r=a.length-e,n=a.length-1,i=r+(t-Math.floor(t/e)*e);for(let e=r,t=n;e0?t.push(o<>c);break;case"ceiling":o=t.pop();t.push(Math.ceil(o));break;case"copy":o=t.pop();t.copy(o);break;case"cos":o=t.pop();t.push(Math.cos(o%360/180*Math.PI));break;case"cvi":o=0|t.pop();t.push(o);break;case"cvr":break;case"div":c=t.pop();o=t.pop();t.push(o/c);break;case"dup":t.copy(1);break;case"eq":c=t.pop();o=t.pop();t.push(o===c);break;case"exch":t.roll(2,1);break;case"exp":c=t.pop();o=t.pop();t.push(o**c);break;case"false":t.push(!1);break;case"floor":o=t.pop();t.push(Math.floor(o));break;case"ge":c=t.pop();o=t.pop();t.push(o>=c);break;case"gt":c=t.pop();o=t.pop();t.push(o>c);break;case"idiv":c=t.pop();o=t.pop();t.push(o/c|0);break;case"index":o=t.pop();t.index(o);break;case"le":c=t.pop();o=t.pop();t.push(o<=c);break;case"ln":o=t.pop();t.push(Math.log(o));break;case"log":o=t.pop();t.push(Math.log(o)/Math.LN10);break;case"lt":c=t.pop();o=t.pop();t.push(o=t?new AstLiteral(t):e.max<=t?e:new AstMin(e,t)}class PostScriptCompiler{compile(e,t,a){const r=[],n=[],i=t.length>>1,s=a.length>>1;let o,c,l,h,u,d,f,g,p=0;for(let e=0;et.min){o.unshift("Math.max(",i,", ");o.push(")")}if(s{Object.defineProperty(t,"__esModule",{value:!0});t.PostScriptParser=t.PostScriptLexer=void 0;var r=a(2),n=a(4),i=a(3);t.PostScriptParser=class PostScriptParser{constructor(e){this.lexer=e;this.operators=[];this.token=null;this.prev=null}nextToken(){this.prev=this.token;this.token=this.lexer.getToken()}accept(e){if(this.token.type===e){this.nextToken();return!0}return!1}expect(e){if(this.accept(e))return!0;throw new r.FormatError(`Unexpected symbol: found ${this.token.type} expected ${e}.`)}parse(){this.nextToken();this.expect(s.LBRACE);this.parseBlock();this.expect(s.RBRACE);return this.operators}parseBlock(){for(;;)if(this.accept(s.NUMBER))this.operators.push(this.prev.value);else if(this.accept(s.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(s.LBRACE))return;this.parseCondition()}}parseCondition(){const e=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(s.RBRACE);if(this.accept(s.IF)){this.operators[e]=this.operators.length;this.operators[e+1]="jz"}else{if(!this.accept(s.LBRACE))throw new r.FormatError("PS Function: error parsing conditional.");{const t=this.operators.length;this.operators.push(null,null);const a=this.operators.length;this.parseBlock();this.expect(s.RBRACE);this.expect(s.IFELSE);this.operators[t]=this.operators.length;this.operators[t+1]="j";this.operators[e]=a;this.operators[e+1]="jz"}}}};const s={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class PostScriptToken{static get opCache(){return(0,r.shadow)(this,"opCache",Object.create(null))}constructor(e,t){this.type=e;this.value=t}static getOperator(e){const t=PostScriptToken.opCache[e];return t||(PostScriptToken.opCache[e]=new PostScriptToken(s.OPERATOR,e))}static get LBRACE(){return(0,r.shadow)(this,"LBRACE",new PostScriptToken(s.LBRACE,"{"))}static get RBRACE(){return(0,r.shadow)(this,"RBRACE",new PostScriptToken(s.RBRACE,"}"))}static get IF(){return(0,r.shadow)(this,"IF",new PostScriptToken(s.IF,"IF"))}static get IFELSE(){return(0,r.shadow)(this,"IFELSE",new PostScriptToken(s.IFELSE,"IFELSE"))}}t.PostScriptLexer=class PostScriptLexer{constructor(e){this.stream=e;this.nextChar();this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return n.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new PostScriptToken(s.NUMBER,this.getNumber());case 123:this.nextChar();return PostScriptToken.LBRACE;case 125:this.nextChar();return PostScriptToken.RBRACE}const a=this.strBuf;a.length=0;a[0]=String.fromCharCode(t);for(;(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)a.push(String.fromCharCode(t));const r=a.join("");switch(r.toLowerCase()){case"if":return PostScriptToken.IF;case"ifelse":return PostScriptToken.IFELSE;default:return PostScriptToken.getOperator(r)}}getNumber(){let e=this.currentChar;const t=this.strBuf;t.length=0;t[0]=String.fromCharCode(e);for(;(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));const a=parseFloat(t.join(""));if(isNaN(a))throw new r.FormatError(`Invalid floating point number: ${a}`);return a}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var r=a(2),n=a(4);class BaseLocalCache{constructor(e){this.constructor===BaseLocalCache&&(0,r.unreachable)("Cannot initialize BaseLocalCache.");this._onlyRefs=!0===(e&&e.onlyRefs);if(!this._onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new n.RefSetCache}getByName(e){this._onlyRefs&&(0,r.unreachable)("Should not call `getByName` method.");const t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,a){(0,r.unreachable)("Abstract method `set` called.")}}t.LocalImageCache=class LocalImageCache extends BaseLocalCache{set(e,t=null,a){if("string"!=typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t);this._imageCache.put(t,a)}else this._imageMap.has(e)||this._imageMap.set(e,a)}};t.LocalColorSpaceCache=class LocalColorSpaceCache extends BaseLocalCache{set(e=null,t=null,a){if("string"!=typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;null!==e&&this._nameRefMap.set(e,t);this._imageCache.put(t,a)}else this._imageMap.has(e)||this._imageMap.set(e,a)}};t.LocalFunctionCache=class LocalFunctionCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,a)}};t.LocalGStateCache=class LocalGStateCache extends BaseLocalCache{set(e,t=null,a){if("string"!=typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t);this._imageCache.put(t,a)}else this._imageMap.has(e)||this._imageMap.set(e,a)}};t.LocalTilingPatternCache=class LocalTilingPatternCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,a)}};class GlobalImageCache{static get NUM_PAGES_THRESHOLD(){return(0,r.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MIN_IMAGES_TO_CACHE(){return(0,r.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}static get MAX_BYTE_SIZE(){return(0,r.shadow)(this,"MAX_BYTE_SIZE",5*r.MAX_IMAGE_SIZE_TO_CACHE)}constructor(){this._refCache=new n.RefSetCache;this._imageCache=new n.RefSetCache}get _byteSize(){let e=0;for(const t of this._imageCache)e+=t.byteSize;return e}get _cacheLimitReached(){return!(this._imageCache.size{Object.defineProperty(t,"__esModule",{value:!0});t.bidi=function bidi(e,t=-1,a=!1){let c=!0;const l=e.length;if(0===l||a)return createBidiText(e,c,a);s.length=l;o.length=l;let h,u,d=0;for(h=0;h4){c=!0;t=0}else{c=!1;t=1}const f=[];for(h=0;h=0&&"ET"===o[e];--e)o[e]="EN";for(let e=h+1;e0&&(t=o[h-1]);let a=m;e+1w&&isOdd(w)&&(x=w)}for(w=S;w>=x;--w){let e=-1;for(h=0,u=f.length;h=0){reverseValues(s,e,h);e=-1}}else e<0&&(e=h);e>=0&&reverseValues(s,e,f.length)}for(h=0,u=s.length;h"!==e||(s[h]="")}return createBidiText(s.join(""),c)};var r=a(2);const n=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],i=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function isOdd(e){return 0!=(1&e)}function isEven(e){return 0==(1&e)}function findUnequal(e,t,a){let r,n;for(r=t,n=e.length;r{Object.defineProperty(t,"__esModule",{value:!0});t.ImageResizer=void 0;var r=a(2);class ImageResizer{constructor(e,t){this._imgData=e;this._isMask=t}static needsToBeResized(e,t){if(e<=this._goodSquareLength&&t<=this._goodSquareLength)return!1;const{MAX_DIM:a}=this;if(e>a||t>a)return!0;const r=e*t;if(this._hasMaxArea)return r>this.MAX_AREA;if(r(this.MAX_AREA=this._goodSquareLength**2)}static get MAX_DIM(){return(0,r.shadow)(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}static get MAX_AREA(){this._hasMaxArea=!0;return(0,r.shadow)(this,"MAX_AREA",this._guessMax(ImageResizer._goodSquareLength,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){if(e>=0){this._hasMaxArea=!0;(0,r.shadow)(this,"MAX_AREA",e)}}static setMaxArea(e){this._hasMaxArea||(this.MAX_AREA=e>>2)}static _areGoodDims(e,t){try{const a=new OffscreenCanvas(e,t),r=a.getContext("2d");r.fillRect(0,0,1,1);const n=r.getImageData(0,0,1,1).data[3];a.width=a.height=1;return 0!==n}catch(e){return!1}}static _guessMax(e,t,a,r){for(;e+a+1>3,r=a+3&-4;if(a!==r){const e=new Uint8Array(r*t);let n=0;for(let s=0,o=t*a;s{Object.defineProperty(t,"__esModule",{value:!0});t.MurmurHash3_64=void 0;var r=a(2);const n=3285377520,i=4294901760,s=65535;t.MurmurHash3_64=class MurmurHash3_64{constructor(e){this.h1=e?4294967295&e:n;this.h2=e?4294967295&e:n}update(e){let t,a;if("string"==typeof e){t=new Uint8Array(2*e.length);a=0;for(let r=0,n=e.length;r>>8;t[a++]=255&n}}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice();a=t.byteLength}const n=a>>2,o=a-4*n,c=new Uint32Array(t.buffer,0,n);let l=0,h=0,u=this.h1,d=this.h2;const f=3432918353,g=461845907,p=11601,m=13715;for(let e=0;e>>17;l=l*g&i|l*m&s;u^=l;u=u<<13|u>>>19;u=5*u+3864292196}else{h=c[e];h=h*f&i|h*p&s;h=h<<15|h>>>17;h=h*g&i|h*m&s;d^=h;d=d<<13|d>>>19;d=5*d+3864292196}l=0;switch(o){case 3:l^=t[4*n+2]<<16;case 2:l^=t[4*n+1]<<8;case 1:l^=t[4*n];l=l*f&i|l*p&s;l=l<<15|l>>>17;l=l*g&i|l*m&s;1&n?u^=l:d^=l}this.h1=u;this.h2=d}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1;e=3981806797*e&i|36045*e&s;t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16;e^=t>>>1;e=444984403*e&i|60499*e&s;t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16;e^=t>>>1;return(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.OperatorList=void 0;var r=a(2);function addState(e,t,a,r,n){let i=e;for(let e=0,a=t.length-1;e1e3){h=Math.max(h,f);g+=d+2;f=0;d=0}u.push({transform:t,x:f,y:g,w:a.width,h:a.height});f+=a.width+2;d=Math.max(d,a.height)}const p=Math.max(h,f)+1,m=g+d+1,b=new Uint8Array(p*m*4),y=p<<2;for(let e=0;e=0;){t[i-4]=t[i];t[i-3]=t[i+1];t[i-2]=t[i+2];t[i-1]=t[i+3];t[i+a]=t[i+a-4];t[i+a+1]=t[i+a-3];t[i+a+2]=t[i+a-2];t[i+a+3]=t[i+a-1];i-=y}}const w={width:p,height:m};if(e.isOffscreenCanvasSupported){const e=new OffscreenCanvas(p,m);e.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(b.buffer),p,m),0,0);w.bitmap=e.transferToImageBitmap();w.data=null}else{w.kind=r.ImageKind.RGBA_32BPP;w.data=b}a.splice(s,4*l,r.OPS.paintInlineImageXObjectGroup);n.splice(s,4*l,[w,u]);return s+1}));addState(n,[r.OPS.save,r.OPS.transform,r.OPS.paintImageMaskXObject,r.OPS.restore],null,(function iterateImageMaskGroup(e,t){const a=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return a[t]===r.OPS.save;case 1:return a[t]===r.OPS.transform;case 2:return a[t]===r.OPS.paintImageMaskXObject;case 3:return a[t]===r.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${n}`)}),(function foundImageMaskGroup(e,t){const a=e.fnArray,n=e.argsArray,i=e.iCurr,s=i-3,o=i-2,c=i-1;let l=Math.floor((t-s)/4);if(l<10)return t-(t-s)%4;let h,u,d=!1;const f=n[c][0],g=n[o][0],p=n[o][1],m=n[o][2],b=n[o][3];if(p===m){d=!0;h=o+4;let e=c+4;for(let t=1;t=4&&a[i-4]===a[s]&&a[i-3]===a[o]&&a[i-2]===a[c]&&a[i-1]===a[l]&&r[i-4][0]===h&&r[i-4][1]===u){d++;f-=5}let g=f+4;for(let e=1;e=a)break}r=(r||n)[e[t]];if(r&&!Array.isArray(r)){s.iCurr=t;t++;if(!r.checkFn||(0,r.checkFn)(s)){i=r;r=null}else r=null}else t++}this.state=r;this.match=i;this.lastProcessed=t}flush(){for(;this.match;){const e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e);this.match=null;this.state=null;this._optimize()}}reset(){this.state=null;this.match=null;this.lastProcessed=0}}class OperatorList{static get CHUNK_SIZE(){return(0,r.shadow)(this,"CHUNK_SIZE",1e3)}static get CHUNK_SIZE_ABOUT(){return(0,r.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}constructor(e=0,t){this._streamSink=t;this.fnArray=[];this.argsArray=[];!t||e&r.RenderingIntentFlag.OPLIST?this.optimizer=new NullOptimizer(this):this.optimizer=new QueueOptimizer(this);this.dependencies=new Set;this._totalLength=0;this.weight=0;this._resolved=t?null:Promise.resolve()}set isOffscreenCanvasSupported(e){this.optimizer.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(e,t){this.optimizer.push(e,t);this.weight++;this._streamSink&&(this.weight>=OperatorList.CHUNK_SIZE||this.weight>=OperatorList.CHUNK_SIZE_ABOUT&&(e===r.OPS.restore||e===r.OPS.endText))&&this.flush()}addImageOps(e,t,a){void 0!==a&&this.addOp(r.OPS.beginMarkedContentProps,["OC",a]);this.addOp(e,t);void 0!==a&&this.addOp(r.OPS.endMarkedContent,[])}addDependency(e){if(!this.dependencies.has(e)){this.dependencies.add(e);this.addOp(r.OPS.dependency,[e])}}addDependencies(e){for(const t of e)this.addDependency(t)}addOpList(e){if(e instanceof OperatorList){for(const t of e.dependencies)this.dependencies.add(t);for(let t=0,a=e.length;t{Object.defineProperty(t,"__esModule",{value:!0});t.PDFImage=void 0;var r=a(2),n=a(27),i=a(5),s=a(12),o=a(17),c=a(60),l=a(25),h=a(29),u=a(4);function decodeAndClamp(e,t,a,r){(e=t+e*a)<0?e=0:e>r&&(e=r);return e}function resizeImageMask(e,t,a,r,n,i){const s=n*i;let o;o=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);const c=a/n,l=r/i;let h,u,d,f,g=0;const p=new Uint16Array(n),m=a;for(h=0;h0&&Number.isInteger(a.height)&&a.height>0&&(a.width!==b||a.height!==y)){(0,r.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary.");b=a.width;y=a.height}if(b<1||y<1)throw new r.FormatError(`Invalid image width: ${b} or height: ${y}`);this.width=b;this.height=y;this.interpolate=g.get("I","Interpolate");this.imageMask=g.get("IM","ImageMask")||!1;this.matte=g.get("Matte")||!1;let w=a.bitsPerComponent;if(!w){w=g.get("BPC","BitsPerComponent");if(!w){if(!this.imageMask)throw new r.FormatError(`Bits per component missing in image: ${this.imageMask}`);w=1}}this.bpc=w;if(!this.imageMask){let i=g.getRaw("CS")||g.getRaw("ColorSpace");if(!i){(0,r.info)("JPX images (which do not require color spaces)");switch(a.numComps){case 1:i=u.Name.get("DeviceGray");break;case 3:i=u.Name.get("DeviceRGB");break;case 4:i=u.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${a.numComps} color components not supported.`)}}this.colorSpace=s.ColorSpace.parse({cs:i,xref:e,resources:n?t:null,pdfFunctionFactory:d,localColorSpaceCache:f});this.numComps=this.colorSpace.numComps}this.decode=g.getArray("D","Decode");this.needsDecode=!1;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,w)||l&&!s.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const e=(1<>3)*a,o=e.byteLength;let c,l;if(!r||n&&!(s===o))if(n){c=new Uint8Array(s);c.set(e);c.fill(255,o)}else c=new Uint8Array(e);else c=e;if(n)for(l=0;l>7&1;s[d+1]=u>>6&1;s[d+2]=u>>5&1;s[d+3]=u>>4&1;s[d+4]=u>>3&1;s[d+5]=u>>2&1;s[d+6]=u>>1&1;s[d+7]=1&u;d+=8}if(d>=1}}}}else{let a=0;u=0;for(d=0,h=i;d>r;n<0?n=0:n>l&&(n=l);s[d]=n;u&=(1<o[r+1]){t=255;break}}c[u]=t}}}if(c)for(u=0,f=3,d=t*n;u>3,f=t&&c.ImageResizer.needsToBeResized(a,n);if(!e){let e;"DeviceGray"===this.colorSpace.name&&1===u?e=r.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==u||this.needsDecode||(e=r.ImageKind.RGB_24BPP);if(e&&!this.smask&&!this.mask&&a===o&&n===h){const s=this.getImageBytes(h*d,{});if(t)return f?c.ImageResizer.createImage({data:s,kind:e,width:a,height:n,interpolate:this.interpolate},this.needsDecode):this.createBitmap(e,o,h,s);i.kind=e;i.data=s;if(this.needsDecode){(0,r.assert)(e===r.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const t=i.data;for(let e=0,a=t.length;e>3,o=this.getImageBytes(n*s,{internal:!0}),c=this.getComponents(o);let l,h;if(1===i){h=a*n;if(this.needsDecode)for(l=0;l{Object.defineProperty(t,"__esModule",{value:!0});t.incrementalUpdate=function incrementalUpdate({originalData:e,xrefInfo:t,newRefs:a,xref:o=null,hasXfa:l=!1,xfaDatasetsRef:h=null,hasXfaDatasetsEntry:u=!1,needAppearances:d,acroFormRef:f=null,acroForm:g=null,xfaData:p=null}){!function updateAcroform({xref:e,acroForm:t,acroFormRef:a,hasXfa:i,hasXfaDatasetsEntry:s,xfaDatasetsRef:o,needAppearances:c,newRefs:l}){!i||s||o||(0,r.warn)("XFA - Cannot save it");if(!(c||i&&o))return;const h=new n.Dict(e);for(const e of t.getKeys())h.set(e,t.getRaw(e));if(i&&!s){const e=t.get("XFA").slice();e.splice(2,0,"datasets");e.splice(3,0,o);h.set("XFA",e)}c&&h.set("NeedAppearances",!0);const u=e.encrypt;let d=null;u&&(d=u.createCipherTransform(a.num,a.gen));const f=[];writeObject(a,h,f,d);l.push({ref:a,data:f.join("")})}({xref:o,acroForm:g,acroFormRef:f,hasXfa:l,hasXfaDatasetsEntry:u,xfaDatasetsRef:h,needAppearances:d,newRefs:a});l&&function updateXFA({xfaData:e,xfaDatasetsRef:t,newRefs:a,xref:n}){if(null===e){e=function writeXFADataForAcroform(e,t){const a=new s.SimpleXMLParser({hasAttributes:!0}).parseFromString(e);for(const{xfa:e}of t){if(!e)continue;const{path:t,value:n}=e;if(!t)continue;const o=(0,i.parseXFAPath)(t);let c=a.documentElement.searchNode(o,0);!c&&o.length>1&&(c=a.documentElement.searchNode([o.at(-1)],0));c?Array.isArray(n)?c.childNodes=n.map((e=>new s.SimpleDOMNode("value",e))):c.childNodes=[new s.SimpleDOMNode("#text",n)]:(0,r.warn)(`Node not found for path: ${t}`)}const n=[];a.documentElement.dump(n);return n.join("")}(n.fetchIfRef(t).getString(),a)}const o=n.encrypt;if(o){e=o.createCipherTransform(t.num,t.gen).encryptString(e)}const c=`${t.num} ${t.gen} obj\n<< /Type /EmbeddedFile /Length ${e.length}>>\nstream\n`+e+"\nendstream\nendobj\n";a.push({ref:t,data:c})}({xfaData:p,xfaDatasetsRef:h,newRefs:a,xref:o});const m=new n.Dict(null),b=t.newRef;let y,w;const S=e.at(-1);if(10===S||13===S){y=[];w=e.length}else{y=["\n"];w=e.length+1}m.set("Size",b.num+1);m.set("Prev",t.startXRef);m.set("Type",n.Name.get("XRef"));null!==t.rootRef&&m.set("Root",t.rootRef);null!==t.infoRef&&m.set("Info",t.infoRef);null!==t.encryptRef&&m.set("Encrypt",t.encryptRef);a.push({ref:b,data:""});a=a.sort(((e,t)=>e.ref.num-t.ref.num));const x=[[0,1,65535]],C=[0,1];let k=0;for(const{ref:e,data:t}of a){k=Math.max(k,w);x.push([1,w,Math.min(e.gen,65535)]);w+=t.length;C.push(e.num,1);y.push(t)}m.set("Index",C);if(Array.isArray(t.fileIds)&&t.fileIds.length>0){const e=function computeMD5(e,t){const a=Math.floor(Date.now()/1e3),n=t.filename||"",i=[a.toString(),n,e.toString()];let s=i.reduce(((e,t)=>e+t.length),0);for(const e of Object.values(t.info)){i.push(e);s+=e.length}const o=new Uint8Array(s);let l=0;for(const e of i){writeString(e,l,o);l+=e.length}return(0,r.bytesToString)((0,c.calculateMD5)(o))}(w,t);m.set("ID",[t.fileIds[0],e])}const v=[1,Math.ceil(Math.log2(k)/8),2],F=(v[0]+v[1]+v[2])*x.length;m.set("W",v);m.set("Length",F);y.push(`${b.num} ${b.gen} obj\n`);writeDict(m,y,null);y.push(" stream\n");const O=y.reduce(((e,t)=>e+t.length),0),T=`\nendstream\nendobj\nstartxref\n${w}\n%%EOF\n`,M=new Uint8Array(e.length+O+F+T.length);M.set(e);let E=e.length;for(const e of y){writeString(e,E,M);E+=e.length}for(const[e,t,a]of x){E=writeInt(e,v[0],E,M);E=writeInt(t,v[1],E,M);E=writeInt(a,v[2],E,M)}writeString(T,E,M);return M};t.writeDict=writeDict;t.writeObject=writeObject;var r=a(2),n=a(4),i=a(3),s=a(65),o=a(5),c=a(66);function writeObject(e,t,a,r){a.push(`${e.num} ${e.gen} obj\n`);t instanceof n.Dict?writeDict(t,a,r):t instanceof o.BaseStream&&writeStream(t,a,r);a.push("\nendobj\n")}function writeDict(e,t,a){t.push("<<");for(const r of e.getKeys()){t.push(` /${(0,i.escapePDFName)(r)} `);writeValue(e.getRaw(r),t,a)}t.push(">>")}function writeStream(e,t,a){let r=e.getString();null!==a&&(r=a.encryptString(r));e.dict.set("Length",r.length);writeDict(e.dict,t,a);t.push(" stream\n",r,"\nendstream")}function writeValue(e,t,a){if(e instanceof n.Name)t.push(`/${(0,i.escapePDFName)(e.name)}`);else if(e instanceof n.Ref)t.push(`${e.num} ${e.gen} R`);else if(Array.isArray(e))!function writeArray(e,t,a){t.push("[");let r=!0;for(const n of e){r?r=!1:t.push(" ");writeValue(n,t,a)}t.push("]")}(e,t,a);else if("string"==typeof e){null!==a&&(e=a.encryptString(e));t.push(`(${(0,i.escapeString)(e)})`)}else"number"==typeof e?t.push((0,i.numberToString)(e)):"boolean"==typeof e?t.push(e.toString()):e instanceof n.Dict?writeDict(e,t,a):e instanceof o.BaseStream?writeStream(e,t,a):null===e?t.push("null"):(0,r.warn)(`Unhandled value in writer: ${typeof e}, please file a bug.`)}function writeInt(e,t,a,r){for(let n=t+a-1;n>a-1;n--){r[n]=255&e;e>>=8}return a+t}function writeString(e,t,a){for(let r=0,n=e.length;r{Object.defineProperty(t,"__esModule",{value:!0});t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var r=a(3);const n={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};t.XMLParserErrorCode=n;function isWhitespace(e,t){const a=e[t];return" "===a||"\n"===a||"\r"===a||"\t"===a}class XMLParserBase{_resolveEntities(e){return e.replaceAll(/&([^;]+);/g,((e,t)=>{if("#x"===t.substring(0,2))return String.fromCodePoint(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(t)}))}_parseContent(e,t){const a=[];let r=t;function skipWs(){for(;r"!==e[r]&&"/"!==e[r];)++r;const n=e.substring(t,r);skipWs();for(;r"!==e[r]&&"/"!==e[r]&&"?"!==e[r];){skipWs();let t="",n="";for(;r"!==e[a]&&"?"!==e[a]&&"/"!==e[a];)++a;const r=e.substring(t,a);!function skipWs(){for(;a"!==e[a+1]);)++a;return{name:r,value:e.substring(n,a),parsed:a-t}}parseXml(e){let t=0;for(;t",a);if(t<0){this.onError(n.UnterminatedElement);return}this.onEndElement(e.substring(a,t));a=t+1;break;case"?":++a;const r=this._parseProcessingInstruction(e,a);if("?>"!==e.substring(a+r.parsed,a+r.parsed+2)){this.onError(n.UnterminatedXmlDeclaration);return}this.onPi(r.name,r.value);a+=r.parsed+2;break;case"!":if("--"===e.substring(a+1,a+3)){t=e.indexOf("--\x3e",a+3);if(t<0){this.onError(n.UnterminatedComment);return}this.onComment(e.substring(a+3,t));a=t+3}else if("[CDATA["===e.substring(a+1,a+8)){t=e.indexOf("]]>",a+8);if(t<0){this.onError(n.UnterminatedCdat);return}this.onCdata(e.substring(a+8,t));a=t+3}else{if("DOCTYPE"!==e.substring(a+1,a+8)){this.onError(n.MalformedElement);return}{const r=e.indexOf("[",a+8);let i=!1;t=e.indexOf(">",a+8);if(t<0){this.onError(n.UnterminatedDoctypeDeclaration);return}if(r>0&&t>r){t=e.indexOf("]>",a+8);if(t<0){this.onError(n.UnterminatedDoctypeDeclaration);return}i=!0}const s=e.substring(a+8,t+(i?1:0));this.onDoctype(s);a=t+(i?2:1)}}break;default:const i=this._parseContent(e,a);if(null===i){this.onError(n.MalformedElement);return}let s=!1;if("/>"===e.substring(a+i.parsed,a+i.parsed+2))s=!0;else if(">"!==e.substring(a+i.parsed,a+i.parsed+1)){this.onError(n.UnterminatedElement);return}this.onBeginElement(i.name,i.attributes,s);a+=i.parsed+(s?2:1)}}else{for(;a0}searchNode(e,t){if(t>=e.length)return this;const a=e[t],r=[];let n=this;for(;;){if(a.name===n.nodeName){if(0!==a.pos){if(0===r.length)return null;{const[i]=r.pop();let s=0;for(const r of i.childNodes)if(a.name===r.nodeName){if(s===a.pos)return r.searchNode(e,t+1);s++}return n.searchNode(e,t+1)}}{const a=n.searchNode(e,t+1);if(null!==a)return a}}if(n.childNodes&&0!==n.childNodes.length){r.push([n,0]);n=n.childNodes[0]}else{if(0===r.length)return null;for(;0!==r.length;){const[e,t]=r.pop(),a=t+1;if(a");for(const t of this.childNodes)t.dump(e);e.push(``)}else this.nodeValue?e.push(`>${(0,r.encodeToXmlString)(this.nodeValue)}`):e.push("/>")}else e.push((0,r.encodeToXmlString)(this.nodeValue))}}t.SimpleDOMNode=SimpleDOMNode;t.SimpleXMLParser=class SimpleXMLParser extends XMLParserBase{constructor({hasAttributes:e=!1,lowerCaseName:t=!1}){super();this._currentFragment=null;this._stack=null;this._errorCode=n.NoError;this._hasAttributes=e;this._lowerCaseName=t}parseFromString(e){this._currentFragment=[];this._stack=[];this._errorCode=n.NoError;this.parseXml(e);if(this._errorCode!==n.NoError)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onText(e){if(function isWhitespaceString(e){for(let t=0,a=e.length;t{Object.defineProperty(t,"__esModule",{value:!0});t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;t.calculateSHA384=calculateSHA384;t.calculateSHA512=void 0;var r=a(2),n=a(4),i=a(67);class ARCFourCipher{constructor(e){this.a=0;this.b=0;const t=new Uint8Array(256),a=e.length;for(let e=0;e<256;++e)t[e]=e;for(let r=0,n=0;r<256;++r){const i=t[r];n=n+i+e[r%a]&255;t[r]=t[n];t[n]=i}this.s=t}encryptBlock(e){let t=this.a,a=this.b;const r=this.s,n=e.length,i=new Uint8Array(n);for(let s=0;s>5&255;h[u++]=n>>13&255;h[u++]=n>>21&255;h[u++]=n>>>29&255;h[u++]=0;h[u++]=0;h[u++]=0;const g=new Int32Array(16);for(u=0;u>>32-o)|0;n=i}i=i+n|0;s=s+l|0;o=o+f|0;c=c+p|0}return new Uint8Array([255&i,i>>8&255,i>>16&255,i>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255])}}();t.calculateMD5=s;class Word64{constructor(e,t){this.high=0|e;this.low=0|t}and(e){this.high&=e.high;this.low&=e.low}xor(e){this.high^=e.high;this.low^=e.low}or(e){this.high|=e.high;this.low|=e.low}shiftRight(e){if(e>=32){this.low=this.high>>>e-32|0;this.high=0}else{this.low=this.low>>>e|this.high<<32-e;this.high=this.high>>>e|0}}shiftLeft(e){if(e>=32){this.high=this.low<>>32-e;this.low<<=e}}rotateRight(e){let t,a;if(32&e){a=this.low;t=this.high}else{t=this.low;a=this.high}e&=31;this.low=t>>>e|a<<32-e;this.high=a>>>e|t<<32-e}not(){this.high=~this.high;this.low=~this.low}add(e){const t=(this.low>>>0)+(e.low>>>0);let a=(this.high>>>0)+(e.high>>>0);t>4294967295&&(a+=1);this.low=0|t;this.high=0|a}copyTo(e,t){e[t]=this.high>>>24&255;e[t+1]=this.high>>16&255;e[t+2]=this.high>>8&255;e[t+3]=255&this.high;e[t+4]=this.low>>>24&255;e[t+5]=this.low>>16&255;e[t+6]=this.low>>8&255;e[t+7]=255&this.low}assign(e){this.high=e.high;this.low=e.low}}const o=function calculateSHA256Closure(){function rotr(e,t){return e>>>t|e<<32-t}function ch(e,t,a){return e&t^~e&a}function maj(e,t,a){return e&t^e&a^t&a}function sigma(e){return rotr(e,2)^rotr(e,13)^rotr(e,22)}function sigmaPrime(e){return rotr(e,6)^rotr(e,11)^rotr(e,25)}function littleSigma(e){return rotr(e,7)^rotr(e,18)^e>>>3}const e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function hash(t,a,r){let n=1779033703,i=3144134277,s=1013904242,o=2773480762,c=1359893119,l=2600822924,h=528734635,u=1541459225;const d=64*Math.ceil((r+9)/64),f=new Uint8Array(d);let g,p;for(g=0;g>>29&255;f[g++]=r>>21&255;f[g++]=r>>13&255;f[g++]=r>>5&255;f[g++]=r<<3&255;const b=new Uint32Array(64);for(g=0;g>>10)+b[p-7]+littleSigma(b[p-15])+b[p-16]|0;let t,a,r=n,d=i,m=s,w=o,S=c,x=l,C=h,k=u;for(p=0;p<64;++p){t=k+sigmaPrime(S)+ch(S,x,C)+e[p]+b[p];a=sigma(r)+maj(r,d,m);k=C;C=x;x=S;S=w+t|0;w=m;m=d;d=r;r=t+a|0}n=n+r|0;i=i+d|0;s=s+m|0;o=o+w|0;c=c+S|0;l=l+x|0;h=h+C|0;u=u+k|0}var y;return new Uint8Array([n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,c>>24&255,c>>16&255,c>>8&255,255&c,l>>24&255,l>>16&255,l>>8&255,255&l,h>>24&255,h>>16&255,h>>8&255,255&h,u>>24&255,u>>16&255,u>>8&255,255&u])}}();t.calculateSHA256=o;const c=function calculateSHA512Closure(){function ch(e,t,a,r,n){e.assign(t);e.and(a);n.assign(t);n.not();n.and(r);e.xor(n)}function maj(e,t,a,r,n){e.assign(t);e.and(a);n.assign(t);n.and(r);e.xor(n);n.assign(a);n.and(r);e.xor(n)}function sigma(e,t,a){e.assign(t);e.rotateRight(28);a.assign(t);a.rotateRight(34);e.xor(a);a.assign(t);a.rotateRight(39);e.xor(a)}function sigmaPrime(e,t,a){e.assign(t);e.rotateRight(14);a.assign(t);a.rotateRight(18);e.xor(a);a.assign(t);a.rotateRight(41);e.xor(a)}function littleSigma(e,t,a){e.assign(t);e.rotateRight(1);a.assign(t);a.rotateRight(8);e.xor(a);a.assign(t);a.shiftRight(7);e.xor(a)}function littleSigmaPrime(e,t,a){e.assign(t);e.rotateRight(19);a.assign(t);a.rotateRight(61);e.xor(a);a.assign(t);a.shiftRight(6);e.xor(a)}const e=[new Word64(1116352408,3609767458),new Word64(1899447441,602891725),new Word64(3049323471,3964484399),new Word64(3921009573,2173295548),new Word64(961987163,4081628472),new Word64(1508970993,3053834265),new Word64(2453635748,2937671579),new Word64(2870763221,3664609560),new Word64(3624381080,2734883394),new Word64(310598401,1164996542),new Word64(607225278,1323610764),new Word64(1426881987,3590304994),new Word64(1925078388,4068182383),new Word64(2162078206,991336113),new Word64(2614888103,633803317),new Word64(3248222580,3479774868),new Word64(3835390401,2666613458),new Word64(4022224774,944711139),new Word64(264347078,2341262773),new Word64(604807628,2007800933),new Word64(770255983,1495990901),new Word64(1249150122,1856431235),new Word64(1555081692,3175218132),new Word64(1996064986,2198950837),new Word64(2554220882,3999719339),new Word64(2821834349,766784016),new Word64(2952996808,2566594879),new Word64(3210313671,3203337956),new Word64(3336571891,1034457026),new Word64(3584528711,2466948901),new Word64(113926993,3758326383),new Word64(338241895,168717936),new Word64(666307205,1188179964),new Word64(773529912,1546045734),new Word64(1294757372,1522805485),new Word64(1396182291,2643833823),new Word64(1695183700,2343527390),new Word64(1986661051,1014477480),new Word64(2177026350,1206759142),new Word64(2456956037,344077627),new Word64(2730485921,1290863460),new Word64(2820302411,3158454273),new Word64(3259730800,3505952657),new Word64(3345764771,106217008),new Word64(3516065817,3606008344),new Word64(3600352804,1432725776),new Word64(4094571909,1467031594),new Word64(275423344,851169720),new Word64(430227734,3100823752),new Word64(506948616,1363258195),new Word64(659060556,3750685593),new Word64(883997877,3785050280),new Word64(958139571,3318307427),new Word64(1322822218,3812723403),new Word64(1537002063,2003034995),new Word64(1747873779,3602036899),new Word64(1955562222,1575990012),new Word64(2024104815,1125592928),new Word64(2227730452,2716904306),new Word64(2361852424,442776044),new Word64(2428436474,593698344),new Word64(2756734187,3733110249),new Word64(3204031479,2999351573),new Word64(3329325298,3815920427),new Word64(3391569614,3928383900),new Word64(3515267271,566280711),new Word64(3940187606,3454069534),new Word64(4118630271,4000239992),new Word64(116418474,1914138554),new Word64(174292421,2731055270),new Word64(289380356,3203993006),new Word64(460393269,320620315),new Word64(685471733,587496836),new Word64(852142971,1086792851),new Word64(1017036298,365543100),new Word64(1126000580,2618297676),new Word64(1288033470,3409855158),new Word64(1501505948,4234509866),new Word64(1607167915,987167468),new Word64(1816402316,1246189591)];return function hash(t,a,r,n=!1){let i,s,o,c,l,h,u,d;if(n){i=new Word64(3418070365,3238371032);s=new Word64(1654270250,914150663);o=new Word64(2438529370,812702999);c=new Word64(355462360,4144912697);l=new Word64(1731405415,4290775857);h=new Word64(2394180231,1750603025);u=new Word64(3675008525,1694076839);d=new Word64(1203062813,3204075428)}else{i=new Word64(1779033703,4089235720);s=new Word64(3144134277,2227873595);o=new Word64(1013904242,4271175723);c=new Word64(2773480762,1595750129);l=new Word64(1359893119,2917565137);h=new Word64(2600822924,725511199);u=new Word64(528734635,4215389547);d=new Word64(1541459225,327033209)}const f=128*Math.ceil((r+17)/128),g=new Uint8Array(f);let p,m;for(p=0;p>>29&255;g[p++]=r>>21&255;g[p++]=r>>13&255;g[p++]=r>>5&255;g[p++]=r<<3&255;const y=new Array(80);for(p=0;p<80;p++)y[p]=new Word64(0,0);let w=new Word64(0,0),S=new Word64(0,0),x=new Word64(0,0),C=new Word64(0,0),k=new Word64(0,0),v=new Word64(0,0),F=new Word64(0,0),O=new Word64(0,0);const T=new Word64(0,0),M=new Word64(0,0),E=new Word64(0,0),D=new Word64(0,0);let N,R;for(p=0;p=1;--e){a=i[13];i[13]=i[9];i[9]=i[5];i[5]=i[1];i[1]=a;a=i[14];r=i[10];i[14]=i[6];i[10]=i[2];i[6]=a;i[2]=r;a=i[15];r=i[11];n=i[7];i[15]=i[3];i[11]=a;i[7]=r;i[3]=n;for(let e=0;e<16;++e)i[e]=this._inv_s[i[e]];for(let a=0,r=16*e;a<16;++a,++r)i[a]^=t[r];for(let e=0;e<16;e+=4){const t=this._mix[i[e]],r=this._mix[i[e+1]],n=this._mix[i[e+2]],s=this._mix[i[e+3]];a=t^r>>>8^r<<24^n>>>16^n<<16^s>>>24^s<<8;i[e]=a>>>24&255;i[e+1]=a>>16&255;i[e+2]=a>>8&255;i[e+3]=255&a}}a=i[13];i[13]=i[9];i[9]=i[5];i[5]=i[1];i[1]=a;a=i[14];r=i[10];i[14]=i[6];i[10]=i[2];i[6]=a;i[2]=r;a=i[15];r=i[11];n=i[7];i[15]=i[3];i[11]=a;i[7]=r;i[3]=n;for(let e=0;e<16;++e){i[e]=this._inv_s[i[e]];i[e]^=t[e]}return i}_encrypt(e,t){const a=this._s;let r,n,i;const s=new Uint8Array(16);s.set(e);for(let e=0;e<16;++e)s[e]^=t[e];for(let e=1;e=r;--a)if(e[a]!==t){t=0;break}o-=t;i[i.length-1]=e.subarray(0,16-t)}}const c=new Uint8Array(o);for(let e=0,t=0,a=i.length;e=256&&(o=255&(27^o))}for(let t=0;t<4;++t){a[e]=r^=a[e-32];e++;a[e]=n^=a[e-32];e++;a[e]=i^=a[e-32];e++;a[e]=s^=a[e-32];e++}}return a}}t.AES256Cipher=AES256Cipher;class PDF17{checkOwnerPassword(e,t,a,n){const i=new Uint8Array(e.length+56);i.set(e,0);i.set(t,e.length);i.set(a,e.length+t.length);const s=o(i,0,i.length);return(0,r.isArrayEqual)(s,n)}checkUserPassword(e,t,a){const n=new Uint8Array(e.length+8);n.set(e,0);n.set(t,e.length);const i=o(n,0,n.length);return(0,r.isArrayEqual)(i,a)}getOwnerKey(e,t,a,r){const n=new Uint8Array(e.length+56);n.set(e,0);n.set(t,e.length);n.set(a,e.length+t.length);const i=o(n,0,n.length);return new AES256Cipher(i).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,a){const r=new Uint8Array(e.length+8);r.set(e,0);r.set(t,e.length);const n=o(r,0,r.length);return new AES256Cipher(n).decryptBlock(a,!1,new Uint8Array(16))}}t.PDF17=PDF17;const l=function PDF20Closure(){function calculatePDF20Hash(e,t,a){let r=o(t,0,t.length).subarray(0,32),n=[0],i=0;for(;i<64||n.at(-1)>i-32;){const t=e.length+r.length+a.length,s=new Uint8Array(t);let l=0;s.set(e,l);l+=e.length;s.set(r,l);l+=r.length;s.set(a,l);const h=new Uint8Array(64*t);for(let e=0,a=0;e<64;e++,a+=t)h.set(s,a);n=new AES128Cipher(r.subarray(0,16)).encrypt(h,r.subarray(16,32));const u=n.slice(0,16).reduce(((e,t)=>e+t),0)%3;0===u?r=o(n,0,n.length):1===u?r=calculateSHA384(n,0,n.length):2===u&&(r=c(n,0,n.length));i++}return r.subarray(0,32)}return class PDF20{hash(e,t,a){return calculatePDF20Hash(e,t,a)}checkOwnerPassword(e,t,a,n){const i=new Uint8Array(e.length+56);i.set(e,0);i.set(t,e.length);i.set(a,e.length+t.length);const s=calculatePDF20Hash(e,i,a);return(0,r.isArrayEqual)(s,n)}checkUserPassword(e,t,a){const n=new Uint8Array(e.length+8);n.set(e,0);n.set(t,e.length);const i=calculatePDF20Hash(e,n,[]);return(0,r.isArrayEqual)(i,a)}getOwnerKey(e,t,a,r){const n=new Uint8Array(e.length+56);n.set(e,0);n.set(t,e.length);n.set(a,e.length+t.length);const i=calculatePDF20Hash(e,n,a);return new AES256Cipher(i).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,a){const r=new Uint8Array(e.length+8);r.set(e,0);r.set(t,e.length);const n=calculatePDF20Hash(e,r,[]);return new AES256Cipher(n).decryptBlock(a,!1,new Uint8Array(16))}}}();t.PDF20=l;class CipherTransform{constructor(e,t){this.StringCipherConstructor=e;this.StreamCipherConstructor=t}createStream(e,t){const a=new this.StreamCipherConstructor;return new i.DecryptStream(e,t,(function cipherTransformDecryptStream(e,t){return a.decryptBlock(e,t)}))}decryptString(e){const t=new this.StringCipherConstructor;let a=(0,r.stringToBytes)(e);a=t.decryptBlock(a,!0);return(0,r.bytesToString)(a)}encryptString(e){const t=new this.StringCipherConstructor;if(t instanceof AESBaseCipher){const a=16-e.length%16;e+=String.fromCharCode(a).repeat(a);const n=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(n);else for(let e=0;e<16;e++)n[e]=Math.floor(256*Math.random());let i=(0,r.stringToBytes)(e);i=t.encrypt(i,n);const s=new Uint8Array(16+i.length);s.set(n);s.set(i,16);return(0,r.bytesToString)(s)}let a=(0,r.stringToBytes)(e);a=t.encrypt(a);return(0,r.bytesToString)(a)}}const h=function CipherTransformFactoryClosure(){const e=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function prepareKeyData(t,a,r,n,i,o,c,l){const h=40+r.length+t.length,u=new Uint8Array(h);let d,f,g=0;if(a){f=Math.min(32,a.length);for(;g>8&255;u[g++]=i>>16&255;u[g++]=i>>>24&255;for(d=0,f=t.length;d=4&&!l){u[g++]=255;u[g++]=255;u[g++]=255;u[g++]=255}let p=s(u,0,g);const m=c>>3;if(o>=3)for(d=0;d<50;++d)p=s(p,0,m);const b=p.subarray(0,m);let y,w;if(o>=3){for(g=0;g<32;++g)u[g]=e[g];for(d=0,f=t.length;d>8&255;n[o++]=e>>16&255;n[o++]=255&t;n[o++]=t>>8&255;if(r){n[o++]=115;n[o++]=65;n[o++]=108;n[o++]=84}return s(n,0,o).subarray(0,Math.min(a.length+5,16))}function buildCipherConstructor(e,t,a,i,s){if(!(t instanceof n.Name))throw new r.FormatError("Invalid crypt filter name.");const o=e.get(t.name);let c;null!=o&&(c=o.get("CFM"));if(!c||"None"===c.name)return function cipherTransformFactoryBuildCipherConstructorNone(){return new NullCipher};if("V2"===c.name)return function cipherTransformFactoryBuildCipherConstructorV2(){return new ARCFourCipher(buildObjectKey(a,i,s,!1))};if("AESV2"===c.name)return function cipherTransformFactoryBuildCipherConstructorAESV2(){return new AES128Cipher(buildObjectKey(a,i,s,!0))};if("AESV3"===c.name)return function cipherTransformFactoryBuildCipherConstructorAESV3(){return new AES256Cipher(s)};throw new r.FormatError("Unknown crypto method")}return class CipherTransformFactory{constructor(a,i,o){const c=a.get("Filter");if(!(0,n.isName)(c,"Standard"))throw new r.FormatError("unknown encryption method");this.filterName=c.name;this.dict=a;const h=a.get("V");if(!Number.isInteger(h)||1!==h&&2!==h&&4!==h&&5!==h)throw new r.FormatError("unsupported encryption algorithm");this.algorithm=h;let u=a.get("Length");if(!u)if(h<=3)u=40;else{const e=a.get("CF"),t=a.get("StmF");if(e instanceof n.Dict&&t instanceof n.Name){e.suppressEncryption=!0;const a=e.get(t.name);u=a&&a.get("Length")||128;u<40&&(u<<=3)}}if(!Number.isInteger(u)||u<40||u%8!=0)throw new r.FormatError("invalid key length");const d=(0,r.stringToBytes)(a.get("O")).subarray(0,32),f=(0,r.stringToBytes)(a.get("U")).subarray(0,32),g=a.get("P"),p=a.get("R"),m=(4===h||5===h)&&!1!==a.get("EncryptMetadata");this.encryptMetadata=m;const b=(0,r.stringToBytes)(i);let y,w;if(o){if(6===p)try{o=(0,r.utf8StringToString)(o)}catch(e){(0,r.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}y=(0,r.stringToBytes)(o)}if(5!==h)w=prepareKeyData(b,y,d,f,g,p,u,m);else{const e=(0,r.stringToBytes)(a.get("O")).subarray(32,40),t=(0,r.stringToBytes)(a.get("O")).subarray(40,48),n=(0,r.stringToBytes)(a.get("U")).subarray(0,48),i=(0,r.stringToBytes)(a.get("U")).subarray(32,40),s=(0,r.stringToBytes)(a.get("U")).subarray(40,48),o=(0,r.stringToBytes)(a.get("OE")),c=(0,r.stringToBytes)(a.get("UE"));(0,r.stringToBytes)(a.get("Perms"));w=function createEncryptionKey20(e,t,a,r,n,i,s,o,c,h,u,d){if(t){const e=Math.min(127,t.length);t=t.subarray(0,e)}else t=[];let f;f=6===e?new l:new PDF17;return f.checkUserPassword(t,o,s)?f.getUserKey(t,c,u):t.length&&f.checkOwnerPassword(t,r,i,a)?f.getOwnerKey(t,n,i,h):null}(p,y,d,e,t,n,f,i,s,o,c)}if(!w&&!o)throw new r.PasswordException("No password given",r.PasswordResponses.NEED_PASSWORD);if(!w&&o){const t=function decodeUserPassword(t,a,r,n){const i=new Uint8Array(32);let o=0;const c=Math.min(32,t.length);for(;o>3;if(r>=3)for(l=0;l<50;++l)h=s(h,0,h.length);let d,f;if(r>=3){f=a;const e=new Uint8Array(u);for(l=19;l>=0;l--){for(let t=0;t=4){const e=a.get("CF");e instanceof n.Dict&&(e.suppressEncryption=!0);this.cf=e;this.stmf=a.get("StmF")||t;this.strf=a.get("StrF")||t;this.eff=a.get("EFF")||this.stmf}}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new CipherTransform(buildCipherConstructor(this.cf,this.strf,e,t,this.encryptionKey),buildCipherConstructor(this.cf,this.stmf,e,t,this.encryptionKey));const a=buildObjectKey(e,t,this.encryptionKey,!1),r=function buildCipherCipherConstructor(){return new ARCFourCipher(a)};return new CipherTransform(r,r)}}}();t.CipherTransformFactory=h},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.DecryptStream=void 0;var r=a(17);class DecryptStream extends r.DecodeStream{constructor(e,t,a){super(t);this.str=e;this.dict=e.dict;this.decrypt=a;this.nextChunk=null;this.initialized=!1}readBlock(){let e;if(this.initialized)e=this.nextChunk;else{e=this.str.getBytes(512);this.initialized=!0}if(!e||0===e.length){this.eof=!0;return}this.nextChunk=this.str.getBytes(512);const t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);const a=this.bufferLength,r=a+e.length;this.ensureBuffer(r).set(e,a);this.bufferLength=r}}t.DecryptStream=DecryptStream},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.Catalog=void 0;var r=a(3),n=a(2),i=a(4),s=a(69),o=a(5),c=a(70),l=a(12),h=a(71),u=a(58),d=a(72),f=a(73);function fetchDestination(e){e instanceof i.Dict&&(e=e.get("D"));return Array.isArray(e)?e:null}class Catalog{constructor(e,t){this.pdfManager=e;this.xref=t;this._catDict=t.getCatalogObj();if(!(this._catDict instanceof i.Dict))throw new n.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict;this._actualNumPages=null;this.fontCache=new i.RefSetCache;this.builtInCMapCache=new Map;this.standardFontDataCache=new Map;this.globalImageCache=new u.GlobalImageCache;this.pageKidsCountCache=new i.RefSetCache;this.pageIndexCache=new i.RefSetCache;this.nonBlendModesSet=new i.RefSet}get version(){const e=this._catDict.get("Version");if(e instanceof i.Name){if(r.PDF_VERSION_REGEXP.test(e.name))return(0,n.shadow)(this,"version",e.name);(0,n.warn)(`Invalid PDF catalog version: ${e.name}`)}return(0,n.shadow)(this,"version",null)}get lang(){const e=this._catDict.get("Lang");return(0,n.shadow)(this,"lang","string"==typeof e?(0,n.stringToPDFString)(e):null)}get needsRendering(){const e=this._catDict.get("NeedsRendering");return(0,n.shadow)(this,"needsRendering","boolean"==typeof e&&e)}get collection(){let e=null;try{const t=this._catDict.get("Collection");t instanceof i.Dict&&t.size>0&&(e=t)}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,n.shadow)(this,"collection",e)}get acroForm(){let e=null;try{const t=this._catDict.get("AcroForm");t instanceof i.Dict&&t.size>0&&(e=t)}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,n.shadow)(this,"acroForm",e)}get acroFormRef(){const e=this._catDict.getRaw("AcroForm");return(0,n.shadow)(this,"acroFormRef",e instanceof i.Ref?e:null)}get metadata(){const e=this._catDict.getRaw("Metadata");if(!(e instanceof i.Ref))return(0,n.shadow)(this,"metadata",null);let t=null;try{const a=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),r=this.xref.fetch(e,a);if(r instanceof o.BaseStream&&r.dict instanceof i.Dict){const e=r.dict.get("Type"),a=r.dict.get("Subtype");if((0,i.isName)(e,"Metadata")&&(0,i.isName)(a,"XML")){const e=(0,n.stringToUTF8String)(r.getString());e&&(t=new d.MetadataParser(e).serializable)}}}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.info)(`Skipping invalid Metadata: "${e}".`)}return(0,n.shadow)(this,"metadata",t)}get markInfo(){let e=null;try{e=this._readMarkInfo()}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)("Unable to read mark info.")}return(0,n.shadow)(this,"markInfo",e)}_readMarkInfo(){const e=this._catDict.get("MarkInfo");if(!(e instanceof i.Dict))return null;const t={Marked:!1,UserProperties:!1,Suspects:!1};for(const a in t){const r=e.get(a);"boolean"==typeof r&&(t[a]=r)}return t}get structTreeRoot(){let e=null;try{e=this._readStructTreeRoot()}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)("Unable read to structTreeRoot info.")}return(0,n.shadow)(this,"structTreeRoot",e)}_readStructTreeRoot(){const e=this._catDict.get("StructTreeRoot");if(!(e instanceof i.Dict))return null;const t=new f.StructTreeRoot(e);t.init();return t}get toplevelPagesDict(){const e=this._catDict.get("Pages");if(!(e instanceof i.Dict))throw new n.FormatError("Invalid top-level pages dictionary.");return(0,n.shadow)(this,"toplevelPagesDict",e)}get documentOutline(){let e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)("Unable to read document outline.")}return(0,n.shadow)(this,"documentOutline",e)}_readDocumentOutline(){let e=this._catDict.get("Outlines");if(!(e instanceof i.Dict))return null;e=e.getRaw("First");if(!(e instanceof i.Ref))return null;const t={items:[]},a=[{obj:e,parent:t}],r=new i.RefSet;r.put(e);const s=this.xref,o=new Uint8ClampedArray(3);for(;a.length>0;){const t=a.shift(),c=s.fetchIfRef(t.obj);if(null===c)continue;if(!c.has("Title"))throw new n.FormatError("Invalid outline item encountered.");const h={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:c,resultObj:h,docBaseUrl:this.pdfManager.docBaseUrl,docAttachments:this.attachments});const u=c.get("Title"),d=c.get("F")||0,f=c.getArray("C"),g=c.get("Count");let p=o;!Array.isArray(f)||3!==f.length||0===f[0]&&0===f[1]&&0===f[2]||(p=l.ColorSpace.singletons.rgb.getRgb(f,0));const m={action:h.action,attachment:h.attachment,dest:h.dest,url:h.url,unsafeUrl:h.unsafeUrl,newWindow:h.newWindow,setOCGState:h.setOCGState,title:(0,n.stringToPDFString)(u),color:p,count:Number.isInteger(g)?g:void 0,bold:!!(2&d),italic:!!(1&d),items:[]};t.parent.items.push(m);e=c.getRaw("First");if(e instanceof i.Ref&&!r.has(e)){a.push({obj:e,parent:m});r.put(e)}e=c.getRaw("Next");if(e instanceof i.Ref&&!r.has(e)){a.push({obj:e,parent:t.parent});r.put(e)}}return t.items.length>0?t.items:null}get permissions(){let e=null;try{e=this._readPermissions()}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)("Unable to read permissions.")}return(0,n.shadow)(this,"permissions",e)}_readPermissions(){const e=this.xref.trailer.get("Encrypt");if(!(e instanceof i.Dict))return null;let t=e.get("P");if("number"!=typeof t)return null;t+=2**32;const a=[];for(const e in n.PermissionFlag){const r=n.PermissionFlag[e];t&r&&a.push(r)}return a}get optionalContentConfig(){let e=null;try{const t=this._catDict.get("OCProperties");if(!t)return(0,n.shadow)(this,"optionalContentConfig",null);const a=t.get("D");if(!a)return(0,n.shadow)(this,"optionalContentConfig",null);const r=t.get("OCGs");if(!Array.isArray(r))return(0,n.shadow)(this,"optionalContentConfig",null);const s=[],o=[];for(const e of r){if(!(e instanceof i.Ref))continue;o.push(e);const t=this.xref.fetchIfRef(e);s.push({id:e.toString(),name:"string"==typeof t.get("Name")?(0,n.stringToPDFString)(t.get("Name")):null,intent:"string"==typeof t.get("Intent")?(0,n.stringToPDFString)(t.get("Intent")):null})}e=this._readOptionalContentConfig(a,o);e.groups=s}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)(`Unable to read optional content config: ${e}`)}return(0,n.shadow)(this,"optionalContentConfig",e)}_readOptionalContentConfig(e,t){function parseOnOff(e){const a=[];if(Array.isArray(e))for(const r of e)r instanceof i.Ref&&t.includes(r)&&a.push(r.toString());return a}function parseOrder(e,a=0){if(!Array.isArray(e))return null;const n=[];for(const s of e){if(s instanceof i.Ref&&t.includes(s)){r.put(s);n.push(s.toString());continue}const e=parseNestedOrder(s,a);e&&n.push(e)}if(a>0)return n;const s=[];for(const e of t)r.has(e)||s.push(e.toString());s.length&&n.push({name:null,order:s});return n}function parseNestedOrder(e,t){if(++t>s){(0,n.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}const r=a.fetchIfRef(e);if(!Array.isArray(r))return null;const i=a.fetchIfRef(r[0]);if("string"!=typeof i)return null;const o=parseOrder(r.slice(1),t);return o&&o.length?{name:(0,n.stringToPDFString)(i),order:o}:null}const a=this.xref,r=new i.RefSet,s=10;return{name:"string"==typeof e.get("Name")?(0,n.stringToPDFString)(e.get("Name")):null,creator:"string"==typeof e.get("Creator")?(0,n.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof i.Name?e.get("BaseState").name:null,on:parseOnOff(e.get("ON")),off:parseOnOff(e.get("OFF")),order:parseOrder(e.get("Order")),groups:null}}setActualNumPages(e=null){this._actualNumPages=e}get hasActualNumPages(){return null!==this._actualNumPages}get _pagesCount(){const e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new n.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,n.shadow)(this,"_pagesCount",e)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const e=this._readDests(),t=Object.create(null);if(e instanceof s.NameTree)for(const[a,r]of e.getAll()){const e=fetchDestination(r);e&&(t[(0,n.stringToPDFString)(a)]=e)}else e instanceof i.Dict&&e.forEach((function(e,a){const r=fetchDestination(a);r&&(t[e]=r)}));return(0,n.shadow)(this,"destinations",t)}getDestination(e){const t=this._readDests();if(t instanceof s.NameTree){const a=fetchDestination(t.get(e));if(a)return a;const r=this.destinations[e];if(r){(0,n.warn)(`Found "${e}" at an incorrect position in the NameTree.`);return r}}else if(t instanceof i.Dict){const a=fetchDestination(t.get(e));if(a)return a}return null}_readDests(){const e=this._catDict.get("Names");return e&&e.has("Dests")?new s.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}get pageLabels(){let e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)}_readPageLabels(){const e=this._catDict.getRaw("PageLabels");if(!e)return null;const t=new Array(this.numPages);let a=null,o="";const c=new s.NumberTree(e,this.xref).getAll();let l="",h=1;for(let e=0,s=this.numPages;e=1))throw new n.FormatError("Invalid start in PageLabel dictionary.");h=e}else h=1}switch(a){case"D":l=h;break;case"R":case"r":l=(0,r.toRomanNumerals)(h,"r"===a);break;case"A":case"a":const e=26,t="a"===a?97:65,i=h-1;l=String.fromCharCode(t+i%e).repeat(Math.floor(i/e)+1);break;default:if(a)throw new n.FormatError(`Invalid style "${a}" in PageLabel dictionary.`);l=""}t[e]=o+l;h++}return t}get pageLayout(){const e=this._catDict.get("PageLayout");let t="";if(e instanceof i.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,n.shadow)(this,"pageLayout",t)}get pageMode(){const e=this._catDict.get("PageMode");let t="UseNone";if(e instanceof i.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,n.shadow)(this,"pageMode",t)}get viewerPreferences(){const e=this._catDict.get("ViewerPreferences");if(!(e instanceof i.Dict))return(0,n.shadow)(this,"viewerPreferences",null);let t=null;for(const a of e.getKeys()){const r=e.get(a);let s;switch(a){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof r&&(s=r);break;case"NonFullScreenPageMode":if(r instanceof i.Name)switch(r.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":s=r.name;break;default:s="UseNone"}break;case"Direction":if(r instanceof i.Name)switch(r.name){case"L2R":case"R2L":s=r.name;break;default:s="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(r instanceof i.Name)switch(r.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":s=r.name;break;default:s="CropBox"}break;case"PrintScaling":if(r instanceof i.Name)switch(r.name){case"None":case"AppDefault":s=r.name;break;default:s="AppDefault"}break;case"Duplex":if(r instanceof i.Name)switch(r.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":s=r.name;break;default:s="None"}break;case"PrintPageRange":if(Array.isArray(r)&&r.length%2==0){r.every(((e,t,a)=>Number.isInteger(e)&&e>0&&(0===t||e>=a[t-1])&&e<=this.numPages))&&(s=r)}break;case"NumCopies":Number.isInteger(r)&&r>0&&(s=r);break;default:(0,n.warn)(`Ignoring non-standard key in ViewerPreferences: ${a}.`);continue}if(void 0!==s){t||(t=Object.create(null));t[a]=s}else(0,n.warn)(`Bad value, for key "${a}", in ViewerPreferences: ${r}.`)}return(0,n.shadow)(this,"viewerPreferences",t)}get openAction(){const e=this._catDict.get("OpenAction"),t=Object.create(null);if(e instanceof i.Dict){const a=new i.Dict(this.xref);a.set("A",e);const r={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:a,resultObj:r});Array.isArray(r.dest)?t.dest=r.dest:r.action&&(t.action=r.action)}else Array.isArray(e)&&(t.dest=e);return(0,n.shadow)(this,"openAction",(0,n.objectSize)(t)>0?t:null)}get attachments(){const e=this._catDict.get("Names");let t=null;if(e instanceof i.Dict&&e.has("EmbeddedFiles")){const a=new s.NameTree(e.getRaw("EmbeddedFiles"),this.xref);for(const[e,r]of a.getAll()){const a=new h.FileSpec(r,this.xref);t||(t=Object.create(null));t[(0,n.stringToPDFString)(e)]=a.serializable}}return(0,n.shadow)(this,"attachments",t)}get xfaImages(){const e=this._catDict.get("Names");let t=null;if(e instanceof i.Dict&&e.has("XFAImages")){const a=new s.NameTree(e.getRaw("XFAImages"),this.xref);for(const[e,r]of a.getAll()){t||(t=new i.Dict(this.xref));t.set((0,n.stringToPDFString)(e),r)}}return(0,n.shadow)(this,"xfaImages",t)}_collectJavaScript(){const e=this._catDict.get("Names");let t=null;function appendIfJavaScriptDict(e,a){if(!(a instanceof i.Dict))return;if(!(0,i.isName)(a.get("S"),"JavaScript"))return;let r=a.get("JS");if(r instanceof o.BaseStream)r=r.getString();else if("string"!=typeof r)return;null===t&&(t=new Map);r=(0,n.stringToPDFString)(r).replaceAll("\0","");t.set(e,r)}if(e instanceof i.Dict&&e.has("JavaScript")){const t=new s.NameTree(e.getRaw("JavaScript"),this.xref);for(const[e,a]of t.getAll())appendIfJavaScriptDict((0,n.stringToPDFString)(e),a)}const a=this._catDict.get("OpenAction");a&&appendIfJavaScriptDict("OpenAction",a);return t}get javaScript(){const e=this._collectJavaScript();return(0,n.shadow)(this,"javaScript",e?[...e.values()]:null)}get jsActions(){const e=this._collectJavaScript();let t=(0,r.collectActions)(this.xref,this._catDict,n.DocumentActionEventType);if(e){t||(t=Object.create(null));for(const[a,r]of e)a in t?t[a].push(r):t[a]=[r]}return(0,n.shadow)(this,"jsActions",t)}async fontFallback(e,t){const a=await Promise.all(this.fontCache);for(const r of a)if(r.loadedName===e){r.fallback(t);return}}async cleanup(e=!1){(0,c.clearGlobalCaches)();this.globalImageCache.clear(e);this.pageKidsCountCache.clear();this.pageIndexCache.clear();this.nonBlendModesSet.clear();const t=await Promise.all(this.fontCache);for(const{dict:e}of t)delete e.cacheKey;this.fontCache.clear();this.builtInCMapCache.clear();this.standardFontDataCache.clear()}async getPageDict(e){const t=[this.toplevelPagesDict],a=new i.RefSet,r=this._catDict.getRaw("Pages");r instanceof i.Ref&&a.put(r);const s=this.xref,o=this.pageKidsCountCache,c=this.pageIndexCache;let l=0;for(;t.length;){const r=t.pop();if(r instanceof i.Ref){const h=o.get(r);if(h>=0&&l+h<=e){l+=h;continue}if(a.has(r))throw new n.FormatError("Pages tree contains circular reference.");a.put(r);const u=await s.fetchAsync(r);if(u instanceof i.Dict){let t=u.getRaw("Type");t instanceof i.Ref&&(t=await s.fetchAsync(t));if((0,i.isName)(t,"Page")||!u.has("Kids")){o.has(r)||o.put(r,1);c.has(r)||c.put(r,l);if(l===e)return[u,r];l++;continue}}t.push(u);continue}if(!(r instanceof i.Dict))throw new n.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:h}=r;let u=r.getRaw("Count");u instanceof i.Ref&&(u=await s.fetchAsync(u));if(Number.isInteger(u)&&u>=0){h&&!o.has(h)&&o.put(h,u);if(l+u<=e){l+=u;continue}}let d=r.getRaw("Kids");d instanceof i.Ref&&(d=await s.fetchAsync(d));if(!Array.isArray(d)){let t=r.getRaw("Type");t instanceof i.Ref&&(t=await s.fetchAsync(t));if((0,i.isName)(t,"Page")||!r.has("Kids")){if(l===e)return[r,null];l++;continue}throw new n.FormatError("Page dictionary kids object is not an array.")}for(let e=d.length-1;e>=0;e--)t.push(d[e])}throw new Error(`Page index ${e} not found.`)}async getAllPageDicts(e=!1){const{ignoreErrors:t}=this.pdfManager.evaluatorOptions,a=[{currentNode:this.toplevelPagesDict,posInKids:0}],s=new i.RefSet,o=this._catDict.getRaw("Pages");o instanceof i.Ref&&s.put(o);const c=new Map,l=this.xref,h=this.pageIndexCache;let u=0;function addPageDict(e,t){t&&!h.has(t)&&h.put(t,u);c.set(u++,[e,t])}function addPageError(a){if(a instanceof r.XRefEntryException&&!e)throw a;if(e&&t&&0===u){(0,n.warn)(`getAllPageDicts - Skipping invalid first page: "${a}".`);a=i.Dict.empty}c.set(u++,[a,null])}for(;a.length>0;){const e=a.at(-1),{currentNode:t,posInKids:r}=e;let o=t.getRaw("Kids");if(o instanceof i.Ref)try{o=await l.fetchAsync(o)}catch(e){addPageError(e);break}if(!Array.isArray(o)){addPageError(new n.FormatError("Page dictionary kids object is not an array."));break}if(r>=o.length){a.pop();continue}const c=o[r];let h;if(c instanceof i.Ref){if(s.has(c)){addPageError(new n.FormatError("Pages tree contains circular reference."));break}s.put(c);try{h=await l.fetchAsync(c)}catch(e){addPageError(e);break}}else h=c;if(!(h instanceof i.Dict)){addPageError(new n.FormatError("Page dictionary kid reference points to wrong type of object."));break}let u=h.getRaw("Type");if(u instanceof i.Ref)try{u=await l.fetchAsync(u)}catch(e){addPageError(e);break}(0,i.isName)(u,"Page")||!h.has("Kids")?addPageDict(h,c instanceof i.Ref?c:null):a.push({currentNode:h,posInKids:0});e.posInKids++}return c}getPageIndex(e){const t=this.pageIndexCache.get(e);if(void 0!==t)return Promise.resolve(t);const a=this.xref;let r=0;const next=t=>function pagesBeforeRef(t){let r,s=0;return a.fetchAsync(t).then((function(a){if((0,i.isRefsEqual)(t,e)&&!(0,i.isDict)(a,"Page")&&!(a instanceof i.Dict&&!a.has("Type")&&a.has("Contents")))throw new n.FormatError("The reference does not point to a /Page dictionary.");if(!a)return null;if(!(a instanceof i.Dict))throw new n.FormatError("Node must be a dictionary.");r=a.getRaw("Parent");return a.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(e instanceof i.Dict))throw new n.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;const o=[];let c=!1;for(const r of e){if(!(r instanceof i.Ref))throw new n.FormatError("Kid must be a reference.");if((0,i.isRefsEqual)(r,t)){c=!0;break}o.push(a.fetchAsync(r).then((function(e){if(!(e instanceof i.Dict))throw new n.FormatError("Kid node must be a dictionary.");e.has("Count")?s+=e.get("Count"):s++})))}if(!c)throw new n.FormatError("Kid reference not found in parent's kids.");return Promise.all(o).then((function(){return[s,r]}))}))}(t).then((t=>{if(!t){this.pageIndexCache.put(e,r);return r}const[a,n]=t;r+=a;return next(n)}));return next(e)}get baseUrl(){const e=this._catDict.get("URI");if(e instanceof i.Dict){const t=e.get("Base");if("string"==typeof t){const e=(0,n.createValidAbsoluteUrl)(t,null,{tryConvertEncoding:!0});if(e)return(0,n.shadow)(this,"baseUrl",e.href)}}return(0,n.shadow)(this,"baseUrl",null)}static parseDestDictionary(e){const t=e.destDict;if(!(t instanceof i.Dict)){(0,n.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}const a=e.resultObj;if("object"!=typeof a){(0,n.warn)("parseDestDictionary: `resultObj` must be an object.");return}const s=e.docBaseUrl||null,c=e.docAttachments||null;let l,h,u=t.get("A");if(!(u instanceof i.Dict))if(t.has("Dest"))u=t.get("Dest");else{u=t.get("AA");u instanceof i.Dict&&(u.has("D")?u=u.get("D"):u.has("U")&&(u=u.get("U")))}if(u instanceof i.Dict){const e=u.get("S");if(!(e instanceof i.Name)){(0,n.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const t=e.name;switch(t){case"ResetForm":const e=u.get("Flags"),s=0==(1&("number"==typeof e?e:0)),d=[],f=[];for(const e of u.get("Fields")||[])e instanceof i.Ref?f.push(e.toString()):"string"==typeof e&&d.push((0,n.stringToPDFString)(e));a.resetForm={fields:d,refs:f,include:s};break;case"URI":l=u.get("URI");l instanceof i.Name&&(l="/"+l.name);break;case"GoTo":h=u.get("D");break;case"Launch":case"GoToR":const g=u.get("F");g instanceof i.Dict?l=g.get("F")||null:"string"==typeof g&&(l=g);let p=u.get("D");if(p){p instanceof i.Name&&(p=p.name);if("string"==typeof l){const e=l.split("#")[0];"string"==typeof p?l=e+"#"+p:Array.isArray(p)&&(l=e+"#"+JSON.stringify(p))}}const m=u.get("NewWindow");"boolean"==typeof m&&(a.newWindow=m);break;case"GoToE":const b=u.get("T");let y;if(c&&b instanceof i.Dict){const e=b.get("R"),t=b.get("N");(0,i.isName)(e,"C")&&"string"==typeof t&&(y=c[(0,n.stringToPDFString)(t)])}y?a.attachment=y:(0,n.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":const w=u.get("N");w instanceof i.Name&&(a.action=w.name);break;case"SetOCGState":const S=u.get("State"),x=u.get("PreserveRB");if(!Array.isArray(S)||0===S.length)break;const C=[];for(const e of S)if(e instanceof i.Name)switch(e.name){case"ON":case"OFF":case"Toggle":C.push(e.name)}else e instanceof i.Ref&&C.push(e.toString());if(C.length!==S.length)break;a.setOCGState={state:C,preserveRB:"boolean"!=typeof x||x};break;case"JavaScript":const k=u.get("JS");let v;k instanceof o.BaseStream?v=k.getString():"string"==typeof k&&(v=k);const F=v&&(0,r.recoverJsURL)((0,n.stringToPDFString)(v));if(F){l=F.url;a.newWindow=F.newWindow;break}default:if("JavaScript"===t||"SubmitForm"===t)break;(0,n.warn)(`parseDestDictionary - unsupported action: "${t}".`)}}else t.has("Dest")&&(h=t.get("Dest"));if("string"==typeof l){const e=(0,n.createValidAbsoluteUrl)(l,s,{addDefaultProtocol:!0,tryConvertEncoding:!0});e&&(a.url=e.href);a.unsafeUrl=l}if(h){h instanceof i.Name&&(h=h.name);"string"==typeof h?a.dest=(0,n.stringToPDFString)(h):Array.isArray(h)&&(a.dest=h)}}}t.Catalog=Catalog},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.NumberTree=t.NameTree=void 0;var r=a(4),n=a(2);class NameOrNumberTree{constructor(e,t,a){this.constructor===NameOrNumberTree&&(0,n.unreachable)("Cannot initialize NameOrNumberTree.");this.root=e;this.xref=t;this._type=a}getAll(){const e=new Map;if(!this.root)return e;const t=this.xref,a=new r.RefSet;a.put(this.root);const i=[this.root];for(;i.length>0;){const s=t.fetchIfRef(i.shift());if(!(s instanceof r.Dict))continue;if(s.has("Kids")){const e=s.get("Kids");if(!Array.isArray(e))continue;for(const t of e){if(a.has(t))throw new n.FormatError(`Duplicate entry in "${this._type}" tree.`);i.push(t);a.put(t)}continue}const o=s.get(this._type);if(Array.isArray(o))for(let a=0,r=o.length;a10){(0,n.warn)(`Search depth limit reached for "${this._type}" tree.`);return null}const i=a.get("Kids");if(!Array.isArray(i))return null;let s=0,o=i.length-1;for(;s<=o;){const r=s+o>>1,n=t.fetchIfRef(i[r]),c=n.get("Limits");if(et.fetchIfRef(c[1]))){a=n;break}s=r+1}}if(s>o)return null}const i=a.get(this._type);if(Array.isArray(i)){let a=0,r=i.length-2;for(;a<=r;){const n=a+r>>1,s=n+(1&n),o=t.fetchIfRef(i[s]);if(eo))return t.fetchIfRef(i[s+1]);a=s+2}}}return null}}t.NameTree=class NameTree extends NameOrNumberTree{constructor(e,t){super(e,t,"Names")}};t.NumberTree=class NumberTree extends NameOrNumberTree{constructor(e,t){super(e,t,"Nums")}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.clearGlobalCaches=function clearGlobalCaches(){(0,r.clearPrimitiveCaches)();(0,n.clearUnicodeCaches)()};var r=a(4),n=a(39)},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.FileSpec=void 0;var r=a(2),n=a(5),i=a(4);function pickPlatformItem(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}t.FileSpec=class FileSpec{constructor(e,t){if(e instanceof i.Dict){this.xref=t;this.root=e;e.has("FS")&&(this.fs=e.get("FS"));this.description=e.has("Desc")?(0,r.stringToPDFString)(e.get("Desc")):"";e.has("RF")&&(0,r.warn)("Related file specifications are not supported");this.contentAvailable=!0;if(!e.has("EF")){this.contentAvailable=!1;(0,r.warn)("Non-embedded file specifications are not supported")}}}get filename(){if(!this._filename&&this.root){const e=pickPlatformItem(this.root)||"unnamed";this._filename=(0,r.stringToPDFString)(e).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=pickPlatformItem(this.root.get("EF")));let e=null;if(this.contentRef){const t=this.xref.fetchIfRef(this.contentRef);t instanceof n.BaseStream?e=t.getBytes():(0,r.warn)("Embedded file specification points to non-existing/invalid content")}else(0,r.warn)("Embedded file specification does not have a content");return e}get serializable(){return{filename:this.filename,content:this.content}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.MetadataParser=void 0;var r=a(65);t.MetadataParser=class MetadataParser{constructor(e){e=this._repair(e);const t=new r.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map;this._data=e;t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,(function(e,t){const a=t.replaceAll(/\\([0-3])([0-7])([0-7])/g,(function(e,t,a,r){return String.fromCharCode(64*t+8*a+1*r)})).replaceAll(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${t} isn't defined.`)})),r=[">"];for(let e=0,t=a.length;e=32&&t<127&&60!==t&&62!==t&&38!==t?r.push(String.fromCharCode(t)):r.push("&#x"+(65536+t).toString(16).substring(1)+";")}return r.join("")}))}_getSequence(e){const t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((e=>"rdf:li"===e.nodeName))}_parseArray(e){if(!e.hasChildNodes())return;const[t]=e.childNodes,a=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,a.map((e=>e.textContent.trim())))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName){t=t.firstChild;for(;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling}if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes())for(const e of t.childNodes)if("rdf:description"===e.nodeName)for(const t of e.childNodes){const e=t.nodeName;switch(e){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(t);continue}this._metadataMap.set(e,t.textContent.trim())}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.StructTreeRoot=t.StructTreePage=void 0;var r=a(4),n=a(2),i=a(69);const s="PAGE_CONTENT",o="STREAM_CONTENT",c="OBJECT",l="ELEMENT";t.StructTreeRoot=class StructTreeRoot{constructor(e){this.dict=e;this.roleMap=new Map}init(){this.readRoleMap()}readRoleMap(){const e=this.dict.get("RoleMap");e instanceof r.Dict&&e.forEach(((e,t)=>{t instanceof r.Name&&this.roleMap.set(e,t.name)}))}};class StructElementNode{constructor(e,t){this.tree=e;this.dict=t;this.kids=[];this.parseKids()}get role(){const e=this.dict.get("S"),t=e instanceof r.Name?e.name:"",{root:a}=this.tree;return a.roleMap.has(t)?a.roleMap.get(t):t}parseKids(){let e=null;const t=this.dict.getRaw("Pg");t instanceof r.Ref&&(e=t.toString());const a=this.dict.get("K");if(Array.isArray(a))for(const t of a){const a=this.parseKid(e,t);a&&this.kids.push(a)}else{const t=this.parseKid(e,a);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new StructElement({type:s,mcid:t,pageObjId:e});let a=null;t instanceof r.Ref?a=this.dict.xref.fetch(t):t instanceof r.Dict&&(a=t);if(!a)return null;const n=a.getRaw("Pg");n instanceof r.Ref&&(e=n.toString());const i=a.get("Type")instanceof r.Name?a.get("Type").name:null;return"MCR"===i?this.tree.pageDict.objId!==e?null:new StructElement({type:o,refObjId:a.getRaw("Stm")instanceof r.Ref?a.getRaw("Stm").toString():null,pageObjId:e,mcid:a.get("MCID")}):"OBJR"===i?this.tree.pageDict.objId!==e?null:new StructElement({type:c,refObjId:a.getRaw("Obj")instanceof r.Ref?a.getRaw("Obj").toString():null,pageObjId:e}):new StructElement({type:l,dict:a})}}class StructElement{constructor({type:e,dict:t=null,mcid:a=null,pageObjId:r=null,refObjId:n=null}){this.type=e;this.dict=t;this.mcid=a;this.pageObjId=r;this.refObjId=n;this.parentNode=null}}t.StructTreePage=class StructTreePage{constructor(e,t){this.root=e;this.rootDict=e?e.dict:null;this.pageDict=t;this.nodes=[]}parse(){if(!this.root||!this.rootDict)return;const e=this.rootDict.get("ParentTree");if(!e)return;const t=this.pageDict.get("StructParents");if(!Number.isInteger(t))return;const a=new i.NumberTree(e,this.rootDict.xref).get(t);if(!Array.isArray(a))return;const n=new Map;for(const e of a)e instanceof r.Ref&&this.addNode(this.rootDict.xref.fetch(e),n)}addNode(e,t,a=0){if(a>40){(0,n.warn)("StructTree MAX_DEPTH reached.");return null}if(t.has(e))return t.get(e);const i=new StructElementNode(this,e);t.set(e,i);const s=e.get("P");if(!s||(0,r.isName)(s.get("Type"),"StructTreeRoot")){this.addTopLevelNode(e,i)||t.delete(e);return i}const o=this.addNode(s,t,a+1);if(!o)return i;let c=!1;for(const t of o.kids)if(t.type===l&&t.dict===e){t.parentNode=i;c=!0}c||t.delete(e);return i}addTopLevelNode(e,t){const a=this.rootDict.get("K");if(!a)return!1;if(a instanceof r.Dict){if(a.objId!==e.objId)return!1;this.nodes[0]=t;return!0}if(!Array.isArray(a))return!0;let n=!1;for(let r=0;r40){(0,n.warn)("StructTree too deep to be fully serialized.");return}const r=Object.create(null);r.role=e.role;r.children=[];t.children.push(r);const i=e.dict.get("Alt");"string"==typeof i&&(r.alt=(0,n.stringToPDFString)(i));const h=e.dict.get("Lang");"string"==typeof h&&(r.lang=(0,n.stringToPDFString)(h));for(const t of e.kids){const e=t.type===l?t.parentNode:null;e?nodeToSerializable(e,r,a+1):t.type===s||t.type===o?r.children.push({type:"content",id:`page${t.pageObjId}_mcid${t.mcid}`}):t.type===c&&r.children.push({type:"object",id:t.refObjId})}}const e=Object.create(null);e.children=[];e.role="Root";for(const t of this.nodes)t&&nodeToSerializable(t,e);return e}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.ObjectLoader=void 0;var r=a(4),n=a(5),i=a(3),s=a(2);function addChildren(e,t){if(e instanceof r.Dict)e=e.getRawValues();else if(e instanceof n.BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(const i of e)((a=i)instanceof r.Ref||a instanceof r.Dict||a instanceof n.BaseStream||Array.isArray(a))&&t.push(i);var a}t.ObjectLoader=class ObjectLoader{constructor(e,t,a){this.dict=e;this.keys=t;this.xref=a;this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return;const{keys:e,dict:t}=this;this.refSet=new r.RefSet;const a=[];for(const r of e){const e=t.getRaw(r);void 0!==e&&a.push(e)}return this._walk(a)}async _walk(e){const t=[],a=[];for(;e.length;){let o=e.pop();if(o instanceof r.Ref){if(this.refSet.has(o))continue;try{this.refSet.put(o);o=this.xref.fetch(o)}catch(e){if(!(e instanceof i.MissingDataException)){(0,s.warn)(`ObjectLoader._walk - requesting all data: "${e}".`);this.refSet=null;const{manager:t}=this.xref.stream;return t.requestAllChunks()}t.push(o);a.push({begin:e.begin,end:e.end})}}if(o instanceof n.BaseStream){const e=o.getBaseStreams();if(e){let r=!1;for(const t of e)if(!t.isDataLoaded){r=!0;a.push({begin:t.start,end:t.end})}r&&t.push(o)}}addChildren(o,e)}if(a.length){await this.xref.stream.manager.requestRanges(a);for(const e of t)e instanceof r.Ref&&this.refSet.remove(e);return this._walk(t)}this.refSet=null}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.XFAFactory=void 0;var r=a(76),n=a(80),i=a(86),s=a(84),o=a(77),c=a(2),l=a(87),h=a(97);class XFAFactory{constructor(e){try{this.root=(new l.XFAParser).parse(XFAFactory._createDocument(e));const t=new n.Binder(this.root);this.form=t.bind();this.dataHandler=new i.DataHandler(this.root,t.getData());this.form[r.$globalData].template=this.form}catch(e){(0,c.warn)(`XFA - an error occurred during parsing and binding: ${e}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const e=this.form[r.$toPages]();return new Promise(((t,a)=>{const nextIteration=()=>{try{const a=e.next();a.done?t(a.value):setTimeout(nextIteration,0)}catch(e){a(e)}};setTimeout(nextIteration,0)}))}async _createPages(){try{this.pages=await this._createPagesHelper();this.dims=this.pages.children.map((e=>{const{width:t,height:a}=e.attributes.style;return[0,0,parseInt(t),parseInt(a)]}))}catch(e){(0,c.warn)(`XFA - an error occurred during layout: ${e}`)}}getBoundingBox(e){return this.dims[e]}async getNumPages(){this.pages||await this._createPages();return this.dims.length}setImages(e){this.form[r.$globalData].images=e}setFonts(e){this.form[r.$globalData].fontFinder=new s.FontFinder(e);const t=[];for(let e of this.form[r.$globalData].usedTypefaces){e=(0,o.stripQuotes)(e);this.form[r.$globalData].fontFinder.find(e)||t.push(e)}return t.length>0?t:null}appendFonts(e,t){this.form[r.$globalData].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages();const e=this.pages;this.pages=null;return e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}static getRichTextAsHtml(e){if(!e||"string"!=typeof e)return null;try{let t=new l.XFAParser(h.XhtmlNamespace,!0).parse(e);if(!["body","xhtml"].includes(t[r.$nodeName])){const e=h.XhtmlNamespace.body({});e[r.$appendChild](t);t=e}const a=t[r.$toHTML]();if(!a.success)return null;const{html:n}=a,{attributes:i}=n;if(i){i.class&&(i.class=i.class.filter((e=>!e.startsWith("xfa"))));i.dir="auto"}return{html:n,str:t[r.$text]()}}catch(e){(0,c.warn)(`XFA - an error occurred during parsing of rich text: ${e}`)}return null}}t.XFAFactory=XFAFactory},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=t.$uid=t.$toStyle=t.$toString=t.$toPages=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;var r=a(77),n=a(2),i=a(3),s=a(78),o=a(79);const c=Symbol();t.$acceptWhitespace=c;const l=Symbol();t.$addHTML=l;const h=Symbol();t.$appendChild=h;const u=Symbol();t.$childrenToHTML=u;const d=Symbol();t.$clean=d;const f=Symbol();t.$cleanPage=f;const g=Symbol();t.$cleanup=g;const p=Symbol();t.$clone=p;const m=Symbol();t.$consumed=m;const b=Symbol("content");t.$content=b;const y=Symbol("data");t.$data=y;const w=Symbol();t.$dump=w;const S=Symbol("extra");t.$extra=S;const x=Symbol();t.$finalize=x;const C=Symbol();t.$flushHTML=C;const k=Symbol();t.$getAttributeIt=k;const v=Symbol();t.$getAttributes=v;const F=Symbol();t.$getAvailableSpace=F;const O=Symbol();t.$getChildrenByClass=O;const T=Symbol();t.$getChildrenByName=T;const M=Symbol();t.$getChildrenByNameIt=M;const E=Symbol();t.$getDataValue=E;const D=Symbol();t.$getExtra=D;const N=Symbol();t.$getRealChildrenByNameIt=N;const R=Symbol();t.$getChildren=R;const L=Symbol();t.$getContainedChildren=L;const _=Symbol();t.$getNextPage=_;const $=Symbol();t.$getSubformParent=$;const j=Symbol();t.$getParent=j;const U=Symbol();t.$getTemplateRoot=U;const X=Symbol();t.$globalData=X;const H=Symbol();t.$hasSettableValue=H;const q=Symbol();t.$ids=q;const z=Symbol();t.$indexOf=z;const W=Symbol();t.$insertAt=W;const G=Symbol();t.$isCDATAXml=G;const V=Symbol();t.$isBindable=V;const K=Symbol();t.$isDataValue=K;const J=Symbol();t.$isDescendent=J;const Y=Symbol();t.$isNsAgnostic=Y;const Z=Symbol();t.$isSplittable=Z;const Q=Symbol();t.$isThereMoreWidth=Q;const ee=Symbol();t.$isTransparent=ee;const te=Symbol();t.$isUsable=te;const ae=Symbol(),re=Symbol("namespaceId");t.$namespaceId=re;const ne=Symbol("nodeName");t.$nodeName=ne;const ie=Symbol();t.$nsAttributes=ie;const se=Symbol();t.$onChild=se;const oe=Symbol();t.$onChildCheck=oe;const ce=Symbol();t.$onText=ce;const le=Symbol();t.$pushGlyphs=le;const he=Symbol();t.$popPara=he;const ue=Symbol();t.$pushPara=ue;const de=Symbol();t.$removeChild=de;const fe=Symbol("root");t.$root=fe;const ge=Symbol();t.$resolvePrototypes=ge;const pe=Symbol();t.$searchNode=pe;const me=Symbol();t.$setId=me;const be=Symbol();t.$setSetAttributes=be;const ye=Symbol();t.$setValue=ye;const we=Symbol();t.$tabIndex=we;const Se=Symbol();t.$text=Se;const xe=Symbol();t.$toPages=xe;const Ae=Symbol();t.$toHTML=Ae;const Ce=Symbol();t.$toString=Ce;const ke=Symbol();t.$toStyle=ke;const ve=Symbol("uid");t.$uid=ve;const Fe=Symbol(),Oe=Symbol(),Ie=Symbol(),Te=Symbol("_children"),Me=Symbol(),Pe=Symbol(),Ee=Symbol(),De=Symbol(),Be=Symbol(),Ne=Symbol(),Re=Symbol(),Le=Symbol(),_e=Symbol(),$e=Symbol("parent"),je=Symbol(),Ue=Symbol(),Xe=Symbol();let He=0;const qe=s.NamespaceIds.datasets.id;class XFAObject{constructor(e,t,a=!1){this[re]=e;this[ne]=t;this[Re]=a;this[$e]=null;this[Te]=[];this[ve]=`${t}${He++}`;this[X]=null}[se](e){if(!this[Re]||!this[oe](e))return!1;const t=e[ne],a=this[t];if(!(a instanceof XFAObjectArray)){null!==a&&this[de](a);this[t]=e;this[h](e);return!0}if(a.push(e)){this[h](e);return!0}let r="";this.id?r=` (id: ${this.id})`:this.name&&(r=` (name: ${this.name} ${this.h.value})`);(0,n.warn)(`XFA - node "${this[ne]}"${r} has already enough "${t}"!`);return!1}[oe](e){return this.hasOwnProperty(e[ne])&&e[re]===this[re]}[Y](){return!1}[c](){return!1}[G](){return!1}[V](){return!1}[he](){this.para&&this[U]()[S].paraStack.pop()}[ue](){this[U]()[S].paraStack.push(this.para)}[me](e){this.id&&this[re]===s.NamespaceIds.template.id&&e.set(this.id,this)}[U](){return this[X].template}[Z](){return!1}[Q](){return!1}[h](e){e[$e]=this;this[Te].push(e);!e[X]&&this[X]&&(e[X]=this[X])}[de](e){const t=this[Te].indexOf(e);this[Te].splice(t,1)}[H](){return this.hasOwnProperty("value")}[ye](e){}[ce](e){}[x](){}[d](e){delete this[Re];if(this[g]){e.clean(this[g]);delete this[g]}}[z](e){return this[Te].indexOf(e)}[W](e,t){t[$e]=this;this[Te].splice(e,0,t);!t[X]&&this[X]&&(t[X]=this[X])}[ee](){return!this.name}[ae](){return""}[Se](){return 0===this[Te].length?this[b]:this[Te].map((e=>e[Se]())).join("")}get[Ie](){const e=Object.getPrototypeOf(this);if(!e._attributes){const t=e._attributes=new Set;for(const e of Object.getOwnPropertyNames(this)){if(null===this[e]||this[e]instanceof XFAObject||this[e]instanceof XFAObjectArray)break;t.add(e)}}return(0,n.shadow)(this,Ie,e._attributes)}[J](e){let t=this;for(;t;){if(t===e)return!0;t=t[j]()}return!1}[j](){return this[$e]}[$](){return this[j]()}[R](e=null){return e?this[e]:this[Te]}[w](){const e=Object.create(null);this[b]&&(e.$content=this[b]);for(const t of Object.getOwnPropertyNames(this)){const a=this[t];null!==a&&(a instanceof XFAObject?e[t]=a[w]():a instanceof XFAObjectArray?a.isEmpty()||(e[t]=a.dump()):e[t]=a)}return e}[ke](){return null}[Ae](){return r.HTMLResult.EMPTY}*[L](){for(const e of this[R]())yield e}*[De](e,t){for(const a of this[L]())if(!e||t===e.has(a[ne])){const e=this[F](),t=a[Ae](e);t.success||(this[S].failingNode=a);yield t}}[C](){return null}[l](e,t){this[S].children.push(e)}[F](){}[u]({filter:e=null,include:t=!0}){if(this[S].generator){const e=this[F](),t=this[S].failingNode[Ae](e);if(!t.success)return t;t.html&&this[l](t.html,t.bbox);delete this[S].failingNode}else this[S].generator=this[De](e,t);for(;;){const e=this[S].generator.next();if(e.done)break;const t=e.value;if(!t.success)return t;t.html&&this[l](t.html,t.bbox)}this[S].generator=null;return r.HTMLResult.EMPTY}[be](e){this[Ue]=new Set(Object.keys(e))}[Ne](e){const t=this[Ie],a=this[Ue];return[...e].filter((e=>t.has(e)&&!a.has(e)))}[ge](e,t=new Set){for(const a of this[Te])a[je](e,t)}[je](e,t){const a=this[Be](e,t);a?this[Fe](a,e,t):this[ge](e,t)}[Be](e,t){const{use:a,usehref:r}=this;if(!a&&!r)return null;let i=null,s=null,c=null,l=a;if(r){l=r;r.startsWith("#som(")&&r.endsWith(")")?s=r.slice("#som(".length,-1):r.startsWith(".#som(")&&r.endsWith(")")?s=r.slice(".#som(".length,-1):r.startsWith("#")?c=r.slice(1):r.startsWith(".#")&&(c=r.slice(2))}else a.startsWith("#")?c=a.slice(1):s=a;this.use=this.usehref="";if(c)i=e.get(c);else{i=(0,o.searchNode)(e.get(fe),this,s,!0,!1);i&&(i=i[0])}if(!i){(0,n.warn)(`XFA - Invalid prototype reference: ${l}.`);return null}if(i[ne]!==this[ne]){(0,n.warn)(`XFA - Incompatible prototype: ${i[ne]} !== ${this[ne]}.`);return null}if(t.has(i)){(0,n.warn)("XFA - Cycle detected in prototypes use.");return null}t.add(i);const h=i[Be](e,t);h&&i[Fe](h,e,t);i[ge](e,t);t.delete(i);return i}[Fe](e,t,a){if(a.has(e)){(0,n.warn)("XFA - Cycle detected in prototypes use.");return}!this[b]&&e[b]&&(this[b]=e[b]);new Set(a).add(e);for(const t of this[Ne](e[Ue])){this[t]=e[t];this[Ue]&&this[Ue].add(t)}for(const r of Object.getOwnPropertyNames(this)){if(this[Ie].has(r))continue;const n=this[r],i=e[r];if(n instanceof XFAObjectArray){for(const e of n[Te])e[je](t,a);for(let r=n[Te].length,s=i[Te].length;rXFAObject[Me](e))):"object"==typeof e&&null!==e?Object.assign({},e):e}[p](){const e=Object.create(Object.getPrototypeOf(this));for(const t of Object.getOwnPropertySymbols(this))try{e[t]=this[t]}catch(a){(0,n.shadow)(e,t,this[t])}e[ve]=`${e[ne]}${He++}`;e[Te]=[];for(const t of Object.getOwnPropertyNames(this)){if(this[Ie].has(t)){e[t]=XFAObject[Me](this[t]);continue}const a=this[t];e[t]=a instanceof XFAObjectArray?new XFAObjectArray(a[Le]):null}for(const t of this[Te]){const a=t[ne],r=t[p]();e[Te].push(r);r[$e]=e;null===e[a]?e[a]=r:e[a][Te].push(r)}return e}[R](e=null){return e?this[Te].filter((t=>t[ne]===e)):this[Te]}[O](e){return this[e]}[T](e,t,a=!0){return Array.from(this[M](e,t,a))}*[M](e,t,a=!0){if("parent"!==e){for(const a of this[Te]){a[ne]===e&&(yield a);a.name===e&&(yield a);(t||a[ee]())&&(yield*a[M](e,t,!1))}a&&this[Ie].has(e)&&(yield new XFAAttribute(this,e,this[e]))}else yield this[$e]}}t.XFAObject=XFAObject;class XFAObjectArray{constructor(e=1/0){this[Le]=e;this[Te]=[]}push(e){if(this[Te].length<=this[Le]){this[Te].push(e);return!0}(0,n.warn)(`XFA - node "${e[ne]}" accepts no more than ${this[Le]} children`);return!1}isEmpty(){return 0===this[Te].length}dump(){return 1===this[Te].length?this[Te][0][w]():this[Te].map((e=>e[w]()))}[p](){const e=new XFAObjectArray(this[Le]);e[Te]=this[Te].map((e=>e[p]()));return e}get children(){return this[Te]}clear(){this[Te].length=0}}t.XFAObjectArray=XFAObjectArray;class XFAAttribute{constructor(e,t,a){this[$e]=e;this[ne]=t;this[b]=a;this[m]=!1;this[ve]="attribute"+He++}[j](){return this[$e]}[K](){return!0}[E](){return this[b].trim()}[ye](e){e=e.value||"";this[b]=e.toString()}[Se](){return this[b]}[J](e){return this[$e]===e||this[$e][J](e)}}t.XFAAttribute=XFAAttribute;class XmlObject extends XFAObject{constructor(e,t,a={}){super(e,t);this[b]="";this[Pe]=null;if("#text"!==t){const e=new Map;this[Oe]=e;for(const[t,r]of Object.entries(a))e.set(t,new XFAAttribute(this,t,r));if(a.hasOwnProperty(ie)){const e=a[ie].xfa.dataNode;void 0!==e&&("dataGroup"===e?this[Pe]=!1:"dataValue"===e&&(this[Pe]=!0))}}this[m]=!1}[Ce](e){const t=this[ne];if("#text"===t){e.push((0,i.encodeToXmlString)(this[b]));return}const a=(0,n.utf8StringToString)(t),r=this[re]===qe?"xfa:":"";e.push(`<${r}${a}`);for(const[t,a]of this[Oe].entries()){const r=(0,n.utf8StringToString)(t);e.push(` ${r}="${(0,i.encodeToXmlString)(a[b])}"`)}null!==this[Pe]&&(this[Pe]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"'));if(this[b]||0!==this[Te].length){e.push(">");if(this[b])"string"==typeof this[b]?e.push((0,i.encodeToXmlString)(this[b])):this[b][Ce](e);else for(const t of this[Te])t[Ce](e);e.push(``)}else e.push("/>")}[se](e){if(this[b]){const e=new XmlObject(this[re],"#text");this[h](e);e[b]=this[b];this[b]=""}this[h](e);return!0}[ce](e){this[b]+=e}[x](){if(this[b]&&this[Te].length>0){const e=new XmlObject(this[re],"#text");this[h](e);e[b]=this[b];delete this[b]}}[Ae](){return"#text"===this[ne]?r.HTMLResult.success({name:"#text",value:this[b]}):r.HTMLResult.EMPTY}[R](e=null){return e?this[Te].filter((t=>t[ne]===e)):this[Te]}[v](){return this[Oe]}[O](e){const t=this[Oe].get(e);return void 0!==t?t:this[R](e)}*[M](e,t){const a=this[Oe].get(e);a&&(yield a);for(const a of this[Te]){a[ne]===e&&(yield a);t&&(yield*a[M](e,t))}}*[k](e,t){const a=this[Oe].get(e);!a||t&&a[m]||(yield a);for(const a of this[Te])yield*a[k](e,t)}*[N](e,t,a){for(const r of this[Te]){r[ne]!==e||a&&r[m]||(yield r);t&&(yield*r[N](e,t,a))}}[K](){return null===this[Pe]?0===this[Te].length||this[Te][0][re]===s.NamespaceIds.xhtml.id:this[Pe]}[E](){return null===this[Pe]?0===this[Te].length?this[b].trim():this[Te][0][re]===s.NamespaceIds.xhtml.id?this[Te][0][Se]().trim():null:this[b].trim()}[ye](e){e=e.value||"";this[b]=e.toString()}[w](e=!1){const t=Object.create(null);e&&(t.$ns=this[re]);this[b]&&(t.$content=this[b]);t.$name=this[ne];t.children=[];for(const a of this[Te])t.children.push(a[w](e));t.attributes=Object.create(null);for(const[e,a]of this[Oe])t.attributes[e]=a[b];return t}}t.XmlObject=XmlObject;class ContentObject extends XFAObject{constructor(e,t){super(e,t);this[b]=""}[ce](e){this[b]+=e}[x](){}}t.ContentObject=ContentObject;t.OptionObject=class OptionObject extends ContentObject{constructor(e,t,a){super(e,t);this[_e]=a}[x](){this[b]=(0,r.getKeyword)({data:this[b],defaultValue:this[_e][0],validate:e=>this[_e].includes(e)})}[d](e){super[d](e);delete this[_e]}};t.StringObject=class StringObject extends ContentObject{[x](){this[b]=this[b].trim()}};class IntegerObject extends ContentObject{constructor(e,t,a,r){super(e,t);this[Ee]=a;this[Xe]=r}[x](){this[b]=(0,r.getInteger)({data:this[b],defaultValue:this[Ee],validate:this[Xe]})}[d](e){super[d](e);delete this[Ee];delete this[Xe]}}t.IntegerObject=IntegerObject;t.Option01=class Option01 extends IntegerObject{constructor(e,t){super(e,t,0,(e=>1===e))}};t.Option10=class Option10 extends IntegerObject{constructor(e,t){super(e,t,1,(e=>0===e))}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.HTMLResult=void 0;t.getBBox=function getBBox(e){const t=-1;if(!e)return{x:t,y:t,width:t,height:t};const a=e.trim().split(/\s*,\s*/).map((e=>getMeasurement(e,"-1")));if(a.length<4||a[2]<0||a[3]<0)return{x:t,y:t,width:t,height:t};const[r,n,i,s]=a;return{x:r,y:n,width:i,height:s}};t.getColor=function getColor(e,t=[0,0,0]){let[a,r,n]=t;if(!e)return{r:a,g:r,b:n};const i=e.trim().split(/\s*,\s*/).map((e=>Math.min(Math.max(0,parseInt(e.trim(),10)),255))).map((e=>isNaN(e)?0:e));if(i.length<3)return{r:a,g:r,b:n};[a,r,n]=i;return{r:a,g:r,b:n}};t.getFloat=function getFloat({data:e,defaultValue:t,validate:a}){if(!e)return t;e=e.trim();const r=parseFloat(e);if(!isNaN(r)&&a(r))return r;return t};t.getInteger=function getInteger({data:e,defaultValue:t,validate:a}){if(!e)return t;e=e.trim();const r=parseInt(e,10);if(!isNaN(r)&&a(r))return r;return t};t.getKeyword=getKeyword;t.getMeasurement=getMeasurement;t.getRatio=function getRatio(e){if(!e)return{num:1,den:1};const t=e.trim().split(/\s*:\s*/).map((e=>parseFloat(e))).filter((e=>!isNaN(e)));1===t.length&&t.push(1);if(0===t.length)return{num:1,den:1};const[a,r]=t;return{num:a,den:r}};t.getRelevant=function getRelevant(e){if(!e)return[];return e.trim().split(/\s+/).map((e=>({excluded:"-"===e[0],viewname:e.substring(1)})))};t.getStringOption=function getStringOption(e,t){return getKeyword({data:e,defaultValue:t[0],validate:e=>t.includes(e)})};t.stripQuotes=function stripQuotes(e){if(e.startsWith("'")||e.startsWith('"'))return e.slice(1,-1);return e};var r=a(2);const n={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},i=/([+-]?\d+\.?\d*)(.*)/;function getKeyword({data:e,defaultValue:t,validate:a}){return e&&a(e=e.trim())?e:t}function getMeasurement(e,t="0"){t=t||"0";if(!e)return getMeasurement(t);const a=e.trim().match(i);if(!a)return getMeasurement(t);const[,r,s]=a,o=parseFloat(r);if(isNaN(o))return getMeasurement(t);if(0===o)return 0;const c=n[s];return c?c(o):o}class HTMLResult{static get FAILURE(){return(0,r.shadow)(this,"FAILURE",new HTMLResult(!1,null,null,null))}static get EMPTY(){return(0,r.shadow)(this,"EMPTY",new HTMLResult(!0,null,null,null))}constructor(e,t,a,r){this.success=e;this.html=t;this.bbox=a;this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(e){return new HTMLResult(!1,null,null,e)}static success(e,t=null){return new HTMLResult(!0,e,t,null)}}t.HTMLResult=HTMLResult},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.NamespaceIds=t.$buildXFAObject=void 0;const a=Symbol();t.$buildXFAObject=a;t.NamespaceIds={config:{id:0,check:e=>e.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:e=>"http://ns.adobe.com/xdp/pdf/"===e},signature:{id:6,check:e=>"http://www.w3.org/2000/09/xmldsig#"===e},sourceSet:{id:7,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:e=>"http://www.w3.org/1999/XSL/Transform"===e},template:{id:9,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:e=>e.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:e=>"http://ns.adobe.com/xdp/"===e},xfdf:{id:12,check:e=>"http://ns.adobe.com/xfdf/"===e},xhtml:{id:13,check:e=>"http://www.w3.org/1999/xhtml"===e},xmpmeta:{id:14,check:e=>"http://ns.adobe.com/xmpmeta/"===e}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.createDataNode=function createDataNode(e,t,a){const n=parseExpression(a);if(!n)return null;if(n.some((e=>e.operator===c.dotDot)))return null;const s=l.get(n[0].name);let o=0;if(s){e=s(e,t);o=1}else e=t||e;for(let t=n.length;o0&&f.push(e)}if(0!==f.length||u||0!==d)e=isFinite(l)?f.filter((e=>le[l])):f.flat();else{const a=t[r.$getParent]();if(!(t=a))return null;d=-1;e=[t]}}if(0===e.length)return null;return e};var r=a(76),n=a(78),i=a(2);const s=/^[^.[]+/,o=/^[^\]]+/,c={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},l=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[r.$getChildren]()[0]],["$template",(e,t)=>e.template],["$connectionSet",(e,t)=>e.connectionSet],["$form",(e,t)=>e.form],["$layout",(e,t)=>e.layout],["$host",(e,t)=>e.host],["$dataWindow",(e,t)=>e.dataWindow],["$event",(e,t)=>e.event],["!",(e,t)=>e.datasets],["$xfa",(e,t)=>e],["xfa",(e,t)=>e],["$",(e,t)=>t]]),h=new WeakMap,u=n.NamespaceIds.datasets.id;function parseExpression(e,t,a=!0){let r=e.match(s);if(!r)return null;let[n]=r;const l=[{name:n,cacheName:"."+n,index:0,js:null,formCalc:null,operator:c.dot}];let h=n.length;for(;h{Object.defineProperty(t,"__esModule",{value:!0});t.Binder=void 0;var r=a(76),n=a(81),i=a(79),s=a(78),o=a(2);const c=s.NamespaceIds.datasets.id;function createText(e){const t=new n.Text({});t[r.$content]=e;return t}t.Binder=class Binder{constructor(e){this.root=e;this.datasets=e.datasets;e.datasets&&e.datasets.data?this.data=e.datasets.data:this.data=new r.XmlObject(s.NamespaceIds.datasets.id,"data");this.emptyMerge=0===this.data[r.$getChildren]().length;this.root.form=this.form=e.template[r.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){this._bindElement(this.form,this.data);return this.form}getData(){return this.data}_bindValue(e,t,a){e[r.$data]=t;if(e[r.$hasSettableValue]())if(t[r.$isDataValue]()){const a=t[r.$getDataValue]();e[r.$setValue](createText(a))}else if(e instanceof n.Field&&e.ui&&e.ui.choiceList&&"multiSelect"===e.ui.choiceList.open){const a=t[r.$getChildren]().map((e=>e[r.$content].trim())).join("\n");e[r.$setValue](createText(a))}else this._isConsumeData()&&(0,o.warn)("XFA - Nodes haven't the same type.");else!t[r.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,o.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(e,t,a,n){if(!e)return null;let i,o;for(let n=0;n<3;n++){i=a[r.$getRealChildrenByNameIt](e,!1,!0);for(;;){o=i.next().value;if(!o)break;if(t===o[r.$isDataValue]())return o}if(a[r.$namespaceId]===s.NamespaceIds.datasets.id&&"data"===a[r.$nodeName])break;a=a[r.$getParent]()}if(!n)return null;i=this.data[r.$getRealChildrenByNameIt](e,!0,!1);o=i.next().value;if(o)return o;i=this.data[r.$getAttributeIt](e,!0);o=i.next().value;return o&&o[r.$isDataValue]()?o:null}_setProperties(e,t){if(e.hasOwnProperty("setProperty"))for(const{ref:a,target:s,connection:c}of e.setProperty.children){if(c)continue;if(!a)continue;const l=(0,i.searchNode)(this.root,t,a,!1,!1);if(!l){(0,o.warn)(`XFA - Invalid reference: ${a}.`);continue}const[h]=l;if(!h[r.$isDescendent](this.data)){(0,o.warn)("XFA - Invalid node: must be a data node.");continue}const u=(0,i.searchNode)(this.root,e,s,!1,!1);if(!u){(0,o.warn)(`XFA - Invalid target: ${s}.`);continue}const[d]=u;if(!d[r.$isDescendent](e)){(0,o.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const f=d[r.$getParent]();if(d instanceof n.SetProperty||f instanceof n.SetProperty){(0,o.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(d instanceof n.BindItems||f instanceof n.BindItems){(0,o.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const g=h[r.$text](),p=d[r.$nodeName];if(d instanceof r.XFAAttribute){const e=Object.create(null);e[p]=g;const t=Reflect.construct(Object.getPrototypeOf(f).constructor,[e]);f[p]=t[p]}else if(d.hasOwnProperty(r.$content)){d[r.$data]=h;d[r.$content]=g;d[r.$finalize]()}else(0,o.warn)("XFA - Invalid node to use in setProperty")}}_bindItems(e,t){if(!e.hasOwnProperty("items")||!e.hasOwnProperty("bindItems")||e.bindItems.isEmpty())return;for(const t of e.items.children)e[r.$removeChild](t);e.items.clear();const a=new n.Items({}),s=new n.Items({});e[r.$appendChild](a);e.items.push(a);e[r.$appendChild](s);e.items.push(s);for(const{ref:n,labelRef:c,valueRef:l,connection:h}of e.bindItems.children){if(h)continue;if(!n)continue;const e=(0,i.searchNode)(this.root,t,n,!1,!1);if(e)for(const t of e){if(!t[r.$isDescendent](this.datasets)){(0,o.warn)(`XFA - Invalid ref (${n}): must be a datasets child.`);continue}const e=(0,i.searchNode)(this.root,t,c,!0,!1);if(!e){(0,o.warn)(`XFA - Invalid label: ${c}.`);continue}const[h]=e;if(!h[r.$isDescendent](this.datasets)){(0,o.warn)("XFA - Invalid label: must be a datasets child.");continue}const u=(0,i.searchNode)(this.root,t,l,!0,!1);if(!u){(0,o.warn)(`XFA - Invalid value: ${l}.`);continue}const[d]=u;if(!d[r.$isDescendent](this.datasets)){(0,o.warn)("XFA - Invalid value: must be a datasets child.");continue}const f=createText(h[r.$text]()),g=createText(d[r.$text]());a[r.$appendChild](f);a.text.push(f);s[r.$appendChild](g);s.text.push(g)}else(0,o.warn)(`XFA - Invalid reference: ${n}.`)}}_bindOccurrences(e,t,a){let n;if(t.length>1){n=e[r.$clone]();n[r.$removeChild](n.occur);n.occur=null}this._bindValue(e,t[0],a);this._setProperties(e,t[0]);this._bindItems(e,t[0]);if(1===t.length)return;const i=e[r.$getParent](),s=e[r.$nodeName],o=i[r.$indexOf](e);for(let e=1,c=t.length;et.name===e.name)).length:a[n].children.length;const s=a[r.$indexOf](e)+1,o=t.initial-i;if(o){const t=e[r.$clone]();t[r.$removeChild](t.occur);t.occur=null;a[n].push(t);a[r.$insertAt](s,t);for(let e=1;e0)this._bindOccurrences(n,[e[0]],null);else if(this.emptyMerge){const e=t[r.$namespaceId]===c?-1:t[r.$namespaceId],a=n[r.$data]=new r.XmlObject(e,n.name||"root");t[r.$appendChild](a);this._bindElement(n,a)}continue}if(!n[r.$isBindable]())continue;let e=!1,s=null,l=null,h=null;if(n.bind){switch(n.bind.match){case"none":this._setAndBind(n,t);continue;case"global":e=!0;break;case"dataRef":if(!n.bind.ref){(0,o.warn)(`XFA - ref is empty in node ${n[r.$nodeName]}.`);this._setAndBind(n,t);continue}l=n.bind.ref}n.bind.picture&&(s=n.bind.picture[r.$content])}const[u,d]=this._getOccurInfo(n);if(l){h=(0,i.searchNode)(this.root,t,l,!0,!1);if(null===h){h=(0,i.createDataNode)(this.data,t,l);if(!h)continue;this._isConsumeData()&&(h[r.$consumed]=!0);this._setAndBind(n,h);continue}this._isConsumeData()&&(h=h.filter((e=>!e[r.$consumed])));h.length>d?h=h.slice(0,d):0===h.length&&(h=null);h&&this._isConsumeData()&&h.forEach((e=>{e[r.$consumed]=!0}))}else{if(!n.name){this._setAndBind(n,t);continue}if(this._isConsumeData()){const a=[];for(;a.length0?a:null}else{h=t[r.$getRealChildrenByNameIt](n.name,!1,this.emptyMerge).next().value;if(!h){if(0===u){a.push(n);continue}const e=t[r.$namespaceId]===c?-1:t[r.$namespaceId];h=n[r.$data]=new r.XmlObject(e,n.name);this.emptyMerge&&(h[r.$consumed]=!0);t[r.$appendChild](h);this._setAndBind(n,h);continue}this.emptyMerge&&(h[r.$consumed]=!0);h=[h]}}h?this._bindOccurrences(n,h,s):u>0?this._setAndBind(n,t):a.push(n)}a.forEach((e=>e[r.$getParent]()[r.$removeChild](e)))}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0;var r=a(76),n=a(78),i=a(82),s=a(83),o=a(77),c=a(2),l=a(84),h=a(3),u=a(79);const d=n.NamespaceIds.template.id,f="http://www.w3.org/2000/svg",g=/^H(\d+)$/,p=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),m=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function getBorderDims(e){if(!e||!e.border)return{w:0,h:0};const t=e.border[r.$getExtra]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function hasMargin(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function _setValue(e,t){if(!e.value){const t=new Value({});e[r.$appendChild](t);e.value=t}e.value[r.$setValue](t)}function*getContainedChildren(e){for(const t of e[r.$getChildren]())t instanceof SubformSet?yield*t[r.$getContainedChildren]():yield t}function isRequired(e){return e.validate&&"error"===e.validate.nullTest}function setTabIndex(e){for(;e;){if(!e.traversal){e[r.$tabIndex]=e[r.$getParent]()[r.$tabIndex];return}if(e[r.$tabIndex])return;let t=null;for(const a of e.traversal[r.$getChildren]())if("next"===a.operation){t=a;break}if(!t||!t.ref){e[r.$tabIndex]=e[r.$getParent]()[r.$tabIndex];return}const a=e[r.$getTemplateRoot]();e[r.$tabIndex]=++a[r.$tabIndex];const n=a[r.$searchNode](t.ref,e);if(!n)return;e=n[0]}}function applyAssist(e,t){const a=e.assist;if(a){const e=a[r.$toHTML]();e&&(t.title=e);const n=a.role.match(g);if(n){const e="heading",a=n[1];t.role=e;t["aria-level"]=a}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{const a=e[r.$getParent]();"row"===a.layout&&(a.assist&&"TH"===a.assist.role?t.role="columnheader":t.role="cell")}}function ariaLabel(e){if(!e.assist)return null;const t=e.assist;return t.speak&&""!==t.speak[r.$content]?t.speak[r.$content]:t.toolTip?t.toolTip[r.$content]:null}function valueToHtml(e){return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function setFirstUnsplittable(e){const t=e[r.$getTemplateRoot]();if(null===t[r.$extra].firstUnsplittable){t[r.$extra].firstUnsplittable=e;t[r.$extra].noLayoutFailure=!0}}function unsetFirstUnsplittable(e){const t=e[r.$getTemplateRoot]();t[r.$extra].firstUnsplittable===e&&(t[r.$extra].noLayoutFailure=!1)}function handleBreak(e){if(e[r.$extra])return!1;e[r.$extra]=Object.create(null);if("auto"===e.targetType)return!1;const t=e[r.$getTemplateRoot]();let a=null;if(e.target){a=t[r.$searchNode](e.target,e[r.$getParent]());if(!a)return!1;a=a[0]}const{currentPageArea:n,currentContentArea:i}=t[r.$extra];if("pageArea"===e.targetType){a instanceof PageArea||(a=null);if(e.startNew){e[r.$extra].target=a||n;return!0}if(a&&a!==n){e[r.$extra].target=a;return!0}return!1}a instanceof ContentArea||(a=null);const s=a&&a[r.$getParent]();let o,c=s;if(e.startNew)if(a){const e=s.contentArea.children,t=e.indexOf(i),r=e.indexOf(a);-1!==t&&te;n[r.$extra].noLayoutFailure=!0;const o=t[r.$toHTML](a);e[r.$addHTML](o.html,o.bbox);n[r.$extra].noLayoutFailure=i;t[r.$getSubformParent]=s}class AppearanceFilter extends r.StringObject{constructor(e){super(d,"appearanceFilter");this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Arc extends r.XFAObject{constructor(e){super(d,"arc",!0);this.circular=(0,o.getInteger)({data:e.circular,defaultValue:0,validate:e=>1===e});this.hand=(0,o.getStringOption)(e.hand,["even","left","right"]);this.id=e.id||"";this.startAngle=(0,o.getFloat)({data:e.startAngle,defaultValue:0,validate:e=>!0});this.sweepAngle=(0,o.getFloat)({data:e.sweepAngle,defaultValue:360,validate:e=>!0});this.use=e.use||"";this.usehref=e.usehref||"";this.edge=null;this.fill=null}[r.$toHTML](){const e=this.edge||new Edge({}),t=e[r.$toStyle](),a=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(a,this.fill[r.$toStyle]()):a.fill="transparent";a.strokeWidth=(0,s.measureToString)("visible"===e.presence?e.thickness:0);a.stroke=t.color;let n;const i={xmlns:f,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)n={name:"ellipse",attributes:{xmlns:f,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:a}};else{const e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,r=this.sweepAngle>180?1:0,[s,o,c,l]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))];n={name:"path",attributes:{xmlns:f,d:`M ${s} ${o} A 50 50 0 ${r} 0 ${c} ${l}`,vectorEffect:"non-scaling-stroke",style:a}};Object.assign(i,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const c={name:"svg",children:[n],attributes:i};if(hasMargin(this[r.$getParent]()[r.$getParent]()))return o.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[c]});c.attributes.style.position="absolute";return o.HTMLResult.success(c)}}class Area extends r.XFAObject{constructor(e){super(d,"area",!0);this.colSpan=(0,o.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.id=e.id||"";this.name=e.name||"";this.relevant=(0,o.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.x=(0,o.getMeasurement)(e.x,"0pt");this.y=(0,o.getMeasurement)(e.y,"0pt");this.desc=null;this.extras=null;this.area=new r.XFAObjectArray;this.draw=new r.XFAObjectArray;this.exObject=new r.XFAObjectArray;this.exclGroup=new r.XFAObjectArray;this.field=new r.XFAObjectArray;this.subform=new r.XFAObjectArray;this.subformSet=new r.XFAObjectArray}*[r.$getContainedChildren](){yield*getContainedChildren(this)}[r.$isTransparent](){return!0}[r.$isBindable](){return!0}[r.$addHTML](e,t){const[a,n,i,s]=t;this[r.$extra].width=Math.max(this[r.$extra].width,a+i);this[r.$extra].height=Math.max(this[r.$extra].height,n+s);this[r.$extra].children.push(e)}[r.$getAvailableSpace](){return this[r.$extra].availableSpace}[r.$toHTML](e){const t=(0,s.toStyle)(this,"position"),a={style:t,id:this[r.$uid],class:["xfaArea"]};(0,s.isPrintOnly)(this)&&a.class.push("xfaPrintOnly");this.name&&(a.xfaName=this.name);const n=[];this[r.$extra]={children:n,width:0,height:0,availableSpace:e};const i=this[r.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!i.success){if(i.isBreak())return i;delete this[r.$extra];return o.HTMLResult.FAILURE}t.width=(0,s.measureToString)(this[r.$extra].width);t.height=(0,s.measureToString)(this[r.$extra].height);const c={name:"div",attributes:a,children:n},l=[this.x,this.y,this[r.$extra].width,this[r.$extra].height];delete this[r.$extra];return o.HTMLResult.success(c,l)}}class Assist extends r.XFAObject{constructor(e){super(d,"assist",!0);this.id=e.id||"";this.role=e.role||"";this.use=e.use||"";this.usehref=e.usehref||"";this.speak=null;this.toolTip=null}[r.$toHTML](){return this.toolTip&&this.toolTip[r.$content]?this.toolTip[r.$content]:null}}class Barcode extends r.XFAObject{constructor(e){super(d,"barcode",!0);this.charEncoding=(0,o.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)});this.checksum=(0,o.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);this.dataColumnCount=(0,o.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:e=>e>=0});this.dataLength=(0,o.getInteger)({data:e.dataLength,defaultValue:-1,validate:e=>e>=0});this.dataPrep=(0,o.getStringOption)(e.dataPrep,["none","flateCompress"]);this.dataRowCount=(0,o.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:e=>e>=0});this.endChar=e.endChar||"";this.errorCorrectionLevel=(0,o.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>e>=0&&e<=8});this.id=e.id||"";this.moduleHeight=(0,o.getMeasurement)(e.moduleHeight,"5mm");this.moduleWidth=(0,o.getMeasurement)(e.moduleWidth,"0.25mm");this.printCheckDigit=(0,o.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:e=>1===e});this.rowColumnRatio=(0,o.getRatio)(e.rowColumnRatio);this.startChar=e.startChar||"";this.textLocation=(0,o.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);this.truncate=(0,o.getInteger)({data:e.truncate,defaultValue:0,validate:e=>1===e});this.type=(0,o.getStringOption)(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]);this.upsMode=(0,o.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);this.use=e.use||"";this.usehref=e.usehref||"";this.wideNarrowRatio=(0,o.getRatio)(e.wideNarrowRatio);this.encrypt=null;this.extras=null}}class Bind extends r.XFAObject{constructor(e){super(d,"bind",!0);this.match=(0,o.getStringOption)(e.match,["once","dataRef","global","none"]);this.ref=e.ref||"";this.picture=null}}class BindItems extends r.XFAObject{constructor(e){super(d,"bindItems");this.connection=e.connection||"";this.labelRef=e.labelRef||"";this.ref=e.ref||"";this.valueRef=e.valueRef||""}}t.BindItems=BindItems;class Bookend extends r.XFAObject{constructor(e){super(d,"bookend");this.id=e.id||"";this.leader=e.leader||"";this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||""}}class BooleanElement extends r.Option01{constructor(e){super(d,"boolean");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[r.$toHTML](e){return valueToHtml(1===this[r.$content]?"1":"0")}}class Border extends r.XFAObject{constructor(e){super(d,"border",!0);this.break=(0,o.getStringOption)(e.break,["close","open"]);this.hand=(0,o.getStringOption)(e.hand,["even","left","right"]);this.id=e.id||"";this.presence=(0,o.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.corner=new r.XFAObjectArray(4);this.edge=new r.XFAObjectArray(4);this.extras=null;this.fill=null;this.margin=null}[r.$getExtra](){if(!this[r.$extra]){const e=this.edge.children.slice();if(e.length<4){const t=e.at(-1)||new Edge({});for(let a=e.length;a<4;a++)e.push(t)}const t=e.map((e=>e.thickness)),a=[0,0,0,0];if(this.margin){a[0]=this.margin.topInset;a[1]=this.margin.rightInset;a[2]=this.margin.bottomInset;a[3]=this.margin.leftInset}this[r.$extra]={widths:t,insets:a,edges:e}}return this[r.$extra]}[r.$toStyle](){const{edges:e}=this[r.$getExtra](),t=e.map((e=>{const t=e[r.$toStyle]();t.color=t.color||"#000000";return t})),a=Object.create(null);this.margin&&Object.assign(a,this.margin[r.$toStyle]());this.fill&&"visible"===this.fill.presence&&Object.assign(a,this.fill[r.$toStyle]());if(this.corner.children.some((e=>0!==e.radius))){const e=this.corner.children.map((e=>e[r.$toStyle]()));if(2===e.length||3===e.length){const t=e.at(-1);for(let a=e.length;a<4;a++)e.push(t)}a.borderRadius=e.map((e=>e.radius)).join(" ")}switch(this.presence){case"invisible":case"hidden":a.borderStyle="";break;case"inactive":a.borderStyle="none";break;default:a.borderStyle=t.map((e=>e.style)).join(" ")}a.borderWidth=t.map((e=>e.width)).join(" ");a.borderColor=t.map((e=>e.color)).join(" ");return a}}class Break extends r.XFAObject{constructor(e){super(d,"break",!0);this.after=(0,o.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);this.afterTarget=e.afterTarget||"";this.before=(0,o.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]);this.beforeTarget=e.beforeTarget||"";this.bookendLeader=e.bookendLeader||"";this.bookendTrailer=e.bookendTrailer||"";this.id=e.id||"";this.overflowLeader=e.overflowLeader||"";this.overflowTarget=e.overflowTarget||"";this.overflowTrailer=e.overflowTrailer||"";this.startNew=(0,o.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}}class BreakAfter extends r.XFAObject{constructor(e){super(d,"breakAfter",!0);this.id=e.id||"";this.leader=e.leader||"";this.startNew=(0,o.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e});this.target=e.target||"";this.targetType=(0,o.getStringOption)(e.targetType,["auto","contentArea","pageArea"]);this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||"";this.script=null}}class BreakBefore extends r.XFAObject{constructor(e){super(d,"breakBefore",!0);this.id=e.id||"";this.leader=e.leader||"";this.startNew=(0,o.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e});this.target=e.target||"";this.targetType=(0,o.getStringOption)(e.targetType,["auto","contentArea","pageArea"]);this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||"";this.script=null}[r.$toHTML](e){this[r.$extra]={};return o.HTMLResult.FAILURE}}class Button extends r.XFAObject{constructor(e){super(d,"button",!0);this.highlight=(0,o.getStringOption)(e.highlight,["inverted","none","outline","push"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[r.$toHTML](e){const t=this[r.$getParent]()[r.$getParent](),a={name:"button",attributes:{id:this[r.$uid],class:["xfaButton"],style:{}},children:[]};for(const e of t.event.children){if("click"!==e.activity||!e.script)continue;const t=(0,h.recoverJsURL)(e.script[r.$content]);if(!t)continue;const n=(0,s.fixURL)(t.url);n&&a.children.push({name:"a",attributes:{id:"link"+this[r.$uid],href:n,newWindow:t.newWindow,class:["xfaLink"],style:{}},children:[]})}return o.HTMLResult.success(a)}}class Calculate extends r.XFAObject{constructor(e){super(d,"calculate",!0);this.id=e.id||"";this.override=(0,o.getStringOption)(e.override,["disabled","error","ignore","warning"]);this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.message=null;this.script=null}}class Caption extends r.XFAObject{constructor(e){super(d,"caption",!0);this.id=e.id||"";this.placement=(0,o.getStringOption)(e.placement,["left","bottom","inline","right","top"]);this.presence=(0,o.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.reserve=Math.ceil((0,o.getMeasurement)(e.reserve));this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.font=null;this.margin=null;this.para=null;this.value=null}[r.$setValue](e){_setValue(this,e)}[r.$getExtra](e){if(!this[r.$extra]){let{width:t,height:a}=e;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":a=this.reserve<=0?a:this.reserve}this[r.$extra]=(0,s.layoutNode)(this,{width:t,height:a})}return this[r.$extra]}[r.$toHTML](e){if(!this.value)return o.HTMLResult.EMPTY;this[r.$pushPara]();const t=this.value[r.$toHTML](e).html;if(!t){this[r.$popPara]();return o.HTMLResult.EMPTY}const a=this.reserve;if(this.reserve<=0){const{w:t,h:a}=this[r.$getExtra](e);switch(this.placement){case"left":case"right":case"inline":this.reserve=t;break;case"top":case"bottom":this.reserve=a}}const n=[];"string"==typeof t?n.push({name:"#text",value:t}):n.push(t);const i=(0,s.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(i.width=(0,s.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(i.height=(0,s.measureToString)(this.reserve))}(0,s.setPara)(this,null,t);this[r.$popPara]();this.reserve=a;return o.HTMLResult.success({name:"div",attributes:{style:i,class:["xfaCaption"]},children:n})}}class Certificate extends r.StringObject{constructor(e){super(d,"certificate");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Certificates extends r.XFAObject{constructor(e){super(d,"certificates",!0);this.credentialServerPolicy=(0,o.getStringOption)(e.credentialServerPolicy,["optional","required"]);this.id=e.id||"";this.url=e.url||"";this.urlPolicy=e.urlPolicy||"";this.use=e.use||"";this.usehref=e.usehref||"";this.encryption=null;this.issuers=null;this.keyUsage=null;this.oids=null;this.signing=null;this.subjectDNs=null}}class CheckButton extends r.XFAObject{constructor(e){super(d,"checkButton",!0);this.id=e.id||"";this.mark=(0,o.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]);this.shape=(0,o.getStringOption)(e.shape,["square","round"]);this.size=(0,o.getMeasurement)(e.size,"10pt");this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)("margin"),a=(0,s.measureToString)(this.size);t.width=t.height=a;let n,i,c;const l=this[r.$getParent]()[r.$getParent](),h=l.items.children.length&&l.items.children[0][r.$toHTML]().html||[],u={on:(void 0!==h[0]?h[0]:"on").toString(),off:(void 0!==h[1]?h[1]:"off").toString()},d=(l.value&&l.value[r.$text]()||"off")===u.on||void 0,f=l[r.$getSubformParent](),g=l[r.$uid];let p;if(f instanceof ExclGroup){c=f[r.$uid];n="radio";i="xfaRadio";p=f[r.$data]&&f[r.$data][r.$uid]||f[r.$uid]}else{n="checkbox";i="xfaCheckbox";p=l[r.$data]&&l[r.$data][r.$uid]||l[r.$uid]}const m={name:"input",attributes:{class:[i],style:t,fieldId:g,dataId:p,type:n,checked:d,xfaOn:u.on,xfaOff:u.off,"aria-label":ariaLabel(l),"aria-required":!1}};c&&(m.attributes.name=c);if(isRequired(l)){m.attributes["aria-required"]=!0;m.attributes.required=!0}return o.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[m]})}}class ChoiceList extends r.XFAObject{constructor(e){super(d,"choiceList",!0);this.commitOn=(0,o.getStringOption)(e.commitOn,["select","exit"]);this.id=e.id||"";this.open=(0,o.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]);this.textEntry=(0,o.getInteger)({data:e.textEntry,defaultValue:0,validate:e=>1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)(this,"border","margin"),a=this[r.$getParent]()[r.$getParent](),n={fontSize:`calc(${a.font&&a.font.size||10}px * var(--scale-factor))`},i=[];if(a.items.children.length>0){const e=a.items;let t=0,s=0;if(2===e.children.length){t=e.children[0].save;s=1-t}const o=e.children[t][r.$toHTML]().html,c=e.children[s][r.$toHTML]().html;let l=!1;const h=a.value&&a.value[r.$text]()||"";for(let e=0,t=o.length;ee>=0});this.use=e.use||"";this.usehref=e.usehref||""}}class Connect extends r.XFAObject{constructor(e){super(d,"connect",!0);this.connection=e.connection||"";this.id=e.id||"";this.ref=e.ref||"";this.usage=(0,o.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]);this.use=e.use||"";this.usehref=e.usehref||"";this.picture=null}}class ContentArea extends r.XFAObject{constructor(e){super(d,"contentArea",!0);this.h=(0,o.getMeasurement)(e.h);this.id=e.id||"";this.name=e.name||"";this.relevant=(0,o.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.w=(0,o.getMeasurement)(e.w);this.x=(0,o.getMeasurement)(e.x,"0pt");this.y=(0,o.getMeasurement)(e.y,"0pt");this.desc=null;this.extras=null}[r.$toHTML](e){const t={left:(0,s.measureToString)(this.x),top:(0,s.measureToString)(this.y),width:(0,s.measureToString)(this.w),height:(0,s.measureToString)(this.h)},a=["xfaContentarea"];(0,s.isPrintOnly)(this)&&a.push("xfaPrintOnly");return o.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:a,id:this[r.$uid]}})}}class Corner extends r.XFAObject{constructor(e){super(d,"corner",!0);this.id=e.id||"";this.inverted=(0,o.getInteger)({data:e.inverted,defaultValue:0,validate:e=>1===e});this.join=(0,o.getStringOption)(e.join,["square","round"]);this.presence=(0,o.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.radius=(0,o.getMeasurement)(e.radius);this.stroke=(0,o.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=(0,o.getMeasurement)(e.thickness,"0.5pt");this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[r.$toStyle](){const e=(0,s.toStyle)(this,"visibility");e.radius=(0,s.measureToString)("square"===this.join?0:this.radius);return e}}class DateElement extends r.ContentObject{constructor(e){super(d,"date");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[r.$finalize](){const e=this[r.$content].trim();this[r.$content]=e?new Date(e):null}[r.$toHTML](e){return valueToHtml(this[r.$content]?this[r.$content].toString():"")}}class DateTime extends r.ContentObject{constructor(e){super(d,"dateTime");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[r.$finalize](){const e=this[r.$content].trim();this[r.$content]=e?new Date(e):null}[r.$toHTML](e){return valueToHtml(this[r.$content]?this[r.$content].toString():"")}}class DateTimeEdit extends r.XFAObject{constructor(e){super(d,"dateTimeEdit",!0);this.hScrollPolicy=(0,o.getStringOption)(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.picker=(0,o.getStringOption)(e.picker,["host","none"]);this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.comb=null;this.extras=null;this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)(this,"border","font","margin"),a=this[r.$getParent]()[r.$getParent](),n={name:"input",attributes:{type:"text",fieldId:a[r.$uid],dataId:a[r.$data]&&a[r.$data][r.$uid]||a[r.$uid],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(a),"aria-required":!1}};if(isRequired(a)){n.attributes["aria-required"]=!0;n.attributes.required=!0}return o.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}class Decimal extends r.ContentObject{constructor(e){super(d,"decimal");this.fracDigits=(0,o.getInteger)({data:e.fracDigits,defaultValue:2,validate:e=>!0});this.id=e.id||"";this.leadDigits=(0,o.getInteger)({data:e.leadDigits,defaultValue:-1,validate:e=>!0});this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[r.$finalize](){const e=parseFloat(this[r.$content].trim());this[r.$content]=isNaN(e)?null:e}[r.$toHTML](e){return valueToHtml(null!==this[r.$content]?this[r.$content].toString():"")}}class DefaultUi extends r.XFAObject{constructor(e){super(d,"defaultUi",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}}class Desc extends r.XFAObject{constructor(e){super(d,"desc",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new r.XFAObjectArray;this.date=new r.XFAObjectArray;this.dateTime=new r.XFAObjectArray;this.decimal=new r.XFAObjectArray;this.exData=new r.XFAObjectArray;this.float=new r.XFAObjectArray;this.image=new r.XFAObjectArray;this.integer=new r.XFAObjectArray;this.text=new r.XFAObjectArray;this.time=new r.XFAObjectArray}}class DigestMethod extends r.OptionObject{constructor(e){super(d,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class DigestMethods extends r.XFAObject{constructor(e){super(d,"digestMethods",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.digestMethod=new r.XFAObjectArray}}class Draw extends r.XFAObject{constructor(e){super(d,"draw",!0);this.anchorType=(0,o.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,o.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.h=e.h?(0,o.getMeasurement)(e.h):"";this.hAlign=(0,o.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.locale=e.locale||"";this.maxH=(0,o.getMeasurement)(e.maxH,"0pt");this.maxW=(0,o.getMeasurement)(e.maxW,"0pt");this.minH=(0,o.getMeasurement)(e.minH,"0pt");this.minW=(0,o.getMeasurement)(e.minW,"0pt");this.name=e.name||"";this.presence=(0,o.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(e.relevant);this.rotate=(0,o.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0});this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?(0,o.getMeasurement)(e.w):"";this.x=(0,o.getMeasurement)(e.x,"0pt");this.y=(0,o.getMeasurement)(e.y,"0pt");this.assist=null;this.border=null;this.caption=null;this.desc=null;this.extras=null;this.font=null;this.keep=null;this.margin=null;this.para=null;this.traversal=null;this.ui=null;this.value=null;this.setProperty=new r.XFAObjectArray}[r.$setValue](e){_setValue(this,e)}[r.$toHTML](e){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence)return o.HTMLResult.EMPTY;(0,s.fixDimensions)(this);this[r.$pushPara]();const t=this.w,a=this.h,{w:n,h:c,isBroken:l}=(0,s.layoutNode)(this,e);if(n&&""===this.w){if(l&&this[r.$getSubformParent]()[r.$isThereMoreWidth]()){this[r.$popPara]();return o.HTMLResult.FAILURE}this.w=n}c&&""===this.h&&(this.h=c);setFirstUnsplittable(this);if(!(0,i.checkDimensions)(this,e)){this.w=t;this.h=a;this[r.$popPara]();return o.HTMLResult.FAILURE}unsetFirstUnsplittable(this);const h=(0,s.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,s.setMinMaxDimensions)(this,h);if(h.margin){h.padding=h.margin;delete h.margin}const u=["xfaDraw"];this.font&&u.push("xfaFont");(0,s.isPrintOnly)(this)&&u.push("xfaPrintOnly");const d={style:h,id:this[r.$uid],class:u};this.name&&(d.xfaName=this.name);const f={name:"div",attributes:d,children:[]};applyAssist(this,d);const g=(0,s.computeBbox)(this,f,e),p=this.value?this.value[r.$toHTML](e).html:null;if(null===p){this.w=t;this.h=a;this[r.$popPara]();return o.HTMLResult.success((0,s.createWrapper)(this,f),g)}f.children.push(p);(0,s.setPara)(this,h,p);this.w=t;this.h=a;this[r.$popPara]();return o.HTMLResult.success((0,s.createWrapper)(this,f),g)}}class Edge extends r.XFAObject{constructor(e){super(d,"edge",!0);this.cap=(0,o.getStringOption)(e.cap,["square","butt","round"]);this.id=e.id||"";this.presence=(0,o.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.stroke=(0,o.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=(0,o.getMeasurement)(e.thickness,"0.5pt");this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[r.$toStyle](){const e=(0,s.toStyle)(this,"visibility");Object.assign(e,{linecap:this.cap,width:(0,s.measureToString)(this.thickness),color:this.color?this.color[r.$toStyle]():"#000000",style:""});if("visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}class Encoding extends r.OptionObject{constructor(e){super(d,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Encodings extends r.XFAObject{constructor(e){super(d,"encodings",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.encoding=new r.XFAObjectArray}}class Encrypt extends r.XFAObject{constructor(e){super(d,"encrypt",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=null}}class EncryptData extends r.XFAObject{constructor(e){super(d,"encryptData",!0);this.id=e.id||"";this.operation=(0,o.getStringOption)(e.operation,["encrypt","decrypt"]);this.target=e.target||"";this.use=e.use||"";this.usehref=e.usehref||"";this.filter=null;this.manifest=null}}class Encryption extends r.XFAObject{constructor(e){super(d,"encryption",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=new r.XFAObjectArray}}class EncryptionMethod extends r.OptionObject{constructor(e){super(d,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class EncryptionMethods extends r.XFAObject{constructor(e){super(d,"encryptionMethods",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.encryptionMethod=new r.XFAObjectArray}}class Event extends r.XFAObject{constructor(e){super(d,"event",!0);this.activity=(0,o.getStringOption)(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]);this.id=e.id||"";this.listen=(0,o.getStringOption)(e.listen,["refOnly","refAndDescendents"]);this.name=e.name||"";this.ref=e.ref||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.encryptData=null;this.execute=null;this.script=null;this.signData=null;this.submit=null}}class ExData extends r.ContentObject{constructor(e){super(d,"exData");this.contentType=e.contentType||"";this.href=e.href||"";this.id=e.id||"";this.maxLength=(0,o.getInteger)({data:e.maxLength,defaultValue:-1,validate:e=>e>=-1});this.name=e.name||"";this.rid=e.rid||"";this.transferEncoding=(0,o.getStringOption)(e.transferEncoding,["none","base64","package"]);this.use=e.use||"";this.usehref=e.usehref||""}[r.$isCDATAXml](){return"text/html"===this.contentType}[r.$onChild](e){if("text/html"===this.contentType&&e[r.$namespaceId]===n.NamespaceIds.xhtml.id){this[r.$content]=e;return!0}if("text/xml"===this.contentType){this[r.$content]=e;return!0}return!1}[r.$toHTML](e){return"text/html"===this.contentType&&this[r.$content]?this[r.$content][r.$toHTML](e):o.HTMLResult.EMPTY}}class ExObject extends r.XFAObject{constructor(e){super(d,"exObject",!0);this.archive=e.archive||"";this.classId=e.classId||"";this.codeBase=e.codeBase||"";this.codeType=e.codeType||"";this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.boolean=new r.XFAObjectArray;this.date=new r.XFAObjectArray;this.dateTime=new r.XFAObjectArray;this.decimal=new r.XFAObjectArray;this.exData=new r.XFAObjectArray;this.exObject=new r.XFAObjectArray;this.float=new r.XFAObjectArray;this.image=new r.XFAObjectArray;this.integer=new r.XFAObjectArray;this.text=new r.XFAObjectArray;this.time=new r.XFAObjectArray}}class ExclGroup extends r.XFAObject{constructor(e){super(d,"exclGroup",!0);this.access=(0,o.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]);this.accessKey=e.accessKey||"";this.anchorType=(0,o.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,o.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.h=e.h?(0,o.getMeasurement)(e.h):"";this.hAlign=(0,o.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.layout=(0,o.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.maxH=(0,o.getMeasurement)(e.maxH,"0pt");this.maxW=(0,o.getMeasurement)(e.maxW,"0pt");this.minH=(0,o.getMeasurement)(e.minH,"0pt");this.minW=(0,o.getMeasurement)(e.minW,"0pt");this.name=e.name||"";this.presence=(0,o.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?(0,o.getMeasurement)(e.w):"";this.x=(0,o.getMeasurement)(e.x,"0pt");this.y=(0,o.getMeasurement)(e.y,"0pt");this.assist=null;this.bind=null;this.border=null;this.calculate=null;this.caption=null;this.desc=null;this.extras=null;this.margin=null;this.para=null;this.traversal=null;this.validate=null;this.connect=new r.XFAObjectArray;this.event=new r.XFAObjectArray;this.field=new r.XFAObjectArray;this.setProperty=new r.XFAObjectArray}[r.$isBindable](){return!0}[r.$hasSettableValue](){return!0}[r.$setValue](e){for(const t of this.field.children){if(!t.value){const e=new Value({});t[r.$appendChild](e);t.value=e}t.value[r.$setValue](e)}}[r.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[r.$extra].attempt&&this[r.$extra].numberInLine>0||this[r.$getParent]()[r.$isThereMoreWidth]()}[r.$isSplittable](){const e=this[r.$getSubformParent]();if(!e[r.$isSplittable]())return!1;if(void 0!==this[r.$extra]._isSplittable)return this[r.$extra]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[r.$extra]._isSplittable=!1;return!1}if(e.layout&&e.layout.endsWith("-tb")&&0!==e[r.$extra].numberInLine)return!1;this[r.$extra]._isSplittable=!0;return!0}[r.$flushHTML](){return(0,i.flushHTML)(this)}[r.$addHTML](e,t){(0,i.addHTML)(this,e,t)}[r.$getAvailableSpace](){return(0,i.getAvailableSpace)(this)}[r.$toHTML](e){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return o.HTMLResult.EMPTY;(0,s.fixDimensions)(this);const t=[],a={id:this[r.$uid],class:[]};(0,s.setAccess)(this,a.class);this[r.$extra]||(this[r.$extra]=Object.create(null));Object.assign(this[r.$extra],{children:t,attributes:a,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const n=this[r.$isSplittable]();n||setFirstUnsplittable(this);if(!(0,i.checkDimensions)(this,e))return o.HTMLResult.FAILURE;const c=new Set(["field"]);if(this.layout.includes("row")){const e=this[r.$getSubformParent]().columnWidths;if(Array.isArray(e)&&e.length>0){this[r.$extra].columnWidths=e;this[r.$extra].currentColumn=0}}const l=(0,s.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),h=["xfaExclgroup"],u=(0,s.layoutClass)(this);u&&h.push(u);(0,s.isPrintOnly)(this)&&h.push("xfaPrintOnly");a.style=l;a.class=h;this.name&&(a.xfaName=this.name);this[r.$pushPara]();const d="lr-tb"===this.layout||"rl-tb"===this.layout,f=d?2:1;for(;this[r.$extra].attempte>=1||-1===e});this.h=e.h?(0,o.getMeasurement)(e.h):"";this.hAlign=(0,o.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.locale=e.locale||"";this.maxH=(0,o.getMeasurement)(e.maxH,"0pt");this.maxW=(0,o.getMeasurement)(e.maxW,"0pt");this.minH=(0,o.getMeasurement)(e.minH,"0pt");this.minW=(0,o.getMeasurement)(e.minW,"0pt");this.name=e.name||"";this.presence=(0,o.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(e.relevant);this.rotate=(0,o.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0});this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?(0,o.getMeasurement)(e.w):"";this.x=(0,o.getMeasurement)(e.x,"0pt");this.y=(0,o.getMeasurement)(e.y,"0pt");this.assist=null;this.bind=null;this.border=null;this.calculate=null;this.caption=null;this.desc=null;this.extras=null;this.font=null;this.format=null;this.items=new r.XFAObjectArray(2);this.keep=null;this.margin=null;this.para=null;this.traversal=null;this.ui=null;this.validate=null;this.value=null;this.bindItems=new r.XFAObjectArray;this.connect=new r.XFAObjectArray;this.event=new r.XFAObjectArray;this.setProperty=new r.XFAObjectArray}[r.$isBindable](){return!0}[r.$setValue](e){_setValue(this,e)}[r.$toHTML](e){setTabIndex(this);if(!this.ui){this.ui=new Ui({});this.ui[r.$globalData]=this[r.$globalData];this[r.$appendChild](this.ui);let e;switch(this.items.children.length){case 0:e=new TextEdit({});this.ui.textEdit=e;break;case 1:e=new CheckButton({});this.ui.checkButton=e;break;case 2:e=new ChoiceList({});this.ui.choiceList=e}this.ui[r.$appendChild](e)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return o.HTMLResult.EMPTY;this.caption&&delete this.caption[r.$extra];this[r.$pushPara]();const t=this.caption?this.caption[r.$toHTML](e).html:null,a=this.w,n=this.h;let c=0,h=0;if(this.margin){c=this.margin.leftInset+this.margin.rightInset;h=this.margin.topInset+this.margin.bottomInset}let u=null;if(""===this.w||""===this.h){let t=null,a=null,n=0,i=0;if(this.ui.checkButton)n=i=this.ui.checkButton.size;else{const{w:t,h:a}=(0,s.layoutNode)(this,e);if(null!==t){n=t;i=a}else i=(0,l.getMetrics)(this.font,!0).lineNoGap}u=getBorderDims(this.ui[r.$getExtra]());n+=u.w;i+=u.h;if(this.caption){const{w:s,h:c,isBroken:l}=this.caption[r.$getExtra](e);if(l&&this[r.$getSubformParent]()[r.$isThereMoreWidth]()){this[r.$popPara]();return o.HTMLResult.FAILURE}t=s;a=c;switch(this.caption.placement){case"left":case"right":case"inline":t+=n;break;case"top":case"bottom":a+=i}}else{t=n;a=i}if(t&&""===this.w){t+=c;this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1e>=1&&e<=5});this.appearanceFilter=null;this.certificates=null;this.digestMethods=null;this.encodings=null;this.encryptionMethods=null;this.handler=null;this.lockDocument=null;this.mdp=null;this.reasons=null;this.timeStamp=null}}class Float extends r.ContentObject{constructor(e){super(d,"float");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[r.$finalize](){const e=parseFloat(this[r.$content].trim());this[r.$content]=isNaN(e)?null:e}[r.$toHTML](e){return valueToHtml(null!==this[r.$content]?this[r.$content].toString():"")}}class Font extends r.XFAObject{constructor(e){super(d,"font",!0);this.baselineShift=(0,o.getMeasurement)(e.baselineShift);this.fontHorizontalScale=(0,o.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:e=>e>=0});this.fontVerticalScale=(0,o.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:e=>e>=0});this.id=e.id||"";this.kerningMode=(0,o.getStringOption)(e.kerningMode,["none","pair"]);this.letterSpacing=(0,o.getMeasurement)(e.letterSpacing,"0");this.lineThrough=(0,o.getInteger)({data:e.lineThrough,defaultValue:0,validate:e=>1===e||2===e});this.lineThroughPeriod=(0,o.getStringOption)(e.lineThroughPeriod,["all","word"]);this.overline=(0,o.getInteger)({data:e.overline,defaultValue:0,validate:e=>1===e||2===e});this.overlinePeriod=(0,o.getStringOption)(e.overlinePeriod,["all","word"]);this.posture=(0,o.getStringOption)(e.posture,["normal","italic"]);this.size=(0,o.getMeasurement)(e.size,"10pt");this.typeface=e.typeface||"Courier";this.underline=(0,o.getInteger)({data:e.underline,defaultValue:0,validate:e=>1===e||2===e});this.underlinePeriod=(0,o.getStringOption)(e.underlinePeriod,["all","word"]);this.use=e.use||"";this.usehref=e.usehref||"";this.weight=(0,o.getStringOption)(e.weight,["normal","bold"]);this.extras=null;this.fill=null}[r.$clean](e){super[r.$clean](e);this[r.$globalData].usedTypefaces.add(this.typeface)}[r.$toStyle](){const e=(0,s.toStyle)(this,"fill"),t=e.color;if(t)if("#000000"===t)delete e.color;else if(!t.startsWith("#")){e.background=t;e.backgroundClip="text";e.color="transparent"}this.baselineShift&&(e.verticalAlign=(0,s.measureToString)(this.baselineShift));e.fontKerning="none"===this.kerningMode?"none":"normal";e.letterSpacing=(0,s.measureToString)(this.letterSpacing);if(0!==this.lineThrough){e.textDecoration="line-through";2===this.lineThrough&&(e.textDecorationStyle="double")}if(0!==this.overline){e.textDecoration="overline";2===this.overline&&(e.textDecorationStyle="double")}e.fontStyle=this.posture;e.fontSize=(0,s.measureToString)(.99*this.size);(0,s.setFontFamily)(this,this,this[r.$globalData].fontFinder,e);if(0!==this.underline){e.textDecoration="underline";2===this.underline&&(e.textDecorationStyle="double")}e.fontWeight=this.weight;return e}}class Format extends r.XFAObject{constructor(e){super(d,"format",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.picture=null}}class Handler extends r.StringObject{constructor(e){super(d,"handler");this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Hyphenation extends r.XFAObject{constructor(e){super(d,"hyphenation");this.excludeAllCaps=(0,o.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:e=>1===e});this.excludeInitialCap=(0,o.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:e=>1===e});this.hyphenate=(0,o.getInteger)({data:e.hyphenate,defaultValue:0,validate:e=>1===e});this.id=e.id||"";this.pushCharacterCount=(0,o.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:e=>e>=0});this.remainCharacterCount=(0,o.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:e=>e>=0});this.use=e.use||"";this.usehref=e.usehref||"";this.wordCharacterCount=(0,o.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:e=>e>=0})}}class Image extends r.StringObject{constructor(e){super(d,"image");this.aspect=(0,o.getStringOption)(e.aspect,["fit","actual","height","none","width"]);this.contentType=e.contentType||"";this.href=e.href||"";this.id=e.id||"";this.name=e.name||"";this.transferEncoding=(0,o.getStringOption)(e.transferEncoding,["base64","none","package"]);this.use=e.use||"";this.usehref=e.usehref||""}[r.$toHTML](){if(this.contentType&&!p.has(this.contentType.toLowerCase()))return o.HTMLResult.EMPTY;let e=this[r.$globalData].images&&this[r.$globalData].images.get(this.href);if(!e&&(this.href||!this[r.$content]))return o.HTMLResult.EMPTY;e||"base64"!==this.transferEncoding||(e=(0,c.stringToBytes)(atob(this[r.$content])));if(!e)return o.HTMLResult.EMPTY;if(!this.contentType){for(const[t,a]of m)if(e.length>t.length&&t.every(((t,a)=>t===e[a]))){this.contentType=a;break}if(!this.contentType)return o.HTMLResult.EMPTY}const t=new Blob([e],{type:this.contentType});let a;switch(this.aspect){case"fit":case"actual":break;case"height":a={height:"100%",objectFit:"fill"};break;case"none":a={width:"100%",height:"100%",objectFit:"fill"};break;case"width":a={width:"100%",objectFit:"fill"}}const n=this[r.$getParent]();return o.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:a,src:URL.createObjectURL(t),alt:n?ariaLabel(n[r.$getParent]()):null}})}}class ImageEdit extends r.XFAObject{constructor(e){super(d,"imageEdit",!0);this.data=(0,o.getStringOption)(e.data,["link","embed"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.margin=null}[r.$toHTML](e){return"embed"===this.data?o.HTMLResult.success({name:"div",children:[],attributes:{}}):o.HTMLResult.EMPTY}}class Integer extends r.ContentObject{constructor(e){super(d,"integer");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[r.$finalize](){const e=parseInt(this[r.$content].trim(),10);this[r.$content]=isNaN(e)?null:e}[r.$toHTML](e){return valueToHtml(null!==this[r.$content]?this[r.$content].toString():"")}}class Issuers extends r.XFAObject{constructor(e){super(d,"issuers",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=new r.XFAObjectArray}}class Items extends r.XFAObject{constructor(e){super(d,"items",!0);this.id=e.id||"";this.name=e.name||"";this.presence=(0,o.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.ref=e.ref||"";this.save=(0,o.getInteger)({data:e.save,defaultValue:0,validate:e=>1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new r.XFAObjectArray;this.date=new r.XFAObjectArray;this.dateTime=new r.XFAObjectArray;this.decimal=new r.XFAObjectArray;this.exData=new r.XFAObjectArray;this.float=new r.XFAObjectArray;this.image=new r.XFAObjectArray;this.integer=new r.XFAObjectArray;this.text=new r.XFAObjectArray;this.time=new r.XFAObjectArray}[r.$toHTML](){const e=[];for(const t of this[r.$getChildren]())e.push(t[r.$text]());return o.HTMLResult.success(e)}}t.Items=Items;class Keep extends r.XFAObject{constructor(e){super(d,"keep",!0);this.id=e.id||"";const t=["none","contentArea","pageArea"];this.intact=(0,o.getStringOption)(e.intact,t);this.next=(0,o.getStringOption)(e.next,t);this.previous=(0,o.getStringOption)(e.previous,t);this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}}class KeyUsage extends r.XFAObject{constructor(e){super(d,"keyUsage");const t=["","yes","no"];this.crlSign=(0,o.getStringOption)(e.crlSign,t);this.dataEncipherment=(0,o.getStringOption)(e.dataEncipherment,t);this.decipherOnly=(0,o.getStringOption)(e.decipherOnly,t);this.digitalSignature=(0,o.getStringOption)(e.digitalSignature,t);this.encipherOnly=(0,o.getStringOption)(e.encipherOnly,t);this.id=e.id||"";this.keyAgreement=(0,o.getStringOption)(e.keyAgreement,t);this.keyCertSign=(0,o.getStringOption)(e.keyCertSign,t);this.keyEncipherment=(0,o.getStringOption)(e.keyEncipherment,t);this.nonRepudiation=(0,o.getStringOption)(e.nonRepudiation,t);this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Line extends r.XFAObject{constructor(e){super(d,"line",!0);this.hand=(0,o.getStringOption)(e.hand,["even","left","right"]);this.id=e.id||"";this.slope=(0,o.getStringOption)(e.slope,["\\","/"]);this.use=e.use||"";this.usehref=e.usehref||"";this.edge=null}[r.$toHTML](){const e=this[r.$getParent]()[r.$getParent](),t=this.edge||new Edge({}),a=t[r.$toStyle](),n=Object.create(null),i="visible"===t.presence?t.thickness:0;n.strokeWidth=(0,s.measureToString)(i);n.stroke=a.color;let c,l,h,u,d="100%",g="100%";if(e.w<=i){[c,l,h,u]=["50%",0,"50%","100%"];d=n.strokeWidth}else if(e.h<=i){[c,l,h,u]=[0,"50%","100%","50%"];g=n.strokeWidth}else"\\"===this.slope?[c,l,h,u]=[0,0,"100%","100%"]:[c,l,h,u]=[0,"100%","100%",0];const p={name:"svg",children:[{name:"line",attributes:{xmlns:f,x1:c,y1:l,x2:h,y2:u,style:n}}],attributes:{xmlns:f,width:d,height:g,style:{overflow:"visible"}}};if(hasMargin(e))return o.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[p]});p.attributes.style.position="absolute";return o.HTMLResult.success(p)}}class Linear extends r.XFAObject{constructor(e){super(d,"linear",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[r.$toStyle](e){e=e?e[r.$toStyle]():"#FFFFFF";return`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${e}, ${this.color?this.color[r.$toStyle]():"#000000"})`}}class LockDocument extends r.ContentObject{constructor(e){super(d,"lockDocument");this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}[r.$finalize](){this[r.$content]=(0,o.getStringOption)(this[r.$content],["auto","0","1"])}}class Manifest extends r.XFAObject{constructor(e){super(d,"manifest",!0);this.action=(0,o.getStringOption)(e.action,["include","all","exclude"]);this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.ref=new r.XFAObjectArray}}class Margin extends r.XFAObject{constructor(e){super(d,"margin",!0);this.bottomInset=(0,o.getMeasurement)(e.bottomInset,"0");this.id=e.id||"";this.leftInset=(0,o.getMeasurement)(e.leftInset,"0");this.rightInset=(0,o.getMeasurement)(e.rightInset,"0");this.topInset=(0,o.getMeasurement)(e.topInset,"0");this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[r.$toStyle](){return{margin:(0,s.measureToString)(this.topInset)+" "+(0,s.measureToString)(this.rightInset)+" "+(0,s.measureToString)(this.bottomInset)+" "+(0,s.measureToString)(this.leftInset)}}}class Mdp extends r.XFAObject{constructor(e){super(d,"mdp");this.id=e.id||"";this.permissions=(0,o.getInteger)({data:e.permissions,defaultValue:2,validate:e=>1===e||3===e});this.signatureType=(0,o.getStringOption)(e.signatureType,["filler","author"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Medium extends r.XFAObject{constructor(e){super(d,"medium");this.id=e.id||"";this.imagingBBox=(0,o.getBBox)(e.imagingBBox);this.long=(0,o.getMeasurement)(e.long);this.orientation=(0,o.getStringOption)(e.orientation,["portrait","landscape"]);this.short=(0,o.getMeasurement)(e.short);this.stock=e.stock||"";this.trayIn=(0,o.getStringOption)(e.trayIn,["auto","delegate","pageFront"]);this.trayOut=(0,o.getStringOption)(e.trayOut,["auto","delegate"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Message extends r.XFAObject{constructor(e){super(d,"message",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.text=new r.XFAObjectArray}}class NumericEdit extends r.XFAObject{constructor(e){super(d,"numericEdit",!0);this.hScrollPolicy=(0,o.getStringOption)(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.comb=null;this.extras=null;this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)(this,"border","font","margin"),a=this[r.$getParent]()[r.$getParent](),n={name:"input",attributes:{type:"text",fieldId:a[r.$uid],dataId:a[r.$data]&&a[r.$data][r.$uid]||a[r.$uid],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(a),"aria-required":!1}};if(isRequired(a)){n.attributes["aria-required"]=!0;n.attributes.required=!0}return o.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}class Occur extends r.XFAObject{constructor(e){super(d,"occur",!0);this.id=e.id||"";this.initial=""!==e.initial?(0,o.getInteger)({data:e.initial,defaultValue:"",validate:e=>!0}):"";this.max=""!==e.max?(0,o.getInteger)({data:e.max,defaultValue:1,validate:e=>!0}):"";this.min=""!==e.min?(0,o.getInteger)({data:e.min,defaultValue:1,validate:e=>!0}):"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[r.$clean](){const e=this[r.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof PageArea||e instanceof PageSet?0:1);""===this.max&&(this.max=""===t?e instanceof PageArea||e instanceof PageSet?-1:1:this.min);-1!==this.max&&this.max!0});this.name=e.name||"";this.numbered=(0,o.getInteger)({data:e.numbered,defaultValue:1,validate:e=>!0});this.oddOrEven=(0,o.getStringOption)(e.oddOrEven,["any","even","odd"]);this.pagePosition=(0,o.getStringOption)(e.pagePosition,["any","first","last","only","rest"]);this.relevant=(0,o.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.desc=null;this.extras=null;this.medium=null;this.occur=null;this.area=new r.XFAObjectArray;this.contentArea=new r.XFAObjectArray;this.draw=new r.XFAObjectArray;this.exclGroup=new r.XFAObjectArray;this.field=new r.XFAObjectArray;this.subform=new r.XFAObjectArray}[r.$isUsable](){if(!this[r.$extra]){this[r.$extra]={numberOfUse:0};return!0}return!this.occur||-1===this.occur.max||this[r.$extra].numberOfUsee.oddOrEven===t&&e.pagePosition===a));if(n)return n;n=this.pageArea.children.find((e=>"any"===e.oddOrEven&&e.pagePosition===a));if(n)return n;n=this.pageArea.children.find((e=>"any"===e.oddOrEven&&"any"===e.pagePosition));return n||this.pageArea.children[0]}}class Para extends r.XFAObject{constructor(e){super(d,"para",!0);this.hAlign=(0,o.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.lineHeight=e.lineHeight?(0,o.getMeasurement)(e.lineHeight,"0pt"):"";this.marginLeft=e.marginLeft?(0,o.getMeasurement)(e.marginLeft,"0pt"):"";this.marginRight=e.marginRight?(0,o.getMeasurement)(e.marginRight,"0pt"):"";this.orphans=(0,o.getInteger)({data:e.orphans,defaultValue:0,validate:e=>e>=0});this.preserve=e.preserve||"";this.radixOffset=e.radixOffset?(0,o.getMeasurement)(e.radixOffset,"0pt"):"";this.spaceAbove=e.spaceAbove?(0,o.getMeasurement)(e.spaceAbove,"0pt"):"";this.spaceBelow=e.spaceBelow?(0,o.getMeasurement)(e.spaceBelow,"0pt"):"";this.tabDefault=e.tabDefault?(0,o.getMeasurement)(this.tabDefault):"";this.tabStops=(e.tabStops||"").trim().split(/\s+/).map(((e,t)=>t%2==1?(0,o.getMeasurement)(e):e));this.textIndent=e.textIndent?(0,o.getMeasurement)(e.textIndent,"0pt"):"";this.use=e.use||"";this.usehref=e.usehref||"";this.vAlign=(0,o.getStringOption)(e.vAlign,["top","bottom","middle"]);this.widows=(0,o.getInteger)({data:e.widows,defaultValue:0,validate:e=>e>=0});this.hyphenation=null}[r.$toStyle](){const e=(0,s.toStyle)(this,"hAlign");""!==this.marginLeft&&(e.paddingLeft=(0,s.measureToString)(this.marginLeft));""!==this.marginRight&&(e.paddingight=(0,s.measureToString)(this.marginRight));""!==this.spaceAbove&&(e.paddingTop=(0,s.measureToString)(this.spaceAbove));""!==this.spaceBelow&&(e.paddingBottom=(0,s.measureToString)(this.spaceBelow));if(""!==this.textIndent){e.textIndent=(0,s.measureToString)(this.textIndent);(0,s.fixTextIndent)(e)}this.lineHeight>0&&(e.lineHeight=(0,s.measureToString)(this.lineHeight));""!==this.tabDefault&&(e.tabSize=(0,s.measureToString)(this.tabDefault));this.tabStops.length;this.hyphenatation&&Object.assign(e,this.hyphenatation[r.$toStyle]());return e}}class PasswordEdit extends r.XFAObject{constructor(e){super(d,"passwordEdit",!0);this.hScrollPolicy=(0,o.getStringOption)(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.passwordChar=e.passwordChar||"*";this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.margin=null}}class Pattern extends r.XFAObject{constructor(e){super(d,"pattern",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[r.$toStyle](e){e=e?e[r.$toStyle]():"#FFFFFF";const t=this.color?this.color[r.$toStyle]():"#000000",a="repeating-linear-gradient",n=`${e},${e} 5px,${t} 5px,${t} 10px`;switch(this.type){case"crossHatch":return`${a}(to top,${n}) ${a}(to right,${n})`;case"crossDiagonal":return`${a}(45deg,${n}) ${a}(-45deg,${n})`;case"diagonalLeft":return`${a}(45deg,${n})`;case"diagonalRight":return`${a}(-45deg,${n})`;case"horizontal":return`${a}(to top,${n})`;case"vertical":return`${a}(to right,${n})`}return""}}class Picture extends r.StringObject{constructor(e){super(d,"picture");this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Proto extends r.XFAObject{constructor(e){super(d,"proto",!0);this.appearanceFilter=new r.XFAObjectArray;this.arc=new r.XFAObjectArray;this.area=new r.XFAObjectArray;this.assist=new r.XFAObjectArray;this.barcode=new r.XFAObjectArray;this.bindItems=new r.XFAObjectArray;this.bookend=new r.XFAObjectArray;this.boolean=new r.XFAObjectArray;this.border=new r.XFAObjectArray;this.break=new r.XFAObjectArray;this.breakAfter=new r.XFAObjectArray;this.breakBefore=new r.XFAObjectArray;this.button=new r.XFAObjectArray;this.calculate=new r.XFAObjectArray;this.caption=new r.XFAObjectArray;this.certificate=new r.XFAObjectArray;this.certificates=new r.XFAObjectArray;this.checkButton=new r.XFAObjectArray;this.choiceList=new r.XFAObjectArray;this.color=new r.XFAObjectArray;this.comb=new r.XFAObjectArray;this.connect=new r.XFAObjectArray;this.contentArea=new r.XFAObjectArray;this.corner=new r.XFAObjectArray;this.date=new r.XFAObjectArray;this.dateTime=new r.XFAObjectArray;this.dateTimeEdit=new r.XFAObjectArray;this.decimal=new r.XFAObjectArray;this.defaultUi=new r.XFAObjectArray;this.desc=new r.XFAObjectArray;this.digestMethod=new r.XFAObjectArray;this.digestMethods=new r.XFAObjectArray;this.draw=new r.XFAObjectArray;this.edge=new r.XFAObjectArray;this.encoding=new r.XFAObjectArray;this.encodings=new r.XFAObjectArray;this.encrypt=new r.XFAObjectArray;this.encryptData=new r.XFAObjectArray;this.encryption=new r.XFAObjectArray;this.encryptionMethod=new r.XFAObjectArray;this.encryptionMethods=new r.XFAObjectArray;this.event=new r.XFAObjectArray;this.exData=new r.XFAObjectArray;this.exObject=new r.XFAObjectArray;this.exclGroup=new r.XFAObjectArray;this.execute=new r.XFAObjectArray;this.extras=new r.XFAObjectArray;this.field=new r.XFAObjectArray;this.fill=new r.XFAObjectArray;this.filter=new r.XFAObjectArray;this.float=new r.XFAObjectArray;this.font=new r.XFAObjectArray;this.format=new r.XFAObjectArray;this.handler=new r.XFAObjectArray;this.hyphenation=new r.XFAObjectArray;this.image=new r.XFAObjectArray;this.imageEdit=new r.XFAObjectArray;this.integer=new r.XFAObjectArray;this.issuers=new r.XFAObjectArray;this.items=new r.XFAObjectArray;this.keep=new r.XFAObjectArray;this.keyUsage=new r.XFAObjectArray;this.line=new r.XFAObjectArray;this.linear=new r.XFAObjectArray;this.lockDocument=new r.XFAObjectArray;this.manifest=new r.XFAObjectArray;this.margin=new r.XFAObjectArray;this.mdp=new r.XFAObjectArray;this.medium=new r.XFAObjectArray;this.message=new r.XFAObjectArray;this.numericEdit=new r.XFAObjectArray;this.occur=new r.XFAObjectArray;this.oid=new r.XFAObjectArray;this.oids=new r.XFAObjectArray;this.overflow=new r.XFAObjectArray;this.pageArea=new r.XFAObjectArray;this.pageSet=new r.XFAObjectArray;this.para=new r.XFAObjectArray;this.passwordEdit=new r.XFAObjectArray;this.pattern=new r.XFAObjectArray;this.picture=new r.XFAObjectArray;this.radial=new r.XFAObjectArray;this.reason=new r.XFAObjectArray;this.reasons=new r.XFAObjectArray;this.rectangle=new r.XFAObjectArray;this.ref=new r.XFAObjectArray;this.script=new r.XFAObjectArray;this.setProperty=new r.XFAObjectArray;this.signData=new r.XFAObjectArray;this.signature=new r.XFAObjectArray;this.signing=new r.XFAObjectArray;this.solid=new r.XFAObjectArray;this.speak=new r.XFAObjectArray;this.stipple=new r.XFAObjectArray;this.subform=new r.XFAObjectArray;this.subformSet=new r.XFAObjectArray;this.subjectDN=new r.XFAObjectArray;this.subjectDNs=new r.XFAObjectArray;this.submit=new r.XFAObjectArray;this.text=new r.XFAObjectArray;this.textEdit=new r.XFAObjectArray;this.time=new r.XFAObjectArray;this.timeStamp=new r.XFAObjectArray;this.toolTip=new r.XFAObjectArray;this.traversal=new r.XFAObjectArray;this.traverse=new r.XFAObjectArray;this.ui=new r.XFAObjectArray;this.validate=new r.XFAObjectArray;this.value=new r.XFAObjectArray;this.variables=new r.XFAObjectArray}}class Radial extends r.XFAObject{constructor(e){super(d,"radial",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["toEdge","toCenter"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[r.$toStyle](e){e=e?e[r.$toStyle]():"#FFFFFF";const t=this.color?this.color[r.$toStyle]():"#000000";return`radial-gradient(circle at center, ${"toEdge"===this.type?`${e},${t}`:`${t},${e}`})`}}class Reason extends r.StringObject{constructor(e){super(d,"reason");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Reasons extends r.XFAObject{constructor(e){super(d,"reasons",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.reason=new r.XFAObjectArray}}class Rectangle extends r.XFAObject{constructor(e){super(d,"rectangle",!0);this.hand=(0,o.getStringOption)(e.hand,["even","left","right"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.corner=new r.XFAObjectArray(4);this.edge=new r.XFAObjectArray(4);this.fill=null}[r.$toHTML](){const e=this.edge.children.length?this.edge.children[0]:new Edge({}),t=e[r.$toStyle](),a=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(a,this.fill[r.$toStyle]()):a.fill="transparent";a.strokeWidth=(0,s.measureToString)("visible"===e.presence?e.thickness:0);a.stroke=t.color;const n=(this.corner.children.length?this.corner.children[0]:new Corner({}))[r.$toStyle](),i={name:"svg",children:[{name:"rect",attributes:{xmlns:f,width:"100%",height:"100%",x:0,y:0,rx:n.radius,ry:n.radius,style:a}}],attributes:{xmlns:f,style:{overflow:"visible"},width:"100%",height:"100%"}};if(hasMargin(this[r.$getParent]()[r.$getParent]()))return o.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[i]});i.attributes.style.position="absolute";return o.HTMLResult.success(i)}}class RefElement extends r.StringObject{constructor(e){super(d,"ref");this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Script extends r.StringObject{constructor(e){super(d,"script");this.binding=e.binding||"";this.contentType=e.contentType||"";this.id=e.id||"";this.name=e.name||"";this.runAt=(0,o.getStringOption)(e.runAt,["client","both","server"]);this.use=e.use||"";this.usehref=e.usehref||""}}class SetProperty extends r.XFAObject{constructor(e){super(d,"setProperty");this.connection=e.connection||"";this.ref=e.ref||"";this.target=e.target||""}}t.SetProperty=SetProperty;class SignData extends r.XFAObject{constructor(e){super(d,"signData",!0);this.id=e.id||"";this.operation=(0,o.getStringOption)(e.operation,["sign","clear","verify"]);this.ref=e.ref||"";this.target=e.target||"";this.use=e.use||"";this.usehref=e.usehref||"";this.filter=null;this.manifest=null}}class Signature extends r.XFAObject{constructor(e){super(d,"signature",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["PDF1.3","PDF1.6"]);this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.filter=null;this.manifest=null;this.margin=null}}class Signing extends r.XFAObject{constructor(e){super(d,"signing",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=new r.XFAObjectArray}}class Solid extends r.XFAObject{constructor(e){super(d,"solid",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[r.$toStyle](e){return e?e[r.$toStyle]():"#FFFFFF"}}class Speak extends r.StringObject{constructor(e){super(d,"speak");this.disable=(0,o.getInteger)({data:e.disable,defaultValue:0,validate:e=>1===e});this.id=e.id||"";this.priority=(0,o.getStringOption)(e.priority,["custom","caption","name","toolTip"]);this.rid=e.rid||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Stipple extends r.XFAObject{constructor(e){super(d,"stipple",!0);this.id=e.id||"";this.rate=(0,o.getInteger)({data:e.rate,defaultValue:50,validate:e=>e>=0&&e<=100});this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[r.$toStyle](e){const t=this.rate/100;return c.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}class Subform extends r.XFAObject{constructor(e){super(d,"subform",!0);this.access=(0,o.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]);this.allowMacro=(0,o.getInteger)({data:e.allowMacro,defaultValue:0,validate:e=>1===e});this.anchorType=(0,o.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,o.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map((e=>"-1"===e?-1:(0,o.getMeasurement)(e)));this.h=e.h?(0,o.getMeasurement)(e.h):"";this.hAlign=(0,o.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.layout=(0,o.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.locale=e.locale||"";this.maxH=(0,o.getMeasurement)(e.maxH,"0pt");this.maxW=(0,o.getMeasurement)(e.maxW,"0pt");this.mergeMode=(0,o.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]);this.minH=(0,o.getMeasurement)(e.minH,"0pt");this.minW=(0,o.getMeasurement)(e.minW,"0pt");this.name=e.name||"";this.presence=(0,o.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,o.getRelevant)(e.relevant);this.restoreState=(0,o.getStringOption)(e.restoreState,["manual","auto"]);this.scope=(0,o.getStringOption)(e.scope,["name","none"]);this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?(0,o.getMeasurement)(e.w):"";this.x=(0,o.getMeasurement)(e.x,"0pt");this.y=(0,o.getMeasurement)(e.y,"0pt");this.assist=null;this.bind=null;this.bookend=null;this.border=null;this.break=null;this.calculate=null;this.desc=null;this.extras=null;this.keep=null;this.margin=null;this.occur=null;this.overflow=null;this.pageSet=null;this.para=null;this.traversal=null;this.validate=null;this.variables=null;this.area=new r.XFAObjectArray;this.breakAfter=new r.XFAObjectArray;this.breakBefore=new r.XFAObjectArray;this.connect=new r.XFAObjectArray;this.draw=new r.XFAObjectArray;this.event=new r.XFAObjectArray;this.exObject=new r.XFAObjectArray;this.exclGroup=new r.XFAObjectArray;this.field=new r.XFAObjectArray;this.proto=new r.XFAObjectArray;this.setProperty=new r.XFAObjectArray;this.subform=new r.XFAObjectArray;this.subformSet=new r.XFAObjectArray}[r.$getSubformParent](){const e=this[r.$getParent]();return e instanceof SubformSet?e[r.$getSubformParent]():e}[r.$isBindable](){return!0}[r.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[r.$extra].attempt&&this[r.$extra].numberInLine>0||this[r.$getParent]()[r.$isThereMoreWidth]()}*[r.$getContainedChildren](){yield*getContainedChildren(this)}[r.$flushHTML](){return(0,i.flushHTML)(this)}[r.$addHTML](e,t){(0,i.addHTML)(this,e,t)}[r.$getAvailableSpace](){return(0,i.getAvailableSpace)(this)}[r.$isSplittable](){const e=this[r.$getSubformParent]();if(!e[r.$isSplittable]())return!1;if(void 0!==this[r.$extra]._isSplittable)return this[r.$extra]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[r.$extra]._isSplittable=!1;return!1}if(this.keep&&"none"!==this.keep.intact){this[r.$extra]._isSplittable=!1;return!1}if(e.layout&&e.layout.endsWith("-tb")&&0!==e[r.$extra].numberInLine)return!1;this[r.$extra]._isSplittable=!0;return!0}[r.$toHTML](e){setTabIndex(this);if(this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){const e=new BreakAfter({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});e[r.$globalData]=this[r.$globalData];this[r.$appendChild](e);this.breakAfter.push(e)}if("auto"!==this.break.before||""!==this.break.beforeTarget){const e=new BreakBefore({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});e[r.$globalData]=this[r.$globalData];this[r.$appendChild](e);this.breakBefore.push(e)}if(""!==this.break.overflowTarget){const e=new Overflow({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});e[r.$globalData]=this[r.$globalData];this[r.$appendChild](e);this.overflow.push(e)}this[r.$removeChild](this.break);this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return o.HTMLResult.EMPTY;(this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,c.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug.");if(this.breakBefore.children.length>=1){const e=this.breakBefore.children[0];if(handleBreak(e))return o.HTMLResult.breakNode(e)}if(this[r.$extra]&&this[r.$extra].afterBreakAfter)return o.HTMLResult.EMPTY;(0,s.fixDimensions)(this);const t=[],a={id:this[r.$uid],class:[]};(0,s.setAccess)(this,a.class);this[r.$extra]||(this[r.$extra]=Object.create(null));Object.assign(this[r.$extra],{children:t,line:null,attributes:a,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const n=this[r.$getTemplateRoot](),l=n[r.$extra].noLayoutFailure,h=this[r.$isSplittable]();h||setFirstUnsplittable(this);if(!(0,i.checkDimensions)(this,e))return o.HTMLResult.FAILURE;const u=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const e=this[r.$getSubformParent]().columnWidths;if(Array.isArray(e)&&e.length>0){this[r.$extra].columnWidths=e;this[r.$extra].currentColumn=0}}const d=(0,s.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),f=["xfaSubform"],g=(0,s.layoutClass)(this);g&&f.push(g);a.style=d;a.class=f;this.name&&(a.xfaName=this.name);if(this.overflow){const t=this.overflow[r.$getExtra]();if(t.addLeader){t.addLeader=!1;handleOverflow(this,t.leader,e)}}this[r.$pushPara]();const p="lr-tb"===this.layout||"rl-tb"===this.layout,m=p?2:1;for(;this[r.$extra].attempt=1){const e=this.breakAfter.children[0];if(handleBreak(e)){this[r.$extra].afterBreakAfter=k;return o.HTMLResult.breakNode(e)}}delete this[r.$extra];return k}}class SubformSet extends r.XFAObject{constructor(e){super(d,"subformSet",!0);this.id=e.id||"";this.name=e.name||"";this.relation=(0,o.getStringOption)(e.relation,["ordered","choice","unordered"]);this.relevant=(0,o.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.bookend=null;this.break=null;this.desc=null;this.extras=null;this.occur=null;this.overflow=null;this.breakAfter=new r.XFAObjectArray;this.breakBefore=new r.XFAObjectArray;this.subform=new r.XFAObjectArray;this.subformSet=new r.XFAObjectArray}*[r.$getContainedChildren](){yield*getContainedChildren(this)}[r.$getSubformParent](){let e=this[r.$getParent]();for(;!(e instanceof Subform);)e=e[r.$getParent]();return e}[r.$isBindable](){return!0}}class SubjectDN extends r.ContentObject{constructor(e){super(d,"subjectDN");this.delimiter=e.delimiter||",";this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[r.$finalize](){this[r.$content]=new Map(this[r.$content].split(this.delimiter).map((e=>{(e=e.split("=",2))[0]=e[0].trim();return e})))}}class SubjectDNs extends r.XFAObject{constructor(e){super(d,"subjectDNs",!0);this.id=e.id||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.subjectDN=new r.XFAObjectArray}}class Submit extends r.XFAObject{constructor(e){super(d,"submit",!0);this.embedPDF=(0,o.getInteger)({data:e.embedPDF,defaultValue:0,validate:e=>1===e});this.format=(0,o.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);this.id=e.id||"";this.target=e.target||"";this.textEncoding=(0,o.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)});this.use=e.use||"";this.usehref=e.usehref||"";this.xdpContent=e.xdpContent||"";this.encrypt=null;this.encryptData=new r.XFAObjectArray;this.signData=new r.XFAObjectArray}}class Template extends r.XFAObject{constructor(e){super(d,"template",!0);this.baseProfile=(0,o.getStringOption)(e.baseProfile,["full","interactiveForms"]);this.extras=null;this.subform=new r.XFAObjectArray}[r.$finalize](){0===this.subform.children.length&&(0,c.warn)("XFA - No subforms in template node.");this.subform.children.length>=2&&(0,c.warn)("XFA - Several subforms in template node: please file a bug.");this[r.$tabIndex]=5e3}[r.$isSplittable](){return!0}[r.$searchNode](e,t){return e.startsWith("#")?[this[r.$ids].get(e.slice(1))]:(0,u.searchNode)(this,t,e,!0,!0)}*[r.$toPages](){if(!this.subform.children.length)return o.HTMLResult.success({name:"div",children:[]});this[r.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const e=this.subform.children[0];e.pageSet[r.$cleanPage]();const t=e.pageSet.pageArea.children,a={name:"div",children:[]};let n=null,i=null,s=null;if(e.breakBefore.children.length>=1){i=e.breakBefore.children[0];s=i.target}else if(e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1){i=e.subform.children[0].breakBefore.children[0];s=i.target}else if(e.break&&e.break.beforeTarget){i=e.break;s=i.beforeTarget}else if(e.subform.children.length>=1&&e.subform.children[0].break&&e.subform.children[0].break.beforeTarget){i=e.subform.children[0].break;s=i.beforeTarget}if(i){const e=this[r.$searchNode](s,i[r.$getParent]());if(e instanceof PageArea){n=e;i[r.$extra]={}}}n||(n=t[0]);n[r.$extra]={numberOfUse:1};const l=n[r.$getParent]();l[r.$extra]={numberOfUse:1,pageIndex:l.pageArea.children.indexOf(n),pageSetIndex:0};let h,u=null,d=null,f=!0,g=0,p=0;for(;;){if(f)g=0;else{a.children.pop();if(3==++g){(0,c.warn)("XFA - Something goes wrong: please file a bug.");return a}}h=null;this[r.$extra].currentPageArea=n;const t=n[r.$toHTML]().html;a.children.push(t);if(u){this[r.$extra].noLayoutFailure=!0;t.children.push(u[r.$toHTML](n[r.$extra].space).html);u=null}if(d){this[r.$extra].noLayoutFailure=!0;t.children.push(d[r.$toHTML](n[r.$extra].space).html);d=null}const i=n.contentArea.children,s=t.children.filter((e=>e.attributes.class.includes("xfaContentarea")));f=!1;this[r.$extra].firstUnsplittable=null;this[r.$extra].noLayoutFailure=!1;const flush=t=>{const a=e[r.$flushHTML]();if(a){f=f||a.children&&0!==a.children.length;s[t].children.push(a)}};for(let t=p,n=i.length;t1&&a.children.pop();return a}if(c.isBreak()){const e=c.breakNode;flush(t);if("auto"===e.targetType)continue;if(e.leader){u=this[r.$searchNode](e.leader,e[r.$getParent]());u=u?u[0]:null}if(e.trailer){d=this[r.$searchNode](e.trailer,e[r.$getParent]());d=d?d[0]:null}if("pageArea"===e.targetType){h=e[r.$extra].target;t=1/0}else if(e[r.$extra].target){h=e[r.$extra].target;p=e[r.$extra].index+1;t=1/0}else t=e[r.$extra].index}else if(this[r.$extra].overflowNode){const e=this[r.$extra].overflowNode;this[r.$extra].overflowNode=null;const a=e[r.$getExtra](),n=a.target;a.addLeader=null!==a.leader;a.addTrailer=null!==a.trailer;flush(t);const s=t;t=1/0;if(n instanceof PageArea)h=n;else if(n instanceof ContentArea){const e=i.indexOf(n);if(-1!==e)e>s?t=e-1:p=e;else{h=n[r.$getParent]();p=h.contentArea.children.indexOf(n)}}}else flush(t)}this[r.$extra].pageNumber+=1;h&&(h[r.$isUsable]()?h[r.$extra].numberOfUse+=1:h=null);n=h||n[r.$getNextPage]();yield null}}}t.Template=Template;class Text extends r.ContentObject{constructor(e){super(d,"text");this.id=e.id||"";this.maxChars=(0,o.getInteger)({data:e.maxChars,defaultValue:0,validate:e=>e>=0});this.name=e.name||"";this.rid=e.rid||"";this.use=e.use||"";this.usehref=e.usehref||""}[r.$acceptWhitespace](){return!0}[r.$onChild](e){if(e[r.$namespaceId]===n.NamespaceIds.xhtml.id){this[r.$content]=e;return!0}(0,c.warn)(`XFA - Invalid content in Text: ${e[r.$nodeName]}.`);return!1}[r.$onText](e){this[r.$content]instanceof r.XFAObject||super[r.$onText](e)}[r.$finalize](){"string"==typeof this[r.$content]&&(this[r.$content]=this[r.$content].replaceAll("\r\n","\n"))}[r.$getExtra](){return"string"==typeof this[r.$content]?this[r.$content].split(/[\u2029\u2028\n]/).reduce(((e,t)=>{t&&e.push(t);return e}),[]).join("\n"):this[r.$content][r.$text]()}[r.$toHTML](e){if("string"==typeof this[r.$content]){const e=valueToHtml(this[r.$content]).html;if(this[r.$content].includes("\u2029")){e.name="div";e.children=[];this[r.$content].split("\u2029").map((e=>e.split(/[\u2028\n]/).reduce(((e,t)=>{e.push({name:"span",value:t},{name:"br"});return e}),[]))).forEach((t=>{e.children.push({name:"p",children:t})}))}else if(/[\u2028\n]/.test(this[r.$content])){e.name="div";e.children=[];this[r.$content].split(/[\u2028\n]/).forEach((t=>{e.children.push({name:"span",value:t},{name:"br"})}))}return o.HTMLResult.success(e)}return this[r.$content][r.$toHTML](e)}}t.Text=Text;class TextEdit extends r.XFAObject{constructor(e){super(d,"textEdit",!0);this.allowRichText=(0,o.getInteger)({data:e.allowRichText,defaultValue:0,validate:e=>1===e});this.hScrollPolicy=(0,o.getStringOption)(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.multiLine=(0,o.getInteger)({data:e.multiLine,defaultValue:"",validate:e=>0===e||1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.vScrollPolicy=(0,o.getStringOption)(e.vScrollPolicy,["auto","off","on"]);this.border=null;this.comb=null;this.extras=null;this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)(this,"border","font","margin");let a;const n=this[r.$getParent]()[r.$getParent]();""===this.multiLine&&(this.multiLine=n instanceof Draw?1:0);a=1===this.multiLine?{name:"textarea",attributes:{dataId:n[r.$data]&&n[r.$data][r.$uid]||n[r.$uid],fieldId:n[r.$uid],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(n),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:n[r.$data]&&n[r.$data][r.$uid]||n[r.$uid],fieldId:n[r.$uid],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(n),"aria-required":!1}};if(isRequired(n)){a.attributes["aria-required"]=!0;a.attributes.required=!0}return o.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}class Time extends r.StringObject{constructor(e){super(d,"time");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[r.$finalize](){const e=this[r.$content].trim();this[r.$content]=e?new Date(e):null}[r.$toHTML](e){return valueToHtml(this[r.$content]?this[r.$content].toString():"")}}class TimeStamp extends r.XFAObject{constructor(e){super(d,"timeStamp");this.id=e.id||"";this.server=e.server||"";this.type=(0,o.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class ToolTip extends r.StringObject{constructor(e){super(d,"toolTip");this.id=e.id||"";this.rid=e.rid||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Traversal extends r.XFAObject{constructor(e){super(d,"traversal",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.traverse=new r.XFAObjectArray}}class Traverse extends r.XFAObject{constructor(e){super(d,"traverse",!0);this.id=e.id||"";this.operation=(0,o.getStringOption)(e.operation,["next","back","down","first","left","right","up"]);this.ref=e.ref||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.script=null}get name(){return this.operation}[r.$isTransparent](){return!1}}class Ui extends r.XFAObject{constructor(e){super(d,"ui",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.picture=null;this.barcode=null;this.button=null;this.checkButton=null;this.choiceList=null;this.dateTimeEdit=null;this.defaultUi=null;this.imageEdit=null;this.numericEdit=null;this.passwordEdit=null;this.signature=null;this.textEdit=null}[r.$getExtra](){if(void 0===this[r.$extra]){for(const e of Object.getOwnPropertyNames(this)){if("extras"===e||"picture"===e)continue;const t=this[e];if(t instanceof r.XFAObject){this[r.$extra]=t;return t}}this[r.$extra]=null}return this[r.$extra]}[r.$toHTML](e){const t=this[r.$getExtra]();return t?t[r.$toHTML](e):o.HTMLResult.EMPTY}}class Validate extends r.XFAObject{constructor(e){super(d,"validate",!0);this.formatTest=(0,o.getStringOption)(e.formatTest,["warning","disabled","error"]);this.id=e.id||"";this.nullTest=(0,o.getStringOption)(e.nullTest,["disabled","error","warning"]);this.scriptTest=(0,o.getStringOption)(e.scriptTest,["error","disabled","warning"]);this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.message=null;this.picture=null;this.script=null}}class Value extends r.XFAObject{constructor(e){super(d,"value",!0);this.id=e.id||"";this.override=(0,o.getInteger)({data:e.override,defaultValue:0,validate:e=>1===e});this.relevant=(0,o.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.arc=null;this.boolean=null;this.date=null;this.dateTime=null;this.decimal=null;this.exData=null;this.float=null;this.image=null;this.integer=null;this.line=null;this.rectangle=null;this.text=null;this.time=null}[r.$setValue](e){const t=this[r.$getParent]();if(t instanceof Field&&t.ui&&t.ui.imageEdit){if(!this.image){this.image=new Image({});this[r.$appendChild](this.image)}this.image[r.$content]=e[r.$content];return}const a=e[r.$nodeName];if(null===this[a]){for(const e of Object.getOwnPropertyNames(this)){const t=this[e];if(t instanceof r.XFAObject){this[e]=null;this[r.$removeChild](t)}}this[e[r.$nodeName]]=e;this[r.$appendChild](e)}else this[a][r.$content]=e[r.$content]}[r.$text](){if(this.exData)return"string"==typeof this.exData[r.$content]?this.exData[r.$content].trim():this.exData[r.$content][r.$text]().trim();for(const e of Object.getOwnPropertyNames(this)){if("image"===e)continue;const t=this[e];if(t instanceof r.XFAObject)return(t[r.$content]||"").toString().trim()}return null}[r.$toHTML](e){for(const t of Object.getOwnPropertyNames(this)){const a=this[t];if(a instanceof r.XFAObject)return a[r.$toHTML](e)}return o.HTMLResult.EMPTY}}t.Value=Value;class Variables extends r.XFAObject{constructor(e){super(d,"variables",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new r.XFAObjectArray;this.date=new r.XFAObjectArray;this.dateTime=new r.XFAObjectArray;this.decimal=new r.XFAObjectArray;this.exData=new r.XFAObjectArray;this.float=new r.XFAObjectArray;this.image=new r.XFAObjectArray;this.integer=new r.XFAObjectArray;this.manifest=new r.XFAObjectArray;this.script=new r.XFAObjectArray;this.text=new r.XFAObjectArray;this.time=new r.XFAObjectArray}[r.$isTransparent](){return!0}}class TemplateNamespace{static[n.$buildXFAObject](e,t){if(TemplateNamespace.hasOwnProperty(e)){const a=TemplateNamespace[e](t);a[r.$setSetAttributes](t);return a}}static appearanceFilter(e){return new AppearanceFilter(e)}static arc(e){return new Arc(e)}static area(e){return new Area(e)}static assist(e){return new Assist(e)}static barcode(e){return new Barcode(e)}static bind(e){return new Bind(e)}static bindItems(e){return new BindItems(e)}static bookend(e){return new Bookend(e)}static boolean(e){return new BooleanElement(e)}static border(e){return new Border(e)}static break(e){return new Break(e)}static breakAfter(e){return new BreakAfter(e)}static breakBefore(e){return new BreakBefore(e)}static button(e){return new Button(e)}static calculate(e){return new Calculate(e)}static caption(e){return new Caption(e)}static certificate(e){return new Certificate(e)}static certificates(e){return new Certificates(e)}static checkButton(e){return new CheckButton(e)}static choiceList(e){return new ChoiceList(e)}static color(e){return new Color(e)}static comb(e){return new Comb(e)}static connect(e){return new Connect(e)}static contentArea(e){return new ContentArea(e)}static corner(e){return new Corner(e)}static date(e){return new DateElement(e)}static dateTime(e){return new DateTime(e)}static dateTimeEdit(e){return new DateTimeEdit(e)}static decimal(e){return new Decimal(e)}static defaultUi(e){return new DefaultUi(e)}static desc(e){return new Desc(e)}static digestMethod(e){return new DigestMethod(e)}static digestMethods(e){return new DigestMethods(e)}static draw(e){return new Draw(e)}static edge(e){return new Edge(e)}static encoding(e){return new Encoding(e)}static encodings(e){return new Encodings(e)}static encrypt(e){return new Encrypt(e)}static encryptData(e){return new EncryptData(e)}static encryption(e){return new Encryption(e)}static encryptionMethod(e){return new EncryptionMethod(e)}static encryptionMethods(e){return new EncryptionMethods(e)}static event(e){return new Event(e)}static exData(e){return new ExData(e)}static exObject(e){return new ExObject(e)}static exclGroup(e){return new ExclGroup(e)}static execute(e){return new Execute(e)}static extras(e){return new Extras(e)}static field(e){return new Field(e)}static fill(e){return new Fill(e)}static filter(e){return new Filter(e)}static float(e){return new Float(e)}static font(e){return new Font(e)}static format(e){return new Format(e)}static handler(e){return new Handler(e)}static hyphenation(e){return new Hyphenation(e)}static image(e){return new Image(e)}static imageEdit(e){return new ImageEdit(e)}static integer(e){return new Integer(e)}static issuers(e){return new Issuers(e)}static items(e){return new Items(e)}static keep(e){return new Keep(e)}static keyUsage(e){return new KeyUsage(e)}static line(e){return new Line(e)}static linear(e){return new Linear(e)}static lockDocument(e){return new LockDocument(e)}static manifest(e){return new Manifest(e)}static margin(e){return new Margin(e)}static mdp(e){return new Mdp(e)}static medium(e){return new Medium(e)}static message(e){return new Message(e)}static numericEdit(e){return new NumericEdit(e)}static occur(e){return new Occur(e)}static oid(e){return new Oid(e)}static oids(e){return new Oids(e)}static overflow(e){return new Overflow(e)}static pageArea(e){return new PageArea(e)}static pageSet(e){return new PageSet(e)}static para(e){return new Para(e)}static passwordEdit(e){return new PasswordEdit(e)}static pattern(e){return new Pattern(e)}static picture(e){return new Picture(e)}static proto(e){return new Proto(e)}static radial(e){return new Radial(e)}static reason(e){return new Reason(e)}static reasons(e){return new Reasons(e)}static rectangle(e){return new Rectangle(e)}static ref(e){return new RefElement(e)}static script(e){return new Script(e)}static setProperty(e){return new SetProperty(e)}static signData(e){return new SignData(e)}static signature(e){return new Signature(e)}static signing(e){return new Signing(e)}static solid(e){return new Solid(e)}static speak(e){return new Speak(e)}static stipple(e){return new Stipple(e)}static subform(e){return new Subform(e)}static subformSet(e){return new SubformSet(e)}static subjectDN(e){return new SubjectDN(e)}static subjectDNs(e){return new SubjectDNs(e)}static submit(e){return new Submit(e)}static template(e){return new Template(e)}static text(e){return new Text(e)}static textEdit(e){return new TextEdit(e)}static time(e){return new Time(e)}static timeStamp(e){return new TimeStamp(e)}static toolTip(e){return new ToolTip(e)}static traversal(e){return new Traversal(e)}static traverse(e){return new Traverse(e)}static ui(e){return new Ui(e)}static validate(e){return new Validate(e)}static value(e){return new Value(e)}static variables(e){return new Variables(e)}}t.TemplateNamespace=TemplateNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.addHTML=function addHTML(e,t,a){const i=e[r.$extra],s=i.availableSpace,[o,c,l,h]=a;switch(e.layout){case"position":i.width=Math.max(i.width,o+l);i.height=Math.max(i.height,c+h);i.children.push(t);break;case"lr-tb":case"rl-tb":if(!i.line||1===i.attempt){i.line=createLine(e,[]);i.children.push(i.line);i.numberInLine=0}i.numberInLine+=1;i.line.children.push(t);if(0===i.attempt){i.currentWidth+=l;i.height=Math.max(i.height,i.prevHeight+h)}else{i.currentWidth=l;i.prevHeight=i.height;i.height+=h;i.attempt=0}i.width=Math.max(i.width,i.currentWidth);break;case"rl-row":case"row":{i.children.push(t);i.width+=l;i.height=Math.max(i.height,h);const e=(0,n.measureToString)(i.height);for(const t of i.children)t.attributes.style.height=e;break}case"table":case"tb":i.width=Math.min(s.width,Math.max(i.width,l));i.height+=h;i.children.push(t)}};t.checkDimensions=function checkDimensions(e,t){if(null===e[r.$getTemplateRoot]()[r.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;const a=e[r.$getSubformParent](),n=a[r.$extra]&&a[r.$extra].attempt||0,[,i,s,o]=function getTransformedBBox(e){let t,a,r=""===e.w?NaN:e.w,n=""===e.h?NaN:e.h,[i,s]=[0,0];switch(e.anchorType||""){case"bottomCenter":[i,s]=[r/2,n];break;case"bottomLeft":[i,s]=[0,n];break;case"bottomRight":[i,s]=[r,n];break;case"middleCenter":[i,s]=[r/2,n/2];break;case"middleLeft":[i,s]=[0,n/2];break;case"middleRight":[i,s]=[r,n/2];break;case"topCenter":[i,s]=[r/2,0];break;case"topRight":[i,s]=[r,0]}switch(e.rotate||0){case 0:[t,a]=[-i,-s];break;case 90:[t,a]=[-s,i];[r,n]=[n,-r];break;case 180:[t,a]=[i,s];[r,n]=[-r,-n];break;case 270:[t,a]=[s,-i];[r,n]=[-n,r]}return[e.x+t+Math.min(0,r),e.y+a+Math.min(0,n),Math.abs(r),Math.abs(n)]}(e);switch(a.layout){case"lr-tb":case"rl-tb":return 0===n?e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure?""!==e.w?Math.round(s-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(o-t.height)>2)&&(""!==e.w?Math.round(s-t.width)<=2||0===a[r.$extra].numberInLine&&t.height>2:t.width>2):!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||!(""!==e.h&&Math.round(o-t.height)>2)&&((""===e.w||Math.round(s-t.width)<=2||!a[r.$isThereMoreWidth]())&&t.height>2);case"table":case"tb":return!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||(""===e.h||e[r.$isSplittable]()?(""===e.w||Math.round(s-t.width)<=2||!a[r.$isThereMoreWidth]())&&t.height>2:Math.round(o-t.height)<=2);case"position":if(e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure)return!0;if(""===e.h||Math.round(o+i-t.height)<=2)return!0;return o+i>e[r.$getTemplateRoot]()[r.$extra].currentContentArea.h;case"rl-row":case"row":return!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||(""===e.h||Math.round(o-t.height)<=2);default:return!0}};t.flushHTML=function flushHTML(e){if(!e[r.$extra])return null;const t={name:"div",attributes:e[r.$extra].attributes,children:e[r.$extra].children};if(e[r.$extra].failingNode){const a=e[r.$extra].failingNode[r.$flushHTML]();a&&(e.layout.endsWith("-tb")?t.children.push(createLine(e,[a])):t.children.push(a))}if(0===t.children.length)return null;return t};t.getAvailableSpace=function getAvailableSpace(e){const t=e[r.$extra].availableSpace,a=e.margin?e.margin.topInset+e.margin.bottomInset:0,n=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[r.$extra].attempt?{width:t.width-n-e[r.$extra].currentWidth,height:t.height-a-e[r.$extra].prevHeight}:{width:t.width-n,height:t.height-a-e[r.$extra].height};case"rl-row":case"row":return{width:e[r.$extra].columnWidths.slice(e[r.$extra].currentColumn).reduce(((e,t)=>e+t)),height:t.height-n};case"table":case"tb":return{width:t.width-n,height:t.height-a-e[r.$extra].height};default:return t}};var r=a(76),n=a(83);function createLine(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.computeBbox=function computeBbox(e,t,a){let n;if(""!==e.w&&""!==e.h)n=[e.x,e.y,e.w,e.h];else{if(!a)return null;let i=e.w;if(""===i){if(0===e.maxW){const t=e[r.$getSubformParent]();i="position"===t.layout&&""!==t.w?0:e.minW}else i=Math.min(e.maxW,a.width);t.attributes.style.width=measureToString(i)}let s=e.h;if(""===s){if(0===e.maxH){const t=e[r.$getSubformParent]();s="position"===t.layout&&""!==t.h?0:e.minH}else s=Math.min(e.maxH,a.height);t.attributes.style.height=measureToString(s)}n=[e.x,e.y,i,s]}return n};t.createWrapper=function createWrapper(e,t){const{attributes:a}=t,{style:n}=a,i={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};a.class.push("xfaWrapped");if(e.border){const{widths:a,insets:s}=e.border[r.$extra];let o,c,l=s[0],h=s[3];const u=s[0]+s[2],d=s[1]+s[3];switch(e.border.hand){case"even":l-=a[0]/2;h-=a[3]/2;o=`calc(100% + ${(a[1]+a[3])/2-d}px)`;c=`calc(100% + ${(a[0]+a[2])/2-u}px)`;break;case"left":l-=a[0];h-=a[3];o=`calc(100% + ${a[1]+a[3]-d}px)`;c=`calc(100% + ${a[0]+a[2]-u}px)`;break;case"right":o=d?`calc(100% - ${d}px)`:"100%";c=u?`calc(100% - ${u}px)`:"100%"}const f=["xfaBorder"];isPrintOnly(e.border)&&f.push("xfaPrintOnly");const g={name:"div",attributes:{class:f,style:{top:`${l}px`,left:`${h}px`,width:o,height:c}},children:[]};for(const e of["border","borderWidth","borderColor","borderRadius","borderStyle"])if(void 0!==n[e]){g.attributes.style[e]=n[e];delete n[e]}i.children.push(g,t)}else i.children.push(t);for(const e of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])if(void 0!==n[e]){i.attributes.style[e]=n[e];delete n[e]}"absolute"===n.position?i.attributes.style.position="absolute":i.attributes.style.position="relative";delete n.position;if(n.alignSelf){i.attributes.style.alignSelf=n.alignSelf;delete n.alignSelf}return i};t.fixDimensions=function fixDimensions(e){const t=e[r.$getSubformParent]();if(t.layout&&t.layout.includes("row")){const a=t[r.$extra],n=e.colSpan;let i;i=-1===n?a.columnWidths.slice(a.currentColumn).reduce(((e,t)=>e+t),0):a.columnWidths.slice(a.currentColumn,a.currentColumn+n).reduce(((e,t)=>e+t),0);isNaN(i)||(e.w=i)}t.layout&&"position"!==t.layout&&(e.x=e.y=0);"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce(((e,t)=>e+t),0))};t.fixTextIndent=function fixTextIndent(e){const t=(0,i.getMeasurement)(e.textIndent,"0px");if(t>=0)return;const a="padding"+("left"==("right"===e.textAlign?"right":"left")?"Left":"Right"),r=(0,i.getMeasurement)(e[a],"0px");e[a]=r-t+"px"};t.fixURL=function fixURL(e){const t=(0,n.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null};t.isPrintOnly=isPrintOnly;t.layoutClass=function layoutClass(e){switch(e.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}};t.layoutNode=function layoutNode(e,t){let a=null,n=null,i=!1;if((!e.w||!e.h)&&e.value){let s=0,o=0;if(e.margin){s=e.margin.leftInset+e.margin.rightInset;o=e.margin.topInset+e.margin.bottomInset}let c=null,l=null;if(e.para){l=Object.create(null);c=""===e.para.lineHeight?null:e.para.lineHeight;l.top=""===e.para.spaceAbove?0:e.para.spaceAbove;l.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow;l.left=""===e.para.marginLeft?0:e.para.marginLeft;l.right=""===e.para.marginRight?0:e.para.marginRight}let h=e.font;if(!h){const t=e[r.$getTemplateRoot]();let a=e[r.$getParent]();for(;a&&a!==t;){if(a.font){h=a.font;break}a=a[r.$getParent]()}}const u=(e.w||t.width)-s,d=e[r.$globalData].fontFinder;if(e.value.exData&&e.value.exData[r.$content]&&"text/html"===e.value.exData.contentType){const t=layoutText(e.value.exData[r.$content],h,l,c,d,u);n=t.width;a=t.height;i=t.isBroken}else{const t=e.value[r.$text]();if(t){const e=layoutText(t,h,l,c,d,u);n=e.width;a=e.height;i=e.isBroken}}null===n||e.w||(n+=s);null===a||e.h||(a+=o)}return{w:n,h:a,isBroken:i}};t.measureToString=measureToString;t.setAccess=function setAccess(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}};t.setFontFamily=function setFontFamily(e,t,a,r){if(!a){delete r.fontFamily;return}const n=(0,i.stripQuotes)(e.typeface);r.fontFamily=`"${n}"`;const o=a.find(n);if(o){const{fontFamily:a}=o.regular.cssFontInfo;a!==n&&(r.fontFamily=`"${a}"`);const i=getCurrentPara(t);if(i&&""!==i.lineHeight)return;if(r.lineHeight)return;const c=(0,s.selectFont)(e,o);c&&(r.lineHeight=Math.max(1.2,c.lineHeight))}};t.setMinMaxDimensions=function setMinMaxDimensions(e,t){if("position"===e[r.$getSubformParent]().layout){e.minW>0&&(t.minWidth=measureToString(e.minW));e.maxW>0&&(t.maxWidth=measureToString(e.maxW));e.minH>0&&(t.minHeight=measureToString(e.minH));e.maxH>0&&(t.maxHeight=measureToString(e.maxH))}};t.setPara=function setPara(e,t,a){if(a.attributes.class&&a.attributes.class.includes("xfaRich")){if(t){""===e.h&&(t.height="auto");""===e.w&&(t.width="auto")}const n=getCurrentPara(e);if(n){const e=a.attributes.style;e.display="flex";e.flexDirection="column";switch(n.vAlign){case"top":e.justifyContent="start";break;case"bottom":e.justifyContent="end";break;case"middle":e.justifyContent="center"}const t=n[r.$toStyle]();for(const[a,r]of Object.entries(t))a in e||(e[a]=r)}}};t.toStyle=function toStyle(e,...t){const a=Object.create(null);for(const i of t){const t=e[i];if(null!==t)if(c.hasOwnProperty(i))c[i](e,a);else if(t instanceof r.XFAObject){const e=t[r.$toStyle]();e?Object.assign(a,e):(0,n.warn)(`(DEBUG) - XFA - style for ${i} not implemented yet`)}}return a};var r=a(76),n=a(2),i=a(77),s=a(84),o=a(85);function measureToString(e){return"string"==typeof e?"0px":Number.isInteger(e)?`${e}px`:`${e.toFixed(2)}px`}const c={anchorType(e,t){const a=e[r.$getSubformParent]();if(a&&(!a.layout||"position"===a.layout)){"transform"in t||(t.transform="");switch(e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)"}}},dimensions(e,t){const a=e[r.$getSubformParent]();let n=e.w;const i=e.h;if(a.layout&&a.layout.includes("row")){const t=a[r.$extra],i=e.colSpan;let s;if(-1===i){s=t.columnWidths.slice(t.currentColumn).reduce(((e,t)=>e+t),0);t.currentColumn=0}else{s=t.columnWidths.slice(t.currentColumn,t.currentColumn+i).reduce(((e,t)=>e+t),0);t.currentColumn=(t.currentColumn+e.colSpan)%t.columnWidths.length}isNaN(s)||(n=e.w=s)}t.width=""!==n?measureToString(n):"auto";t.height=""!==i?measureToString(i):"auto"},position(e,t){const a=e[r.$getSubformParent]();if(!a||!a.layout||"position"===a.layout){t.position="absolute";t.left=measureToString(e.x);t.top=measureToString(e.y)}},rotate(e,t){if(e.rotate){"transform"in t||(t.transform="");t.transform+=`rotate(-${e.rotate}deg)`;t.transformOrigin="top left"}},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if("para"===e[r.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[r.$toStyle]().margin)}};function layoutText(e,t,a,n,i,s){const c=new o.TextMeasure(t,a,n,i);"string"==typeof e?c.addString(e):e[r.$pushGlyphs](c);return c.compute(s)}function isPrintOnly(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function getCurrentPara(e){const t=e[r.$getTemplateRoot]()[r.$extra].paraStack;return t.length?t.at(-1):null}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.FontFinder=void 0;t.getMetrics=function getMetrics(e,t=!1){let a=null;if(e){const t=(0,n.stripQuotes)(e.typeface),i=e[r.$globalData].fontFinder.find(t);a=selectFont(e,i)}if(!a)return{lineHeight:12,lineGap:2,lineNoGap:10};const i=e.size||10,s=a.lineHeight?Math.max(t?0:1.2,a.lineHeight):1.2,o=void 0===a.lineGap?.2:a.lineGap;return{lineHeight:s*i,lineGap:o*i,lineNoGap:Math.max(1,s-o)*i}};t.selectFont=selectFont;var r=a(76),n=a(77),i=a(2);t.FontFinder=class FontFinder{constructor(e){this.fonts=new Map;this.cache=new Map;this.warned=new Set;this.defaultFont=null;this.add(e)}add(e,t=null){for(const t of e)this.addPdfFont(t);for(const e of this.fonts.values())e.regular||(e.regular=e.italic||e.bold||e.bolditalic);if(!t||0===t.size)return;const a=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const e of t)this.fonts.set(e,a)}addPdfFont(e){const t=e.cssFontInfo,a=t.fontFamily;let r=this.fonts.get(a);if(!r){r=Object.create(null);this.fonts.set(a,r);this.defaultFont||(this.defaultFont=r)}let n="";const i=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?n=i>=700?"bolditalic":"italic":i>=700&&(n="bold");if(!n){(e.name.includes("Bold")||e.psName&&e.psName.includes("Bold"))&&(n="bold");(e.name.includes("Italic")||e.name.endsWith("It")||e.psName&&(e.psName.includes("Italic")||e.psName.endsWith("It")))&&(n+="italic")}n||(n="regular");r[n]=e}getDefault(){return this.defaultFont}find(e,t=!0){let a=this.fonts.get(e)||this.cache.get(e);if(a)return a;const r=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let n=e.replaceAll(r,"");a=this.fonts.get(n);if(a){this.cache.set(e,a);return a}n=n.toLowerCase();const s=[];for(const[e,t]of this.fonts.entries())e.replaceAll(r,"").toLowerCase().startsWith(n)&&s.push(t);if(0===s.length)for(const[,e]of this.fonts.entries())e.regular.name&&e.regular.name.replaceAll(r,"").toLowerCase().startsWith(n)&&s.push(e);if(0===s.length){n=n.replaceAll(/psmt|mt/gi,"");for(const[e,t]of this.fonts.entries())e.replaceAll(r,"").toLowerCase().startsWith(n)&&s.push(t)}if(0===s.length)for(const e of this.fonts.values())e.regular.name&&e.regular.name.replaceAll(r,"").toLowerCase().startsWith(n)&&s.push(e);if(s.length>=1){1!==s.length&&t&&(0,i.warn)(`XFA - Too many choices to guess the correct font: ${e}`);this.cache.set(e,s[0]);return s[0]}if(t&&!this.warned.has(e)){this.warned.add(e);(0,i.warn)(`XFA - Cannot find the font: ${e}`)}return null}};function selectFont(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.TextMeasure=void 0;var r=a(84);class FontInfo{constructor(e,t,a,n){this.lineHeight=a;this.paraMargin=t||{top:0,bottom:0,left:0,right:0};if(!e){[this.pdfFont,this.xfaFont]=this.defaultFont(n);return}this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};const i=n.find(e.typeface);if(i){this.pdfFont=(0,r.selectFont)(e,i);this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(n))}else[this.pdfFont,this.xfaFont]=this.defaultFont(n)}defaultFont(e){const t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(t&&t.regular){const e=t.regular;return[e,{typeface:e.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class FontSelector{constructor(e,t,a,r){this.fontFinder=r;this.stack=[new FontInfo(e,t,a,r)]}pushData(e,t,a){const r=this.stack.at(-1);for(const t of["typeface","posture","weight","size","letterSpacing"])e[t]||(e[t]=r.xfaFont[t]);for(const e of["top","bottom","left","right"])isNaN(t[e])&&(t[e]=r.paraMargin[e]);const n=new FontInfo(e,t,a||r.lineHeight,this.fontFinder);n.pdfFont||(n.pdfFont=r.pdfFont);this.stack.push(n)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}t.TextMeasure=class TextMeasure{constructor(e,t,a,r){this.glyphs=[];this.fontSelector=new FontSelector(e,t,a,r);this.extraHeight=0}pushData(e,t,a){this.fontSelector.pushData(e,t,a)}popFont(e){return this.fontSelector.popFont()}addPara(){const e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;const t=this.fontSelector.topFont(),a=t.xfaFont.size;if(t.pdfFont){const r=t.xfaFont.letterSpacing,n=t.pdfFont,i=n.lineHeight||1.2,s=t.lineHeight||Math.max(1.2,i)*a,o=i-(void 0===n.lineGap?.2:n.lineGap),c=Math.max(1,o)*a,l=a/1e3,h=n.defaultWidth||n.charsToGlyphs(" ")[0].width;for(const t of e.split(/[\u2029\n]/)){const e=n.encodeString(t).join(""),a=n.charsToGlyphs(e);for(const e of a){const t=e.width||h;this.glyphs.push([t*l+r,s,c,e.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}else{for(const t of e.split(/[\u2029\n]/)){for(const e of t.split(""))this.glyphs.push([a,1.2*a,a,e,!1]);this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}}compute(e){let t=-1,a=0,r=0,n=0,i=0,s=0,o=!1,c=!0;for(let l=0,h=this.glyphs.length;le){r=Math.max(r,i);i=0;n+=s;s=m;t=-1;a=0;o=!0;c=!1}else{s=Math.max(m,s);a=i;i+=h;t=l}else if(i+h>e){n+=s;s=m;if(-1!==t){l=t;r=Math.max(r,a);i=0;t=-1;a=0}else{r=Math.max(r,i);i=h}o=!0;c=!1}else{i+=h;s=Math.max(m,s)}}r=Math.max(r,i);n+=s+this.extraHeight;return{width:1.02*r,height:n,isBroken:o}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.DataHandler=void 0;var r=a(76);t.DataHandler=class DataHandler{constructor(e,t){this.data=t;this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[r.$getChildren]()]];for(;t.length>0;){const a=t.at(-1),[n,i]=a;if(n+1===i.length){t.pop();continue}const s=i[++a[0]],o=e.get(s[r.$uid]);if(o)s[r.$setValue](o);else{const t=s[r.$getAttributes]();for(const a of t.values()){const t=e.get(a[r.$uid]);if(t){a[r.$setValue](t);break}}}const c=s[r.$getChildren]();c.length>0&&t.push([-1,c])}const a=[''];if(this.dataset)for(const e of this.dataset[r.$getChildren]())"data"!==e[r.$nodeName]&&e[r.$toString](a);this.data[r.$toString](a);a.push("");return a.join("")}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.XFAParser=void 0;var r=a(76),n=a(65),i=a(88),s=a(2);class XFAParser extends n.XMLParserBase{constructor(e=null,t=!1){super();this._builder=new i.Builder(e);this._stack=[];this._globalData={usedTypefaces:new Set};this._ids=new Map;this._current=this._builder.buildRoot(this._ids);this._errorCode=n.XMLParserErrorCode.NoError;this._whiteRegex=/^\s+$/;this._nbsps=/\xa0+/g;this._richText=t}parse(e){this.parseXml(e);if(this._errorCode===n.XMLParserErrorCode.NoError){this._current[r.$finalize]();return this._current.element}}onText(e){e=e.replace(this._nbsps,(e=>e.slice(1)+" "));this._richText||this._current[r.$acceptWhitespace]()?this._current[r.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[r.$onText](e.trim())}onCdata(e){this._current[r.$onText](e)}_mkAttributes(e,t){let a=null,n=null;const i=Object.create({});for(const{name:o,value:c}of e)if("xmlns"===o)a?(0,s.warn)(`XFA - multiple namespace definition in <${t}>`):a=c;else if(o.startsWith("xmlns:")){const e=o.substring("xmlns:".length);n||(n=[]);n.push({prefix:e,value:c})}else{const e=o.indexOf(":");if(-1===e)i[o]=c;else{let t=i[r.$nsAttributes];t||(t=i[r.$nsAttributes]=Object.create(null));const[a,n]=[o.slice(0,e),o.slice(e+1)];let s=t[a];s||(s=t[a]=Object.create(null));s[n]=c}}return[a,n,i]}_getNameAndPrefix(e,t){const a=e.indexOf(":");return-1===a?[e,null]:[e.substring(a+1),t?"":e.substring(0,a)]}onBeginElement(e,t,a){const[n,i,s]=this._mkAttributes(t,e),[o,c]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),l=this._builder.build({nsPrefix:c,name:o,attributes:s,namespace:n,prefixes:i});l[r.$globalData]=this._globalData;if(a){l[r.$finalize]();this._current[r.$onChild](l)&&l[r.$setId](this._ids);l[r.$clean](this._builder)}else{this._stack.push(this._current);this._current=l}}onEndElement(e){const t=this._current;if(t[r.$isCDATAXml]()&&"string"==typeof t[r.$content]){const e=new XFAParser;e._globalData=this._globalData;const a=e.parse(t[r.$content]);t[r.$content]=null;t[r.$onChild](a)}t[r.$finalize]();this._current=this._stack.pop();this._current[r.$onChild](t)&&t[r.$setId](this._ids);t[r.$clean](this._builder)}onError(e){this._errorCode=e}}t.XFAParser=XFAParser},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.Builder=void 0;var r=a(78),n=a(76),i=a(89),s=a(81),o=a(98),c=a(2);class Root extends n.XFAObject{constructor(e){super(-1,"root",Object.create(null));this.element=null;this[n.$ids]=e}[n.$onChild](e){this.element=e;return!0}[n.$finalize](){super[n.$finalize]();if(this.element.template instanceof s.Template){this[n.$ids].set(n.$root,this.element);this.element.template[n.$resolvePrototypes](this[n.$ids]);this.element.template[n.$ids]=this[n.$ids]}}}class Empty extends n.XFAObject{constructor(){super(-1,"",Object.create(null))}[n.$onChild](e){return!1}}t.Builder=class Builder{constructor(e=null){this._namespaceStack=[];this._nsAgnosticLevel=0;this._namespacePrefixes=new Map;this._namespaces=new Map;this._nextNsId=Math.max(...Object.values(r.NamespaceIds).map((({id:e})=>e)));this._currentNamespace=e||new o.UnknownNamespace(++this._nextNsId)}buildRoot(e){return new Root(e)}build({nsPrefix:e,name:t,attributes:a,namespace:s,prefixes:o}){const c=null!==s;if(c){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(s)}o&&this._addNamespacePrefix(o);if(a.hasOwnProperty(n.$nsAttributes)){const e=i.NamespaceSetUp.datasets,t=a[n.$nsAttributes];let r=null;for(const[a,n]of Object.entries(t)){if(this._getNamespaceToUse(a)===e){r={xfa:n};break}}r?a[n.$nsAttributes]=r:delete a[n.$nsAttributes]}const l=this._getNamespaceToUse(e),h=l&&l[r.$buildXFAObject](t,a)||new Empty;h[n.$isNsAgnostic]()&&this._nsAgnosticLevel++;(c||o||h[n.$isNsAgnostic]())&&(h[n.$cleanup]={hasNamespace:c,prefixes:o,nsAgnostic:h[n.$isNsAgnostic]()});return h}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(e){let t=this._namespaces.get(e);if(t)return t;for(const[a,{check:n}]of Object.entries(r.NamespaceIds))if(n(e)){t=i.NamespaceSetUp[a];if(t){this._namespaces.set(e,t);return t}break}t=new o.UnknownNamespace(++this._nextNsId);this._namespaces.set(e,t);return t}_addNamespacePrefix(e){for(const{prefix:t,value:a}of e){const e=this._searchNamespace(a);let r=this._namespacePrefixes.get(t);if(!r){r=[];this._namespacePrefixes.set(t,r)}r.push(e)}}_getNamespaceToUse(e){if(!e)return this._currentNamespace;const t=this._namespacePrefixes.get(e);if(t&&t.length>0)return t.at(-1);(0,c.warn)(`Unknown namespace prefix: ${e}.`);return null}clean(e){const{hasNamespace:t,prefixes:a,nsAgnostic:r}=e;t&&(this._currentNamespace=this._namespaceStack.pop());a&&a.forEach((({prefix:e})=>{this._namespacePrefixes.get(e).pop()}));r&&this._nsAgnosticLevel--}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.NamespaceSetUp=void 0;var r=a(90),n=a(91),i=a(92),s=a(93),o=a(94),c=a(95),l=a(81),h=a(96),u=a(97);const d={config:r.ConfigNamespace,connection:n.ConnectionSetNamespace,datasets:i.DatasetsNamespace,localeSet:s.LocaleSetNamespace,signature:o.SignatureNamespace,stylesheet:c.StylesheetNamespace,template:l.TemplateNamespace,xdp:h.XdpNamespace,xhtml:u.XhtmlNamespace};t.NamespaceSetUp=d},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.ConfigNamespace=void 0;var r=a(78),n=a(76),i=a(77),s=a(2);const o=r.NamespaceIds.config.id;class Acrobat extends n.XFAObject{constructor(e){super(o,"acrobat",!0);this.acrobat7=null;this.autoSave=null;this.common=null;this.validate=null;this.validateApprovalSignatures=null;this.submitUrl=new n.XFAObjectArray}}class Acrobat7 extends n.XFAObject{constructor(e){super(o,"acrobat7",!0);this.dynamicRender=null}}class ADBE_JSConsole extends n.OptionObject{constructor(e){super(o,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class ADBE_JSDebugger extends n.OptionObject{constructor(e){super(o,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class AddSilentPrint extends n.Option01{constructor(e){super(o,"addSilentPrint")}}class AddViewerPreferences extends n.Option01{constructor(e){super(o,"addViewerPreferences")}}class AdjustData extends n.Option10{constructor(e){super(o,"adjustData")}}class AdobeExtensionLevel extends n.IntegerObject{constructor(e){super(o,"adobeExtensionLevel",0,(e=>e>=1&&e<=8))}}class Agent extends n.XFAObject{constructor(e){super(o,"agent",!0);this.name=e.name?e.name.trim():"";this.common=new n.XFAObjectArray}}class AlwaysEmbed extends n.ContentObject{constructor(e){super(o,"alwaysEmbed")}}class Amd extends n.StringObject{constructor(e){super(o,"amd")}}class Area extends n.XFAObject{constructor(e){super(o,"area");this.level=(0,i.getInteger)({data:e.level,defaultValue:0,validate:e=>e>=1&&e<=3});this.name=(0,i.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class Attributes extends n.OptionObject{constructor(e){super(o,"attributes",["preserve","delegate","ignore"])}}class AutoSave extends n.OptionObject{constructor(e){super(o,"autoSave",["disabled","enabled"])}}class Base extends n.StringObject{constructor(e){super(o,"base")}}class BatchOutput extends n.XFAObject{constructor(e){super(o,"batchOutput");this.format=(0,i.getStringOption)(e.format,["none","concat","zip","zipCompress"])}}class BehaviorOverride extends n.ContentObject{constructor(e){super(o,"behaviorOverride")}[n.$finalize](){this[n.$content]=new Map(this[n.$content].trim().split(/\s+/).filter((e=>e.includes(":"))).map((e=>e.split(":",2))))}}class Cache extends n.XFAObject{constructor(e){super(o,"cache",!0);this.templateCache=null}}class Change extends n.Option01{constructor(e){super(o,"change")}}class Common extends n.XFAObject{constructor(e){super(o,"common",!0);this.data=null;this.locale=null;this.localeSet=null;this.messaging=null;this.suppressBanner=null;this.template=null;this.validationMessaging=null;this.versionControl=null;this.log=new n.XFAObjectArray}}class Compress extends n.XFAObject{constructor(e){super(o,"compress");this.scope=(0,i.getStringOption)(e.scope,["imageOnly","document"])}}class CompressLogicalStructure extends n.Option01{constructor(e){super(o,"compressLogicalStructure")}}class CompressObjectStream extends n.Option10{constructor(e){super(o,"compressObjectStream")}}class Compression extends n.XFAObject{constructor(e){super(o,"compression",!0);this.compressLogicalStructure=null;this.compressObjectStream=null;this.level=null;this.type=null}}class Config extends n.XFAObject{constructor(e){super(o,"config",!0);this.acrobat=null;this.present=null;this.trace=null;this.agent=new n.XFAObjectArray}}class Conformance extends n.OptionObject{constructor(e){super(o,"conformance",["A","B"])}}class ContentCopy extends n.Option01{constructor(e){super(o,"contentCopy")}}class Copies extends n.IntegerObject{constructor(e){super(o,"copies",1,(e=>e>=1))}}class Creator extends n.StringObject{constructor(e){super(o,"creator")}}class CurrentPage extends n.IntegerObject{constructor(e){super(o,"currentPage",0,(e=>e>=0))}}class Data extends n.XFAObject{constructor(e){super(o,"data",!0);this.adjustData=null;this.attributes=null;this.incrementalLoad=null;this.outputXSL=null;this.range=null;this.record=null;this.startNode=null;this.uri=null;this.window=null;this.xsl=null;this.excludeNS=new n.XFAObjectArray;this.transform=new n.XFAObjectArray}}class Debug extends n.XFAObject{constructor(e){super(o,"debug",!0);this.uri=null}}class DefaultTypeface extends n.ContentObject{constructor(e){super(o,"defaultTypeface");this.writingScript=(0,i.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class Destination extends n.OptionObject{constructor(e){super(o,"destination",["pdf","pcl","ps","webClient","zpl"])}}class DocumentAssembly extends n.Option01{constructor(e){super(o,"documentAssembly")}}class Driver extends n.XFAObject{constructor(e){super(o,"driver",!0);this.name=e.name?e.name.trim():"";this.fontInfo=null;this.xdc=null}}class DuplexOption extends n.OptionObject{constructor(e){super(o,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class DynamicRender extends n.OptionObject{constructor(e){super(o,"dynamicRender",["forbidden","required"])}}class Embed extends n.Option01{constructor(e){super(o,"embed")}}class Encrypt extends n.Option01{constructor(e){super(o,"encrypt")}}class Encryption extends n.XFAObject{constructor(e){super(o,"encryption",!0);this.encrypt=null;this.encryptionLevel=null;this.permissions=null}}class EncryptionLevel extends n.OptionObject{constructor(e){super(o,"encryptionLevel",["40bit","128bit"])}}class Enforce extends n.StringObject{constructor(e){super(o,"enforce")}}class Equate extends n.XFAObject{constructor(e){super(o,"equate");this.force=(0,i.getInteger)({data:e.force,defaultValue:1,validate:e=>0===e});this.from=e.from||"";this.to=e.to||""}}class EquateRange extends n.XFAObject{constructor(e){super(o,"equateRange");this.from=e.from||"";this.to=e.to||"";this._unicodeRange=e.unicodeRange||""}get unicodeRange(){const e=[],t=/U\+([0-9a-fA-F]+)/,a=this._unicodeRange;for(let r of a.split(",").map((e=>e.trim())).filter((e=>!!e))){r=r.split("-",2).map((e=>{const a=e.match(t);return a?parseInt(a[1],16):0}));1===r.length&&r.push(r[0]);e.push(r)}return(0,s.shadow)(this,"unicodeRange",e)}}class Exclude extends n.ContentObject{constructor(e){super(o,"exclude")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/).filter((e=>e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)))}}class ExcludeNS extends n.StringObject{constructor(e){super(o,"excludeNS")}}class FlipLabel extends n.OptionObject{constructor(e){super(o,"flipLabel",["usePrinterSetting","on","off"])}}class FontInfo extends n.XFAObject{constructor(e){super(o,"fontInfo",!0);this.embed=null;this.map=null;this.subsetBelow=null;this.alwaysEmbed=new n.XFAObjectArray;this.defaultTypeface=new n.XFAObjectArray;this.neverEmbed=new n.XFAObjectArray}}class FormFieldFilling extends n.Option01{constructor(e){super(o,"formFieldFilling")}}class GroupParent extends n.StringObject{constructor(e){super(o,"groupParent")}}class IfEmpty extends n.OptionObject{constructor(e){super(o,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class IncludeXDPContent extends n.StringObject{constructor(e){super(o,"includeXDPContent")}}class IncrementalLoad extends n.OptionObject{constructor(e){super(o,"incrementalLoad",["none","forwardOnly"])}}class IncrementalMerge extends n.Option01{constructor(e){super(o,"incrementalMerge")}}class Interactive extends n.Option01{constructor(e){super(o,"interactive")}}class Jog extends n.OptionObject{constructor(e){super(o,"jog",["usePrinterSetting","none","pageSet"])}}class LabelPrinter extends n.XFAObject{constructor(e){super(o,"labelPrinter",!0);this.name=(0,i.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]);this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class Layout extends n.OptionObject{constructor(e){super(o,"layout",["paginate","panel"])}}class Level extends n.IntegerObject{constructor(e){super(o,"level",0,(e=>e>0))}}class Linearized extends n.Option01{constructor(e){super(o,"linearized")}}class Locale extends n.StringObject{constructor(e){super(o,"locale")}}class LocaleSet extends n.StringObject{constructor(e){super(o,"localeSet")}}class Log extends n.XFAObject{constructor(e){super(o,"log",!0);this.mode=null;this.threshold=null;this.to=null;this.uri=null}}class MapElement extends n.XFAObject{constructor(e){super(o,"map",!0);this.equate=new n.XFAObjectArray;this.equateRange=new n.XFAObjectArray}}class MediumInfo extends n.XFAObject{constructor(e){super(o,"mediumInfo",!0);this.map=null}}class Message extends n.XFAObject{constructor(e){super(o,"message",!0);this.msgId=null;this.severity=null}}class Messaging extends n.XFAObject{constructor(e){super(o,"messaging",!0);this.message=new n.XFAObjectArray}}class Mode extends n.OptionObject{constructor(e){super(o,"mode",["append","overwrite"])}}class ModifyAnnots extends n.Option01{constructor(e){super(o,"modifyAnnots")}}class MsgId extends n.IntegerObject{constructor(e){super(o,"msgId",1,(e=>e>=1))}}class NameAttr extends n.StringObject{constructor(e){super(o,"nameAttr")}}class NeverEmbed extends n.ContentObject{constructor(e){super(o,"neverEmbed")}}class NumberOfCopies extends n.IntegerObject{constructor(e){super(o,"numberOfCopies",null,(e=>e>=2&&e<=5))}}class OpenAction extends n.XFAObject{constructor(e){super(o,"openAction",!0);this.destination=null}}class Output extends n.XFAObject{constructor(e){super(o,"output",!0);this.to=null;this.type=null;this.uri=null}}class OutputBin extends n.StringObject{constructor(e){super(o,"outputBin")}}class OutputXSL extends n.XFAObject{constructor(e){super(o,"outputXSL",!0);this.uri=null}}class Overprint extends n.OptionObject{constructor(e){super(o,"overprint",["none","both","draw","field"])}}class Packets extends n.StringObject{constructor(e){super(o,"packets")}[n.$finalize](){"*"!==this[n.$content]&&(this[n.$content]=this[n.$content].trim().split(/\s+/).filter((e=>["config","datasets","template","xfdf","xslt"].includes(e))))}}class PageOffset extends n.XFAObject{constructor(e){super(o,"pageOffset");this.x=(0,i.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:e=>!0});this.y=(0,i.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:e=>!0})}}class PageRange extends n.StringObject{constructor(e){super(o,"pageRange")}[n.$finalize](){const e=this[n.$content].trim().split(/\s+/).map((e=>parseInt(e,10))),t=[];for(let a=0,r=e.length;a!1))}}class Pcl extends n.XFAObject{constructor(e){super(o,"pcl",!0);this.name=e.name||"";this.batchOutput=null;this.fontInfo=null;this.jog=null;this.mediumInfo=null;this.outputBin=null;this.pageOffset=null;this.staple=null;this.xdc=null}}class Pdf extends n.XFAObject{constructor(e){super(o,"pdf",!0);this.name=e.name||"";this.adobeExtensionLevel=null;this.batchOutput=null;this.compression=null;this.creator=null;this.encryption=null;this.fontInfo=null;this.interactive=null;this.linearized=null;this.openAction=null;this.pdfa=null;this.producer=null;this.renderPolicy=null;this.scriptModel=null;this.silentPrint=null;this.submitFormat=null;this.tagged=null;this.version=null;this.viewerPreferences=null;this.xdc=null}}class Pdfa extends n.XFAObject{constructor(e){super(o,"pdfa",!0);this.amd=null;this.conformance=null;this.includeXDPContent=null;this.part=null}}class Permissions extends n.XFAObject{constructor(e){super(o,"permissions",!0);this.accessibleContent=null;this.change=null;this.contentCopy=null;this.documentAssembly=null;this.formFieldFilling=null;this.modifyAnnots=null;this.plaintextMetadata=null;this.print=null;this.printHighQuality=null}}class PickTrayByPDFSize extends n.Option01{constructor(e){super(o,"pickTrayByPDFSize")}}class Picture extends n.StringObject{constructor(e){super(o,"picture")}}class PlaintextMetadata extends n.Option01{constructor(e){super(o,"plaintextMetadata")}}class Presence extends n.OptionObject{constructor(e){super(o,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Present extends n.XFAObject{constructor(e){super(o,"present",!0);this.behaviorOverride=null;this.cache=null;this.common=null;this.copies=null;this.destination=null;this.incrementalMerge=null;this.layout=null;this.output=null;this.overprint=null;this.pagination=null;this.paginationOverride=null;this.script=null;this.validate=null;this.xdp=null;this.driver=new n.XFAObjectArray;this.labelPrinter=new n.XFAObjectArray;this.pcl=new n.XFAObjectArray;this.pdf=new n.XFAObjectArray;this.ps=new n.XFAObjectArray;this.submitUrl=new n.XFAObjectArray;this.webClient=new n.XFAObjectArray;this.zpl=new n.XFAObjectArray}}class Print extends n.Option01{constructor(e){super(o,"print")}}class PrintHighQuality extends n.Option01{constructor(e){super(o,"printHighQuality")}}class PrintScaling extends n.OptionObject{constructor(e){super(o,"printScaling",["appdefault","noScaling"])}}class PrinterName extends n.StringObject{constructor(e){super(o,"printerName")}}class Producer extends n.StringObject{constructor(e){super(o,"producer")}}class Ps extends n.XFAObject{constructor(e){super(o,"ps",!0);this.name=e.name||"";this.batchOutput=null;this.fontInfo=null;this.jog=null;this.mediumInfo=null;this.outputBin=null;this.staple=null;this.xdc=null}}class Range extends n.ContentObject{constructor(e){super(o,"range")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s*,\s*/,2).map((e=>e.split("-").map((e=>parseInt(e.trim(),10))))).filter((e=>e.every((e=>!isNaN(e))))).map((e=>{1===e.length&&e.push(e[0]);return e}))}}class Record extends n.ContentObject{constructor(e){super(o,"record")}[n.$finalize](){this[n.$content]=this[n.$content].trim();const e=parseInt(this[n.$content],10);!isNaN(e)&&e>=0&&(this[n.$content]=e)}}class Relevant extends n.ContentObject{constructor(e){super(o,"relevant")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/)}}class Rename extends n.ContentObject{constructor(e){super(o,"rename")}[n.$finalize](){this[n.$content]=this[n.$content].trim();(this[n.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[n.$content]))&&(0,s.warn)("XFA - Rename: invalid XFA name")}}class RenderPolicy extends n.OptionObject{constructor(e){super(o,"renderPolicy",["server","client"])}}class RunScripts extends n.OptionObject{constructor(e){super(o,"runScripts",["both","client","none","server"])}}class Script extends n.XFAObject{constructor(e){super(o,"script",!0);this.currentPage=null;this.exclude=null;this.runScripts=null}}class ScriptModel extends n.OptionObject{constructor(e){super(o,"scriptModel",["XFA","none"])}}class Severity extends n.OptionObject{constructor(e){super(o,"severity",["ignore","error","information","trace","warning"])}}class SilentPrint extends n.XFAObject{constructor(e){super(o,"silentPrint",!0);this.addSilentPrint=null;this.printerName=null}}class Staple extends n.XFAObject{constructor(e){super(o,"staple");this.mode=(0,i.getStringOption)(e.mode,["usePrinterSetting","on","off"])}}class StartNode extends n.StringObject{constructor(e){super(o,"startNode")}}class StartPage extends n.IntegerObject{constructor(e){super(o,"startPage",0,(e=>!0))}}class SubmitFormat extends n.OptionObject{constructor(e){super(o,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class SubmitUrl extends n.StringObject{constructor(e){super(o,"submitUrl")}}class SubsetBelow extends n.IntegerObject{constructor(e){super(o,"subsetBelow",100,(e=>e>=0&&e<=100))}}class SuppressBanner extends n.Option01{constructor(e){super(o,"suppressBanner")}}class Tagged extends n.Option01{constructor(e){super(o,"tagged")}}class Template extends n.XFAObject{constructor(e){super(o,"template",!0);this.base=null;this.relevant=null;this.startPage=null;this.uri=null;this.xsl=null}}class Threshold extends n.OptionObject{constructor(e){super(o,"threshold",["trace","error","information","warning"])}}class To extends n.OptionObject{constructor(e){super(o,"to",["null","memory","stderr","stdout","system","uri"])}}class TemplateCache extends n.XFAObject{constructor(e){super(o,"templateCache");this.maxEntries=(0,i.getInteger)({data:e.maxEntries,defaultValue:5,validate:e=>e>=0})}}class Trace extends n.XFAObject{constructor(e){super(o,"trace",!0);this.area=new n.XFAObjectArray}}class Transform extends n.XFAObject{constructor(e){super(o,"transform",!0);this.groupParent=null;this.ifEmpty=null;this.nameAttr=null;this.picture=null;this.presence=null;this.rename=null;this.whitespace=null}}class Type extends n.OptionObject{constructor(e){super(o,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Uri extends n.StringObject{constructor(e){super(o,"uri")}}class Validate extends n.OptionObject{constructor(e){super(o,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class ValidateApprovalSignatures extends n.ContentObject{constructor(e){super(o,"validateApprovalSignatures")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/).filter((e=>["docReady","postSign"].includes(e)))}}class ValidationMessaging extends n.OptionObject{constructor(e){super(o,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Version extends n.OptionObject{constructor(e){super(o,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class VersionControl extends n.XFAObject{constructor(e){super(o,"VersionControl");this.outputBelow=(0,i.getStringOption)(e.outputBelow,["warn","error","update"]);this.sourceAbove=(0,i.getStringOption)(e.sourceAbove,["warn","error"]);this.sourceBelow=(0,i.getStringOption)(e.sourceBelow,["update","maintain"])}}class ViewerPreferences extends n.XFAObject{constructor(e){super(o,"viewerPreferences",!0);this.ADBE_JSConsole=null;this.ADBE_JSDebugger=null;this.addViewerPreferences=null;this.duplexOption=null;this.enforce=null;this.numberOfCopies=null;this.pageRange=null;this.pickTrayByPDFSize=null;this.printScaling=null}}class WebClient extends n.XFAObject{constructor(e){super(o,"webClient",!0);this.name=e.name?e.name.trim():"";this.fontInfo=null;this.xdc=null}}class Whitespace extends n.OptionObject{constructor(e){super(o,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Window extends n.ContentObject{constructor(e){super(o,"window")}[n.$finalize](){const e=this[n.$content].trim().split(/\s*,\s*/,2).map((e=>parseInt(e,10)));if(e.some((e=>isNaN(e))))this[n.$content]=[0,0];else{1===e.length&&e.push(e[0]);this[n.$content]=e}}}class Xdc extends n.XFAObject{constructor(e){super(o,"xdc",!0);this.uri=new n.XFAObjectArray;this.xsl=new n.XFAObjectArray}}class Xdp extends n.XFAObject{constructor(e){super(o,"xdp",!0);this.packets=null}}class Xsl extends n.XFAObject{constructor(e){super(o,"xsl",!0);this.debug=null;this.uri=null}}class Zpl extends n.XFAObject{constructor(e){super(o,"zpl",!0);this.name=e.name?e.name.trim():"";this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class ConfigNamespace{static[r.$buildXFAObject](e,t){if(ConfigNamespace.hasOwnProperty(e))return ConfigNamespace[e](t)}static acrobat(e){return new Acrobat(e)}static acrobat7(e){return new Acrobat7(e)}static ADBE_JSConsole(e){return new ADBE_JSConsole(e)}static ADBE_JSDebugger(e){return new ADBE_JSDebugger(e)}static addSilentPrint(e){return new AddSilentPrint(e)}static addViewerPreferences(e){return new AddViewerPreferences(e)}static adjustData(e){return new AdjustData(e)}static adobeExtensionLevel(e){return new AdobeExtensionLevel(e)}static agent(e){return new Agent(e)}static alwaysEmbed(e){return new AlwaysEmbed(e)}static amd(e){return new Amd(e)}static area(e){return new Area(e)}static attributes(e){return new Attributes(e)}static autoSave(e){return new AutoSave(e)}static base(e){return new Base(e)}static batchOutput(e){return new BatchOutput(e)}static behaviorOverride(e){return new BehaviorOverride(e)}static cache(e){return new Cache(e)}static change(e){return new Change(e)}static common(e){return new Common(e)}static compress(e){return new Compress(e)}static compressLogicalStructure(e){return new CompressLogicalStructure(e)}static compressObjectStream(e){return new CompressObjectStream(e)}static compression(e){return new Compression(e)}static config(e){return new Config(e)}static conformance(e){return new Conformance(e)}static contentCopy(e){return new ContentCopy(e)}static copies(e){return new Copies(e)}static creator(e){return new Creator(e)}static currentPage(e){return new CurrentPage(e)}static data(e){return new Data(e)}static debug(e){return new Debug(e)}static defaultTypeface(e){return new DefaultTypeface(e)}static destination(e){return new Destination(e)}static documentAssembly(e){return new DocumentAssembly(e)}static driver(e){return new Driver(e)}static duplexOption(e){return new DuplexOption(e)}static dynamicRender(e){return new DynamicRender(e)}static embed(e){return new Embed(e)}static encrypt(e){return new Encrypt(e)}static encryption(e){return new Encryption(e)}static encryptionLevel(e){return new EncryptionLevel(e)}static enforce(e){return new Enforce(e)}static equate(e){return new Equate(e)}static equateRange(e){return new EquateRange(e)}static exclude(e){return new Exclude(e)}static excludeNS(e){return new ExcludeNS(e)}static flipLabel(e){return new FlipLabel(e)}static fontInfo(e){return new FontInfo(e)}static formFieldFilling(e){return new FormFieldFilling(e)}static groupParent(e){return new GroupParent(e)}static ifEmpty(e){return new IfEmpty(e)}static includeXDPContent(e){return new IncludeXDPContent(e)}static incrementalLoad(e){return new IncrementalLoad(e)}static incrementalMerge(e){return new IncrementalMerge(e)}static interactive(e){return new Interactive(e)}static jog(e){return new Jog(e)}static labelPrinter(e){return new LabelPrinter(e)}static layout(e){return new Layout(e)}static level(e){return new Level(e)}static linearized(e){return new Linearized(e)}static locale(e){return new Locale(e)}static localeSet(e){return new LocaleSet(e)}static log(e){return new Log(e)}static map(e){return new MapElement(e)}static mediumInfo(e){return new MediumInfo(e)}static message(e){return new Message(e)}static messaging(e){return new Messaging(e)}static mode(e){return new Mode(e)}static modifyAnnots(e){return new ModifyAnnots(e)}static msgId(e){return new MsgId(e)}static nameAttr(e){return new NameAttr(e)}static neverEmbed(e){return new NeverEmbed(e)}static numberOfCopies(e){return new NumberOfCopies(e)}static openAction(e){return new OpenAction(e)}static output(e){return new Output(e)}static outputBin(e){return new OutputBin(e)}static outputXSL(e){return new OutputXSL(e)}static overprint(e){return new Overprint(e)}static packets(e){return new Packets(e)}static pageOffset(e){return new PageOffset(e)}static pageRange(e){return new PageRange(e)}static pagination(e){return new Pagination(e)}static paginationOverride(e){return new PaginationOverride(e)}static part(e){return new Part(e)}static pcl(e){return new Pcl(e)}static pdf(e){return new Pdf(e)}static pdfa(e){return new Pdfa(e)}static permissions(e){return new Permissions(e)}static pickTrayByPDFSize(e){return new PickTrayByPDFSize(e)}static picture(e){return new Picture(e)}static plaintextMetadata(e){return new PlaintextMetadata(e)}static presence(e){return new Presence(e)}static present(e){return new Present(e)}static print(e){return new Print(e)}static printHighQuality(e){return new PrintHighQuality(e)}static printScaling(e){return new PrintScaling(e)}static printerName(e){return new PrinterName(e)}static producer(e){return new Producer(e)}static ps(e){return new Ps(e)}static range(e){return new Range(e)}static record(e){return new Record(e)}static relevant(e){return new Relevant(e)}static rename(e){return new Rename(e)}static renderPolicy(e){return new RenderPolicy(e)}static runScripts(e){return new RunScripts(e)}static script(e){return new Script(e)}static scriptModel(e){return new ScriptModel(e)}static severity(e){return new Severity(e)}static silentPrint(e){return new SilentPrint(e)}static staple(e){return new Staple(e)}static startNode(e){return new StartNode(e)}static startPage(e){return new StartPage(e)}static submitFormat(e){return new SubmitFormat(e)}static submitUrl(e){return new SubmitUrl(e)}static subsetBelow(e){return new SubsetBelow(e)}static suppressBanner(e){return new SuppressBanner(e)}static tagged(e){return new Tagged(e)}static template(e){return new Template(e)}static templateCache(e){return new TemplateCache(e)}static threshold(e){return new Threshold(e)}static to(e){return new To(e)}static trace(e){return new Trace(e)}static transform(e){return new Transform(e)}static type(e){return new Type(e)}static uri(e){return new Uri(e)}static validate(e){return new Validate(e)}static validateApprovalSignatures(e){return new ValidateApprovalSignatures(e)}static validationMessaging(e){return new ValidationMessaging(e)}static version(e){return new Version(e)}static versionControl(e){return new VersionControl(e)}static viewerPreferences(e){return new ViewerPreferences(e)}static webClient(e){return new WebClient(e)}static whitespace(e){return new Whitespace(e)}static window(e){return new Window(e)}static xdc(e){return new Xdc(e)}static xdp(e){return new Xdp(e)}static xsl(e){return new Xsl(e)}static zpl(e){return new Zpl(e)}}t.ConfigNamespace=ConfigNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.ConnectionSetNamespace=void 0;var r=a(78),n=a(76);const i=r.NamespaceIds.connectionSet.id;class ConnectionSet extends n.XFAObject{constructor(e){super(i,"connectionSet",!0);this.wsdlConnection=new n.XFAObjectArray;this.xmlConnection=new n.XFAObjectArray;this.xsdConnection=new n.XFAObjectArray}}class EffectiveInputPolicy extends n.XFAObject{constructor(e){super(i,"effectiveInputPolicy");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class EffectiveOutputPolicy extends n.XFAObject{constructor(e){super(i,"effectiveOutputPolicy");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Operation extends n.StringObject{constructor(e){super(i,"operation");this.id=e.id||"";this.input=e.input||"";this.name=e.name||"";this.output=e.output||"";this.use=e.use||"";this.usehref=e.usehref||""}}class RootElement extends n.StringObject{constructor(e){super(i,"rootElement");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class SoapAction extends n.StringObject{constructor(e){super(i,"soapAction");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class SoapAddress extends n.StringObject{constructor(e){super(i,"soapAddress");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Uri extends n.StringObject{constructor(e){super(i,"uri");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class WsdlAddress extends n.StringObject{constructor(e){super(i,"wsdlAddress");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class WsdlConnection extends n.XFAObject{constructor(e){super(i,"wsdlConnection",!0);this.dataDescription=e.dataDescription||"";this.name=e.name||"";this.effectiveInputPolicy=null;this.effectiveOutputPolicy=null;this.operation=null;this.soapAction=null;this.soapAddress=null;this.wsdlAddress=null}}class XmlConnection extends n.XFAObject{constructor(e){super(i,"xmlConnection",!0);this.dataDescription=e.dataDescription||"";this.name=e.name||"";this.uri=null}}class XsdConnection extends n.XFAObject{constructor(e){super(i,"xsdConnection",!0);this.dataDescription=e.dataDescription||"";this.name=e.name||"";this.rootElement=null;this.uri=null}}class ConnectionSetNamespace{static[r.$buildXFAObject](e,t){if(ConnectionSetNamespace.hasOwnProperty(e))return ConnectionSetNamespace[e](t)}static connectionSet(e){return new ConnectionSet(e)}static effectiveInputPolicy(e){return new EffectiveInputPolicy(e)}static effectiveOutputPolicy(e){return new EffectiveOutputPolicy(e)}static operation(e){return new Operation(e)}static rootElement(e){return new RootElement(e)}static soapAction(e){return new SoapAction(e)}static soapAddress(e){return new SoapAddress(e)}static uri(e){return new Uri(e)}static wsdlAddress(e){return new WsdlAddress(e)}static wsdlConnection(e){return new WsdlConnection(e)}static xmlConnection(e){return new XmlConnection(e)}static xsdConnection(e){return new XsdConnection(e)}}t.ConnectionSetNamespace=ConnectionSetNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.DatasetsNamespace=void 0;var r=a(76),n=a(78);const i=n.NamespaceIds.datasets.id;class Data extends r.XmlObject{constructor(e){super(i,"data",e)}[r.$isNsAgnostic](){return!0}}class Datasets extends r.XFAObject{constructor(e){super(i,"datasets",!0);this.data=null;this.Signature=null}[r.$onChild](e){const t=e[r.$nodeName];("data"===t&&e[r.$namespaceId]===i||"Signature"===t&&e[r.$namespaceId]===n.NamespaceIds.signature.id)&&(this[t]=e);this[r.$appendChild](e)}}class DatasetsNamespace{static[n.$buildXFAObject](e,t){if(DatasetsNamespace.hasOwnProperty(e))return DatasetsNamespace[e](t)}static datasets(e){return new Datasets(e)}static data(e){return new Data(e)}}t.DatasetsNamespace=DatasetsNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.LocaleSetNamespace=void 0;var r=a(78),n=a(76),i=a(77);const s=r.NamespaceIds.localeSet.id;class CalendarSymbols extends n.XFAObject{constructor(e){super(s,"calendarSymbols",!0);this.name="gregorian";this.dayNames=new n.XFAObjectArray(2);this.eraNames=null;this.meridiemNames=null;this.monthNames=new n.XFAObjectArray(2)}}class CurrencySymbol extends n.StringObject{constructor(e){super(s,"currencySymbol");this.name=(0,i.getStringOption)(e.name,["symbol","isoname","decimal"])}}class CurrencySymbols extends n.XFAObject{constructor(e){super(s,"currencySymbols",!0);this.currencySymbol=new n.XFAObjectArray(3)}}class DatePattern extends n.StringObject{constructor(e){super(s,"datePattern");this.name=(0,i.getStringOption)(e.name,["full","long","med","short"])}}class DatePatterns extends n.XFAObject{constructor(e){super(s,"datePatterns",!0);this.datePattern=new n.XFAObjectArray(4)}}class DateTimeSymbols extends n.ContentObject{constructor(e){super(s,"dateTimeSymbols")}}class Day extends n.StringObject{constructor(e){super(s,"day")}}class DayNames extends n.XFAObject{constructor(e){super(s,"dayNames",!0);this.abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e});this.day=new n.XFAObjectArray(7)}}class Era extends n.StringObject{constructor(e){super(s,"era")}}class EraNames extends n.XFAObject{constructor(e){super(s,"eraNames",!0);this.era=new n.XFAObjectArray(2)}}class Locale extends n.XFAObject{constructor(e){super(s,"locale",!0);this.desc=e.desc||"";this.name="isoname";this.calendarSymbols=null;this.currencySymbols=null;this.datePatterns=null;this.dateTimeSymbols=null;this.numberPatterns=null;this.numberSymbols=null;this.timePatterns=null;this.typeFaces=null}}class LocaleSet extends n.XFAObject{constructor(e){super(s,"localeSet",!0);this.locale=new n.XFAObjectArray}}class Meridiem extends n.StringObject{constructor(e){super(s,"meridiem")}}class MeridiemNames extends n.XFAObject{constructor(e){super(s,"meridiemNames",!0);this.meridiem=new n.XFAObjectArray(2)}}class Month extends n.StringObject{constructor(e){super(s,"month")}}class MonthNames extends n.XFAObject{constructor(e){super(s,"monthNames",!0);this.abbr=(0,i.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e});this.month=new n.XFAObjectArray(12)}}class NumberPattern extends n.StringObject{constructor(e){super(s,"numberPattern");this.name=(0,i.getStringOption)(e.name,["full","long","med","short"])}}class NumberPatterns extends n.XFAObject{constructor(e){super(s,"numberPatterns",!0);this.numberPattern=new n.XFAObjectArray(4)}}class NumberSymbol extends n.StringObject{constructor(e){super(s,"numberSymbol");this.name=(0,i.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"])}}class NumberSymbols extends n.XFAObject{constructor(e){super(s,"numberSymbols",!0);this.numberSymbol=new n.XFAObjectArray(5)}}class TimePattern extends n.StringObject{constructor(e){super(s,"timePattern");this.name=(0,i.getStringOption)(e.name,["full","long","med","short"])}}class TimePatterns extends n.XFAObject{constructor(e){super(s,"timePatterns",!0);this.timePattern=new n.XFAObjectArray(4)}}class TypeFace extends n.XFAObject{constructor(e){super(s,"typeFace",!0);this.name=""|e.name}}class TypeFaces extends n.XFAObject{constructor(e){super(s,"typeFaces",!0);this.typeFace=new n.XFAObjectArray}}class LocaleSetNamespace{static[r.$buildXFAObject](e,t){if(LocaleSetNamespace.hasOwnProperty(e))return LocaleSetNamespace[e](t)}static calendarSymbols(e){return new CalendarSymbols(e)}static currencySymbol(e){return new CurrencySymbol(e)}static currencySymbols(e){return new CurrencySymbols(e)}static datePattern(e){return new DatePattern(e)}static datePatterns(e){return new DatePatterns(e)}static dateTimeSymbols(e){return new DateTimeSymbols(e)}static day(e){return new Day(e)}static dayNames(e){return new DayNames(e)}static era(e){return new Era(e)}static eraNames(e){return new EraNames(e)}static locale(e){return new Locale(e)}static localeSet(e){return new LocaleSet(e)}static meridiem(e){return new Meridiem(e)}static meridiemNames(e){return new MeridiemNames(e)}static month(e){return new Month(e)}static monthNames(e){return new MonthNames(e)}static numberPattern(e){return new NumberPattern(e)}static numberPatterns(e){return new NumberPatterns(e)}static numberSymbol(e){return new NumberSymbol(e)}static numberSymbols(e){return new NumberSymbols(e)}static timePattern(e){return new TimePattern(e)}static timePatterns(e){return new TimePatterns(e)}static typeFace(e){return new TypeFace(e)}static typeFaces(e){return new TypeFaces(e)}}t.LocaleSetNamespace=LocaleSetNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.SignatureNamespace=void 0;var r=a(78),n=a(76);const i=r.NamespaceIds.signature.id;class Signature extends n.XFAObject{constructor(e){super(i,"signature",!0)}}class SignatureNamespace{static[r.$buildXFAObject](e,t){if(SignatureNamespace.hasOwnProperty(e))return SignatureNamespace[e](t)}static signature(e){return new Signature(e)}}t.SignatureNamespace=SignatureNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.StylesheetNamespace=void 0;var r=a(78),n=a(76);const i=r.NamespaceIds.stylesheet.id;class Stylesheet extends n.XFAObject{constructor(e){super(i,"stylesheet",!0)}}class StylesheetNamespace{static[r.$buildXFAObject](e,t){if(StylesheetNamespace.hasOwnProperty(e))return StylesheetNamespace[e](t)}static stylesheet(e){return new Stylesheet(e)}}t.StylesheetNamespace=StylesheetNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.XdpNamespace=void 0;var r=a(78),n=a(76);const i=r.NamespaceIds.xdp.id;class Xdp extends n.XFAObject{constructor(e){super(i,"xdp",!0);this.uuid=e.uuid||"";this.timeStamp=e.timeStamp||"";this.config=null;this.connectionSet=null;this.datasets=null;this.localeSet=null;this.stylesheet=new n.XFAObjectArray;this.template=null}[n.$onChildCheck](e){const t=r.NamespaceIds[e[n.$nodeName]];return t&&e[n.$namespaceId]===t.id}}class XdpNamespace{static[r.$buildXFAObject](e,t){if(XdpNamespace.hasOwnProperty(e))return XdpNamespace[e](t)}static xdp(e){return new Xdp(e)}}t.XdpNamespace=XdpNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.XhtmlNamespace=void 0;var r=a(76),n=a(78),i=a(83),s=a(77);const o=n.NamespaceIds.xhtml.id,c=Symbol(),l=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),h=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",e=>"none"===e?"none":"normal"],["xfa-font-horizontal-scale",e=>`scaleX(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-font-vertical-scale",e=>`scaleY(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>{e=t.fontSize=(0,s.getMeasurement)(e);return(0,i.measureToString)(.99*e)}],["letter-spacing",e=>(0,i.measureToString)((0,s.getMeasurement)(e))],["line-height",e=>(0,i.measureToString)((0,s.getMeasurement)(e))],["margin",e=>(0,i.measureToString)((0,s.getMeasurement)(e))],["margin-bottom",e=>(0,i.measureToString)((0,s.getMeasurement)(e))],["margin-left",e=>(0,i.measureToString)((0,s.getMeasurement)(e))],["margin-right",e=>(0,i.measureToString)((0,s.getMeasurement)(e))],["margin-top",e=>(0,i.measureToString)((0,s.getMeasurement)(e))],["text-indent",e=>(0,i.measureToString)((0,s.getMeasurement)(e))],["font-family",e=>e],["vertical-align",e=>(0,i.measureToString)((0,s.getMeasurement)(e))]]),u=/\s+/g,d=/[\r\n]+/g,f=/\r\n?/g;function mapStyle(e,t,a){const n=Object.create(null);if(!e)return n;const o=Object.create(null);for(const[t,a]of e.split(";").map((e=>e.split(":",2)))){const e=h.get(t);if(""===e)continue;let r=a;e&&(r="string"==typeof e?e:e(a,o));t.endsWith("scale")?n.transform?n.transform=`${n[t]} ${r}`:n.transform=r:n[t.replaceAll(/-([a-zA-Z])/g,((e,t)=>t.toUpperCase()))]=r}n.fontFamily&&(0,i.setFontFamily)({typeface:n.fontFamily,weight:n.fontWeight||"normal",posture:n.fontStyle||"normal",size:o.fontSize||0},t,t[r.$globalData].fontFinder,n);if(a&&n.verticalAlign&&"0px"!==n.verticalAlign&&n.fontSize){const e=.583,t=.333,a=(0,s.getMeasurement)(n.fontSize);n.fontSize=(0,i.measureToString)(a*e);n.verticalAlign=(0,i.measureToString)(Math.sign((0,s.getMeasurement)(n.verticalAlign))*a*t)}a&&n.fontSize&&(n.fontSize=`calc(${n.fontSize} * var(--scale-factor))`);(0,i.fixTextIndent)(n);return n}const g=new Set(["body","html"]);class XhtmlObject extends r.XmlObject{constructor(e,t){super(o,t);this[c]=!1;this.style=e.style||""}[r.$clean](e){super[r.$clean](e);this.style=function checkStyle(e){return e.style?e.style.trim().split(/\s*;\s*/).filter((e=>!!e)).map((e=>e.split(/\s*:\s*/,2))).filter((([t,a])=>{"font-family"===t&&e[r.$globalData].usedTypefaces.add(a);return l.has(t)})).map((e=>e.join(":"))).join(";"):""}(this)}[r.$acceptWhitespace](){return!g.has(this[r.$nodeName])}[r.$onText](e,t=!1){if(t)this[c]=!0;else{e=e.replaceAll(d,"");this.style.includes("xfa-spacerun:yes")||(e=e.replaceAll(u," "))}e&&(this[r.$content]+=e)}[r.$pushGlyphs](e,t=!0){const a=Object.create(null),n={top:NaN,bottom:NaN,left:NaN,right:NaN};let i=null;for(const[e,t]of this.style.split(";").map((e=>e.split(":",2))))switch(e){case"font-family":a.typeface=(0,s.stripQuotes)(t);break;case"font-size":a.size=(0,s.getMeasurement)(t);break;case"font-weight":a.weight=t;break;case"font-style":a.posture=t;break;case"letter-spacing":a.letterSpacing=(0,s.getMeasurement)(t);break;case"margin":const e=t.split(/ \t/).map((e=>(0,s.getMeasurement)(e)));switch(e.length){case 1:n.top=n.bottom=n.left=n.right=e[0];break;case 2:n.top=n.bottom=e[0];n.left=n.right=e[1];break;case 3:n.top=e[0];n.bottom=e[2];n.left=n.right=e[1];break;case 4:n.top=e[0];n.left=e[1];n.bottom=e[2];n.right=e[3]}break;case"margin-top":n.top=(0,s.getMeasurement)(t);break;case"margin-bottom":n.bottom=(0,s.getMeasurement)(t);break;case"margin-left":n.left=(0,s.getMeasurement)(t);break;case"margin-right":n.right=(0,s.getMeasurement)(t);break;case"line-height":i=(0,s.getMeasurement)(t)}e.pushData(a,n,i);if(this[r.$content])e.addString(this[r.$content]);else for(const t of this[r.$getChildren]())"#text"!==t[r.$nodeName]?t[r.$pushGlyphs](e):e.addString(t[r.$content]);t&&e.popFont()}[r.$toHTML](e){const t=[];this[r.$extra]={children:t};this[r.$childrenToHTML]({});if(0===t.length&&!this[r.$content])return s.HTMLResult.EMPTY;let a;a=this[c]?this[r.$content]?this[r.$content].replaceAll(f,"\n"):void 0:this[r.$content]||void 0;return s.HTMLResult.success({name:this[r.$nodeName],attributes:{href:this.href,style:mapStyle(this.style,this,this[c])},children:t,value:a})}}class A extends XhtmlObject{constructor(e){super(e,"a");this.href=(0,i.fixURL)(e.href)||""}}class B extends XhtmlObject{constructor(e){super(e,"b")}[r.$pushGlyphs](e){e.pushFont({weight:"bold"});super[r.$pushGlyphs](e);e.popFont()}}class Body extends XhtmlObject{constructor(e){super(e,"body")}[r.$toHTML](e){const t=super[r.$toHTML](e),{html:a}=t;if(!a)return s.HTMLResult.EMPTY;a.name="div";a.attributes.class=["xfaRich"];return t}}class Br extends XhtmlObject{constructor(e){super(e,"br")}[r.$text](){return"\n"}[r.$pushGlyphs](e){e.addString("\n")}[r.$toHTML](e){return s.HTMLResult.success({name:"br"})}}class Html extends XhtmlObject{constructor(e){super(e,"html")}[r.$toHTML](e){const t=[];this[r.$extra]={children:t};this[r.$childrenToHTML]({});if(0===t.length)return s.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[r.$content]||""});if(1===t.length){const e=t[0];if(e.attributes&&e.attributes.class.includes("xfaRich"))return s.HTMLResult.success(e)}return s.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}class I extends XhtmlObject{constructor(e){super(e,"i")}[r.$pushGlyphs](e){e.pushFont({posture:"italic"});super[r.$pushGlyphs](e);e.popFont()}}class Li extends XhtmlObject{constructor(e){super(e,"li")}}class Ol extends XhtmlObject{constructor(e){super(e,"ol")}}class P extends XhtmlObject{constructor(e){super(e,"p")}[r.$pushGlyphs](e){super[r.$pushGlyphs](e,!1);e.addString("\n");e.addPara();e.popFont()}[r.$text](){return this[r.$getParent]()[r.$getChildren]().at(-1)===this?super[r.$text]():super[r.$text]()+"\n"}}class Span extends XhtmlObject{constructor(e){super(e,"span")}}class Sub extends XhtmlObject{constructor(e){super(e,"sub")}}class Sup extends XhtmlObject{constructor(e){super(e,"sup")}}class Ul extends XhtmlObject{constructor(e){super(e,"ul")}}class XhtmlNamespace{static[n.$buildXFAObject](e,t){if(XhtmlNamespace.hasOwnProperty(e))return XhtmlNamespace[e](t)}static a(e){return new A(e)}static b(e){return new B(e)}static body(e){return new Body(e)}static br(e){return new Br(e)}static html(e){return new Html(e)}static i(e){return new I(e)}static li(e){return new Li(e)}static ol(e){return new Ol(e)}static p(e){return new P(e)}static span(e){return new Span(e)}static sub(e){return new Sub(e)}static sup(e){return new Sup(e)}static ul(e){return new Ul(e)}}t.XhtmlNamespace=XhtmlNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.UnknownNamespace=void 0;var r=a(78),n=a(76);class UnknownNamespace{constructor(e){this.namespaceId=e}[r.$buildXFAObject](e,t){return new n.XmlObject(this.namespaceId,e,t)}}t.UnknownNamespace=UnknownNamespace},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.DatasetReader=void 0;var r=a(2),n=a(3),i=a(65);function decodeString(e){try{return(0,r.stringToUTF8String)(e)}catch(t){(0,r.warn)(`UTF-8 decoding failed: "${t}".`);return e}}class DatasetXMLParser extends i.SimpleXMLParser{constructor(e){super(e);this.node=null}onEndElement(e){const t=super.onEndElement(e);if(t&&"xfa:datasets"===e){this.node=t;throw new Error("Aborting DatasetXMLParser.")}}}t.DatasetReader=class DatasetReader{constructor(e){if(e.datasets)this.node=new i.SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{const t=new DatasetXMLParser({hasAttributes:!0});try{t.parseFromString(e["xdp:xdp"])}catch(e){}this.node=t.node}}getValue(e){if(!this.node||!e)return"";const t=this.node.searchNode((0,n.parseXFAPath)(e),0);if(!t)return"";const a=t.firstChild;return a&&"value"===a.nodeName?t.children.map((e=>decodeString(e.textContent))):decodeString(t.textContent)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.XRef=void 0;var r=a(2),n=a(4),i=a(15),s=a(3),o=a(5),c=a(66);t.XRef=class XRef{constructor(e,t){this.stream=e;this.pdfManager=t;this.entries=[];this._xrefStms=new Set;this._cacheMap=new Map;this._pendingRefs=new n.RefSet;this._newPersistentRefNum=null;this._newTemporaryRefNum=null}getNewPersistentRef(e){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);const t=this._newPersistentRefNum++;this._cacheMap.set(t,e);return n.Ref.get(t,0)}getNewTemporaryRef(){null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1);return n.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(e){this.startXRefQueue=[e]}parse(e=!1){let t,a,i;if(e){(0,r.warn)("Indexing all PDF objects");t=this.indexObjects()}else t=this.readXRef();t.assignXref(this);this.trailer=t;try{a=t.get("Encrypt")}catch(e){if(e instanceof s.MissingDataException)throw e;(0,r.warn)(`XRef.parse - Invalid "Encrypt" reference: "${e}".`)}if(a instanceof n.Dict){const e=t.get("ID"),r=e&&e.length?e[0]:"";a.suppressEncryption=!0;this.encrypt=new c.CipherTransformFactory(a,r,this.pdfManager.password)}try{i=t.get("Root")}catch(e){if(e instanceof s.MissingDataException)throw e;(0,r.warn)(`XRef.parse - Invalid "Root" reference: "${e}".`)}if(i instanceof n.Dict)try{if(i.get("Pages")instanceof n.Dict){this.root=i;return}}catch(e){if(e instanceof s.MissingDataException)throw e;(0,r.warn)(`XRef.parse - Invalid "Pages" reference: "${e}".`)}if(!e)throw new s.XRefParseException;throw new r.InvalidPDFException("Invalid Root reference.")}processXRefTable(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});const t=this.readXRefTable(e);if(!(0,n.isCmd)(t,"trailer"))throw new r.FormatError("Invalid XRef table: could not find trailer dictionary");let a=e.getObj();a instanceof n.Dict||!a.dict||(a=a.dict);if(!(a instanceof n.Dict))throw new r.FormatError("Invalid XRef table: could not parse trailer dictionary");delete this.tableState;return a}readXRefTable(e){const t=e.lexer.stream,a=this.tableState;t.pos=a.streamPos;e.buf1=a.parserBuf1;e.buf2=a.parserBuf2;let i;for(;;){if(!("firstEntryNum"in a)||!("entryCount"in a)){if((0,n.isCmd)(i=e.getObj(),"trailer"))break;a.firstEntryNum=i;a.entryCount=e.getObj()}let s=a.firstEntryNum;const o=a.entryCount;if(!Number.isInteger(s)||!Number.isInteger(o))throw new r.FormatError("Invalid XRef table: wrong types in subsection header");for(let i=a.entryNum;i0;){const[o,c]=s;if(!Number.isInteger(o)||!Number.isInteger(c))throw new r.FormatError(`Invalid XRef range fields: ${o}, ${c}`);if(!Number.isInteger(a)||!Number.isInteger(n)||!Number.isInteger(i))throw new r.FormatError(`Invalid XRef entry fields length: ${o}, ${c}`);for(let s=t.entryNum;s=e.length);){a+=String.fromCharCode(r);r=e[t]}return a}function skipUntil(e,t,a){const r=a.length,n=e.length;let i=0;for(;t=r)break;t++;i++}return i}const e=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer)\b/g,t=/\b(startxref|\d+\s+\d+\s+obj)\b/g,a=/^(\d+)\s+(\d+)\s+obj\b/,o=new Uint8Array([116,114,97,105,108,101,114]),c=new Uint8Array([115,116,97,114,116,120,114,101,102]),l=new Uint8Array([47,88,82,101,102]);this.entries.length=0;this._cacheMap.clear();const h=this.stream;h.pos=0;const u=h.getBytes(),d=(0,r.bytesToString)(u),f=u.length;let g=h.start;const p=[],m=[];for(;g=f)break;n=u[g]}while(10!==n&&13!==n);continue}const b=readToken(u,g);let y;if(b.startsWith("xref")&&(4===b.length||/\s/.test(b[4]))){g+=skipUntil(u,g,o);p.push(g);g+=skipUntil(u,g,c)}else if(y=a.exec(b)){const t=0|y[1],a=0|y[2],n=g+b.length;let o,c=!1;if(this.entries[t]){if(this.entries[t].gen===a)try{new i.Parser({lexer:new i.Lexer(h.makeSubStream(n))}).getObj();c=!0}catch(e){e instanceof s.ParserEOFException?(0,r.warn)(`indexObjects -- checking object (${b}): "${e}".`):c=!0}}else c=!0;c&&(this.entries[t]={offset:g-h.start,gen:a,uncompressed:!0});e.lastIndex=n;const p=e.exec(d);if(p){o=e.lastIndex+1-g;if("endobj"!==p[1]){(0,r.warn)(`indexObjects: Found "${p[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`);o-=p[1].length+1}}else o=f-g;const w=u.subarray(g,g+o),S=skipUntil(w,0,l);if(S0?Math.max(...this._xrefStms):null}getEntry(e){const t=this.entries[e];return t&&!t.free&&t.offset?t:null}fetchIfRef(e,t=!1){return e instanceof n.Ref?this.fetch(e,t):e}fetch(e,t=!1){if(!(e instanceof n.Ref))throw new Error("ref object is not a reference");const a=e.num,i=this._cacheMap.get(a);if(void 0!==i){i instanceof n.Dict&&!i.objId&&(i.objId=e.toString());return i}let s=this.getEntry(a);if(null===s){this._cacheMap.set(a,s);return s}if(this._pendingRefs.has(e)){this._pendingRefs.remove(e);(0,r.warn)(`Ignoring circular reference: ${e}.`);return n.CIRCULAR_REF}this._pendingRefs.put(e);try{s=s.uncompressed?this.fetchUncompressed(e,s,t):this.fetchCompressed(e,s,t);this._pendingRefs.remove(e)}catch(t){this._pendingRefs.remove(e);throw t}s instanceof n.Dict?s.objId=e.toString():s instanceof o.BaseStream&&(s.dict.objId=e.toString());return s}fetchUncompressed(e,t,a=!1){const c=e.gen;let l=e.num;if(t.gen!==c){const i=`Inconsistent generation in XRef: ${e}`;if(this._generationFallback&&t.gen{Object.defineProperty(t,"__esModule",{value:!0});t.isNodeJS=void 0;const a=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=a},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.MessageHandler=void 0;var r=a(2);const n=1,i=2,s=1,o=2,c=3,l=4,h=5,u=6,d=7,f=8;function wrapReason(e){e instanceof Error||"object"==typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.');switch(e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class MessageHandler{constructor(e,t,a){this.sourceName=e;this.targetName=t;this.comObj=a;this.callbackId=1;this.streamId=1;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream){this._processStreamMessage(t);return}if(t.callback){const e=t.callbackId,a=this.callbackCapabilities[e];if(!a)throw new Error(`Cannot resolve callback ${e}`);delete this.callbackCapabilities[e];if(t.callback===n)a.resolve(t.data);else{if(t.callback!==i)throw new Error("Unexpected callback case");a.reject(wrapReason(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,s=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){a.postMessage({sourceName:e,targetName:s,callback:n,callbackId:t.callbackId,data:r})}),(function(r){a.postMessage({sourceName:e,targetName:s,callback:i,callbackId:t.callbackId,reason:wrapReason(r)})}))}else t.streamId?this._createStreamSink(t):r(t.data)};a.addEventListener("message",this._onComObjOnMessage)}on(e,t){const a=this.actionHandler;if(a[e])throw new Error(`There is already an actionName called "${e}"`);a[e]=t}send(e,t,a){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},a)}sendWithPromise(e,t,a){const n=this.callbackId++,i=(0,r.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},a)}catch(e){i.reject(e)}return i.promise}sendWithStream(e,t,a,n){const i=this.streamId++,o=this.sourceName,c=this.targetName,l=this.comObj;return new ReadableStream({start:a=>{const s=(0,r.createPromiseCapability)();this.streamControllers[i]={controller:a,startCall:s,pullCall:null,cancelCall:null,isClosed:!1};l.postMessage({sourceName:o,targetName:c,action:e,streamId:i,data:t,desiredSize:a.desiredSize},n);return s.promise},pull:e=>{const t=(0,r.createPromiseCapability)();this.streamControllers[i].pullCall=t;l.postMessage({sourceName:o,targetName:c,stream:u,streamId:i,desiredSize:e.desiredSize});return t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();this.streamControllers[i].cancelCall=t;this.streamControllers[i].isClosed=!0;l.postMessage({sourceName:o,targetName:c,stream:s,streamId:i,reason:wrapReason(e)});return t.promise}},a)}_createStreamSink(e){const t=e.streamId,a=this.sourceName,n=e.sourceName,i=this.comObj,s=this,o=this.actionHandler[e.action],u={enqueue(e,s=1,o){if(this.isCancelled)return;const c=this.desiredSize;this.desiredSize-=s;if(c>0&&this.desiredSize<=0){this.sinkCapability=(0,r.createPromiseCapability)();this.ready=this.sinkCapability.promise}i.postMessage({sourceName:a,targetName:n,stream:l,streamId:t,chunk:e},o)},close(){if(!this.isCancelled){this.isCancelled=!0;i.postMessage({sourceName:a,targetName:n,stream:c,streamId:t});delete s.streamSinks[t]}},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason");if(!this.isCancelled){this.isCancelled=!0;i.postMessage({sourceName:a,targetName:n,stream:h,streamId:t,reason:wrapReason(e)})}},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve();u.ready=u.sinkCapability.promise;this.streamSinks[t]=u;new Promise((function(t){t(o(e.data,u))})).then((function(){i.postMessage({sourceName:a,targetName:n,stream:f,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:a,targetName:n,stream:f,streamId:t,reason:wrapReason(e)})}))}_processStreamMessage(e){const t=e.streamId,a=this.sourceName,n=e.sourceName,i=this.comObj,g=this.streamControllers[t],p=this.streamSinks[t];switch(e.stream){case f:e.success?g.startCall.resolve():g.startCall.reject(wrapReason(e.reason));break;case d:e.success?g.pullCall.resolve():g.pullCall.reject(wrapReason(e.reason));break;case u:if(!p){i.postMessage({sourceName:a,targetName:n,stream:d,streamId:t,success:!0});break}p.desiredSize<=0&&e.desiredSize>0&&p.sinkCapability.resolve();p.desiredSize=e.desiredSize;new Promise((function(e){e(p.onPull&&p.onPull())})).then((function(){i.postMessage({sourceName:a,targetName:n,stream:d,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:a,targetName:n,stream:d,streamId:t,reason:wrapReason(e)})}));break;case l:(0,r.assert)(g,"enqueue should have stream controller");if(g.isClosed)break;g.controller.enqueue(e.chunk);break;case c:(0,r.assert)(g,"close should have stream controller");if(g.isClosed)break;g.isClosed=!0;g.controller.close();this._deleteStreamController(g,t);break;case h:(0,r.assert)(g,"error should have stream controller");g.controller.error(wrapReason(e.reason));this._deleteStreamController(g,t);break;case o:e.success?g.cancelCall.resolve():g.cancelCall.reject(wrapReason(e.reason));this._deleteStreamController(g,t);break;case s:if(!p)break;new Promise((function(t){t(p.onCancel&&p.onCancel(wrapReason(e.reason)))})).then((function(){i.postMessage({sourceName:a,targetName:n,stream:o,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:a,targetName:n,stream:o,streamId:t,reason:wrapReason(e)})}));p.sinkCapability.reject(wrapReason(e.reason));p.isCancelled=!0;delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]);delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});t.PDFWorkerStream=void 0;var r=a(2);t.PDFWorkerStream=class PDFWorkerStream{constructor(e){this._msgHandler=e;this._contentLength=null;this._fullRequestReader=null;this._rangeRequestReaders=[]}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once.");this._fullRequestReader=new PDFWorkerStreamReader(this._msgHandler);return this._fullRequestReader}getRangeReader(e,t){const a=new PDFWorkerStreamRangeReader(e,t,this._msgHandler);this._rangeRequestReaders.push(a);return a}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class PDFWorkerStreamReader{constructor(e){this._msgHandler=e;this.onProgress=null;this._contentLength=null;this._isRangeSupported=!1;this._isStreamingSupported=!1;const t=this._msgHandler.sendWithStream("GetReader");this._reader=t.getReader();this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((e=>{this._isStreamingSupported=e.isStreamingSupported;this._isRangeSupported=e.isRangeSupported;this._contentLength=e.contentLength}))}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class PDFWorkerStreamRangeReader{constructor(e,t,a){this._msgHandler=a;this.onProgress=null;const r=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=r.getReader()}get isStreamingSupported(){return!1}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}],t={};function __w_pdfjs_require__(a){var r=t[a];if(void 0!==r)return r.exports;var n=t[a]={exports:{}};e[a](n,n.exports,__w_pdfjs_require__);return n.exports}__w_pdfjs_require__.d=(e,t)=>{for(var a in t)__w_pdfjs_require__.o(t,a)&&!__w_pdfjs_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})};__w_pdfjs_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);__w_pdfjs_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0});Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}});var t=__w_pdfjs_require__(1)})();return a})())); \ No newline at end of file diff --git a/web-v2-res/static/js/pdf_viewer.min.js b/web-v2-res/static/js/pdf_viewer.min.js deleted file mode 100644 index 8cd0dc1..0000000 --- a/web-v2-res/static/js/pdf_viewer.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/web/pdf_viewer",[],t):"object"==typeof exports?exports["pdfjs-dist/web/pdf_viewer"]=t():e["pdfjs-dist/web/pdf_viewer"]=e.pdfjsViewer=t()}(globalThis,()=>(()=>{"use strict";var i=[,(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=t.LinkTarget=void 0;var o=i(2);const a={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function n(e,{url:t,target:i,rel:n,enabled:r=!0}={}){if(!t||"string"!=typeof t)throw new Error('A valid "url" parameter must provided.');t=(0,o.removeNullCharacters)(t);r?e.href=e.title=t:(e.href="",e.title="Disabled: "+t,e.onclick=()=>!1);let s="";switch(i){case a.NONE:break;case a.SELF:s="_self";break;case a.BLANK:s="_blank";break;case a.PARENT:s="_parent";break;case a.TOP:s="_top"}e.target=s,e.rel="string"==typeof n?n:"noopener noreferrer nofollow"}t.LinkTarget=a;class l{#pagesRefCache=new Map;constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:i=null,ignoreDestinationZoom:n=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=i,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=n,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e,this.#pagesRefCache.clear()}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(e){this.pdfViewer.currentPageNumber=e}get rotation(){return this.pdfViewer.pagesRotation}set rotation(e){this.pdfViewer.pagesRotation=e}get isInPresentationMode(){return this.pdfViewer.isInPresentationMode}#goToDestinationHelper(t,i=null,n){const r=n[0];let e;if("object"==typeof r&&null!==r){if(!(e=this._cachedPageNumber(r)))return void this.pdfDocument.getPageIndex(r).then(e=>{this.cachePageRef(e+1,r),this.#goToDestinationHelper(t,i,n)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${r}" is not `+`a valid page reference, for dest="${t}".`)})}else{if(!Number.isInteger(r))return void console.error(`PDFLinkService.#goToDestinationHelper: "${r}" is not `+`a valid destination reference, for dest="${t}".`);e=r+1}!e||e<1||e>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${e}" is not `+`a valid page number, for dest="${t}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:i,explicitDest:n,pageNumber:e})),this.pdfViewer.scrollPageIntoView({pageNumber:e,destArray:n,ignoreDestinationZoom:this._ignoreDestinationZoom}))}async goToDestination(i){if(this.pdfDocument){let e,t;t="string"==typeof i?(e=i,await this.pdfDocument.getDestination(i)):(e=null,await i),Array.isArray(t)?this.#goToDestinationHelper(i,e,t):console.error(`PDFLinkService.goToDestination: "${t}" is not `+`a valid destination array, for dest="${i}".`)}}goToPage(e){var t;this.pdfDocument&&(t="string"==typeof e&&this.pdfViewer.pageLabelToPageNumber(e)||0|e,Number.isInteger(t)&&0{Object.defineProperty(t,"__esModule",{value:!0}),t.animationStarted=t.VERTICAL_PADDING=t.UNKNOWN_SCALE=t.TextLayerMode=t.SpreadMode=t.SidebarView=t.ScrollMode=t.SCROLLBAR_PADDING=t.RenderingStates=t.RendererType=t.ProgressBar=t.PresentationModeState=t.OutputScale=t.MIN_SCALE=t.MAX_SCALE=t.MAX_AUTO_SCALE=t.DEFAULT_SCALE_VALUE=t.DEFAULT_SCALE_DELTA=t.DEFAULT_SCALE=t.CursorTool=t.AutoPrintRegExp=void 0,t.apiPageLayoutToViewerModes=function(e){let t=n.VERTICAL,i=r.NONE;switch(e){case"SinglePage":t=n.PAGE;break;case"OneColumn":break;case"TwoPageLeft":t=n.PAGE;case"TwoColumnLeft":i=r.ODD;break;case"TwoPageRight":t=n.PAGE;case"TwoColumnRight":i=r.EVEN}return{scrollMode:t,spreadMode:i}},t.apiPageModeToSidebarView=function(e){switch(e){case"UseNone":return i.NONE;case"UseThumbs":return i.THUMBS;case"UseOutlines":return i.OUTLINE;case"UseAttachments":return i.ATTACHMENTS;case"UseOC":return i.LAYERS}return i.NONE},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];var t=1/e;{if(8o}:function(e){return(e=e.div).offsetTop+e.clientTop+e.clientHeight>s});0p)break;y<=s||a<=v||P<=o||_>=l||(y=Math.max(0,s-v)+Math.max(0,y-a),P=Math.max(0,o-_)+Math.max(0,P-l),f=(f-y)/f*(y=(m-P)/m)*100|0,h.push({id:g.id,x:_,y:v,view:g,percent:f,widthPercent:100*y|0}),d.add(g.id))}var e=h[0],b=h.at(-1);i&&h.sort(function(e,t){var i=e.percent-t.percent;return.001>1;t(e[s])?r=s:n=1+s}return n}function w(t,i,e){if(t<2)return t;let n=i[t].div,r=n.offsetTop+n.clientTop;r>=e&&(n=i[t-1].div,r=n.offsetTop+n.clientTop);for(let e=t-2;0<=e&&!((n=i[e].div).offsetTop+n.clientTop+n.clientHeight<=r);--e)t=e;return t}function a(e){let t=Math.hypot(e.deltaX,e.deltaY);e=Math.atan2(e.deltaY,e.deltaX);return t=-.25*Math.PI{this.#disableAutoFetchTimeout=null,this.hide()},e))}hide(){this.#visible&&(this.#visible=!1,this.#classList.add("hidden"))}show(){this.#visible||(this.#visible=!0,this.#classList.remove("hidden"))}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayerBuilder=void 0;var r=i(4),p=i(5),s=i(2);t.AnnotationLayerBuilder=class{#numAnnotations=0;#onPresentationModeChanged=null;constructor({pageDiv:e,pdfPage:t,linkService:i,downloadManager:n,annotationStorage:r=null,imageResourcesPath:s="",renderForms:a=!0,l10n:o=p.NullL10n,enableScripting:l=!1,hasJSActionsPromise:h=null,fieldObjectsPromise:d=null,annotationCanvasMap:c=null,accessibilityManager:u=null}){this.pageDiv=e,this.pdfPage=t,this.linkService=i,this.downloadManager=n,this.imageResourcesPath=s,this.renderForms=a,this.l10n=o,this.annotationStorage=r,this.enableScripting=l,this._hasJSActionsPromise=h||Promise.resolve(!1),this._fieldObjectsPromise=d||Promise.resolve(null),this._annotationCanvasMap=c,this._accessibilityManager=u,this.div=null,this._cancelled=!1,this._eventBus=i.eventBus}async render(e,t="display"){if(this.div)return this._cancelled||0===this.#numAnnotations?void 0:void r.AnnotationLayer.update({viewport:e.clone({dontFlip:!0}),div:this.div,annotationCanvasMap:this._annotationCanvasMap});var[t,i,n]=await Promise.all([this.pdfPage.getAnnotations({intent:t}),this._hasJSActionsPromise,this._fieldObjectsPromise]);this._cancelled||(this.#numAnnotations=t.length,this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.append(this.div),0===this.#numAnnotations?this.hide():(r.AnnotationLayer.render({viewport:e.clone({dontFlip:!0}),div:this.div,annotations:t,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:i,fieldObjects:n,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager}),this.l10n.translate(this.div),this.linkService.isInPresentationMode&&this.#updatePresentationModeState(s.PresentationModeState.FULLSCREEN),this.#onPresentationModeChanged||(this.#onPresentationModeChanged=e=>{this.#updatePresentationModeState(e.state)},this._eventBus?._on("presentationmodechanged",this.#onPresentationModeChanged))))}cancel(){this._cancelled=!0,this.#onPresentationModeChanged&&(this._eventBus?._off("presentationmodechanged",this.#onPresentationModeChanged),this.#onPresentationModeChanged=null)}hide(){this.div&&(this.div.hidden=!0)}#updatePresentationModeState(t){if(this.div){let e=!1;switch(t){case s.PresentationModeState.FULLSCREEN:e=!0;break;case s.PresentationModeState.NORMAL:break;default:return}for(const i of this.div.childNodes)i.hasAttribute("data-internal-link")||(i.inert=e)}}}},e=>{let t;t="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:require("../build/pdf.js"),e.exports=t},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.fixupLangCode=function(e){return n[e?.toLowerCase()]||e},t.getL10nFallback=r;const i={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image"};function r(e,t){switch(e){case"find_match_count":e=`find_match_count[${1===t.total?"one":"other"}]`;break;case"find_match_count_limit":e=`find_match_count_limit[${1===t.limit?"one":"other"}]`}return i[e]||""}i.print_progress_percent="{{progress}}%";const n={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};t.NullL10n={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(e,t=null,i=r(e,t)){return i=i,(n=t)?i.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(e,t)=>t in n?n[t]:"{{"+t+"}}"):i;var n},async translate(e){}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var r=i(4);function n(e,t){const i=document.createElement("a");if(!i.click)throw new Error('DownloadManager: "a.click()" is not supported.');i.href=e,i.target="_parent","download"in i&&(i.download=t),(document.body||document.documentElement).append(i),i.click(),i.remove()}t.DownloadManager=class{#openBlobUrls=new WeakMap;downloadUrl(e,t){(0,r.createValidAbsoluteUrl)(e,"http://example.com")?n(e+"#pdfjs.action=download",t):console.error("downloadUrl - not a valid URL: "+e)}downloadData(e,t,i){n(URL.createObjectURL(new Blob([e],{type:i})),t)}openOrDownloadData(e,t,i){var n=(0,r.isPdfFile)(i);return this.downloadData(t,i,n?"application/pdf":""),!1}download(e,t,i){n(URL.createObjectURL(e),i)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitOnType=t.EventBus=t.AutomationEventBus=void 0,t.waitOnEventOrTimeout=function({target:a,name:o,delay:l=0}){return new Promise(function(t,e){if("object"!=typeof a||!o||"string"!=typeof o||!(Number.isInteger(l)&&0<=l))throw new Error("waitOnEventOrTimeout - invalid parameters.");function i(e){a instanceof d?a._off(o,n):a.removeEventListener(o,n),s&&clearTimeout(s),t(e)}const n=i.bind(null,h.EVENT);a instanceof d?a._on(o,n):a.addEventListener(o,n);var r=i.bind(null,h.TIMEOUT);const s=setTimeout(r,l)})};const h={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=h;class d{#listeners=Object.create(null);on(e,t,i=null){this._on(e,t,{external:!0,once:i?.once})}off(e,t,i=null){this._off(e,t,{external:!0,once:i?.once})}dispatch(t,i){const n=this.#listeners[t];if(n&&0!==n.length){let e;for(var{listener:r,external:s,once:a}of n.slice(0))a&&this._off(t,r),s?(e||=[]).push(r):r(i);if(e){for(const o of e)o(i);e=null}}}_on(e,t,i=null){const n=this.#listeners[e]||=[];n.push({listener:t,external:!0===i?.external,once:!0===i?.once})}_off(e,i,t=0){const n=this.#listeners[e];if(n)for(let e=0,t=n.length;e{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,i(9);var r=i(5);const n=document.webL10n;t.GenericL10n=class{constructor(i){this._lang=i,this._ready=new Promise((e,t)=>{n.setLanguage((0,r.fixupLangCode)(i),()=>{e(n)})})}async getLanguage(){const e=await this._ready;return e.getLanguage()}async getDirection(){const e=await this._ready;return e.getDirection()}async get(e,t=null,i=(0,r.getL10nFallback)(e,t)){const n=await this._ready;return n.get(e,t,i)}async translate(e){const t=await this._ready;return t.translate(e)}}},()=>{function P(e,t,i){t=t||function(e){},i=i||function(){};var n=new XMLHttpRequest;n.open("GET",e,r),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=utf-8"),n.onreadystatechange=function(){4==n.readyState&&(200==n.status||0===n.status?t(n.responseText):i())},n.onerror=i,n.ontimeout=i;try{n.send(null)}catch(e){i()}}function u(e,v,r,t){var m=e.replace(/[^\/]*$/,"")||"./";function i(e,t){var c={},i=/^\s*|\s*$/,u=/^\s*#|^\s*$/,p=/^\s*\[(.*)\]\s*$/,g=/^\s*@import\s+url\((.*)\)\s*$/i,f=/^([^=\s]*)\s*=\s*(.+)$/;function _(e,r,s){var a=e.replace(i,"").split(/[\r\n]+/),o="*",l=v.split("-",1)[0],h=!1,d="";!function e(){for(;;){if(!a.length)return void s();var t,i,n=a.shift();if(!u.test(n)){if(r){if(d=p.exec(n)){o=d[1].toLowerCase(),h="*"!==o&&o!==v&&o!==l;continue}if(h)continue;if(d=g.exec(n))return t=m+d[1],i=e,void P(t,function(e){_(e,!1,i)},function(){console.warn(t+" not found."),i()})}(n=n.match(f))&&3==n.length&&(c[n[1]]=(n=n[2]).lastIndexOf("\\")<0?n:n.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'"))}}}()}_(e,!0,function(){t(c)})}P(e,function(e){f+=e,i(e,function(e){for(var t in e){var i,n=t.lastIndexOf("."),n=0{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var h=i(2),s=i(4),a=i(11);const r={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},E=(t.FindState=r,{"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"}),d=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]);let n;const o=/\p{M}+/gu,c=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,l=/([^\p{M}])\p{M}*$/u,u=/^\p{M}*([^\p{M}])/u,w=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,S=new Map,L=new Map;let M=null,C=null;function p(e){const p=[];let i;for(;null!==(i=w.exec(e));){let t=i["index"];for(const s of i[0]){let e=S.get(s);e||(e=s.normalize("NFD").length,S.set(s,e)),p.push([e,t++])}}let t;var n;t=0===p.length&&M?M:0{if(h-=P,i){var i=E[i],d=i.length;for(let e=1;e{var e,t;!this._pdfDocument||i&&this._pdfDocument!==i||(this.#extractText(),e=!this._highlightMatches,t=!!this._findTimeout,this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),n?this._dirtyMatch?this.#nextMatch():"again"===n?(this.#nextMatch(),e&&this._state.highlightAll&&this.#updateAllPages()):"highlightallchange"===n?(t?this.#nextMatch():this._highlightMatches=!0,this.#updateAllPages()):this.#nextMatch():this._findTimeout=setTimeout(()=>{this.#nextMatch(),this._findTimeout=null},250))})}}scrollMatchIntoView({element:e=null,selectedLeft:t=0,pageIndex:i=-1,matchIndex:n=-1}){this._scrollMatches&&e&&-1!==n&&n===this._selected.matchIdx&&-1!==i&&i===this._selected.pageIdx&&(this._scrollMatches=!1,h.scrollIntoView)(e,{top:-50,left:t+-400},!0)}#reset(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this.#visitedPagesCount=0,this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,s.createPromiseCapability)()}get#query(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=p(this._state.query)),this._normalizedQuery}#shouldDirtyMatch(e){if(e.query!==this._state.query)return!0;switch(e.type){case"again":var t=this._selected.pageIdx+1;const i=this._linkService;return 1<=t&&t<=i.pagesCount&&t!==i.page&&!i.isPageVisible(t)?!0:!1;case"highlightallchange":return!1}return!0}#isEntireWord(e,t,i){let n=e.slice(0,t).match(l);if(n){var r=e.charCodeAt(t),s=n[1].charCodeAt(0);if((0,a.getCharacterType)(r)===(0,a.getCharacterType)(s))return!1}if(n=e.slice(t+i).match(u)){r=e.charCodeAt(t+i-1),s=n[1].charCodeAt(0);if((0,a.getCharacterType)(r)===(0,a.getCharacterType)(s))return!1}return!0}#calculateRegExpMatch(e,t,i,n){const r=this._pageMatches[i]=[],s=this._pageMatchesLength[i]=[];if(e)for(var a,o,l=this._pageDiffs[i];null!==(a=e.exec(n));)t&&!this.#isEntireWord(n,a.index,a[0].length)||([a,o]=function(e,t,i){if(!e)return[t,i];const n=t,r=t+i;let s=(0,h.binarySearchFirstItem)(e,e=>e[0]>=n),a=(e[s][0]>n&&--s,(0,h.binarySearchFirstItem)(e,e=>e[0]>=r,s));return e[a][0]>r&&--a,[n+e[s][1],i+e[a][1]-e[s][1]]}(l,a.index,a[0].length),o&&(r.push(a),s.push(o)))}#convertToRegExpString(e,a){const o=this._state["matchDiacritics"];let l=!1;return(e=e.replaceAll(c,(e,t,i,n,r,s)=>t?`[ ]*\\${t}[ ]*`:i?`[ ]*${i}[ ]*`:n?"[ ]+":o?r||s:r?d.has(r.charCodeAt(0))?r:"":a?(l=!0,s+"\\p{M}*"):s)).endsWith("[ ]*")&&(e=e.slice(0,e.length-"[ ]*".length)),o&&a&&(n||=String.fromCharCode(...d),l=!0,e=`${e}(?=[${n}]|[^\\p{M}]|$)`),[l,e]}#calculateMatch(e){let t=this.#query;if(t){var{caseSensitive:n,entireWord:r,phraseSearch:s}=this._state,a=this._pageContents[e];const o=this._hasDiacritics[e];let i=!1;if(s)[i,t]=this.#convertToRegExpString(t,o);else{const l=t.match(/\S+/g);l&&(t=l.sort().reverse().map(e=>{var[e,t]=this.#convertToRegExpString(e,o);return i||=e,`(${t})`}).join("|"))}s="g"+(i?"u":"")+(n?"":"i"),n=(t=t?new RegExp(t,s):null,this.#calculateRegExpMatch(t,r,e,a),this._state.highlightAll&&this.#updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#nextPageMatch()),this._pageMatches[e].length);this._matchesCountTotal+=n,this.#updateMatchesCountOnProgress?0this._pdfDocument.getPage(n+1).then(e=>e.getTextContent()).then(e=>{const t=[];for(const i of e.items)t.push(i.str),i.hasEOL&&t.push("\n");[this._pageContents[n],this._pageDiffs[n],this._hasDiacritics[n]]=p(t.join("")),r.resolve()},e=>{console.error("Unable to get text content for page "+(n+1),e),this._pageContents[n]="",this._pageDiffs[n]=null,this._hasDiacritics[n]=!1,r.resolve()}))}}}#updatePage(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}#updateAllPages(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#nextMatch(){var e=this._state.findPrevious,t=this._linkService.page-1,i=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=t,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this.#visitedPagesCount=0,this._matchesCountTotal=0,this.#updateAllPages();for(let e=0;e{this._pendingFindMatches.delete(e),this.#calculateMatch(e)}))}if(this.#query){if(!this._resumePageIdx){const n=this._offset;if(this._pagesToSearch=i,null!==n.matchIdx){t=this._pageMatches[n.pageIdx].length;if(!e&&n.matchIdx+1=i||t.pageIdx<0)&&(t.pageIdx=e?i-1:0,t.wrapped=!0)}#updateMatch(e=!1){let t=r.NOT_FOUND;var i=this._offset.wrapped;this._offset.wrapped=!1,e&&(e=this._selected.pageIdx,this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=i?r.WRAPPED:r.FOUND,-1!==e&&e!==this._selected.pageIdx&&this.#updatePage(e)),this.#updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this.#updatePage(this._selected.pageIdx))}#onFindBarClose(e){const t=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||t&&this._pdfDocument!==t||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#updateUIState(r.FOUND),this._highlightMatches=!1,this.#updateAllPages())})}#requestMatchesCount(){var{pageIdx:t,matchIdx:e}=this._selected;let i=0,n=this._matchesCountTotal;if(-1!==e){for(let e=0;en?n=0:i,total:n}}#updateUIResultsCount(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#requestMatchesCount()})}#updateUIState(e,t=!1){(this.#updateMatchesCountOnProgress||this.#visitedPagesCount===this._linkService.pagesCount&&e!==r.PENDING)&&this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this.#requestMatchesCount(),rawQuery:this._state?.query??null})}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterType=void 0,t.getCharacterType=function(e){if(e<11904)return 0==(65408&e)?function(e){return 32===e||9===e||13===e||10===e}(e)?i.SPACE:function(e){return 97<=e&&e<=122||65<=e&&e<=90}(e)||function(e){return 48<=e&&e<=57}(e)||95===e?i.ALPHA_LETTER:i.PUNCT:3584==(65408&e)?i.THAI_LETTER:160===e?i.SPACE:i.ALPHA_LETTER;{if(function(e){return 13312<=e&&e<=40959||63744<=e&&e<=64255}(e))return i.HAN_LETTER;if(function(e){return 12448<=e&&e<=12543}(e))return i.KATAKANA_LETTER;if(function(e){return 12352<=e&&e<=12447}(e))return i.HIRAGANA_LETTER;if(function(e){return 65376<=e&&e<=65439}(e))return i.HALFWIDTH_KATAKANA_LETTER}return i.ALPHA_LETTER};const i={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=i},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFHistory=void 0,t.isDestArraysEqual=l,t.isDestHashesEqual=r;var s=i(2),a=i(7);function o(){return document.location.hash}function r(e,t){return"string"==typeof e&&"string"==typeof t&&(e===t||(0,s.parseQueryString)(e).get("nameddest")===t)}function l(i,n){if(!Array.isArray(i)||!Array.isArray(n))return!1;if(i.length!==n.length)return!1;for(let e=0,t=i.length;e{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",e=>{this._isPagesLoaded=!!e.pagesCount},{once:!0})})}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:i=!1}){if(e&&"string"==typeof e){this._initialized&&this.reset();var n,r,s=""!==this._fingerprint&&this._fingerprint!==e,e=(this._fingerprint=e,this._updateUrl=!0===i,this._initialized=!0,this._bindEvents(),window.history.state);if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=o(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(e,!0)||t)return{hash:i,page:n,rotation:r}=this._parseCurrentHash(!0),!i||s||t?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:i,page:n,rotation:r},!0);s=e.destination;this._updateInternalState(s,e.uid,!0),void 0!==s.rotation&&(this._initialRotation=s.rotation),s.dest?(this._initialBookmark=JSON.stringify(s.dest),this._destination.page=null):s.hash?this._initialBookmark=s.hash:s.page&&(this._initialBookmark="page="+s.page)}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:t=null,explicitDest:i,pageNumber:n}){if(this._initialized)if(t&&"string"!=typeof t)console.error("PDFHistory.push: "+`"${t}" is not a valid namedDest parameter.`);else if(Array.isArray(i))if(this._isValidPage(n)||null===n&&!this._destination){t=t||JSON.stringify(i);if(t){let e=!1;if(this._destination&&(r(this._destination.hash,t)||l(this._destination.dest,i))){if(this._destination.page)return;e=!0}this._popStateInProgress&&!e||(this._pushOrReplaceState({dest:i,hash:t,page:n,rotation:this.linkService.rotation},e),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}}else console.error("PDFHistory.push: "+`"${n}" is not a valid pageNumber parameter.`);else console.error("PDFHistory.push: "+`"${i}" is not a valid explicitDest parameter.`)}pushPage(e){this._initialized&&(this._isValidPage(e)?this._destination?.page===e||this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:"page="+e,page:e,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))):console.error(`PDFHistory.pushPage: "${e}" is not a valid page number.`))}pushCurrentPosition(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}back(){var e;this._initialized&&!this._popStateInProgress&&(e=window.history.state,this._isValidState(e)&&0=t.first&&this._destination.page<=t.page){if(void 0!==this._destination.dest||!this._destination.first)return;e=!0}this._pushOrReplaceState(t,e)}}else this._pushOrReplaceState(t)}}_isValidPage(e){return Number.isInteger(e)&&0{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},1e3))}_popState({state:e}){var t,i,n=o(),r=this._currentHash!==n;if(this._currentHash=n,!e)return this._uid++,{hash:n,page:t,rotation:i}=this._parseCurrentHash(),void this._pushOrReplaceState({hash:n,page:t,rotation:i},!0);this._isValidState(e)&&(this._popStateInProgress=!0,r&&(this._blockHashChange++,(0,a.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--})),n=e.destination,this._updateInternalState(n,e.uid,!0),(0,s.isValidRotation)(n.rotation)&&(this.linkService.rotation=n.rotation),n.dest?this.linkService.goToDestination(n.dest):n.hash?this.linkService.setHash(n.hash):n.page&&(this.linkService.page=n.page),Promise.resolve().then(()=>{this._popStateInProgress=!1}))}_pageHide(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var g=i(4),f=i(2),u=i(14),p=i(3),n=i(15),s=i(5),r=i(1),a=i(16),_=i(17),o=i(18),v=i(19),m=i(20);const l=n.compatibilityParams.maxCanvasPixels||16777216,h=()=>({annotationEditorUIManager:null,annotationStorage:null,downloadManager:null,enableScripting:!1,fieldObjectsPromise:null,findController:null,hasJSActionsPromise:null,get linkService(){return new r.SimpleLinkService}});t.PDFPageView=class{#annotationMode=g.AnnotationMode.ENABLE_FORMS;#layerProperties=null;#loadingId=null;#previousRotation=null;#renderingState=f.RenderingStates.INITIAL;#useThumbnailCanvas={initialOptionalContent:!0,regularAnnotations:!0};constructor(e){const t=e.container;var i=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.#layerProperties=e.layerProperties||h,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||f.DEFAULT_SCALE,this.viewport=i,this.pdfPageRotate=i.rotation,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=e.textLayerMode??f.TextLayerMode.ENABLE,this.#annotationMode=e.annotationMode??g.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=e.imageResourcesPath||"",this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.isOffscreenCanvasSupported=e.isOffscreenCanvasSupported??!0,this.maxCanvasPixels=e.maxCanvasPixels||l,this.pageColors=e.pageColors||null,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.renderer=e.renderer||f.RendererType.CANVAS,this.l10n=e.l10n||s.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.resume=null,this._renderError=null,this._isStandalone=!this.renderingQueue?.hasViewer(),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const n=document.createElement("div");if(n.className="page",n.setAttribute("data-page-number",this.id),n.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(e=>{n.setAttribute("aria-label",e)}),this.div=n,this.#setDimensions(),t?.append(n),this._isStandalone){t?.style.setProperty("--scale-factor",this.scale*g.PixelsPerInch.PDF_TO_CSS_UNITS);const r=e["optionalContentConfigPromise"];r&&r.then(e=>{r===this._optionalContentConfigPromise&&(this.#useThumbnailCanvas.initialOptionalContent=e.hasInitialVisibility)})}}get renderingState(){return this.#renderingState}set renderingState(e){if(e!==this.#renderingState)switch(this.#renderingState=e,this.#loadingId&&(clearTimeout(this.#loadingId),this.#loadingId=null),e){case f.RenderingStates.PAUSED:this.div.classList.remove("loading");break;case f.RenderingStates.RUNNING:this.div.classList.add("loadingIcon"),this.#loadingId=setTimeout(()=>{this.div.classList.add("loading"),this.#loadingId=null},0);break;case f.RenderingStates.INITIAL:case f.RenderingStates.FINISHED:this.div.classList.remove("loadingIcon","loading")}}#setDimensions(){var e=this["viewport"];if(this.pdfPage){if(this.#previousRotation===e.rotation)return;this.#previousRotation=e.rotation}(0,g.setLayerDimensions)(this.div,e,!0,!1)}setPdfPage(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*g.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:t}),this.#setDimensions(),this.reset()}destroy(){this.reset(),this.pdfPage?.cleanup()}get _textHighlighter(){return(0,g.shadow)(this,"_textHighlighter",new o.TextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus,findController:this.#layerProperties().findController}))}async#renderAnnotationLayer(){let t=null;try{await this.annotationLayer.render(this.viewport,"display")}catch(e){console.error(`#renderAnnotationLayer: "${e}".`),t=e}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:t})}}async#renderAnnotationEditorLayer(){let t=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(e){console.error(`#renderAnnotationEditorLayer: "${e}".`),t=e}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:t})}}async#renderXfaLayer(){let t=null;try{var e=await this.xfaLayer.render(this.viewport,"display");e?.textDivs&&this._textHighlighter&&this.#buildXfaTextContentItems(e.textDivs)}catch(e){console.error(`#renderXfaLayer: "${e}".`),t=e}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:t})}}async#renderTextLayer(){const{pdfPage:e,textLayer:i,viewport:n}=this;if(i){let t=null;try{var r;i.renderingDone||(r=e.streamTextContent({includeMarkedContent:!0}),i.setTextContentSource(r)),await i.render(n)}catch(e){if(e instanceof g.AbortException)return;console.error(`#renderTextLayer: "${e}".`),t=e}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.id,numTextDivs:i.numTextDivs,error:t}),this.#renderStructTreeLayer()}}async#renderStructTreeLayer(){var e;this.textLayer&&(this.structTreeLayer||=new a.StructTreeLayerBuilder,e=await(this.structTreeLayer.renderingDone?null:this.pdfPage.getStructTree()),(e=this.structTreeLayer?.render(e))&&this.canvas?.append(e),this.structTreeLayer?.show())}async#buildXfaTextContentItems(e){const t=[];for(const i of(await this.pdfPage.getTextContent()).items)t.push(i.str);this._textHighlighter.setTextMapping(e,t),this._textHighlighter.enable()}_resetZoomLayer(e=!1){if(this.zoomLayer){const t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}reset({keepZoomLayer:e=!1,keepAnnotationLayer:t=!1,keepAnnotationEditorLayer:i=!1,keepXfaLayer:n=!1,keepTextLayer:r=!1}={}){this.cancelRendering({keepAnnotationLayer:t,keepAnnotationEditorLayer:i,keepXfaLayer:n,keepTextLayer:r}),this.renderingState=f.RenderingStates.INITIAL;const s=this.div;var a=s.childNodes,o=e&&this.zoomLayer||null,l=t&&this.annotationLayer?.div||null,h=i&&this.annotationEditorLayer?.div||null,d=n&&this.xfaLayer?.div||null,c=r&&this.textLayer?.div||null;for(let e=a.length-1;0<=e;e--){const u=a[e];switch(u){case o:case l:case h:case d:case c:continue}u.remove()}s.removeAttribute("data-loaded"),l&&this.annotationLayer.hide(),h&&this.annotationEditorLayer.hide(),d&&this.xfaLayer.hide(),c&&this.textLayer.hide(),this.structTreeLayer?.hide(),o||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg)}update({scale:e=0,rotation:t=null,optionalContentConfigPromise:i=null,drawingDelay:n=-1}){this.scale=e||this.scale,"number"==typeof t&&(this.rotation=t),i instanceof Promise&&(this._optionalContentConfigPromise=i).then(e=>{i===this._optionalContentConfigPromise&&(this.#useThumbnailCanvas.initialOptionalContent=e.hasInitialVisibility)});e=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*g.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:e}),this.#setDimensions(),this._isStandalone&&this.div.parentNode?.style.setProperty("--scale-factor",this.viewport.scale),this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let r=!1;this.canvas&&0this.maxCanvasPixels&&(r=!0));e=this.useOnlyCssZoom||this.hasRestrictedScaling&&r,t=!e&&0<=n&&n<1e3;if(this.canvas){if(t||e)return t&&this.renderingState!==f.RenderingStates.FINISHED&&(this.cancelRendering({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:n}),this.renderingState=f.RenderingStates.FINISHED),this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!t,hideTextLayer:t}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});this.zoomLayer||this.canvas.hidden||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0})}cancelRendering({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:i=!1,keepTextLayer:n=!1,cancelExtraDelay:r=0}={}){this.paintTask&&(this.paintTask.cancel(r),this.paintTask=null),this.resume=null,!this.textLayer||n&&this.textLayer.div||(this.textLayer.cancel(),this.textLayer=null),this.structTreeLayer&&!this.textLayer&&(this.structTreeLayer=null),!this.annotationLayer||e&&this.annotationLayer.div||(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),!this.annotationEditorLayer||t&&this.annotationEditorLayer.div||(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),!this.xfaLayer||i&&this.xfaLayer.div||(this.xfaLayer.cancel(),this.xfaLayer=null,this._textHighlighter?.disable())}cssTransform({target:i,redrawAnnotationLayer:e=!1,redrawAnnotationEditorLayer:t=!1,redrawXfaLayer:n=!1,redrawTextLayer:r=!1,hideTextLayer:s=!1}){if(i instanceof HTMLCanvasElement){if(!i.hasAttribute("zooming")){i.setAttribute("zooming",!0);const h=i["style"];h.width=h.height=""}}else{const d=this.div;var{width:a,height:o}=this.viewport;i.style.width=i.parentNode.style.width=d.style.width=Math.floor(a)+"px",i.style.height=i.parentNode.style.height=d.style.height=Math.floor(o)+"px"}a=this.paintedViewportMap.get(i);if(this.viewport!==a){var l,o=this.viewport.rotation-a.rotation,a=Math.abs(o);let e=1,t=1;90!==a&&270!==a||({width:a,height:l}=this.viewport,e=l/a,t=a/l),i.style.transform=`rotate(${o}deg) scale(${e}, ${t})`}e&&this.annotationLayer&&this.#renderAnnotationLayer(),t&&this.annotationEditorLayer&&this.#renderAnnotationEditorLayer(),n&&this.xfaLayer&&this.#renderXfaLayer(),this.textLayer&&(s?(this.textLayer.hide(),this.structTreeLayer?.hide()):r&&this.#renderTextLayer())}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}draw(){this.renderingState!==f.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:t,pdfPage:i}=this;if(!i)return this.renderingState=f.RenderingStates.FINISHED,Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=f.RenderingStates.RUNNING;const e=document.createElement("div");var n,r,s;e.classList.add("canvasWrapper"),t.append(e),this.textLayer||this.textLayerMode===f.TextLayerMode.DISABLE||i.isPureXfa||(this._accessibilityManager||=new _.TextAccessibilityManager,this.textLayer=new v.TextLayerBuilder({highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported}),t.append(this.textLayer.div)),this.annotationLayer||this.#annotationMode===g.AnnotationMode.DISABLE||({annotationStorage:c,downloadManager:d,enableScripting:n,fieldObjectsPromise:r,hasJSActionsPromise:s,linkService:h}=this.#layerProperties(),this._annotationCanvasMap||=new Map,this.annotationLayer=new p.AnnotationLayerBuilder({pageDiv:t,pdfPage:i,annotationStorage:c,imageResourcesPath:this.imageResourcesPath,renderForms:this.#annotationMode===g.AnnotationMode.ENABLE_FORMS,linkService:h,downloadManager:d,l10n:this.l10n,enableScripting:n,hasJSActionsPromise:s,fieldObjectsPromise:r,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager}));let a=null;this.renderingQueue&&(a=e=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=f.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=f.RenderingStates.RUNNING,e()});e()});const o=async(e=null)=>{if(l===this.paintTask&&(this.paintTask=null),e instanceof g.RenderingCancelledException)this._renderError=null;else if(this._renderError=e,this.renderingState=f.RenderingStates.FINISHED,this._resetZoomLayer(!0),this.#useThumbnailCanvas.regularAnnotations=!l.separateAnnots,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now(),error:this._renderError}),e)throw e},l=this.renderer===f.RendererType.SVG?this.paintOnSvg(e):this.paintOnCanvas(e);l.onRenderContinue=a;var h,d,c=(this.paintTask=l).promise.then(()=>o(null).then(async()=>{if(this.#renderTextLayer(),this.annotationLayer&&await this.#renderAnnotationLayer(),!this.annotationEditorLayer){var e=this.#layerProperties()["annotationEditorUIManager"];if(!e)return;this.annotationEditorLayer=new u.AnnotationEditorLayerBuilder({uiManager:e,pageDiv:t,pdfPage:i,l10n:this.l10n,accessibilityManager:this._accessibilityManager})}this.#renderAnnotationEditorLayer()}),function(e){return o(e)});return i.isPureXfa&&(this.xfaLayer?this.xfaLayer.div&&t.append(this.xfaLayer.div):({annotationStorage:h,linkService:d}=this.#layerProperties(),this.xfaLayer=new m.XfaLayerBuilder({pageDiv:t,pdfPage:i,annotationStorage:h,linkService:d})),this.#renderXfaLayer()),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),c}paintOnCanvas(e){const t=(0,g.createPromiseCapability)(),i={promise:t.promise,onRenderContinue(e){e()},cancel(e=0){p.cancel(e)},get separateAnnots(){return p.separateAnnots}},n=this.viewport;var{width:r,height:s}=n;const a=document.createElement("canvas");a.setAttribute("role","presentation");let o=a.hidden=!0;function l(e){!o||h&&!e||(a.hidden=!1,o=!1)}const h=!(!this.pageColors?.background||!this.pageColors?.foreground);e.append(a);e=(this.canvas=a).getContext("2d",{alpha:!1});const d=this.outputScale=new f.OutputScale;this.useOnlyCssZoom&&(u=n.clone({scale:g.PixelsPerInch.PDF_TO_CSS_UNITS}),d.sx*=u.width/r,d.sy*=u.height/s),0u||d.sy>u?(d.sx=u,d.sy=u,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1);r=(0,f.approximateFraction)(d.sx),s=(0,f.approximateFraction)(d.sy);a.width=(0,f.roundToDivide)(n.width*d.sx,r[0]),a.height=(0,f.roundToDivide)(n.height*d.sy,s[0]);const c=a["style"];c.width=(0,f.roundToDivide)(n.width,r[1])+"px",c.height=(0,f.roundToDivide)(n.height,s[1])+"px",this.paintedViewportMap.set(a,n);var u={canvasContext:e,transform:d.scaled?[d.sx,0,0,d.sy,0,0]:null,viewport:n,annotationMode:this.#annotationMode,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors};const p=this.pdfPage.render(u);return p.onContinue=function(e){l(!1),i.onRenderContinue?i.onRenderContinue(e):e()},p.promise.then(function(){l(!0),t.resolve()},function(e){e instanceof g.RenderingCancelledException||l(!0),t.reject(e)}),i}paintOnSvg(i){let e=!1;const n=()=>{if(e)throw new g.RenderingCancelledException("Rendering cancelled, page "+this.id,"svg")},r=this.pdfPage,s=this.viewport.clone({scale:g.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:r.getOperatorList({annotationMode:this.#annotationMode}).then(e=>{n();const t=new g.SVGGraphics(r.commonObjs,r.objs);return t.getSVG(e,s).then(e=>{n(),this.svg=e,this.paintedViewportMap.set(e,s),e.style.width=i.style.width,e.style.height=i.style.height,this.renderingState=f.RenderingStates.FINISHED,i.append(e)})}),onRenderContinue(e){e()},cancel(){e=!0},get separateAnnots(){return!1}}}setPageLabel(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){var{initialOptionalContent:e,regularAnnotations:t}=this.#useThumbnailCanvas;return e&&t?this.canvas:null}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayerBuilder=void 0;var n=i(4),r=i(5);t.AnnotationEditorLayerBuilder=class{#uiManager;constructor(e){this.pageDiv=e.pageDiv,this.pdfPage=e.pdfPage,this.accessibilityManager=e.accessibilityManager,this.l10n=e.l10n||r.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#uiManager=e.uiManager}async render(e,t="display"){if("display"===t&&!this._cancelled){e=e.clone({dontFlip:!0});if(this.div)return this.annotationEditorLayer.update({viewport:e}),void this.show();const i=this.div=document.createElement("div");i.className="annotationEditorLayer",i.tabIndex=0,i.hidden=!0,this.pageDiv.append(i),this.annotationEditorLayer=new n.AnnotationEditorLayer({uiManager:this.#uiManager,div:i,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage.pageNumber-1,l10n:this.l10n,viewport:e});e={viewport:e,div:i,annotations:null,intent:t};this.annotationEditorLayer.render(e),this.show()}}cancel(){this._cancelled=!0,this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}hide(){this.div&&(this.div.hidden=!0)}show(){this.div&&!this.annotationEditorLayer.isEmpty&&(this.div.hidden=!1)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.compatibilityParams=t.OptionKind=t.AppOptions=void 0;const a=Object.create(null);t.compatibilityParams=a;{var i=navigator.userAgent||"",n=navigator.platform||"",r=navigator.maxTouchPoints||1;const d=/Android/.test(i),c=/\b(iPad|iPhone|iPod)(?=;)/.test(i)||"MacIntel"===n&&1{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeLayerBuilder=void 0;const s={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},a=/^H(\d+)$/;t.StructTreeLayerBuilder=class{#treeDom=void 0;get renderingDone(){return void 0!==this.#treeDom}render(e){if(void 0!==this.#treeDom)return this.#treeDom;const t=this.#walk(e);return t?.classList.add("structTree"),this.#treeDom=t}hide(){this.#treeDom&&!this.#treeDom.hidden&&(this.#treeDom.hidden=!0)}show(){this.#treeDom?.hidden&&(this.#treeDom.hidden=!1)}#setAttributes(e,t){void 0!==e.alt&&t.setAttribute("aria-label",e.alt),void 0!==e.id&&t.setAttribute("aria-owns",e.id),void 0!==e.lang&&t.setAttribute("lang",e.lang)}#walk(e){if(!e)return null;const t=document.createElement("span");if("role"in e){const n=e["role"];var i=n.match(a);i?(t.setAttribute("role","heading"),t.setAttribute("aria-level",i[1])):s[n]&&t.setAttribute("role",s[n])}if(this.#setAttributes(e,t),e.children)if(1===e.children.length&&"id"in e.children[0])this.#setAttributes(e.children[0],t);else for(const r of e.children)t.append(this.#walk(r));return t}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextAccessibilityManager=void 0;var a=i(2);class o{#enabled=!1;#textChildren=null;#textNodes=new Map;#waitingElements=new Map;setTextMapping(e){this.#textChildren=e}static#compareElementPositions(e,t){e=e.getBoundingClientRect(),t=t.getBoundingClientRect();if(0===e.width&&0===e.height)return 1;if(0===t.width&&0===t.height)return-1;var i=e.y,n=e.y+e.height,r=e.y+e.height/2,s=t.y,a=t.y+t.height,o=t.y+t.height/2;return r<=s&&n<=o?-1:o<=i&&a<=r?1:e.x+e.width/2-(t.x+t.width/2)}enable(){if(this.#enabled)throw new Error("TextAccessibilityManager is already enabled.");if(!this.#textChildren)throw new Error("Text divs and strings have not been set.");if(this.#enabled=!0,this.#textChildren=this.#textChildren.slice(),this.#textChildren.sort(o.#compareElementPositions),0e!==n).join(" "))?r.setAttribute("aria-owns",e):(r.removeAttribute("aria-owns"),r.setAttribute("role","presentation")))}}}else this.#waitingElements.delete(e)}#addIdToAriaOwns(e,t){const i=t.getAttribute("aria-owns");i?.includes(e)||t.setAttribute("aria-owns",i?i+" "+e:e),t.removeAttribute("role")}addPointerInTextLayer(t,e){var i,n,r=t["id"];r&&(this.#enabled?(e&&this.removePointerInTextLayer(t),(i=this.#textChildren)&&0!==i.length&&(n=(0,a.binarySearchFirstItem)(i,e=>o.#compareElementPositions(t,e)<0),n=Math.max(0,n-1),this.#addIdToAriaOwns(r,i[n]),this.#textNodes.set(r,n))):this.#waitingElements.set(t,e))}moveElementInDOM(e,t,i,n){if(this.addPointerInTextLayer(i,n),e.hasChildNodes()){const r=Array.from(e.childNodes).filter(e=>e!==t);if(0!==r.length){const s=i||t;n=(0,a.binarySearchFirstItem)(r,e=>o.#compareElementPositions(s,e)<0);0===n?r[0].before(t):r[n-1].after(t)}}else e.append(t)}}t.TextAccessibilityManager=o},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextHighlighter=void 0;t.TextHighlighter=class{constructor({findController:e,eventBus:t,pageIndex:i}){this.findController=e,this.matches=[],this.eventBus=t,this.pageIdx=i,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(e,t){this.textDivs=e,this.textContentItemsStr=t}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=e=>{e.pageIndex!==this.pageIdx&&-1!==e.pageIndex||this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null),this._updateMatches(!0))}_convertMatches(i,n){if(!i)return[];var r=this["textContentItemsStr"];let s=0,a=0;var o=r.length-1;const l=[];for(let t=0,e=i.length;t=a+r[s].length;)a+=r[s].length,s++;s===r.length&&console.error("Could not find a matching mapping");const h={begin:{divIdx:s,offset:e-a}};for(e+=n[t];s!==o&&e>a+r[s].length;)a+=r[s].length,s++;h.end={divIdx:s,offset:e-a},l.push(h)}return l}_renderMatches(r){if(0!==r.length){const{findController:g,pageIdx:f}=this,{textContentItemsStr:_,textDivs:v}=this;var s=f===g.selected.pageIdx,a=g.selected.matchIdx,t=g.state.highlightAll;let i=null;var o={divIdx:-1,offset:void 0};let e=a,n=e+1;if(t)e=0,n=r.length;else if(!s)return;for(let t=e;t{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerBuilder=void 0;var s=i(4);t.TextLayerBuilder=class{#rotation=0;#scale=0;#textContentSource=null;constructor({highlighter:e=null,accessibilityManager:t=null,isOffscreenCanvasSupported:i=!0}){this.textContentItemsStr=[],this.renderingDone=!1,this.textDivs=[],this.textDivProperties=new WeakMap,this.textLayerRenderTask=null,this.highlighter=e,this.accessibilityManager=t,this.isOffscreenCanvasSupported=i,this.div=document.createElement("div"),this.div.className="textLayer",this.hide()}#finishRendering(){this.renderingDone=!0;const e=document.createElement("div");e.className="endOfContent",this.div.append(e),this.#bindMouse()}get numTextDivs(){return this.textDivs.length}async render(e){if(!this.#textContentSource)throw new Error('No "textContentSource" parameter specified.');var t,i,n=e.scale*(globalThis.devicePixelRatio||1),r=e["rotation"];if(this.renderingDone)return t=r!==this.#rotation,i=n!==this.#scale,(t||i)&&(this.hide(),(0,s.updateTextLayer)({container:this.div,viewport:e,textDivs:this.textDivs,textDivProperties:this.textDivProperties,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,mustRescale:i,mustRotate:t}),this.#scale=n,this.#rotation=r),void this.show();this.cancel(),this.highlighter?.setTextMapping(this.textDivs,this.textContentItemsStr),this.accessibilityManager?.setTextMapping(this.textDivs),this.textLayerRenderTask=(0,s.renderTextLayer)({textContentSource:this.#textContentSource,container:this.div,viewport:e,textDivs:this.textDivs,textDivProperties:this.textDivProperties,textContentItemsStr:this.textContentItemsStr,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported}),await this.textLayerRenderTask.promise,this.#finishRendering(),this.#scale=n,this.#rotation=r,this.show(),this.accessibilityManager?.enable()}hide(){this.div.hidden||(this.highlighter?.disable(),this.div.hidden=!0)}show(){this.div.hidden&&this.renderingDone&&(this.div.hidden=!1,this.highlighter?.enable())}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.highlighter?.disable(),this.accessibilityManager?.disable(),this.textContentItemsStr.length=0,this.textDivs.length=0,this.textDivProperties=new WeakMap}setTextContentSource(e){this.cancel(),this.#textContentSource=e}#bindMouse(){const n=this["div"];n.addEventListener("mousedown",e=>{const t=n.querySelector(".endOfContent");var i;t&&(i=e.target!==n,(i&&="none"!==getComputedStyle(t).getPropertyValue("-moz-user-select"))&&(i=n.getBoundingClientRect(),e=Math.max(0,(e.pageY-i.top)/i.height),t.style.top=(100*e).toFixed(2)+"%"),t.classList.add("active"))}),n.addEventListener("mouseup",()=>{const e=n.querySelector(".endOfContent");e&&(e.style.top="",e.classList.remove("active"))})}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayerBuilder=void 0;var r=i(4);t.XfaLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,annotationStorage:i=null,linkService:n,xfaHtml:r=null}){this.pageDiv=e,this.pdfPage=t,this.annotationStorage=i,this.linkService=n,this.xfaHtml=r,this.div=null,this._cancelled=!1}async render(e,t="display"){if("print"===t){const n={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t};var i=document.createElement("div");return this.pageDiv.append(i),n.div=i,r.XfaLayer.render(n)}i=await this.pdfPage.getXfa();if(this._cancelled||!i)return{textDivs:[]};const n={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:i,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t};return this.div?r.XfaLayer.update(n):(this.div=document.createElement("div"),this.pageDiv.append(this.div),n.div=this.div,r.XfaLayer.render(n))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFScriptingManager=void 0;var h=i(2),s=i(4);t.PDFScriptingManager=class{constructor({eventBus:e,sandboxBundleSrc:t=null,scriptingFactory:i=null,docPropertiesLookup:n=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._ready=!1,this._eventBus=e,this._sandboxBundleSrc=t,this._scriptingFactory=i,this._docPropertiesLookup=n,this._scriptingFactory||window.addEventListener("updatefromsandbox",e=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:e.detail})})}setViewer(e){this._pdfViewer=e}async setDocument(e){if(this._pdfDocument&&await this._destroyScripting(),this._pdfDocument=e){var[t,i,n]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(t||n){if(e===this._pdfDocument){try{this._scripting=this._createScripting()}catch(e){return console.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}this._internalEvents.set("updatefromsandbox",e=>{e?.source===window&&this._updateFromSandbox(e.detail)}),this._internalEvents.set("dispatcheventinsandbox",e=>{this._scripting?.dispatchEventInSandbox(e.detail)}),this._internalEvents.set("pagechanging",({pageNumber:e,previous:t})=>{e!==t&&(this._dispatchPageClose(t),this._dispatchPageOpen(e))}),this._internalEvents.set("pagerendered",({pageNumber:e})=>{this._pageOpenPending.has(e)&&e===this._pdfViewer.currentPageNumber&&this._dispatchPageOpen(e)}),this._internalEvents.set("pagesdestroy",async e=>{await this._dispatchPageClose(this._pdfViewer.currentPageNumber),await this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillClose"}),this._closeCapability?.resolve()});for(var[r,s]of this._internalEvents)this._eventBus._on(r,s);try{var a=await this._getDocProperties();if(e!==this._pdfDocument)return;await this._scripting.createSandbox({objects:t,calculationOrder:i,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...a,actions:n}}),this._eventBus.dispatch("sandboxcreated",{source:this})}catch(e){return console.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}await this._scripting?.dispatchEventInSandbox({id:"doc",name:"Open"}),await this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{e===this._pdfDocument&&(this._ready=!0)})}}else await this._destroyScripting()}}async dispatchWillSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}async dispatchDidPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get destroyPromise(){return this._destroyCapability?.promise||null}get ready(){return this._ready}get _internalEvents(){return(0,s.shadow)(this,"_internalEvents",new Map)}get _pageOpenPending(){return(0,s.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,s.shadow)(this,"_visitedPages",new Map)}async _updateFromSandbox(e){var t=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,{id:i,siblings:n,command:r,value:s}=e;if(i){if(!t||!e.focus){delete e.id,delete e.siblings;for(const o of n?[i,...n]:[i]){const l=document.querySelector(`[data-element-id="${o}"]`);l?l.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e})):this._pdfDocument?.annotationStorage.setValue(o,e)}}}else switch(r){case"clear":console.clear();break;case"error":console.error(s);break;case"layout":if(t)return;var a=(0,h.apiPageLayoutToViewerModes)(s);this._pdfViewer.spreadMode=a.spreadMode;break;case"page-num":this._pdfViewer.currentPageNumber=s+1;break;case"print":await this._pdfViewer.pagesPromise,this._eventBus.dispatch("print",{source:this});break;case"println":console.log(s);break;case"zoom":if(t)return;this._pdfViewer.currentScaleValue=s;break;case"SaveAs":this._eventBus.dispatch("download",{source:this});break;case"FirstPage":this._pdfViewer.currentPageNumber=1;break;case"LastPage":this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount;break;case"NextPage":this._pdfViewer.nextPage();break;case"PrevPage":this._pdfViewer.previousPage();break;case"ZoomViewIn":if(t)return;this._pdfViewer.increaseScale();break;case"ZoomViewOut":if(t)return;this._pdfViewer.decreaseScale()}}async _dispatchPageOpen(t,e=!1){const i=this._pdfDocument,n=this._visitedPages;if(e&&(this._closeCapability=(0,s.createPromiseCapability)()),this._closeCapability){const r=this._pdfViewer.getPageView(t-1);r?.renderingState!==h.RenderingStates.FINISHED?this._pageOpenPending.add(t):(this._pageOpenPending.delete(t),e=(async()=>{var e=await(n.has(t)?null:r.pdfPage?.getJSActions());i===this._pdfDocument&&await this._scripting?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:t,actions:e})})(),n.set(t,e))}}async _dispatchPageClose(e){const t=this._pdfDocument,i=this._visitedPages;var n;this._closeCapability&&!this._pageOpenPending.has(e)&&(n=i.get(e))&&(i.set(e,null),await n,t===this._pdfDocument&&await this._scripting?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:e}))}async _getDocProperties(){if(this._docPropertiesLookup)return this._docPropertiesLookup(this._pdfDocument);const e=i(22)["docPropertiesLookup"];return e(this._pdfDocument)}_createScripting(){if(this._destroyCapability=(0,s.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const e=i(22)["GenericScripting"];return new e(this._sandboxBundleSrc)}async _destroyScripting(){if(!this._scripting)return this._pdfDocument=null,void this._destroyCapability?.resolve();this._closeCapability&&(await Promise.race([this._closeCapability.promise,new Promise(e=>{setTimeout(e,1e3)})]).catch(e=>{}),this._closeCapability=null),this._pdfDocument=null;try{await this._scripting.destroySandbox()}catch(e){}for(var[e,t]of this._internalEvents)this._eventBus._off(e,t);this._internalEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,this._ready=!1,this._destroyCapability?.resolve()}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericScripting=void 0,t.docPropertiesLookup=async function(e){var t="".split("#")[0];let{info:i,metadata:n,contentDispositionFilename:r,contentLength:s}=await e.getMetadata();{var a;s||(a=(await e.getDownloadInfo())["length"],s=a)}return{...i,baseURL:t,filesize:s,filename:r||(0,o.getPdfFilenameFromUrl)(""),metadata:n?.getRaw(),authors:n?.get("dc:creator"),numPages:e.numPages,URL:""}};var o=i(4);t.GenericScripting=class{constructor(e){this._ready=(0,o.loadScript)(e,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}async createSandbox(e){const t=await this._ready;t.create(e)}async dispatchEventInSandbox(e){const t=await this._ready;setTimeout(()=>t.dispatchEvent(e),0)}async destroySandbox(){const e=await this._ready;e.nukeSandbox()}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0;var n=i(2);class r extends i(24).PDFViewer{_resetView(){super._resetView(),this._scrollMode=n.ScrollMode.PAGE,this._spreadMode=n.SpreadMode.NONE}set scrollMode(e){}_updateScrollMode(){}set spreadMode(e){}_updateSpreadMode(){}}t.PDFSinglePageViewer=r},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PagesCountLimit=t.PDFViewer=t.PDFPageViewBuffer=void 0;var f=i(4),y=i(2),n=i(5),p=i(13),r=i(25),s=i(1);const a="enablePermissions",g={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};function _(e){return Object.values(f.AnnotationEditorType).includes(e)&&e!==f.AnnotationEditorType.DISABLE}t.PagesCountLimit=g;class o{#buf=new Set;#size=0;constructor(e){this.#size=e}push(e){const t=this.#buf;t.has(e)&&t.delete(e),t.add(e),t.size>this.#size&&this.#destroyFirstView()}resize(e,t=null){this.#size=e;const i=this.#buf;if(t){var n=i.size;let e=1;for(const r of i)if(t.has(r.id)&&(i.delete(r),i.add(r)),++e>n)break}for(;i.size>this.#size;)this.#destroyFirstView()}has(e){return this.#buf.has(e)}[Symbol.iterator](){return this.#buf.keys()}#destroyFirstView(){const e=this.#buf.keys().next().value;e?.destroy(),this.#buf.delete(e)}}t.PDFPageViewBuffer=o;t.PDFViewer=class{#buffer=null;#annotationEditorMode=f.AnnotationEditorType.NONE;#annotationEditorUIManager=null;#annotationMode=f.AnnotationMode.ENABLE_FORMS;#containerTopLeft=null;#enablePermissions=!1;#previousContainerHeight=0;#resizeObserver=new ResizeObserver(this.#resizeObserverCallback.bind(this));#scrollModePageState=null;#onVisibilityChange=null;#scaleTimeoutId=null;constructor(e){var t="3.5.141";if(f.version!==t)throw new Error(`The API version "${f.version}" does not match the Viewer version "${t}".`);if(this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,"DIV"!==this.container?.tagName||"DIV"!==this.viewer?.tagName)throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.#resizeObserver.observe(this.container),this.eventBus=e.eventBus,this.linkService=e.linkService||new s.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this._scriptingManager=e.scriptingManager||null,this.textLayerMode=e.textLayerMode??y.TextLayerMode.ENABLE,this.#annotationMode=e.annotationMode??f.AnnotationMode.ENABLE_FORMS,this.#annotationEditorMode=e.annotationEditorMode??f.AnnotationEditorType.NONE,this.imageResourcesPath=e.imageResourcesPath||"",this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.removePageBorders=e.removePageBorders||!1,this.renderer=e.renderer||y.RendererType.CANVAS,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.isOffscreenCanvasSupported=e.isOffscreenCanvasSupported??!0,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||n.NullL10n,this.#enablePermissions=e.enablePermissions||!1,this.pageColors=e.pageColors||null,!this.pageColors||CSS.supports("color",this.pageColors.background)&&CSS.supports("color",this.pageColors.foreground)||((this.pageColors.background||this.pageColors.foreground)&&console.warn("PDFViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new r.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,y.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=y.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.#updateContainerHeightCss()}get pagesCount(){return this._pages.length}getPageView(e){return this._pages[e]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(e){return e?.pdfPage})}get renderForms(){return this.#annotationMode===f.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&!this._setCurrentPageNumber(e,!0)&&console.error(`currentPageNumber: "${e}" is not a valid page.`)}_setCurrentPageNumber(e,t=!1){if(this._currentPageNumber===e)return t&&this.#resetCurrentPageView(),!0;if(!(0{this.#onVisibilityChange=()=>{"hidden"===document.visibilityState&&(e(),document.removeEventListener("visibilitychange",this.#onVisibilityChange),this.#onVisibilityChange=null)},document.addEventListener("visibilitychange",this.#onVisibilityChange)});return Promise.race([this._onePageRenderedCapability.promise,e])}setDocument(d){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController?.setDocument(null),this._scriptingManager?.setDocument(null),this.#annotationEditorUIManager&&(this.#annotationEditorUIManager.destroy(),this.#annotationEditorUIManager=null)),this.pdfDocument=d){const c=d.numPages;var e=d.getPage(1);const u=d.getOptionalContentConfig();var t,i=this.#enablePermissions?d.getPermissions():Promise.resolve();c>g.FORCE_SCROLL_MODE_PAGE&&(console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document."),t=this._scrollMode=y.ScrollMode.PAGE,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:t})),this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:c})},()=>{}),this._onBeforeDraw=e=>{e=this._pages[e.pageNumber-1];e&&this.#buffer.push(e)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=e=>{e.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:e.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,this.#onVisibilityChange&&(document.removeEventListener("visibilitychange",this.#onVisibilityChange),this.#onVisibilityChange=null))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([e,i]).then(([e,t])=>{if(d===this.pdfDocument){this._firstPageCapability.resolve(e),this._optionalContentConfigPromise=u;var{annotationEditorMode:t,annotationMode:i,textLayerMode:n}=this.#initializePermissions(t),r=(t!==f.AnnotationEditorType.DISABLE&&(t=t,d.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):_(t)?(this.#annotationEditorUIManager=new f.AnnotationEditorUIManager(this.container,this.eventBus,d?.annotationStorage),t!==f.AnnotationEditorType.NONE&&this.#annotationEditorUIManager.updateMode(t)):console.error("Invalid AnnotationEditor mode: "+t)),this.#layerProperties.bind(this)),s=this._scrollMode===y.ScrollMode.PAGE?null:this.viewer,a=this.currentScale;const l=e.getViewport({scale:a*f.PixelsPerInch.PDF_TO_CSS_UNITS});this.viewer.style.setProperty("--scale-factor",l.scale);for(let e=1;e<=c;++e){var o=new p.PDFPageView({container:s,eventBus:this.eventBus,id:e,scale:a,defaultViewport:l.clone(),optionalContentConfigPromise:u,renderingQueue:this.renderingQueue,textLayerMode:n,annotationMode:i,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n,layerProperties:r});this._pages.push(o)}const h=this._pages[0];h&&(h.setPdfPage(e),this.linkService.cachePageRef(1,e.ref)),this._scrollMode===y.ScrollMode.PAGE?this.#ensurePageViewVisible():this._spreadMode!==y.SpreadMode.NONE&&this._updateSpreadMode(),this.#onePageRenderedOrForceFetch().then(async()=>{if(this.findController?.setDocument(d),this._scriptingManager?.setDocument(d),this.#annotationEditorUIManager&&this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:this.#annotationEditorMode}),d.loadingParams.disableAutoFetch||c>g.FORCE_LAZY_PAGE_INIT)this._pagesCapability.resolve();else{let n=c-1;if(n<=0)this._pagesCapability.resolve();else for(let i=2;i<=c;++i){var e=d.getPage(i).then(e=>{const t=this._pages[i-1];t.pdfPage||t.setPdfPage(e),this.linkService.cachePageRef(i,e.ref),0==--n&&this._pagesCapability.resolve()},e=>{console.error(`Unable to get page ${i} to initialize viewer`,e),0==--n&&this._pagesCapability.resolve()});i%g.PAUSE_EAGER_PAGE_INIT==0&&await e}}}),this.eventBus.dispatch("pagesinit",{source:this}),d.getMetadata().then(({info:e})=>{d===this.pdfDocument&&e.Language&&(this.viewer.lang=e.Language)}),this.defaultRenderingQueue&&this.update()}}).catch(e=>{console.error("Unable to initialize viewer",e),this._pagesCapability.reject(e)})}}setPageLabels(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let e=0,t=this._pages.length;e=t.previousPageNumber,t.previousPageNumber=e}_scrollUpdate(){0!==this.pagesCount&&this.update()}#scrollIntoView(e,t=null){var i,n,r,{div:e,id:s}=e;this._currentPageNumber!==s&&this._setCurrentPageNumber(s),this._scrollMode===y.ScrollMode.PAGE&&(this.#ensurePageViewVisible(),this.update()),t||this.isInPresentationMode||(i=(s=e.offsetLeft+e.clientLeft)+e.clientWidth,{scrollLeft:n,clientWidth:r}=this.container,(this._scrollMode===y.ScrollMode.HORIZONTAL||s{this.#scaleTimeoutId=null,this.refresh()},r)),this._currentScale=e,!i){let e=this._currentPageNumber,t;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(e=this._location.pageNumber,t=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:e,destArray:t,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:n?t:void 0}),this.defaultRenderingQueue&&this.update()}}get#pageWidthScaleFactor(){return this._spreadMode!==y.SpreadMode.NONE&&this._scrollMode!==y.ScrollMode.HORIZONTAL?2:1}#setScale(i,n){let r=parseFloat(i);if(0this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){var e=this._scrollMode===y.ScrollMode.PAGE?this.#scrollModePageState.pages:this._pages,t=this._scrollMode===y.ScrollMode.HORIZONTAL,i=t&&this._isContainerRtl;return(0,y.getVisibleElements)({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:i})}isPageVisible(e){return!!this.pdfDocument&&(Number.isInteger(e)&&0{this.renderingQueue.renderView(n)}),!0)}get hasEqualPageSizes(){var i=this._pages[0];for(let e=1,t=this._pages.length;e{e=e.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,y.isPortraitOrientation)(e)?{width:e.width,height:e.height,rotation:e.rotation}:{width:e.height,height:e.width,rotation:(e.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise||(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(e){if(!(e instanceof Promise))throw new Error("Invalid optionalContentConfigPromise: "+e);this.pdfDocument&&this._optionalContentConfigPromise&&(this._optionalContentConfigPromise=e,this.refresh(!1,{optionalContentConfigPromise:e}),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e}))}get scrollMode(){return this._scrollMode}set scrollMode(e){if(this._scrollMode!==e){if(!(0,y.isValidScrollMode)(e))throw new Error("Invalid scroll mode: "+e);this.pagesCount>g.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(e=null){const t=this._scrollMode,i=this.viewer;i.classList.toggle("scrollHorizontal",t===y.ScrollMode.HORIZONTAL),i.classList.toggle("scrollWrapped",t===y.ScrollMode.WRAPPED),this.pdfDocument&&e&&(t===y.ScrollMode.PAGE?this.#ensurePageViewVisible():this._previousScrollMode===y.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#setScale(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(e,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(e){if(this._spreadMode!==e){if(!(0,y.isValidSpreadMode)(e))throw new Error("Invalid spread mode: "+e);this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(e=null){if(this.pdfDocument){const r=this.viewer,s=this._pages;if(this._scrollMode===y.ScrollMode.PAGE)this.#ensurePageViewVisible();else if(r.textContent="",this._spreadMode===y.SpreadMode.NONE)for(const t of this._pages)r.append(t.div);else{var n=this._spreadMode-1;let i=null;for(let e=0,t=s.length;ey.MIN_SCALE;);this.#setScale(Math.max(y.MIN_SCALE,e),{noScroll:!1,drawingDelay:t})}}#updateContainerHeightCss(e=this.container.clientHeight){e!==this.#previousContainerHeight&&(this.#previousContainerHeight=e,y.docStyle.setProperty("--viewer-container-height",e+"px"))}#resizeObserverCallback(e){for(const t of e)if(t.target===this.container){this.#updateContainerHeightCss(Math.floor(t.borderBoxSize[0].blockSize)),this.#containerTopLeft=null;break}}get containerTopLeft(){return this.#containerTopLeft||=[this.container.offsetTop,this.container.offsetLeft]}get annotationEditorMode(){return this.#annotationEditorUIManager?this.#annotationEditorMode:f.AnnotationEditorType.DISABLE}set annotationEditorMode(e){if(!this.#annotationEditorUIManager)throw new Error("The AnnotationEditor is not enabled.");if(this.#annotationEditorMode!==e){if(!_(e))throw new Error("Invalid AnnotationEditor mode: "+e);this.pdfDocument&&(this.#annotationEditorMode=e,this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:e}),this.#annotationEditorUIManager.updateMode(e))}}set annotationEditorParams({type:e,value:t}){if(!this.#annotationEditorUIManager)throw new Error("The AnnotationEditor is not enabled.");this.#annotationEditorUIManager.updateParams(e,t)}refresh(e=!1,t=Object.create(null)){if(this.pdfDocument){for(const i of this._pages)i.update(t);null!==this.#scaleTimeoutId&&(clearTimeout(this.#scaleTimeoutId),this.#scaleTimeoutId=null),e||this.update()}}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=void 0;var n=i(4),r=i(2);t.PDFRenderingQueue=class{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(e){this.pdfViewer=e}setThumbnailViewer(e){this.pdfThumbnailViewer=e}isHighestPriority(e){return this.highestPriorityPage===e.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.isThumbnailViewEnabled&&this.pdfThumbnailViewer?.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}getHighestPriority(e,i,n,t=!1){var r=e.views,s=r.length;if(0===s)return null;for(let e=0;e{this.renderHighestPriority()}).catch(e=>{e instanceof n.RenderingCancelledException||console.error(`renderView: "${e}"`)})}return!0}}}],n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;t=n[e]={exports:{}};return i[e](t,t.exports,r),t.exports}var e={},t=e,s=(Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return o.AnnotationLayerBuilder}}),t.DefaultXfaLayerFactory=t.DefaultTextLayerFactory=t.DefaultStructTreeLayerFactory=t.DefaultAnnotationLayerFactory=void 0,Object.defineProperty(t,"DownloadManager",{enumerable:!0,get:function(){return l.DownloadManager}}),Object.defineProperty(t,"EventBus",{enumerable:!0,get:function(){return h.EventBus}}),Object.defineProperty(t,"GenericL10n",{enumerable:!0,get:function(){return d.GenericL10n}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return s.LinkTarget}}),Object.defineProperty(t,"NullL10n",{enumerable:!0,get:function(){return c.NullL10n}}),Object.defineProperty(t,"PDFFindController",{enumerable:!0,get:function(){return u.PDFFindController}}),Object.defineProperty(t,"PDFHistory",{enumerable:!0,get:function(){return p.PDFHistory}}),Object.defineProperty(t,"PDFLinkService",{enumerable:!0,get:function(){return s.PDFLinkService}}),Object.defineProperty(t,"PDFPageView",{enumerable:!0,get:function(){return g.PDFPageView}}),Object.defineProperty(t,"PDFScriptingManager",{enumerable:!0,get:function(){return f.PDFScriptingManager}}),Object.defineProperty(t,"PDFSinglePageViewer",{enumerable:!0,get:function(){return _.PDFSinglePageViewer}}),Object.defineProperty(t,"PDFViewer",{enumerable:!0,get:function(){return v.PDFViewer}}),Object.defineProperty(t,"ProgressBar",{enumerable:!0,get:function(){return a.ProgressBar}}),Object.defineProperty(t,"RenderingStates",{enumerable:!0,get:function(){return a.RenderingStates}}),Object.defineProperty(t,"ScrollMode",{enumerable:!0,get:function(){return a.ScrollMode}}),Object.defineProperty(t,"SimpleLinkService",{enumerable:!0,get:function(){return s.SimpleLinkService}}),Object.defineProperty(t,"SpreadMode",{enumerable:!0,get:function(){return a.SpreadMode}}),Object.defineProperty(t,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return m.StructTreeLayerBuilder}}),Object.defineProperty(t,"TextLayerBuilder",{enumerable:!0,get:function(){return P.TextLayerBuilder}}),Object.defineProperty(t,"XfaLayerBuilder",{enumerable:!0,get:function(){return y.XfaLayerBuilder}}),Object.defineProperty(t,"parseQueryString",{enumerable:!0,get:function(){return a.parseQueryString}}),r(1)),a=r(2),o=r(3),l=r(6),h=r(7),d=r(8),c=r(5),u=r(10),p=r(12),g=r(13),f=r(21),_=r(23),v=r(24),m=r(16),P=r(19),y=r(20);return t.DefaultAnnotationLayerFactory=class{constructor(){throw new Error("The `DefaultAnnotationLayerFactory` has been removed, please use the `annotationMode` option when initializing the `PDFPageView`-instance to control AnnotationLayer rendering.")}},t.DefaultStructTreeLayerFactory=class{constructor(){throw new Error("The `DefaultStructTreeLayerFactory` has been removed, this functionality is automatically enabled when the TextLayer is used.")}},t.DefaultTextLayerFactory=class{constructor(){throw new Error("The `DefaultTextLayerFactory` has been removed, please use the `textLayerMode` option when initializing the `PDFPageView`-instance to control TextLayer rendering.")}},t.DefaultXfaLayerFactory=class{constructor(){throw new Error("The `DefaultXfaLayerFactory` has been removed, please use the `enableXfa` option when calling the `getDocument`-function to control XfaLayer rendering.")}},e})()); \ No newline at end of file diff --git a/web-v2-res/static/js/pptxgen.min.js b/web-v2-res/static/js/pptxgen.min.js deleted file mode 100644 index 1890f53..0000000 --- a/web-v2-res/static/js/pptxgen.min.js +++ /dev/null @@ -1,3 +0,0 @@ -/* PptxGenJS 3.12.0 @ 2023-03-20T03:12:27.629Z */ -var PptxGenJS=function(){"use strict";function T(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var D=T(JSZip),y=function(){return(y=Object.assign||function(e){for(var t,a=1,A=arguments.length;al[0]&&t[1]/g,">").replace(/"/g,""").replace(/'/g,"'")}function M(e){return"number"==typeof e&&100").concat(t,""):"")}function U(e){var t="solid",a="",A="",o="";return e&&("string"==typeof e?a=e:(e.type&&(t=e.type),e.color&&(a=e.color),e.alpha&&(A+='')),e.transparency&&(A+=''))),o+="solid"===t?"".concat(z(a,A),""):""),o}function g(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function be(e){if(e&&"object"==typeof e)return"outer"!==e.type&&"inner"!==e.type&&"none"!==e.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),e.type="outer"),e.angle&&((isNaN(Number(e.angle))||e.angle<0||359 ".concat(JSON.stringify(i))),l.push(i),i=[]),0n&&(r.push(t),t=[],a=""),t.push(e),a+=e.text.toString()}),0=r&&(r=e._lineHeight)}),s maxH) => ".concat((p/F).toFixed(2)," + ").concat((c._lineHeight/F).toFixed(2)," > ").concat(s/F)),console.log("|-----------------------------------------------------------------------|\n\n")),0a&&(a=e._lineHeight)}),b.rows.push(t),p+=a}),i=o[n]),c._lines.shift());Array.isArray(i.text)&&(c?i.text=i.text.concat(c):0===i.text.length&&(i.text=i.text.concat({_type:N.tablecell,text:""}))),n===d.length-1&&(p+=r),n=n \n'),r.file("_rels/.rels",'\n'),r.file("docProps/app.xml",'Microsoft Macintosh Excel0falseWorksheets1Sheet1falsefalsefalse16.0300\n'),r.file("docProps/core.xml",'PptxGenJSPptxGenJS'+(new Date).toISOString()+''+(new Date).toISOString()+""),r.file("xl/_rels/workbook.xml.rels",''),r.file("xl/styles.xml",'\n'),r.file("xl/theme/theme1.xml",''),r.file("xl/workbook.xml",'\n'),r.file("xl/worksheets/_rels/sheet1.xml.rels",'\n'),''),s=(m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D?i+=''):m.opts._type===v.SCATTER?i+=''):i=c?(A=g.length,g[0].labels.forEach(function(e){return A+=e.filter(function(e){return e&&""!==e}).length}),i+'')+""):(e=g.length+g[0].labels.length*g[0].labels[0].length+g[0].labels.length,o=g.length+g[0].labels.length*g[0].labels[0].length+1,i+'')+''),m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D?g.forEach(function(e,t){0===t?i+="X-Axis":i=(i+="".concat(I(e.name||"Y-Axis".concat(t)),""))+"".concat(I("Size".concat(t)),"")}):g.forEach(function(e){i+="".concat(I((e.name||" ").replace("X-Axis","X-Values")),"")}),m.opts._type!==v.BUBBLE&&m.opts._type!==v.BUBBLE3D&&m.opts._type!==v.SCATTER&&g[0].labels.slice().reverse().forEach(function(e){e.filter(function(e){return e&&""!==e}).forEach(function(e){i+="".concat(I(e),"")})}),i+="\n",r.file("xl/sharedStrings.xml",i),''),p=(m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D?(s=(s+=''))+''),n=1,g.forEach(function(e,t){0===t?s+=''):(s+=''),n++,s+=''))})):m.opts._type===v.SCATTER?(s=(s+='
                        '))+''),g.forEach(function(e,t){s+='')})):(s=(s+='
                        '))+''),g[0].labels.forEach(function(e,t){s+='')}),g.forEach(function(e,t){s+='')})),s=(s+="")+''+"
                        ",r.file("xl/tables/table1.xml",s),'');if(p+='',m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D?p+=''):m.opts._type===v.SCATTER?p+=''):p+=''),p=p+''+'',m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D){for(var p=(p+="")+'')+'0',d=1;d').concat(d,"");p+="",g[0].values.forEach(function(e,t){p=(p+=''))+'').concat(e,"");for(var a=2,A=1;A').concat(g[A].values[t]||"",""))+'').concat(g[A].sizes[t]||"",""),a++;p+=""})}else if(m.opts._type===v.SCATTER){p=(p+="")+'');for(d=0;d').concat(d,"");p+="",g[0].values.forEach(function(e,t){p=(p+=''))+'').concat(e,"");for(var a=1;a').concat(g[a].values[t]||0===g[a].values[t]?g[a].values[t]:"","");p+=""})}else if(p+="",c){p+='');for(d=0;d0');for(d=g[0].labels.length-1;d').concat(d,"");p+="";for(var f=g.length,u=g[0].labels[0].length,h=g[0].labels.length,d=0;d');var A=f,o=g[0].labels.slice().reverse();o.forEach(function(e,t){e[a]&&(e=0===t?1:o[t-1].filter(function(e){return e&&""!==e}).length,A+=e,p+='').concat(A,""))});for(var e=0;e').concat(g[e].values[a]||0,"");p+=""}(d)}else{p+=''),g[0].labels.forEach(function(e,t){p+='0')});for(var d=0;d').concat(d+1,"");p+="",g[0].labels[0].forEach(function(e,t){p+='');for(var a=g[0].labels.length-1;0<=a;a--)p=(p+=''))+"".concat(g.length+t+1,"")+"";for(var A=0;A').concat(g[A].values[t]||"","");p+=""})}p+='\n',r.file("xl/worksheets/sheet1.xml",p),r.generateAsync({type:"base64"}).then(function(e){b.file("ppt/embeddings/Microsoft_Excel_Worksheet".concat(m.globalId,".xlsx"),e,{base64:!0}),b.file("ppt/charts/_rels/"+m.fileName+".rels",''+'')+""),b.file("ppt/charts/".concat(m.fileName),function(o){var e,n='',r=!1;n=(n+='')+'')+"",o.opts.showTitle?n=n+Ne({title:o.opts.title||"Chart Title",color:o.opts.titleColor,fontFace:o.opts.titleFontFace,fontSize:o.opts.titleFontSize||te,titleAlign:o.opts.titleAlign,titleBold:o.opts.titleBold,titlePos:o.opts.titlePos,titleRotate:o.opts.titleRotate},o.opts.x,o.opts.y)+'':n+='';o.opts._type===v.BAR3D&&(n+=''));n+="",o.opts.layout?n=(n=(n=(n=(n=(n=(n=(n+="")+' ')+' ')+' ')+' ')+' ')+' ')+" ":n+="";Array.isArray(o.opts._type)?o.opts._type.forEach(function(e){var t=y(y({},o.opts),e.options),a=t.secondaryValAxis?le:L,A=t.secondaryCatAxis?ie:ce;r=r||t.secondaryValAxis,n+=De(e.type,e.data,t,a,A)}):n+=De(o.opts._type,o.data,o.opts,L,ce);if(o.opts._type!==v.PIE&&o.opts._type!==v.DOUGHNUT){if(o.opts.valAxes&&1 ')+' ')+' ')+' ')+("none"!==t.serGridLine.style?Fe(t.serGridLine):""),t.showSerAxisTitle&&(A+=Ne({color:t.serAxisTitleColor,fontFace:t.serAxisTitleFontFace,fontSize:t.serAxisTitleFontSize,titleRotate:t.serAxisTitleRotate,title:t.serAxisTitle||"Axis Title"}));A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=' '))+' ')+' '))+' ')+(t.serAxisLineShow?"".concat(z(t.serAxisLineColor||C.color),""):"")+' ')+" ")+" ")+" ")+" ")+' '))+" ".concat(z(t.serAxisLabelColor||w),""))+' '))+" ")+' ')+" ")+' ',t.serAxisLabelFrequency&&(A+=' ');t.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(function(e){!t[e]||"string"==typeof t[e]&&["days","months","years"].includes(e.toLowerCase())||(console.warn('"'.concat(e,"\" must be one of: 'days','months','years' !")),t[e]=null)}),t.serAxisBaseTimeUnit&&(A+=' ')),t.serAxisMajorTimeUnit&&(A+=' ')),t.serAxisMinorTimeUnit&&(A+=' ')),t.serAxisMajorUnit&&(A+=' ')),t.serAxisMinorUnit)&&(A+=' '));return A+=""}(o.opts,se,L))),null!=(e=o.opts)&&e.catAxes&&null!=(e=o.opts)&&e.catAxes[1]&&(n+=Se(y(y({},o.opts),o.opts.catAxes[1]),ie,le))}o.opts.showDataTable&&(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+="")+' '))+' '))+' '))+' '))+" ")+' ')+" ")+' ')+' ')+' '))+' ')+' ')+" ")+' ')+" ");n=(n=(n=(n+=" ")+(null!=(e=o.opts.plotArea.fill)&&e.color?U(o.opts.plotArea.fill):""))+(o.opts.plotArea.border?'').concat(U(o.opts.plotArea.border.color),""):"")+" ")+" ",o.opts.showLegend&&(n=(n+="")+'',(o.opts.legendFontFace||o.opts.legendFontSize||o.opts.legendColor)&&(n=(n=(n=(n+="")+" ")+" ")+(o.opts.legendFontSize?''):""),o.opts.legendColor&&(n+=U(o.opts.legendColor)),o.opts.legendFontFace&&(n+=''),o.opts.legendFontFace&&(n+=''),n=(n=(n+=" ")+' ')+" "),n+="");n=(n+=' ')+' ',o.opts._type===v.SCATTER&&(n+='');return n=(n=(n=(n=(n+="")+(null!=(e=o.opts.chartArea.fill)&&e.color?U(o.opts.chartArea.fill):""))+(o.opts.chartArea.border?'').concat(U(o.opts.chartArea.border.color),""):""))+" ")+''}(m)),t("")}).catch(function(e){a(e)})})];case 1:return[2,e.sent()]}})})}function De(A,o,n,e,t){var r=-1,l=1,a=null,c="";switch(A){case v.AREA:case v.BAR:case v.BAR3D:case v.LINE:case v.RADAR:c+=""),A===v.AREA&&"stacked"===n.barGrouping&&(c+=''),A!==v.BAR&&A!==v.BAR3D||(c=(c+='')+''),A===v.RADAR&&(c+=''),c+='',o.forEach(function(e){r++,c=(c=(c=(c+="")+' ')+" ")+" Sheet1!$"+B(e._dataIndex+e.labels.length+1)+"$1")+' '+I(e.name)+" ";var t=n.chartColors?n.chartColors[r%n.chartColors.length]:null;c+=" ","transparent"===t?c+="":n.chartColorsOpacity?c+=""+z(t,''))+"":c+=""+z(t)+"",A===v.LINE||A===v.RADAR?0===n.lineSize?c+="":c=(c+='').concat(z(t),""))+('':n.dataBorder&&(c+='').concat(z(n.dataBorder.color),'')),c=c+b(n.shadow,s)+' ',A!==v.RADAR&&(c=(c+="")+''),n.dataLabelBkgrdColors&&(c+="".concat(z(t),"")),c=(c=(c=(c+="")+''))+"".concat(z(n.dataLabelColor||w),""))+'')+"",n.dataLabelPosition&&(c+='')),c=(c=(c=(c+='')+''))+''))+'')+""),A!==v.LINE&&A!==v.RADAR||(c=(c+="")+' ',n.lineDataSymbolSize&&(c+='')),c=(c=(c+=" ")+" ".concat(z(n.chartColors[e._dataIndex+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):e._dataIndex]),""))+' ').concat(z(n.lineDataSymbolLineColor||t),'')+" "),A!==v.BAR&&A!==v.BAR3D||1!==o.length||!(n.chartColors&&n.chartColors!==de&&1")+' ')+' ',0===n.lineSize?c+="":c=A===v.BAR?(c+="")+' ':(c+=" ")+' ',c=c+b(n.shadow,s)+" "}),c+="",n.catLabelFormatCode?(c=(c=(c=(c+=" ")+" Sheet1!$A$2:$A$".concat(e.labels[0].length+1,"")+" ")+" "+(n.catLabelFormatCode||"General")+"")+' '),e.labels[0].forEach(function(e,t){return c+='').concat(I(e),"")}),c+=" "):(c=(c=(c+=" ")+" Sheet1!$A$2:$".concat(B(e.labels.length),"$").concat(e.labels[0].length+1,"")+" ")+' '),e.labels.forEach(function(e){c+="",e.forEach(function(e,t){return c+='').concat(I(e),"")}),c+=""}),c+=" "),c=(c=(c=(c=c+""+" ")+"Sheet1!$".concat(B(e._dataIndex+e.labels.length+1),"$2:$").concat(B(e._dataIndex+e.labels.length+1),"$").concat(e.labels[0].length+1,"")+" ")+" "+(n.valLabelFormatCode||n.dataTableFormatCode||"General")+"")+' '),e.values.forEach(function(e,t){return c+='').concat(e||0===e?e:"","")}),c+=" ",A===v.LINE&&(c+=''),c+=""}),c=(c=(c=(c=(c+=" ")+' ')+" ")+' '))+" "+z(n.dataLabelColor||w)+"")+' ',n.dataLabelPosition&&(c+=' '),c=(c=(c=(c+=' ')+' ')+' ')+' ')+" ",A===v.BAR?c=(c+=' '))+' '):A===v.BAR3D?c=(c=(c+=' '))+' '))+(' ':A===v.LINE&&(c+=' '),c=(c+=''))+"");break;case v.SCATTER:c=(c+="")+''+'',r=-1,o.filter(function(e,t){return 0")+' '))+' ')+" ")+" Sheet1!$".concat(B(e+2),"$1"))+' '+I(a.name)+" ";var A,t=n.chartColors[r%n.chartColors.length];"transparent"===t?c+="":n.chartColorsOpacity?c+=""+z(t,'')+"":c+=""+z(t)+"",0===n.lineSize?c+="":c=(c+='').concat(z(t),""))+''),c=(c=(c+=b(n.shadow,s))+" "+"")+' ',n.lineDataSymbolSize&&(c+='')),c=(c=(c+="")+"".concat(z(n.chartColors[e+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):e]),""))+'').concat(z(n.lineDataSymbolLineColor||n.chartColors[r%n.chartColors.length]),'')+"",n.showLabel&&(A=he("-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),!a.labels[0]||"custom"!==n.dataLabelFormatScatter&&"customXY"!==n.dataLabelFormatScatter||(c+="",a.labels[0].forEach(function(e,t){"custom"!==n.dataLabelFormatScatter&&"customXY"!==n.dataLabelFormatScatter||(c=(c=(c=(c+=" ")+' ')+" ")+' ')+" "+I(e)+" ",c=("customXY"!==n.dataLabelFormatScatter||/^ *$/.test(e)?c:(c=(c=(c=(c=(c=(c=(c=(c=(c=(c+=" ")+' ( ')+' ')+' ')+" ["+I(a.name)+" ")+' , ')+' ')+' ')+" ["+I(a.name)+"] ")+' ) ')+' ')+" ",n.dataLabelPosition&&(c+=' '),c=(c+=' ')+' ')+" ")}),c+=""),"XY"===n.dataLabelFormatScatter)&&(c+=' ',n.dataLabelPosition&&(c+=' '),c=(c=(c=(c+=' ')+' '))+' '))+' ')+' '),1===o.length&&n.chartColors!==de&&a.values.forEach(function(e,t){e=e<0?n.invertedColors||n.chartColors||de:n.chartColors||[];c=(c+=" ")+' ')+' ',0===n.lineSize?c+="":c=(c+="")+' ',c=c+b(n.shadow,s)+" "}),c=(c=(c+=" ")+" Sheet1!$A$2:$A$".concat(o[0].values.length+1,"")+" General")+' '),o[0].values.forEach(function(e,t){c+='').concat(e||0===e?e:"","")}),c=(c=(c+=" ")+" Sheet1!$".concat(B(e+2),"$2:$").concat(B(e+2),"$").concat(o[0].values.length+1,"")+" General")+' '),o[0].values.forEach(function(e,t){c+='').concat(a.values[t]||0===a.values[t]?a.values[t]:"","")}),c=(c+=" ")+''}),c=(c=(c=(c=(c+=" ")+' ')+" ")+' '))+" "+z(n.dataLabelColor||w)+"")+' ',n.dataLabelPosition&&(c+=' '),c=(c=(c+=' ')+' ')+' ',c=(c+=''))+("");break;case v.BUBBLE:case v.BUBBLE3D:c=c+""+'',r=-1,o.filter(function(e,t){return 0")+' '))+' ')+" ")+" Sheet1!$"+B(l+1)+"$1")+' '+I(a.name)+" ";e=n.chartColors[r%n.chartColors.length];"transparent"===e?c+="":n.chartColorsOpacity?c+="".concat(z(e,''),""):c+=""+z(e)+"",0===n.lineSize?c+="":n.dataBorder?c+='').concat(z(n.dataBorder.color),''):c=(c+='').concat(z(e),""))+''),c=c+b(n.shadow,s)+"",c=(c=(c+=" ")+" Sheet1!$A$2:$A$".concat(o[0].values.length+1,"")+" General")+' '),o[0].values.forEach(function(e,t){c+='').concat(e||0===e?e:"","")}),c=(c+=" ")+"Sheet1!$".concat(B(l+1),"$2:$").concat(B(l+1),"$").concat(o[0].values.length+1,""),l++,c=(c+=" General")+' '),o[0].values.forEach(function(e,t){c+='').concat(a.values[t]||0===a.values[t]?a.values[t]:"","")}),c=(c+=" ")+"Sheet1!$".concat(B(l+1),"$2:$").concat(B(l+1),"$").concat(a.sizes.length+1,""),l++,c=(c+=" General")+' '),a.sizes.forEach(function(e,t){c+='').concat(e||"","")}),c=(c+=" ")+' '}),c=(c=(c=(c=(c+="")+'')+"")+''))+"".concat(z(n.dataLabelColor||w),""))+'')+"",n.dataLabelPosition&&(c+='')),c=(c=(c=(c=(c+='')+''))+'')+' ')+' ')+'')+"";break;case v.DOUGHNUT:case v.PIE:a=o[0],c=(c=(c=(c=(c=(c=(c=(c=(c=c+("")+' ')+""+' ')+' '+" ")+" "+" Sheet1!$B$1")+" "+' ')+(' '+I(a.name)+""))+" "+" ")+" "+" ")+' '+' ',n.dataNoEffects?c+="":c+=b(n.shadow,s),c+=" ",a.labels[0].forEach(function(e,t){c=(c=(c+="")+' ')+' ')+"".concat(z(n.chartColors[t+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):t]),""),n.dataBorder&&(c+='').concat(z(n.dataBorder.color),'')),c=c+b(n.shadow,s)+" "}),c+="",a.labels[0].forEach(function(e,t){c=(c=(c=(c=(c=(c+="")+' '))+' ')+" ")+' '))+" "+z(n.dataLabelColor||w)+"")+' ')+" ",A===v.PIE&&n.dataLabelPosition&&(c+='')),c=(c=(c=(c=(c+=' ')+' ')+' ')+' ')+' '}),c=(c=(c=(c=(c=(c=(c=(c=(c=(c=(c=(c=(c=(c=c+' ')+" ")+" "+" ")+" "+" ")+' ')+' ')+" "+" ")+" "+" ")+(A===v.PIE?'':""))+' '+' ')+' '+' ')+' '+' ')+' ')+"")+""+" ")+" Sheet1!$A$2:$A$".concat(a.labels[0].length+1,"")+" ")+' '),a.labels[0].forEach(function(e,t){c+='').concat(I(e),"")}),c=(c=(c=(c=(c+=" ")+" "+"")+" "+" ")+" Sheet1!$B$2:$B$".concat(a.labels[0].length+1,"")+" ")+' '),a.values.forEach(function(e,t){c+='').concat(e||0===e?e:"","")}),c=(c=(c=c+" "+" ")+" "+" ")+' '),A===v.DOUGHNUT&&(c+='')),c+="";break;default:c+=""}return c}function Se(t,e,a){var A="";return t._type===v.SCATTER||t._type===v.BUBBLE||t._type===v.BUBBLE3D?A+="":A+="",A=(A+=' ')+" "+(''),!t.catAxisMaxVal&&0!==t.catAxisMaxVal||(A+='')),!t.catAxisMinVal&&0!==t.catAxisMinVal||(A+='')),A=(A=(A=A+""+(' '))+(' '))+("none"!==t.catGridLine.style?Fe(t.catGridLine):""),t.showCatAxisTitle&&(A+=Ne({color:t.catAxisTitleColor,fontFace:t.catAxisTitleFontFace,fontSize:t.catAxisTitleFontSize,titleRotate:t.catAxisTitleRotate,title:t.catAxisTitle||"Axis Title"})),t._type===v.SCATTER||t._type===v.BUBBLE||t._type===v.BUBBLE3D?A+=' ':A+=' ',t._type===v.SCATTER?A+=' ':A=(A=(A+=' ')+' ')+' ',A=(A=(A=(A=(A=(A+=" ")+' '))+(t.catAxisLineShow?""+z(t.catAxisLineColor||C.color)+"":""))+(' '))+" "+" ")+" "+" ",t.catAxisLabelRotate?A+=''):A+="",A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=" ")+" "+" ")+' '))+(" "+z(t.catAxisLabelColor||w)+""))+(' '))+" "+" ")+(' ')+" ")+" "+(' '))+" '))+' '+' ')+' '),t.catAxisLabelFrequency&&(A+=' '),(t.catLabelFormatCode||t._type===v.SCATTER||t._type===v.BUBBLE||t._type===v.BUBBLE3D)&&(t.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(function(e){!t[e]||"string"==typeof t[e]&&["days","months","years"].includes(t[e].toLowerCase())||(console.warn('"'.concat(e,"\" must be one of: 'days','months','years' !")),t[e]=null)}),t.catAxisBaseTimeUnit&&(A+=''),t.catAxisMajorTimeUnit&&(A+=''),t.catAxisMinorTimeUnit)&&(A+=''),t.catAxisMajorUnit&&(A+='')),t.catAxisMinorUnit)&&(A+='')),t._type===v.SCATTER||t._type===v.BUBBLE||t._type===v.BUBBLE3D?A+="":A+="",A}function Ee(e,t){var a=t===L?"col"===e.barDir?"l":"b":"col"!==e.barDir?"r":"t",A=(t===le&&(a="r"),t===L?ce:ie),o="",o=(o+="")+(' ')+" ";return e.valAxisLogScaleBase&&(o+='')),o+='',!e.valAxisMaxVal&&0!==e.valAxisMaxVal||(o+='')),!e.valAxisMinVal&&0!==e.valAxisMinVal||(o+='')),o=(o+=" ")+' ')+(' '),"none"!==e.valGridLine.style&&(o+=Fe(e.valGridLine)),e.showValAxisTitle&&(o+=Ne({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||"Axis Title"})),o+=''),e._type===v.SCATTER?o+=' ':o=(o=(o+=' ')+' ')+' ',o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o+=" ")+' '))+(e.valAxisLineShow?""+z(e.valAxisLineColor||C.color)+"":""))+(' '))+" "+" ")+" "+" ")+" ")+" ")+" "+" ")+' '))+(" "+z(e.valAxisLabelColor||w)+""))+(' '))+" "+" ")+(' ')+" ")+" "+(' '),"number"==typeof e.catAxisCrossesAt?o+=' '):"string"==typeof e.catAxisCrossesAt?o+=' ':o+=' ',o+=' ',e.valAxisMajorUnit&&(o+=' ')),e.valAxisDisplayUnit&&(o+='').concat(e.valAxisDisplayUnitLabel?"":"","")),o+=""}function Ne(e,t,a){var A="left"===e.titleAlign||"right"===e.titleAlign?''):"",o=e.titleRotate?''):"",n=e.fontSize?'sz="'.concat(Math.round(100*e.fontSize),'"'):"",r=e.titleBold?1:0,l="";return e.titlePos&&"number"==typeof e.titlePos.x&&"number"==typeof e.titlePos.y&&(1<=(t=0===(t=e.titlePos.x+t)?0:t*(t/5)/10)&&(t/=10),.1<=t&&(t/=10),1<=(a=0===(a=e.titlePos.y+a)?0:a*(a/5)/10)&&(a/=10),.1<=a&&(a/=10),l='')),"\n \n \n ".concat(o,"\n \n \n ").concat(A,"\n \n ').concat(z(e.color||w),'\n \n \n \n \n \n ').concat(z(e.color||w),'\n \n \n ').concat(I(e.title)||"","\n \n \n \n \n ").concat(l,'\n \n ')}function B(e){e-=1;return e<=25?pe[e]:"".concat(pe[Math.floor(e/pe.length-1)]).concat(pe[e%pe.length])}function b(e,t){var a,A,o,n,r,l;return e?"object"!=typeof e?(console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),""):(a="",e=(t=y(y({},t),e)).type||"outer",A=O(t.blur),o=O(t.offset),n=Math.round(6e4*t.angle),r=t.color,l=Math.round(1e5*t.opacity),t=t.rotateWithShape?1:0,(a=(a=(a+="'))+''))+''))+"")+""):""}function Fe(e){var t="";return(t+=" ")+' ')+(' ')+(' ')+" "+" "+""}function Re(e){if(e&&"flat"!==e){if("square"===e)return"sq";if("round"===e)return"rnd";throw new Error("Invalid chart line cap: ".concat(e))}return"flat"}function Ie(e){var n="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null,r="undefined"!=typeof require&&"undefined"==typeof window?require("https"):null,t=[],l=e._relsMedia.filter(function(e){return"online"!==e.type&&!e.data&&(!e.path||e.path&&!e.path.includes("preencoded"))}),a=[];return l.forEach(function(e){a.includes(e.path)?e.isDuplicate=!0:(e.isDuplicate=!1,a.push(e.path))}),l.filter(function(e){return!e.isDuplicate}).forEach(function(o){t.push(new Promise(function(a,A){var t;if(n&&0!==o.path.indexOf("http"))try{var e=n.readFileSync(o.path);o.data=Buffer.from(e).toString("base64"),l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),a("done")}catch(e){o.data=h,l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),A(new Error('ERROR: Unable to read media: "'.concat(o.path,'"\n').concat(String(e))))}else n&&r&&0===o.path.indexOf("http")?r.get(o.path,function(e){var t="";e.setEncoding("binary"),e.on("data",function(e){return t+=e}),e.on("end",function(){o.data=Buffer.from(t,"binary").toString("base64"),l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),a("done")}),e.on("error",function(e){o.data=h,l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),A(new Error("ERROR! Unable to load image (https.get): ".concat(o.path)))})}):((t=new XMLHttpRequest).onload=function(){var e=new FileReader;e.onloadend=function(){o.data=e.result,l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),o.isSvgPng?Me(o).then(function(){a("done")}).catch(function(e){A(e)}):a("done")},e.readAsDataURL(t.response)},t.onerror=function(e){o.data=h,l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),A(new Error("ERROR! Unable to load image (xhr.onerror): ".concat(o.path)))},t.open("GET",o.path),t.responseType="blob",t.send())}))}),e._relsMedia.filter(function(e){return e.isSvgPng&&e.data}).forEach(function(e){n?(e.data=h,t.push(Promise.resolve().then(function(){return"done"}))):t.push(Me(e))}),t}function Me(o){return p(this,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return[4,new Promise(function(a,t){var A=new Image;A.onload=function(){A.width+A.height===0&&A.onerror("h/w=0");var e=document.createElement("CANVAS"),t=e.getContext("2d");e.width=A.width,e.height=A.height,t.drawImage(A,0,0);try{o.data=e.toDataURL(o.type),a("done")}catch(e){A.onerror(e)}},A.onerror=function(e){o.data=h,t(new Error("ERROR! Unable to load image (image.onerror): ".concat(o.path)))},A.src="string"==typeof o.data?o.data:h})];case 1:return[2,e.sent()]}})})}var Oe={cover:function(e,t){var e=e.h/e.w,a=e')},contain:function(e,t){var e=e.h/e.w,a=e')},crop:function(e,t){var a=t.x,A=e.w-(t.x+t.w),o=t.y,t=e.h-(t.y+t.h),a=Math.round(a/e.w*1e5),A=Math.round(A/e.w*1e5),o=Math.round(o/e.h*1e5),t=Math.round(t/e.h*1e5);return'')}};function ke(D){var e,S=D._name?'':"",E=1;return D._bkgdImgRid?S+=''):null!=(e=D.background)&&e.color?S+="".concat(U(D.background),""):!D.bkgd&&D._name&&D._name===ae&&(S+=''),S=(S=S+""+'')+''+'',D._slideObjects.forEach(function(A,e){var t,a,c,o,n,r,l,i,s=0,p=0,d=R("75%","X",D._presLayout),f=0,u="",h=null,g=0,m=0,b=null,y=null==(t=A.options)?void 0:t.sizing,v=null==(t=A.options)?void 0:t.rounding,x=(void 0!==D._slideLayout&&void 0!==D._slideLayout._slideObjects&&A.options&&A.options.placeholder&&(a=D._slideLayout._slideObjects.filter(function(e){return e.options.placeholder===A.options.placeholder})[0]),A.options=A.options||{},void 0!==A.options.x&&(s=R(A.options.x,"X",D._presLayout)),void 0!==A.options.y&&(p=R(A.options.y,"Y",D._presLayout)),d=void 0!==A.options.w?R(A.options.w,"X",D._presLayout):d),C=f=void 0!==A.options.h?R(A.options.h,"Y",D._presLayout):f;switch(a&&(!a.options.x&&0!==a.options.x||(s=R(a.options.x,"X",D._presLayout)),!a.options.y&&0!==a.options.y||(p=R(a.options.y,"Y",D._presLayout)),!a.options.w&&0!==a.options.w||(d=R(a.options.w,"X",D._presLayout)),!a.options.h&&0!==a.options.h||(f=R(a.options.h,"Y",D._presLayout))),A.options.flipH&&(u+=' flipH="1"'),A.options.flipV&&(u+=' flipV="1"'),A.options.rotate&&(u+=' rot="'.concat(k(A.options.rotate),'"')),A._type){case N.table:if(h=A.arrTabRows,c=A.options,h[m=g=0].forEach(function(e){o=e.options||null,g+=null!==o&&o.colspan?Number(o.colspan):1}),b=''),b=(b+=' ')+'')+'',Array.isArray(c.colW)){b+="";for(var w=0;w')}}else{m=c.colW||F,A.options.w&&!c.colW&&(m=Math.round(("number"==typeof A.options.w?A.options.w:1)/g)),b+="";for(var L=0;L')}b+="",h.forEach(function(o){for(var n,r,e=0;e'),e.forEach(function(e){var t,a,A,o,n,r={rowSpan:1<(null==(l=e.options)?void 0:l.rowspan)?e.options.rowspan:void 0,gridSpan:1<(null==(l=e.options)?void 0:l.colspan)?e.options.colspan:void 0,vMerge:e._vmerge?1:void 0,hMerge:e._hmerge?1:void 0},l=(l=Object.keys(r).map(function(e){return[e,r[e]]}).filter(function(e){return e[0],!!e[1]}).map(function(e){var t=e[0],e=e[1];return"".concat(String(t),'="').concat(String(e),'"')}).join(" "))&&" "+l;e._hmerge||e._vmerge?b+=""):(t=e.options||{},e.options=t,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach(function(e){c[e]&&!t[e]&&0!==t[e]&&(t[e]=c[e])}),a=t.valign?' anchor="'.concat(t.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b"),'"'):"",A=(A=(null!=(A=null==(A=e._optImp)?void 0:A.fill)&&A.color?e._optImp.fill.color:null!=(A=e._optImp)&&A.fill&&"string"==typeof e._optImp.fill?e._optImp.fill:"")||t.fill?t.fill:"")?U(A):"",o=0===t.margin||t.margin?t.margin:_,n="",n=1<=(o=Array.isArray(o)||"number"!=typeof o?o:[o,o,o,o])[0]?' marL="'.concat(O(o[3]),'" marR="').concat(O(o[1]),'" marT="').concat(O(o[0]),'" marB="').concat(O(o[2]),'"'):' marL="'.concat(M(o[3]),'" marR="').concat(M(o[1]),'" marT="').concat(M(o[0]),'" marB="').concat(M(o[2]),'"'),b+="").concat(Ge(e),""),t.border&&Array.isArray(t.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(function(e){"none"!==t.border[e.idx].type?b=(b=(b=(b+="'))+"".concat(z(t.border[e.idx].color),""))+''))+""):b+="")}),b=b+A+" ")}),b+=""}),S+=b=(b=b+" "+" ")+" "+"",E++;break;case N.text:case N.placeholder:if(A.options.line||0!==f||(f=.3*F),A.options._bodyProp||(A.options._bodyProp={}),A.options.margin&&Array.isArray(A.options.margin)?(A.options._bodyProp.lIns=O(A.options.margin[0]||0),A.options._bodyProp.rIns=O(A.options.margin[1]||0),A.options._bodyProp.bIns=O(A.options.margin[2]||0),A.options._bodyProp.tIns=O(A.options.margin[3]||0)):"number"==typeof A.options.margin&&(A.options._bodyProp.lIns=O(A.options.margin),A.options._bodyProp.rIns=O(A.options.margin),A.options._bodyProp.bIns=O(A.options.margin),A.options._bodyProp.tIns=O(A.options.margin)),S=(S+="")+''),null!=(n=A.options.hyperlink)&&n.url&&(S+='')),null!=(n=A.options.hyperlink)&&n.slide&&(S+='')),S=(S=(S=(S=(S=(S+="")+("':"/>")))+"".concat("placeholder"===A._type?je(A):je(a),"")+"")+""))+''))+''),"custGeom"===A.shape)S=(S+='')+''),null!=(n=A.options.points)&&n.forEach(function(e,t){if("curve"in e)switch(e.curve.type){case"arc":S+='');break;case"cubic":S+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t');break;case"quadratic":S+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t')}else"close"in e?S+="":e.moveTo||0===t?S+=''):S+='')}),S+="";else{if(S+='',A.options.rectRadius)S+='');else if(A.options.angleRange){for(var B=0;B<2;B++){var T=A.options.angleRange[B];S+='')}A.options.arcThicknessRatio&&(S+=''))}S+=""}S+=A.options.fill?U(A.options.fill):"",A.options.line&&(S+=A.options.line.width?''):"",A.options.line.color&&(S+=U(A.options.line)),A.options.line.dashType&&(S+='')),A.options.line.beginArrowType&&(S+='')),A.options.line.endArrowType&&(S+='')),S+=""),A.options.shadow&&"none"!==A.options.shadow.type&&(A.options.shadow.type=A.options.shadow.type||"outer",A.options.shadow.blur=O(A.options.shadow.blur||8),A.options.shadow.offset=O(A.options.shadow.offset||4),A.options.shadow.angle=Math.round(6e4*(A.options.shadow.angle||270)),A.options.shadow.opacity=Math.round(1e5*(A.options.shadow.opacity||.75)),A.options.shadow.color=A.options.shadow.color||ne.color,S=(S=(S=(S+="")+" '))+' '))+' ')+" "),S=(S+="")+Ge(A)+"";break;case N.image:S=(S=S+""+" ")+''),null!=(n=A.hyperlink)&&n.url&&(S+='')),null!=(n=A.hyperlink)&&n.slide&&(S+='')),S=(S=(S=S+" "+' ')+(" "+je(a)+""))+" "+"",S=(D._relsMedia||[]).filter(function(e){return e.rId===A.imageRid})[0]&&"svg"===(D._relsMedia||[]).filter(function(e){return e.rId===A.imageRid})[0].extn?(S=(S+=''))+(A.options.transparency?' '):"")+' ')+' ')+" ":(S+=''))+(A.options.transparency?''):"")+"",null!=y&&y.type?(n=y.w?R(y.w,"X",D._presLayout):d,r=y.h?R(y.h,"Y",D._presLayout):f,l=R(y.x||0,"X",D._presLayout),i=R(y.y||0,"Y",D._presLayout),S+=Oe[y.type]({w:x,h:C},{w:n,h:r,x:l,y:i}),x=n,C=r):S+=" ",S=(S=(S=(S=(S+="")+""+(" "))+' '))+' ')+" ")+' '),A.options.shadow&&"none"!==A.options.shadow.type&&(A.options.shadow.type=A.options.shadow.type||"outer",A.options.shadow.blur=O(A.options.shadow.blur||8),A.options.shadow.offset=O(A.options.shadow.offset||4),A.options.shadow.angle=Math.round(6e4*(A.options.shadow.angle||270)),A.options.shadow.opacity=Math.round(1e5*(A.options.shadow.opacity||.75)),A.options.shadow.color=A.options.shadow.color||ne.color,S=(S=(S=(S=(S+="")+"'))+''))+''))+"")+""),S=S+""+"";break;case N.media:S="online"===A.mtype?(S=(S=(S=(S+=" ")+'')+" ")+' ')+" ")+' ')+" ")+" ')+' ':(S=(S=(S=(S=(S+=" ")+'')+' ')+' ')+' ')+' ')+" ")+' ')+" ")+" ')+' ';break;case N.chart:S=(S=(S=(S=(S=(S=(S=S+""+" ")+' ')+" ")+" ".concat(je(a),"")+" ")+' '))+' '+' ')+' ')+" ")+" "+"";break;default:S+=""}}),D._slideNumberProps&&(D._slideNumberProps.align||(D._slideNumberProps.align="left"),S=(S+=' ')+""+'')+'')+' '),D._slideNumberProps.color&&(S+=U(D._slideNumberProps.color)),D._slideNumberProps.fontFace&&(S+='')),S+=""),S+="",D._slideNumberProps.align.startsWith("l")?S+='':D._slideNumberProps.align.startsWith("c")?S+='':D._slideNumberProps.align.startsWith("r")?S+='':S+='',S=(S+=''))+"".concat(D._slideNum,'')+""),S=S+""+""}function ze(e,t){var a=0,A=''+u+'';return e._rels.forEach(function(e){a=Math.max(a,e.rId),e.type.toLowerCase().includes("hyperlink")?"slide"===e.data?A+=''):A+=''):e.type.toLowerCase().includes("notesSlide")&&(A+=''))}),(e._relsChart||[]).forEach(function(e){a=Math.max(a,e.rId),A+='')}),(e._relsMedia||[]).forEach(function(e){var t=e.rId.toString();a=Math.max(a,e.rId),e.type.toLowerCase().includes("image")?A+='':e.type.toLowerCase().includes("audio")?A.includes(' Target="'+e.Target+'"')?A+='':A+='':e.type.toLowerCase().includes("video")?A.includes(' Target="'+e.Target+'"')?A+='':A+='':e.type.toLowerCase().includes("online")&&(A.includes(' Target="'+e.Target+'"')?A+='':A+='')}),t.forEach(function(e,t){A+='')}),A+=""}function Ue(e,t){var a,A,o="",n="",r="",l="",c=t?"a:lvl1pPr":"a:pPr",i=O(q),s="<".concat(c).concat(e.options.rtlMode?' rtl="1" ':"");if(e.options.align)switch(e.options.align){case"left":s+=' algn="l"';break;case"right":s+=' algn="r"';break;case"center":s+=' algn="ctr"';break;case"justify":s+=' algn="just"';break;default:s+=""}return e.options.lineSpacing?n=''):e.options.lineSpacingMultiple&&(n='')),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&0')),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&0')),"object"==typeof e.options.bullet?(null!=(A=null==(A=null==e?void 0:e.options)?void 0:A.bullet)&&A.indent&&(i=O(e.options.bullet.indent)),e.options.bullet.type?"number"===e.options.bullet.type.toString().toLowerCase()&&(s+=' marL="'.concat(e.options.indentLevel&&0')):o=e.options.bullet.characterCode?(a="&#x".concat(e.options.bullet.characterCode,";"),/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),a=f.DEFAULT),s+=' marL="'.concat(e.options.indentLevel&&0'):e.options.bullet.code?(a="&#x".concat(e.options.bullet.code,";"),/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),a=f.DEFAULT),s+=' marL="'.concat(e.options.indentLevel&&0'):(s+=' marL="'.concat(e.options.indentLevel&&0'))):e.options.bullet?(s+=' marL="'.concat(e.options.indentLevel&&0')):e.options.bullet||(s+=' indent="0" marL="0"',o=""),e.options.tabStops&&Array.isArray(e.options.tabStops)&&(A=e.options.tabStops.map(function(e){return'')}).join(""),l="".concat(A,"")),s+=">"+n+r+o+l,t&&(s+=Qe(e.options,!0)),s+=""}function Qe(e,t){var a,A,o,n,r="",t=t?"a:defRPr":"a:rPr",r=(r=(r=(r=(r+="<"+t+' lang="'+(e.lang||"en-US")+'"'+(e.lang?' altLang="en-US"':""))+(e.fontSize?' sz="'.concat(Math.round(100*e.fontSize),'"'):""))+(null!=e&&e.bold?' b="'.concat(e.bold?"1":"0",'"'):""))+(null!=e&&e.italic?' i="'.concat(e.italic?"1":"0",'"'):""))+(null!=e&&e.strike?' strike="'.concat("string"==typeof e.strike?e.strike:"sngStrike",'"'):"");if("object"==typeof e.underline&&null!=(a=e.underline)&&a.style?r+=' u="'.concat(e.underline.style,'"'):"string"==typeof e.underline?r+=' u="'.concat(String(e.underline),'"'):e.hyperlink&&(r+=' u="sng"'),e.baseline?r+=' baseline="'.concat(Math.round(50*e.baseline),'"'):e.subscript?r+=' baseline="-40000"':e.superscript&&(r+=' baseline="30000"'),r=r+(e.charSpacing?' spc="'.concat(Math.round(100*e.charSpacing),'" kern="0"'):"")+' dirty="0">',(e.color||e.fontFace||e.outline||"object"==typeof e.underline&&e.underline.color)&&(e.outline&&"object"==typeof e.outline&&(r+='').concat(U(e.outline.color||"FFFFFF"),"")),e.color&&(r+=U({color:e.color,transparency:e.transparency})),e.highlight&&(r+="".concat(z(e.highlight),"")),"object"==typeof e.underline&&e.underline.color&&(r+="".concat(U(e.underline.color),"")),e.glow&&(r+="".concat((a=e.glow,o="",A=y(y({},A=re),a),a=Math.round(A.size*x),n=A.color,A=Math.round(1e5*A.opacity),(o+=''))+z(n,''))+""),"")),e.fontFace)&&(r+='')),e.hyperlink){if("object"!=typeof e.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!e.hyperlink.url&&!e.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");e.hyperlink.url?r+='":"/>"):e.hyperlink.slide&&(r+='":"/>")),e.color&&(r+=' ')}return r+="")}function Ge(a){var n,e,t,A,o,r=a.options||{},l=[],c=[];return!r||a._type===N.tablecell||void 0!==a.text&&null!==a.text?(n=a._type===N.tablecell?"":"",n+=(t="":"resize"===e.options.fit&&(t+="")),e.options.shrinkText&&(t+=""),t=t+(e.options._bodyProp.autoFit?"":"")+""):t+=' wrap="square" rtlCol="0">',e._type===N.tablecell?"":t),0===r.h&&r.line&&r.align?n+='':"placeholder"===a._type?n+="".concat(Ue(a,!0),""):n+="","string"==typeof a.text||"number"==typeof a.text?l.push({text:a.text.toString(),options:r||{}}):a.text&&!Array.isArray(a.text)&&"object"==typeof a.text&&Object.keys(a.text).includes("text")?l.push({text:a.text||"",options:a.options||{}}):Array.isArray(a.text)&&(l=a.text.map(function(e){return{text:e.text,options:e.options}})),l.forEach(function(t,e){t.text||(t.text=""),t.options=t.options||r||{},0===e&&t.options&&!t.options.bullet&&r.bullet&&(t.options.bullet=r.bullet),"string"!=typeof t.text&&"number"!=typeof t.text||(t.text=t.text.toString().replace(/\r*\n/g,u)),t.text.includes(u)&&null===t.text.match(/\n$/g)?t.text.split(u).forEach(function(e){t.options.breakLine=!0,c.push({text:e,options:t.options})}):c.push(t)}),A=[],o=[],c.forEach(function(e,t){0",""),a.options.align=a.options.align||r.align,a.options.lineSpacing=a.options.lineSpacing||r.lineSpacing,a.options.lineSpacingMultiple=a.options.lineSpacingMultiple||r.lineSpacingMultiple,a.options.indentLevel=a.options.indentLevel||r.indentLevel,a.options.paraSpaceBefore=a.options.paraSpaceBefore||r.paraSpaceBefore,a.options.paraSpaceAfter=a.options.paraSpaceAfter||r.paraSpaceAfter,o=Ue(a,!1),n+=o.replace("",""),Object.entries(r).filter(function(e){var t=e[0];return e[1],!(a.options.hyperlink&&"color"===t)}).forEach(function(e){var t=e[0],e=e[1];"bullet"===t||a.options[t]||(a.options[t]=e)}),n+=(e=a).text?"".concat(Qe(e.options,!1),"").concat(I(e.text),""):"",(!a.text&&r.fontSize||a.options.fontSize)&&(A=!0,r.fontSize=r.fontSize||a.options.fontSize)}),a._type===N.tablecell&&(r.fontSize||r.fontFace)?r.fontFace?n=(n=(n=(n+='')+''))+''))+'')+"":n+='':n+=A?'':''),n+=""}),n+=a._type===N.tablecell?"":""):""}function je(e){var t,a;return e?(t=null!=(t=e.options)&&t._placeholderIdx?e.options._placeholderIdx:"",a=(a=null!=(a=e.options)&&a._placeholderType?e.options._placeholderType:"")&&o[a]?o[a].toString():"","")):""}function Ye(e){return''.concat(u,'').concat(I((t="",e._slideObjects.forEach(function(e){e._type===N.notes&&(t+=null!=e&&e.text&&e.text[0]?e.text[0].text:"")}),t.replace(/\r*\n/g,u))),'').concat(e._slideNum,'');var t}function Xe(e,t,a){return ze(e[a-1],[{target:"../slideLayouts/slideLayout".concat(function(e,t,a){for(var A=0;A'+u)+'')+'')+'')+'')+'',A.forEach(function(e){(e._relsMedia||[]).forEach(function(e){"image"===e.type||"online"===e.type||"chart"===e.type||"m4v"===e.extn||r.includes(e.type)||(r+='')})}),r=(r+='')+'',A.forEach(function(e,t){r=(r+=''))+''),e._relsChart.forEach(function(e){r+='')})}),r=(r+='')+'',o.forEach(function(e,t){r+=''),(e._relsChart||[]).forEach(function(e){r+=' '})}),A.forEach(function(e,t){r+='')}),n._relsChart.forEach(function(e){r+=' '}),n._relsMedia.forEach(function(e){"image"===e.type||"online"===e.type||"chart"===e.type||"m4v"===e.extn||r.includes(e.type)||(r+=' ')}),r=(r+=' ')+' ')),i.file("_rels/.rels",''.concat(u,'\n\t\t\n\t\t\n\t\t\n\t\t')),i.file("docProps/app.xml",(o=this.slides,A=this.company,''.concat(u,'\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t').concat(o.length,"\n\t").concat(o.length,'\n\t0\n\t0\n\tfalse\n\t\n\t\t\n\t\t\tFonts Used\n\t\t\t2\n\t\t\tTheme\n\t\t\t1\n\t\t\tSlide Titles\n\t\t\t').concat(o.length,'\n\t\t\n\t\n\t\n\t\t\n\t\t\tArial\n\t\t\tCalibri\n\t\t\tOffice Theme\n\t\t\t').concat(o.map(function(e,t){return"Slide ".concat(t+1,"")}).join(""),"\n\t\t\n\t\n\t").concat(A,"\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t"))),i.file("docProps/core.xml",(n=this.title,o=this.subject,A=this.author,t=this.revision,'\n\t\n\t\t'.concat(I(n),"\n\t\t").concat(I(o),"\n\t\t").concat(I(A),"\n\t\t").concat(I(A),"\n\t\t").concat(t,'\n\t\t').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),'\n\t\t').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),"\n\t"))),i.file("ppt/_rels/presentation.xml.rels",function(e){for(var t=1,a=(a=''+u)+''+'',A=1;A<=e.length;A++)a+='');return a+='')+'')+'')+'')+'')+""}(this.slides)),i.file("ppt/theme/theme1.xml",(o=null!=(o=(n=this).theme)&&o.headFontFace?''):'',n=null!=(A=n.theme)&&A.bodyFontFace?''):'',''.concat(o,'').concat(n,''))),i.file("ppt/presentation.xml",function(e){var t=(t=''.concat(u)+''))+''+"";e.slides.forEach(function(e){return t+='')}),t=(t=(t=(t+="")+''))+''))+'')+"";for(var a=1;a<10;a++)t+="')+''+"");return t+="",e.sections&&0',e.sections.forEach(function(e){t+=''),e._slides.forEach(function(e){return t+='')}),t+=""}),t+=''),t+=""}(this)),i.file("ppt/presProps.xml",''.concat(u,'')),i.file("ppt/tableStyles.xml",''.concat(u,'')),i.file("ppt/viewProps.xml",''.concat(u,'')),this.slideLayouts.forEach(function(e,t){i.file("ppt/slideLayouts/slideLayout".concat(t+1,".xml"),'\n\t\t\n\t\t'.concat(ke(e),"\n\t\t")),i.file("ppt/slideLayouts/_rels/slideLayout".concat(t+1,".xml.rels"),(e=t+1,ze(l.slideLayouts[e-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])))}),this.slides.forEach(function(e,t){var a;i.file("ppt/slides/slide".concat(t+1,".xml"),(a=e,''.concat(u)+'")+"".concat(ke(a))+"")),i.file("ppt/slides/_rels/slide".concat(t+1,".xml.rels"),Xe(l.slides,l.slideLayouts,t+1)),i.file("ppt/notesSlides/notesSlide".concat(t+1,".xml"),Ye(e)),i.file("ppt/notesSlides/_rels/notesSlide".concat(t+1,".xml.rels"),'\n\t\t\n\t\t\t\n\t\t\t\n\t\t'))}),i.file("ppt/slideMasters/slideMaster1.xml",(a=this.masterSlide,t=(t=this.slideLayouts).map(function(e,t){return'')}),A=''+u,(A+='')+ke(a)+''+t.join("")+' ')),i.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",(o=this.masterSlide,(n=(n=this.slideLayouts).map(function(e,t){return{target:"../slideLayouts/slideLayout".concat(t+1,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}})).push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),ze(o,n))),i.file("ppt/notesMasters/notesMaster1.xml",''.concat(u,'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›')),i.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",''.concat(u,'\n\t\t\n\t\t')),this.slideLayouts.forEach(function(e){l.createChartMediaRels(e,i,c)}),this.slides.forEach(function(e){l.createChartMediaRels(e,i,c)}),this.createChartMediaRels(this.masterSlide,i,c),[4,Promise.all(c).then(function(){return p(l,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return"STREAM"!==s.outputType?[3,2]:[4,i.generateAsync({type:"nodebuffer",compression:s.compression?"DEFLATE":"STORE"})];case 1:return[2,e.sent()];case 2:return s.outputType?[4,i.generateAsync({type:s.outputType})]:[3,4];case 3:return[2,e.sent()];case 4:return[4,i.generateAsync({type:"blob",compression:s.compression?"DEFLATE":"STORE"})];case 5:return[2,e.sent()]}})})})];case 1:return[2,e.sent()]}var a,t,A,o,n,r})})})];case 1:return[2,e.sent()]}})})};this.LAYOUTS={LAYOUT_4x3:{name:"screen4x3",width:9144e3,height:6858e3},LAYOUT_16x9:{name:"screen16x9",width:9144e3,height:5143500},LAYOUT_16x10:{name:"screen16x10",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:"custom",width:12192e3,height:6858e3}},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[i].name,_sizeW:this.LAYOUTS[i].width,_sizeH:this.LAYOUTS[i].height,width:this.LAYOUTS[i].width,height:this.LAYOUTS[i].height},this._rtlMode=!1,this._slideLayouts=[{_margin:oe,_name:ae,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(a.prototype,"layout",{get:function(){return this._layout},set:function(e){var t=this.LAYOUTS[e];if(!t)throw new Error("UNKNOWN-LAYOUT");this._layout=e,this._presLayout=t},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"author",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"subject",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"theme",{get:function(){return this._theme},set:function(e){this._theme=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),a.prototype.stream=function(t){return p(this,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return[4,this.exportPresentation({compression:null==t?void 0:t.compression,outputType:"STREAM"})];case 1:return[2,e.sent()]}})})},a.prototype.write=function(A){return p(this,void 0,void 0,function(){var t,a;return d(this,function(e){switch(e.label){case 0:return t="object"==typeof A&&null!=A&&A.outputType?A.outputType:A||null,a=!("object"!=typeof A||null==A||!A.compression)&&A.compression,[4,this.exportPresentation({compression:a,outputType:t})];case 1:return[2,e.sent()]}})})},a.prototype.writeFile=function(A){return p(this,void 0,void 0,function(){var o,t,a,n,r=this;return d(this,function(e){switch(e.label){case 0:return o="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null,"string"==typeof A&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)"),t="object"==typeof A&&null!=A&&A.fileName?A.fileName:"string"==typeof A?A:"",a=!("object"!=typeof A||null==A||!A.compression)&&A.compression,n=t?t.toString().toLowerCase().endsWith(".pptx")?t:t+".pptx":"Presentation.pptx",[4,this.exportPresentation({compression:a,outputType:o?"nodebuffer":null}).then(function(A){return p(r,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return o?[4,new Promise(function(t,a){o.writeFile(n,A,function(e){e?a(e):t(n)})})]:[3,2];case 1:return[2,e.sent()];case 2:return[4,this.writeFileToBrowser(n,A)];case 3:return[2,e.sent()]}})})})];case 1:return[2,e.sent()]}})})},a.prototype.addSection=function(e){e?e.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var t={_type:"user",_slides:[],title:e.title};e.order?this.sections.splice(e.order,0,t):this._sections.push(t)},a.prototype.addSlide=function(t){var a="string"==typeof t?t:null!=t&&t.masterName?t.masterName:"",e={_name:this.LAYOUTS[i].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1},A=(a&&(A=this.slideLayouts.filter(function(e){return e._name===a})[0])&&(e=A),new Be({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:e}));return this._slides.push(A),null!=t&&t.sectionTitle?(e=this.sections.filter(function(e){return e.title===t.sectionTitle})[0])?e._slides.push(A):console.warn('addSlide: unable to find section with title: "'.concat(t.sectionTitle,'"')):this.sections&&0 opts.y = ").concat(r.y)),a.addTable(e.rows,{x:r.x||d[3],y:r.y,w:Number(o)/F,colW:s,autoPage:!1}),r.addImage&&(r.addImage.options=r.addImage.options||{},r.addImage.image&&(r.addImage.image.path||r.addImage.image.data)?a.addImage({path:r.addImage.image.path,data:r.addImage.image.data,x:r.addImage.options.x,y:r.addImage.options.y,w:r.addImage.options.w,h:r.addImage.options.h}):console.warn("Warning: tableToSlides.addImage requires either `path` or `data`")),r.addShape&&a.addShape(r.addShape.shapeName,r.addShape.options||{}),r.addTable&&a.addTable(r.addTable.rows,r.addTable.options||{}),r.addText&&a.addText(r.addText.text,r.addText.options||{})})},a}(); -//# sourceMappingURL=pptxgen.min.js.map diff --git a/web-v2-res/static/js/socket.io.msgpack.min.js b/web-v2-res/static/js/socket.io.msgpack.min.js deleted file mode 100644 index 3ecd69e..0000000 --- a/web-v2-res/static/js/socket.io.msgpack.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * Socket.IO v4.4.0 - * (c) 2014-2021 Guillermo Rauch - * Released under the MIT License. - */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).io=e()}(this,(function(){"use strict";function t(t,e){return e.forEach((function(e){Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(t)}function e(t){return e="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},e(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);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 o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}var y=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,v=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],g=function(t){var e=t,n=t.indexOf("["),r=t.indexOf("]");-1!=n&&-1!=r&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));for(var i,o,s=y.exec(t||""),a={},c=14;c--;)a[v[c]]=s[c]||"";return-1!=n&&-1!=r&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(t,e){var n=/\/{2,9}/g,r=e.replace(n,"/").split("/");"/"!=e.substr(0,1)&&0!==e.length||r.splice(0,1);"/"==e.substr(e.length-1,1)&&r.splice(r.length-1,1);return r}(0,a.path),a.queryKey=(i=a.query,o={},i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,n){e&&(o[e]=n)})),o),a};var m={exports:{}};try{m.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){m.exports=!1}var _=m.exports,b="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function k(t){var e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||_))return new XMLHttpRequest}catch(t){}if(!e)try{return new(b[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}function w(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1?{type:A[n],data:t.substring(1)}:{type:A[n]}:x},F=function(t,e){if(I){var n=function(t){var e,n,r,i,o,s=.75*t.length,a=t.length,c=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var h=new ArrayBuffer(s),u=new Uint8Array(h);for(e=0;e>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return h}(t);return H(n,e)}return{base64:!0,data:t}},H=function(t,e){return"blob"===e&&t instanceof ArrayBuffer?new Blob([t]):t},$=String.fromCharCode(30),z=function(t){s(r,t);var e=f(r);function r(t){var i;return n(this,r),(i=e.call(this)).writable=!1,O(h(i),t),i.opts=t,i.query=t.query,i.readyState="",i.socket=t.socket,i}return i(r,[{key:"onError",value:function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,p(a(r.prototype),"emit",this).call(this,"error",n),this}},{key:"open",value:function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(t){"open"===this.readyState&&this.write(t)}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,p(a(r.prototype),"emit",this).call(this,"open")}},{key:"onData",value:function(t){var e=M(t,this.socket.binaryType);this.onPacket(e)}},{key:"onPacket",value:function(t){p(a(r.prototype),"emit",this).call(this,"packet",t)}},{key:"onClose",value:function(){this.readyState="closed",p(a(r.prototype),"emit",this).call(this,"close")}}]),r}(T),V="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),W={},X=0,K=0;function J(t){var e="";do{e=V[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function Y(){var t=J(+new Date);return t!==D?(X=0,D=t):t+"."+J(X++)}for(;K<64;K++)W[V[K]]=K;Y.encode=J,Y.decode=function(t){var e=0;for(K=0;K0&&void 0!==arguments[0]?arguments[0]:{};return o(t,{xd:this.xd,xs:this.xs},this.opts),new rt(this.uri(),t)}},{key:"doWrite",value:function(t,e){var n=this,r=this.request({method:"POST",data:t});r.on("success",e),r.on("error",(function(t){n.onError("xhr post error",t)}))}},{key:"doPoll",value:function(){var t=this,e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e}}]),r}(Z),rt=function(t){s(r,t);var e=f(r);function r(t,i){var o;return n(this,r),O(h(o=e.call(this)),i),o.opts=i,o.method=i.method||"GET",o.uri=t,o.async=!1!==i.async,o.data=void 0!==i.data?i.data:null,o.create(),o}return i(r,[{key:"create",value:function(){var t=this,e=w(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;var n=this.xhr=new k(e);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}catch(t){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{n.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?t.onLoad():t.setTimeoutFn((function(){t.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(e){return void this.setTimeoutFn((function(){t.onError(e)}),0)}"undefined"!=typeof document&&(this.index=r.requestsCount++,r.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(t){this.emit("data",t),this.onSuccess()}},{key:"onError",value:function(t){this.emit("error",t),this.cleanup(!0)}},{key:"cleanup",value:function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=tt,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete r.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var t=this.xhr.responseText;null!==t&&this.onData(t)}},{key:"abort",value:function(){this.cleanup()}}]),r}(T);if(rt.requestsCount=0,rt.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",it);else if("function"==typeof addEventListener){addEventListener("onpagehide"in b?"pagehide":"unload",it,!1)}function it(){for(var t in rt.requests)rt.requests.hasOwnProperty(t)&&rt.requests[t].abort()}var ot="function"==typeof Promise&&"function"==typeof Promise.resolve?function(t){return Promise.resolve().then(t)}:function(t,e){return e(t,0)},st=b.WebSocket||b.MozWebSocket,at="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),ct=function(t){s(r,t);var e=f(r);function r(t){var i;return n(this,r),(i=e.call(this,t)).supportsBinary=!t.forceBase64,i}return i(r,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var t=this.uri(),e=this.opts.protocols,n=at?{}:w(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=at?new st(t,e,n):e?new st(t,e):new st(t)}catch(t){return this.emit("error",t)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}}},{key:"addEventListeners",value:function(){var t=this;this.ws.onopen=function(){t.opts.autoUnref&&t.ws._socket.unref(),t.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(e){return t.onData(e.data)},this.ws.onerror=function(e){return t.onError("websocket error",e)}}},{key:"write",value:function(t){var e=this;this.writable=!1;for(var n=function(n){var r=t[n],i=n===t.length-1;B(r,e.supportsBinary,(function(t){try{e.ws.send(t)}catch(t){}i&&ot((function(){e.writable=!0,e.emit("drain")}),e.setTimeoutFn)}))},r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return n(this,a),i=r.call(this),t&&"object"===e(t)&&(s=t,t=null),t?(t=g(t),s.hostname=t.host,s.secure="https"===t.protocol||"wss"===t.protocol,s.port=t.port,t.query&&(s.query=t.query)):s.host&&(s.hostname=g(s.host).host),O(h(i),s),i.secure=null!=s.secure?s.secure:"undefined"!=typeof location&&"https:"===location.protocol,s.hostname&&!s.port&&(s.port=i.secure?"443":"80"),i.hostname=s.hostname||("undefined"!=typeof location?location.hostname:"localhost"),i.port=s.port||("undefined"!=typeof location&&location.port?location.port:i.secure?"443":"80"),i.transports=s.transports||["polling","websocket"],i.readyState="",i.writeBuffer=[],i.prevBufferLen=0,i.opts=o({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},s),i.opts.path=i.opts.path.replace(/\/$/,"")+"/","string"==typeof i.opts.query&&(i.opts.query=Q.decode(i.opts.query)),i.id=null,i.upgrades=null,i.pingInterval=null,i.pingTimeout=null,i.pingTimeoutTimer=null,"function"==typeof addEventListener&&(i.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){i.transport&&(i.transport.removeAllListeners(),i.transport.close())}),!1),"localhost"!==i.hostname&&(i.offlineEventListener=function(){i.onClose("transport close")},addEventListener("offline",i.offlineEventListener,!1))),i.open(),i}return i(a,[{key:"createTransport",value:function(t){var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);var n=o({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new ht[t](n)}},{key:"open",value:function(){var t,e=this;if(this.opts.rememberUpgrade&&a.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){e.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}},{key:"setTransport",value:function(t){var e=this;this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){e.onClose("transport close")}))}},{key:"probe",value:function(t){var e=this,n=this.createTransport(t),r=!1;a.priorWebsocketSuccess=!1;var i=function(){r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(t){if(!r)if("pong"===t.type&&"probe"===t.data){if(e.upgrading=!0,e.emitReserved("upgrading",n),!n)return;a.priorWebsocketSuccess="websocket"===n.name,e.transport.pause((function(){r||"closed"!==e.readyState&&(f(),e.setTransport(n),n.send([{type:"upgrade"}]),e.emitReserved("upgrade",n),n=null,e.upgrading=!1,e.flush())}))}else{var i=new Error("probe error");i.transport=n.name,e.emitReserved("upgradeError",i)}})))};function o(){r||(r=!0,f(),n.close(),n=null)}var s=function(t){var r=new Error("probe error: "+t);r.transport=n.name,o(),e.emitReserved("upgradeError",r)};function c(){s("transport closed")}function h(){s("socket closed")}function u(t){n&&t.name!==n.name&&o()}var f=function(){n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",c),e.off("close",h),e.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",c),this.once("close",h),this.once("upgrading",u),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",a.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var t=0,e=this.upgrades.length;t>6),t.setUint8(e++,128|63&r)):r<55296||r>=57344?(t.setUint8(e++,224|r>>12),t.setUint8(e++,128|r>>6&63),t.setUint8(e++,128|63&r)):(i++,r=65536+((1023&r)<<10|1023&n.charCodeAt(i)),t.setUint8(e++,240|r>>18),t.setUint8(e++,128|r>>12&63),t.setUint8(e++,128|r>>6&63),t.setUint8(e++,128|63&r))}function dt(t,n,r){var i=e(r),o=0,s=0,a=0,c=0,h=0,u=0;if("string"===i){if(h=function(t){for(var e=0,n=0,r=0,i=t.length;r=57344?n+=3:(r++,n+=4);return n}(r),h<32)t.push(160|h),u=1;else if(h<256)t.push(217,h),u=2;else if(h<65536)t.push(218,h>>8,h),u=3;else{if(!(h<4294967296))throw new Error("String too long");t.push(219,h>>24,h>>16,h>>8,h),u=5}return n.push({_str:r,_length:h,_offset:t.length}),u+h}if("number"===i)return Math.floor(r)===r&&isFinite(r)?r>=0?r<128?(t.push(r),1):r<256?(t.push(204,r),2):r<65536?(t.push(205,r>>8,r),3):r<4294967296?(t.push(206,r>>24,r>>16,r>>8,r),5):(a=r/Math.pow(2,32)>>0,c=r>>>0,t.push(207,a>>24,a>>16,a>>8,a,c>>24,c>>16,c>>8,c),9):r>=-32?(t.push(r),1):r>=-128?(t.push(208,r),2):r>=-32768?(t.push(209,r>>8,r),3):r>=-2147483648?(t.push(210,r>>24,r>>16,r>>8,r),5):(a=Math.floor(r/Math.pow(2,32)),c=r>>>0,t.push(211,a>>24,a>>16,a>>8,a,c>>24,c>>16,c>>8,c),9):(t.push(203),n.push({_float:r,_length:8,_offset:t.length}),9);if("object"===i){if(null===r)return t.push(192),1;if(Array.isArray(r)){if((h=r.length)<16)t.push(144|h),u=1;else if(h<65536)t.push(220,h>>8,h),u=3;else{if(!(h<4294967296))throw new Error("Array too large");t.push(221,h>>24,h>>16,h>>8,h),u=5}for(o=0;o>>0,t.push(215,0,a>>24,a>>16,a>>8,a,c>>24,c>>16,c>>8,c),10}if(r instanceof ArrayBuffer){if((h=r.byteLength)<256)t.push(196,h),u=2;else if(h<65536)t.push(197,h>>8,h),u=3;else{if(!(h<4294967296))throw new Error("Buffer too large");t.push(198,h>>24,h>>16,h>>8,h),u=5}return n.push({_bin:r,_length:h,_offset:t.length}),u+h}if("function"==typeof r.toJSON)return dt(t,n,r.toJSON());var p=[],l="",d=Object.keys(r);for(o=0,s=d.length;o>8,h),u=3;else{if(!(h<4294967296))throw new Error("Object too large");t.push(223,h>>24,h>>16,h>>8,h),u=5}for(o=0;o0&&(c=n[0]._offset);for(var h,u=0,f=0,p=0,l=e.length;p=65536?(i-=65536,r+=String.fromCharCode(55296+(i>>>10),56320+(1023&i))):r+=String.fromCharCode(i)}else r+=String.fromCharCode((15&a)<<12|(63&t.getUint8(++o))<<6|(63&t.getUint8(++o))<<0);else r+=String.fromCharCode((31&a)<<6|63&t.getUint8(++o));else r+=String.fromCharCode(a)}return r}(this._view,this._offset,t);return this._offset+=t,e},vt.prototype._bin=function(t){var e=this._buffer.slice(this._offset,this._offset+t);return this._offset+=t,e},vt.prototype._parse=function(){var t,e=this._view.getUint8(this._offset++),n=0,r=0,i=0,o=0;if(e<192)return e<128?e:e<144?this._map(15&e):e<160?this._array(15&e):this._str(31&e);if(e>223)return-1*(255-e+1);switch(e){case 192:return null;case 194:return!1;case 195:return!0;case 196:return n=this._view.getUint8(this._offset),this._offset+=1,this._bin(n);case 197:return n=this._view.getUint16(this._offset),this._offset+=2,this._bin(n);case 198:return n=this._view.getUint32(this._offset),this._offset+=4,this._bin(n);case 199:return n=this._view.getUint8(this._offset),r=this._view.getInt8(this._offset+1),this._offset+=2,[r,this._bin(n)];case 200:return n=this._view.getUint16(this._offset),r=this._view.getInt8(this._offset+2),this._offset+=3,[r,this._bin(n)];case 201:return n=this._view.getUint32(this._offset),r=this._view.getInt8(this._offset+4),this._offset+=5,[r,this._bin(n)];case 202:return t=this._view.getFloat32(this._offset),this._offset+=4,t;case 203:return t=this._view.getFloat64(this._offset),this._offset+=8,t;case 204:return t=this._view.getUint8(this._offset),this._offset+=1,t;case 205:return t=this._view.getUint16(this._offset),this._offset+=2,t;case 206:return t=this._view.getUint32(this._offset),this._offset+=4,t;case 207:return i=this._view.getUint32(this._offset)*Math.pow(2,32),o=this._view.getUint32(this._offset+4),this._offset+=8,i+o;case 208:return t=this._view.getInt8(this._offset),this._offset+=1,t;case 209:return t=this._view.getInt16(this._offset),this._offset+=2,t;case 210:return t=this._view.getInt32(this._offset),this._offset+=4,t;case 211:return i=this._view.getInt32(this._offset)*Math.pow(2,32),o=this._view.getUint32(this._offset+4),this._offset+=8,i+o;case 212:return r=this._view.getInt8(this._offset),this._offset+=1,0===r?void(this._offset+=1):[r,this._bin(1)];case 213:return r=this._view.getInt8(this._offset),this._offset+=1,[r,this._bin(2)];case 214:return r=this._view.getInt8(this._offset),this._offset+=1,[r,this._bin(4)];case 215:return r=this._view.getInt8(this._offset),this._offset+=1,0===r?(i=this._view.getInt32(this._offset)*Math.pow(2,32),o=this._view.getUint32(this._offset+4),this._offset+=8,new Date(i+o)):[r,this._bin(8)];case 216:return r=this._view.getInt8(this._offset),this._offset+=1,[r,this._bin(16)];case 217:return n=this._view.getUint8(this._offset),this._offset+=1,this._str(n);case 218:return n=this._view.getUint16(this._offset),this._offset+=2,this._str(n);case 219:return n=this._view.getUint32(this._offset),this._offset+=4,this._str(n);case 220:return n=this._view.getUint16(this._offset),this._offset+=2,this._array(n);case 221:return n=this._view.getUint32(this._offset),this._offset+=4,this._array(n);case 222:return n=this._view.getUint16(this._offset),this._offset+=2,this._map(n);case 223:return n=this._view.getUint32(this._offset),this._offset+=4,this._map(n)}throw new Error("Could not parse")};var gt=function(t){var e=new vt(t),n=e._parse();if(e._offset!==t.byteLength)throw new Error(t.byteLength-e._offset+" trailing bytes");return n};pt.encode=yt,pt.decode=gt;var mt,_t={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i=Et.CONNECT&&t.type<=Et.CONNECT_ERROR))throw new Error("invalid packet type");if(!Ot(t.nsp))throw new Error("invalid namespace");if(!function(t){switch(t.type){case Et.CONNECT:return void 0===t.data||Tt(t.data);case Et.DISCONNECT:return void 0===t.data;case Et.CONNECT_ERROR:return Ot(t.data)||Tt(t.data);default:return Array.isArray(t.data)}}(t))throw new Error("invalid payload");if(!(void 0===t.id||Ct(t.id)))throw new Error("invalid packet id")},Rt.prototype.destroy=function(){};var At=ft.Encoder=St,xt=ft.Decoder=Rt,Ut=Object.freeze(t({__proto__:null,default:ft,protocol:wt,get PacketType(){return mt},Encoder:At,Decoder:xt},[ft]));function Lt(t,e,n){return t.on(e,n),function(){t.off(e,n)}}var Bt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),jt=function(t){s(r,t);var e=f(r);function r(t,i,o){var s;return n(this,r),(s=e.call(this)).connected=!1,s.disconnected=!0,s.receiveBuffer=[],s.sendBuffer=[],s.ids=0,s.acks={},s.flags={},s.io=t,s.nsp=i,o&&o.auth&&(s.auth=o.auth),s.io._autoConnect&&s.open(),s}return i(r,[{key:"subEvents",value:function(){if(!this.subs){var t=this.io;this.subs=[Lt(t,"open",this.onopen.bind(this)),Lt(t,"packet",this.onpacket.bind(this)),Lt(t,"error",this.onerror.bind(this)),Lt(t,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1?e-1:0),r=1;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}Pt.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},Pt.prototype.reset=function(){this.attempts=0},Pt.prototype.setMin=function(t){this.ms=t},Pt.prototype.setMax=function(t){this.max=t},Pt.prototype.setJitter=function(t){this.jitter=t};var qt=function(t){s(o,t);var r=f(o);function o(t,i){var s,a;n(this,o),(s=r.call(this)).nsps={},s.subs=[],t&&"object"===e(t)&&(i=t,t=void 0),(i=i||{}).path=i.path||"/socket.io",s.opts=i,O(h(s),i),s.reconnection(!1!==i.reconnection),s.reconnectionAttempts(i.reconnectionAttempts||1/0),s.reconnectionDelay(i.reconnectionDelay||1e3),s.reconnectionDelayMax(i.reconnectionDelayMax||5e3),s.randomizationFactor(null!==(a=i.randomizationFactor)&&void 0!==a?a:.5),s.backoff=new Nt({min:s.reconnectionDelay(),max:s.reconnectionDelayMax(),jitter:s.randomizationFactor()}),s.timeout(null==i.timeout?2e4:i.timeout),s._readyState="closed",s.uri=t;var c=i.parser||Ut;return s.encoder=new c.Encoder,s.decoder=new c.Decoder,s._autoConnect=!1!==i.autoConnect,s._autoConnect&&s.open(),s}return i(o,[{key:"reconnection",value:function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}},{key:"reconnectionAttempts",value:function(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}},{key:"reconnectionDelay",value:function(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}},{key:"randomizationFactor",value:function(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}},{key:"reconnectionDelayMax",value:function(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}},{key:"timeout",value:function(t){return arguments.length?(this._timeout=t,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(t){var e=this;if(~this._readyState.indexOf("open"))return this;this.engine=new ut(this.uri,this.opts);var n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;var i=Lt(n,"open",(function(){r.onopen(),t&&t()})),o=Lt(n,"error",(function(n){r.cleanup(),r._readyState="closed",e.emitReserved("error",n),t?t(n):r.maybeReconnectOnOpen()}));if(!1!==this._timeout){var s=this._timeout;0===s&&i();var a=this.setTimeoutFn((function(){i(),n.close(),n.emit("error",new Error("timeout"))}),s);this.opts.autoUnref&&a.unref(),this.subs.push((function(){clearTimeout(a)}))}return this.subs.push(i),this.subs.push(o),this}},{key:"connect",value:function(t){return this.open(t)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var t=this.engine;this.subs.push(Lt(t,"ping",this.onping.bind(this)),Lt(t,"data",this.ondata.bind(this)),Lt(t,"error",this.onerror.bind(this)),Lt(t,"close",this.onclose.bind(this)),Lt(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(t){this.decoder.add(t)}},{key:"ondecoded",value:function(t){this.emitReserved("packet",t)}},{key:"onerror",value:function(t){this.emitReserved("error",t)}},{key:"socket",value:function(t,e){var n=this.nsps[t];return n||(n=new jt(this,t,e),this.nsps[t]=n),n}},{key:"_destroy",value:function(t){for(var e=0,n=Object.keys(this.nsps);e=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var r=this.setTimeoutFn((function(){e.skipReconnect||(t.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((function(n){n?(e._reconnecting=!1,e.reconnect(),t.emitReserved("reconnect_error",n)):e.onreconnect()})))}),n);this.opts.autoUnref&&r.unref(),this.subs.push((function(){clearTimeout(r)}))}}},{key:"onreconnect",value:function(){var t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}]),o}(T),Dt={};function It(t,n){"object"===e(t)&&(n=t,t=void 0);var r,i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=t;n=n||"undefined"!=typeof location&&location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==n?n.protocol+"//"+t:"https://"+t),r=g(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+e,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(t,(n=n||{}).path||"/socket.io"),o=i.source,s=i.id,a=i.path,c=Dt[s]&&a in Dt[s].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||c?r=new qt(o,n):(Dt[s]||(Dt[s]=new qt(o,n)),r=Dt[s]),i.query&&!n.query&&(n.query=i.queryKey),r.socket(i.path,n)}return o(It,{Manager:qt,Socket:jt,io:It,connect:It}),It})); -//# sourceMappingURL=socket.io.msgpack.min.js.map diff --git a/web-v2-res/static/js/xlsx.full.min.js b/web-v2-res/static/js/xlsx.full.min.js deleted file mode 100644 index 21471af..0000000 --- a/web-v2-res/static/js/xlsx.full.min.js +++ /dev/null @@ -1,24 +0,0 @@ -/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ -var DO_NOT_EXPORT_CODEPAGE=true;var cptable={version:"1.15.0"};cptable[437]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[620]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàąçêëèïîćÄĄĘęłôöĆûùŚÖܢ٥śƒŹŻóÓńŃźż¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[737]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[850]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[852]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[857]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[861]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[865]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[866]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[874]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[895]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ČüéďäĎŤčěĚĹÍľǪÄÁÉžŽôöÓůÚýÖÜŠĽÝŘťáíóúňŇŮÔšřŕŔ¼§«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[932]=function(){var e=[],r={},t=[],a;t[0]="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚��������������������������������".split("");for(a=0;a!=t[0].length;++a)if(t[0][a].charCodeAt(0)!==65533){r[t[0][a]]=0+a;e[0+a]=t[0][a]}t[129]="���������������������������������������������������������������� 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+-±×�÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓�����������∈∋⊆⊇⊂⊃∪∩��������∧∨¬⇒⇔∀∃�����������∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬�������ʼn♯♭♪†‡¶����◯���".split("");for(a=0;a!=t[129].length;++a)if(t[129][a].charCodeAt(0)!==65533){r[t[129][a]]=33024+a;e[33024+a]=t[129][a]}t[130]="�������������������������������������������������������������������������������0123456789�������ABCDEFGHIJKLMNOPQRSTUVWXYZ�������abcdefghijklmnopqrstuvwxyz����ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん��������������".split("");for(a=0;a!=t[130].length;++a)if(t[130][a].charCodeAt(0)!==65533){r[t[130][a]]=33280+a;e[33280+a]=t[130][a]}t[131]="����������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミ�ムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ��������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�����������������������������������������".split("");for(a=0;a!=t[131].length;++a)if(t[131][a].charCodeAt(0)!==65533){r[t[131][a]]=33536+a;e[33536+a]=t[131][a]}t[132]="����������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмн�опрстуфхцчшщъыьэюя�������������─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂�����������������������������������������������������������������".split("");for(a=0;a!=t[132].length;++a)if(t[132][a].charCodeAt(0)!==65533){r[t[132][a]]=33792+a;e[33792+a]=t[132][a]}t[135]="����������������������������������������������������������������①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡��������㍻�〝〟№㏍℡㊤㊥㊦㊧㊨㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪���������������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[135].length;++a)if(t[135][a].charCodeAt(0)!==65533){r[t[135][a]]=34560+a;e[34560+a]=t[135][a]}t[136]="���������������������������������������������������������������������������������������������������������������������������������������������������������������亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭���".split("");for(a=0;a!=t[136].length;++a)if(t[136][a].charCodeAt(0)!==65533){r[t[136][a]]=34816+a;e[34816+a]=t[136][a]}t[137]="����������������������������������������������������������������院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円�園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改���".split("");for(a=0;a!=t[137].length;++a)if(t[137][a].charCodeAt(0)!==65533){r[t[137][a]]=35072+a;e[35072+a]=t[137][a]}t[138]="����������������������������������������������������������������魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫�橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄���".split("");for(a=0;a!=t[138].length;++a)if(t[138][a].charCodeAt(0)!==65533){r[t[138][a]]=35328+a;e[35328+a]=t[138][a]}t[139]="����������������������������������������������������������������機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救�朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈���".split("");for(a=0;a!=t[139].length;++a)if(t[139][a].charCodeAt(0)!==65533){r[t[139][a]]=35584+a;e[35584+a]=t[139][a]}t[140]="����������������������������������������������������������������掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨�劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向���".split("");for(a=0;a!=t[140].length;++a)if(t[140][a].charCodeAt(0)!==65533){r[t[140][a]]=35840+a;e[35840+a]=t[140][a]}t[141]="����������������������������������������������������������������后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降�項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷���".split("");for(a=0;a!=t[141].length;++a)if(t[141][a].charCodeAt(0)!==65533){r[t[141][a]]=36096+a;e[36096+a]=t[141][a]}t[142]="����������������������������������������������������������������察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止�死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周���".split("");for(a=0;a!=t[142].length;++a)if(t[142][a].charCodeAt(0)!==65533){r[t[142][a]]=36352+a;e[36352+a]=t[142][a]}t[143]="����������������������������������������������������������������宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳�準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾���".split("");for(a=0;a!=t[143].length;++a)if(t[143][a].charCodeAt(0)!==65533){r[t[143][a]]=36608+a;e[36608+a]=t[143][a]}t[144]="����������������������������������������������������������������拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨�逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線���".split("");for(a=0;a!=t[144].length;++a)if(t[144][a].charCodeAt(0)!==65533){r[t[144][a]]=36864+a;e[36864+a]=t[144][a]}t[145]="����������������������������������������������������������������繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻�操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只���".split("");for(a=0;a!=t[145].length;++a)if(t[145][a].charCodeAt(0)!==65533){r[t[145][a]]=37120+a;e[37120+a]=t[145][a]}t[146]="����������������������������������������������������������������叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄�逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓���".split("");for(a=0;a!=t[146].length;++a)if(t[146][a].charCodeAt(0)!==65533){r[t[146][a]]=37376+a;e[37376+a]=t[146][a]}t[147]="����������������������������������������������������������������邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬�凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入���".split("");for(a=0;a!=t[147].length;++a)if(t[147][a].charCodeAt(0)!==65533){r[t[147][a]]=37632+a;e[37632+a]=t[147][a]}t[148]="����������������������������������������������������������������如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅�楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美���".split("");for(a=0;a!=t[148].length;++a)if(t[148][a].charCodeAt(0)!==65533){r[t[148][a]]=37888+a;e[37888+a]=t[148][a]}t[149]="����������������������������������������������������������������鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷�斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋���".split("");for(a=0;a!=t[149].length;++a)if(t[149][a].charCodeAt(0)!==65533){r[t[149][a]]=38144+a;e[38144+a]=t[149][a]}t[150]="����������������������������������������������������������������法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆�摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒���".split("");for(a=0;a!=t[150].length;++a)if(t[150][a].charCodeAt(0)!==65533){r[t[150][a]]=38400+a;e[38400+a]=t[150][a]}t[151]="����������������������������������������������������������������諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲�沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯���".split("");for(a=0;a!=t[151].length;++a)if(t[151][a].charCodeAt(0)!==65533){r[t[151][a]]=38656+a;e[38656+a]=t[151][a]}t[152]="����������������������������������������������������������������蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕��������������������������������������������弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲���".split("");for(a=0;a!=t[152].length;++a)if(t[152][a].charCodeAt(0)!==65533){r[t[152][a]]=38912+a;e[38912+a]=t[152][a]}t[153]="����������������������������������������������������������������僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭�凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨���".split("");for(a=0;a!=t[153].length;++a)if(t[153][a].charCodeAt(0)!==65533){r[t[153][a]]=39168+a;e[39168+a]=t[153][a]}t[154]="����������������������������������������������������������������咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸�噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩���".split("");for(a=0;a!=t[154].length;++a)if(t[154][a].charCodeAt(0)!==65533){r[t[154][a]]=39424+a;e[39424+a]=t[154][a]}t[155]="����������������������������������������������������������������奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀�它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏���".split("");for(a=0;a!=t[155].length;++a)if(t[155][a].charCodeAt(0)!==65533){r[t[155][a]]=39680+a;e[39680+a]=t[155][a]}t[156]="����������������������������������������������������������������廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠�怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛���".split("");for(a=0;a!=t[156].length;++a)if(t[156][a].charCodeAt(0)!==65533){r[t[156][a]]=39936+a;e[39936+a]=t[156][a]}t[157]="����������������������������������������������������������������戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫�捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼���".split("");for(a=0;a!=t[157].length;++a)if(t[157][a].charCodeAt(0)!==65533){r[t[157][a]]=40192+a;e[40192+a]=t[157][a]}t[158]="����������������������������������������������������������������曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎�梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣���".split("");for(a=0;a!=t[158].length;++a)if(t[158][a].charCodeAt(0)!==65533){r[t[158][a]]=40448+a;e[40448+a]=t[158][a]}t[159]="����������������������������������������������������������������檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯�麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌���".split("");for(a=0;a!=t[159].length;++a)if(t[159][a].charCodeAt(0)!==65533){r[t[159][a]]=40704+a;e[40704+a]=t[159][a]}t[224]="����������������������������������������������������������������漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝�烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱���".split("");for(a=0;a!=t[224].length;++a)if(t[224][a].charCodeAt(0)!==65533){r[t[224][a]]=57344+a;e[57344+a]=t[224][a]}t[225]="����������������������������������������������������������������瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿�痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬���".split("");for(a=0;a!=t[225].length;++a)if(t[225][a].charCodeAt(0)!==65533){r[t[225][a]]=57600+a;e[57600+a]=t[225][a]}t[226]="����������������������������������������������������������������磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰�窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆���".split("");for(a=0;a!=t[226].length;++a)if(t[226][a].charCodeAt(0)!==65533){r[t[226][a]]=57856+a;e[57856+a]=t[226][a]}t[227]="����������������������������������������������������������������紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷�縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋���".split("");for(a=0;a!=t[227].length;++a)if(t[227][a].charCodeAt(0)!==65533){r[t[227][a]]=58112+a;e[58112+a]=t[227][a]}t[228]="����������������������������������������������������������������隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤�艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈���".split("");for(a=0;a!=t[228].length;++a)if(t[228][a].charCodeAt(0)!==65533){r[t[228][a]]=58368+a;e[58368+a]=t[228][a]}t[229]="����������������������������������������������������������������蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬�蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞���".split("");for(a=0;a!=t[229].length;++a)if(t[229][a].charCodeAt(0)!==65533){r[t[229][a]]=58624+a;e[58624+a]=t[229][a]}t[230]="����������������������������������������������������������������襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧�諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊���".split("");for(a=0;a!=t[230].length;++a)if(t[230][a].charCodeAt(0)!==65533){r[t[230][a]]=58880+a;e[58880+a]=t[230][a]}t[231]="����������������������������������������������������������������蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜�轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮���".split("");for(a=0;a!=t[231].length;++a)if(t[231][a].charCodeAt(0)!==65533){r[t[231][a]]=59136+a;e[59136+a]=t[231][a]}t[232]="����������������������������������������������������������������錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙�閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰���".split("");for(a=0;a!=t[232].length;++a)if(t[232][a].charCodeAt(0)!==65533){r[t[232][a]]=59392+a;e[59392+a]=t[232][a]}t[233]="����������������������������������������������������������������顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃�騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈���".split("");for(a=0;a!=t[233].length;++a)if(t[233][a].charCodeAt(0)!==65533){r[t[233][a]]=59648+a;e[59648+a]=t[233][a]}t[234]="����������������������������������������������������������������鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯�黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙�������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[234].length;++a)if(t[234][a].charCodeAt(0)!==65533){r[t[234][a]]=59904+a;e[59904+a]=t[234][a]}t[237]="����������������������������������������������������������������纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏�塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱���".split("");for(a=0;a!=t[237].length;++a)if(t[237][a].charCodeAt(0)!==65533){r[t[237][a]]=60672+a;e[60672+a]=t[237][a]}t[238]="����������������������������������������������������������������犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙�蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑��ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ¬¦'"���".split("");for(a=0;a!=t[238].length;++a)if(t[238][a].charCodeAt(0)!==65533){r[t[238][a]]=60928+a;e[60928+a]=t[238][a]}t[250]="����������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊�兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯���".split("");for(a=0;a!=t[250].length;++a)if(t[250][a].charCodeAt(0)!==65533){r[t[250][a]]=64e3+a;e[64e3+a]=t[250][a]}t[251]="����������������������������������������������������������������涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神�祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙���".split("");for(a=0;a!=t[251].length;++a)if(t[251][a].charCodeAt(0)!==65533){r[t[251][a]]=64256+a;e[64256+a]=t[251][a]}t[252]="����������������������������������������������������������������髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[252].length;++a)if(t[252][a].charCodeAt(0)!==65533){r[t[252][a]]=64512+a;e[64512+a]=t[252][a]}return{enc:r,dec:e}}();cptable[936]=function(){var e=[],r={},t=[],a;t[0]="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�������������������������������������������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[0].length;++a)if(t[0][a].charCodeAt(0)!==65533){r[t[0][a]]=0+a;e[0+a]=t[0][a]}t[129]="����������������������������������������������������������������丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪乫乬乭乮乯乲乴乵乶乷乸乹乺乻乼乽乿亀亁亂亃亄亅亇亊�亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂伃伄伅伆伇伈伋伌伒伓伔伕伖伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾伿佀佁佂佄佅佇佈佉佊佋佌佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢�".split("");for(a=0;a!=t[129].length;++a)if(t[129][a].charCodeAt(0)!==65533){r[t[129][a]]=33024+a;e[33024+a]=t[129][a]}t[130]="����������������������������������������������������������������侤侫侭侰侱侲侳侴侶侷侸侹侺侻侼侽侾俀俁係俆俇俈俉俋俌俍俒俓俔俕俖俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿倀倁倂倃倄倅倆倇倈倉倊�個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯倰倱倲倳倴倵倶倷倸倹倻倽倿偀偁偂偄偅偆偉偊偋偍偐偑偒偓偔偖偗偘偙偛偝偞偟偠偡偢偣偤偦偧偨偩偪偫偭偮偯偰偱偲偳側偵偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎傏傐傑傒傓傔傕傖傗傘備傚傛傜傝傞傟傠傡傢傤傦傪傫傭傮傯傰傱傳傴債傶傷傸傹傼�".split("");for(a=0;a!=t[130].length;++a)if(t[130][a].charCodeAt(0)!==65533){r[t[130][a]]=33280+a;e[33280+a]=t[130][a]}t[131]="����������������������������������������������������������������傽傾傿僀僁僂僃僄僅僆僇僈僉僊僋僌働僎僐僑僒僓僔僕僗僘僙僛僜僝僞僟僠僡僢僣僤僥僨僩僪僫僯僰僱僲僴僶僷僸價僺僼僽僾僿儀儁儂儃億儅儈�儉儊儌儍儎儏儐儑儓儔儕儖儗儘儙儚儛儜儝儞償儠儢儣儤儥儦儧儨儩優儫儬儭儮儯儰儱儲儳儴儵儶儷儸儹儺儻儼儽儾兂兇兊兌兎兏児兒兓兗兘兙兛兝兞兟兠兡兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦冧冨冩冪冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒凓凔凕凖凗�".split("");for(a=0;a!=t[131].length;++a)if(t[131][a].charCodeAt(0)!==65533){r[t[131][a]]=33536+a;e[33536+a]=t[131][a]}t[132]="����������������������������������������������������������������凘凙凚凜凞凟凢凣凥処凧凨凩凪凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄剅剆則剈剉剋剎剏剒剓剕剗剘�剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳剴創剶剷剸剹剺剻剼剾劀劃劄劅劆劇劉劊劋劌劍劎劏劑劒劔劕劖劗劘劙劚劜劤劥劦劧劮劯劰労劵劶劷劸効劺劻劼劽勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務勚勛勜勝勞勠勡勢勣勥勦勧勨勩勪勫勬勭勮勯勱勲勳勴勵勶勷勸勻勼勽匁匂匃匄匇匉匊匋匌匎�".split("");for(a=0;a!=t[132].length;++a)if(t[132][a].charCodeAt(0)!==65533){r[t[132][a]]=33792+a;e[33792+a]=t[132][a]}t[133]="����������������������������������������������������������������匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯匰匱匲匳匴匵匶匷匸匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏�厐厑厒厓厔厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯厰厱厲厳厴厵厷厸厹厺厼厽厾叀參叄叅叆叇収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝呞呟呠呡呣呥呧呩呪呫呬呭呮呯呰呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡�".split("");for(a=0;a!=t[133].length;++a)if(t[133][a].charCodeAt(0)!==65533){r[t[133][a]]=34048+a;e[34048+a]=t[133][a]}t[134]="����������������������������������������������������������������咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠員哢哣哤哫哬哯哰哱哴哵哶哷哸哹哻哾唀唂唃唄唅唈唊唋唌唍唎唒唓唕唖唗唘唙唚唜唝唞唟唡唥唦�唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋啌啍啎問啑啒啓啔啗啘啙啚啛啝啞啟啠啢啣啨啩啫啯啰啱啲啳啴啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠喡喢喣喤喥喦喨喩喪喫喬喭單喯喰喲喴営喸喺喼喿嗀嗁嗂嗃嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗嗘嗙嗚嗛嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸嗹嗺嗻嗼嗿嘂嘃嘄嘅�".split("");for(a=0;a!=t[134].length;++a)if(t[134][a].charCodeAt(0)!==65533){r[t[134][a]]=34304+a;e[34304+a]=t[134][a]}t[135]="����������������������������������������������������������������嘆嘇嘊嘋嘍嘐嘑嘒嘓嘔嘕嘖嘗嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀噁噂噃噄噅噆噇噈噉噊噋噏噐噑噒噓噕噖噚噛噝噞噟噠噡�噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽噾噿嚀嚁嚂嚃嚄嚇嚈嚉嚊嚋嚌嚍嚐嚑嚒嚔嚕嚖嚗嚘嚙嚚嚛嚜嚝嚞嚟嚠嚡嚢嚤嚥嚦嚧嚨嚩嚪嚫嚬嚭嚮嚰嚱嚲嚳嚴嚵嚶嚸嚹嚺嚻嚽嚾嚿囀囁囂囃囄囅囆囇囈囉囋囌囍囎囏囐囑囒囓囕囖囘囙囜団囥囦囧囨囩囪囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國圌圍圎圏圐圑�".split("");for(a=0;a!=t[135].length;++a)if(t[135][a].charCodeAt(0)!==65533){r[t[135][a]]=34560+a;e[34560+a]=t[135][a]}t[136]="����������������������������������������������������������������園圓圔圕圖圗團圙圚圛圝圞圠圡圢圤圥圦圧圫圱圲圴圵圶圷圸圼圽圿坁坃坄坅坆坈坉坋坒坓坔坕坖坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀�垁垇垈垉垊垍垎垏垐垑垔垕垖垗垘垙垚垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹垺垻垼垽垾垿埀埁埄埅埆埇埈埉埊埌埍埐埑埓埖埗埛埜埞埡埢埣埥埦埧埨埩埪埫埬埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥堦堧堨堩堫堬堭堮堯報堲堳場堶堷堸堹堺堻堼堽�".split("");for(a=0;a!=t[136].length;++a)if(t[136][a].charCodeAt(0)!==65533){r[t[136][a]]=34816+a;e[34816+a]=t[136][a]}t[137]="����������������������������������������������������������������堾堿塀塁塂塃塅塆塇塈塉塊塋塎塏塐塒塓塕塖塗塙塚塛塜塝塟塠塡塢塣塤塦塧塨塩塪塭塮塯塰塱塲塳塴塵塶塷塸塹塺塻塼塽塿墂墄墆墇墈墊墋墌�墍墎墏墐墑墔墕墖増墘墛墜墝墠墡墢墣墤墥墦墧墪墫墬墭墮墯墰墱墲墳墴墵墶墷墸墹墺墻墽墾墿壀壂壃壄壆壇壈壉壊壋壌壍壎壏壐壒壓壔壖壗壘壙壚壛壜壝壞壟壠壡壢壣壥壦壧壨壩壪壭壯壱売壴壵壷壸壺壻壼壽壾壿夀夁夃夅夆夈変夊夋夌夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻�".split("");for(a=0;a!=t[137].length;++a)if(t[137][a].charCodeAt(0)!==65533){r[t[137][a]]=35072+a;e[35072+a]=t[137][a]}t[138]="����������������������������������������������������������������夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛奜奝奞奟奡奣奤奦奧奨奩奪奫奬奭奮奯奰奱奲奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦�妧妬妭妰妱妳妴妵妶妷妸妺妼妽妿姀姁姂姃姄姅姇姈姉姌姍姎姏姕姖姙姛姞姟姠姡姢姤姦姧姩姪姫姭姮姯姰姱姲姳姴姵姶姷姸姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪娫娬娭娮娯娰娳娵娷娸娹娺娻娽娾娿婁婂婃婄婅婇婈婋婌婍婎婏婐婑婒婓婔婖婗婘婙婛婜婝婞婟婠�".split("");for(a=0;a!=t[138].length;++a)if(t[138][a].charCodeAt(0)!==65533){r[t[138][a]]=35328+a;e[35328+a]=t[138][a]}t[139]="����������������������������������������������������������������婡婣婤婥婦婨婩婫婬婭婮婯婰婱婲婳婸婹婻婼婽婾媀媁媂媃媄媅媆媇媈媉媊媋媌媍媎媏媐媑媓媔媕媖媗媘媙媜媝媞媟媠媡媢媣媤媥媦媧媨媩媫媬�媭媮媯媰媱媴媶媷媹媺媻媼媽媿嫀嫃嫄嫅嫆嫇嫈嫊嫋嫍嫎嫏嫐嫑嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬嫭嫮嫯嫰嫲嫳嫴嫵嫶嫷嫸嫹嫺嫻嫼嫽嫾嫿嬀嬁嬂嬃嬄嬅嬆嬇嬈嬊嬋嬌嬍嬎嬏嬐嬑嬒嬓嬔嬕嬘嬙嬚嬛嬜嬝嬞嬟嬠嬡嬢嬣嬤嬥嬦嬧嬨嬩嬪嬫嬬嬭嬮嬯嬰嬱嬳嬵嬶嬸嬹嬺嬻嬼嬽嬾嬿孁孂孃孄孅孆孇�".split("");for(a=0;a!=t[139].length;++a)if(t[139][a].charCodeAt(0)!==65533){r[t[139][a]]=35584+a;e[35584+a]=t[139][a]}t[140]="����������������������������������������������������������������孈孉孊孋孌孍孎孏孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏�寑寔寕寖寗寘寙寚寛寜寠寢寣實寧審寪寫寬寭寯寱寲寳寴寵寶寷寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧屨屩屪屫屬屭屰屲屳屴屵屶屷屸屻屼屽屾岀岃岄岅岆岇岉岊岋岎岏岒岓岕岝岞岟岠岡岤岥岦岧岨�".split("");for(a=0;a!=t[140].length;++a)if(t[140][a].charCodeAt(0)!==65533){r[t[140][a]]=35840+a;e[35840+a]=t[140][a]}t[141]="����������������������������������������������������������������岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅峆峇峈峉峊峌峍峎峏峐峑峓峔峕峖峗峘峚峛峜峝峞峟峠峢峣峧峩峫峬峮峯峱峲峳峴峵島峷峸峹峺峼峽峾峿崀�崁崄崅崈崉崊崋崌崍崏崐崑崒崓崕崗崘崙崚崜崝崟崠崡崢崣崥崨崪崫崬崯崰崱崲崳崵崶崷崸崹崺崻崼崿嵀嵁嵂嵃嵄嵅嵆嵈嵉嵍嵎嵏嵐嵑嵒嵓嵔嵕嵖嵗嵙嵚嵜嵞嵟嵠嵡嵢嵣嵤嵥嵦嵧嵨嵪嵭嵮嵰嵱嵲嵳嵵嵶嵷嵸嵹嵺嵻嵼嵽嵾嵿嶀嶁嶃嶄嶅嶆嶇嶈嶉嶊嶋嶌嶍嶎嶏嶐嶑嶒嶓嶔嶕嶖嶗嶘嶚嶛嶜嶞嶟嶠�".split("");for(a=0;a!=t[141].length;++a)if(t[141][a].charCodeAt(0)!==65533){r[t[141][a]]=36096+a;e[36096+a]=t[141][a]}t[142]="����������������������������������������������������������������嶡嶢嶣嶤嶥嶦嶧嶨嶩嶪嶫嶬嶭嶮嶯嶰嶱嶲嶳嶴嶵嶶嶸嶹嶺嶻嶼嶽嶾嶿巀巁巂巃巄巆巇巈巉巊巋巌巎巏巐巑巒巓巔巕巖巗巘巙巚巜巟巠巣巤巪巬巭�巰巵巶巸巹巺巻巼巿帀帄帇帉帊帋帍帎帒帓帗帞帟帠帡帢帣帤帥帨帩帪師帬帯帰帲帳帴帵帶帹帺帾帿幀幁幃幆幇幈幉幊幋幍幎幏幐幑幒幓幖幗幘幙幚幜幝幟幠幣幤幥幦幧幨幩幪幫幬幭幮幯幰幱幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨庩庪庫庬庮庯庰庱庲庴庺庻庼庽庿廀廁廂廃廄廅�".split("");for(a=0;a!=t[142].length;++a)if(t[142][a].charCodeAt(0)!==65533){r[t[142][a]]=36352+a;e[36352+a]=t[142][a]}t[143]="����������������������������������������������������������������廆廇廈廋廌廍廎廏廐廔廕廗廘廙廚廜廝廞廟廠廡廢廣廤廥廦廧廩廫廬廭廮廯廰廱廲廳廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤�弨弫弬弮弰弲弳弴張弶強弸弻弽弾弿彁彂彃彄彅彆彇彈彉彊彋彌彍彎彏彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢徣徤徥徦徧復徫徬徯徰徱徲徳徴徶徸徹徺徻徾徿忀忁忂忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇�".split("");for(a=0;a!=t[143].length;++a)if(t[143][a].charCodeAt(0)!==65533){r[t[143][a]]=36608+a;e[36608+a]=t[143][a]}t[144]="����������������������������������������������������������������怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰怱怲怳怴怶怷怸怹怺怽怾恀恄恅恆恇恈恉恊恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀�悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽悾悿惀惁惂惃惄惇惈惉惌惍惎惏惐惒惓惔惖惗惙惛惞惡惢惣惤惥惪惱惲惵惷惸惻惼惽惾惿愂愃愄愅愇愊愋愌愐愑愒愓愔愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬愭愮愯愰愱愲愳愴愵愶愷愸愹愺愻愼愽愾慀慁慂慃慄慅慆�".split("");for(a=0;a!=t[144].length;++a)if(t[144][a].charCodeAt(0)!==65533){r[t[144][a]]=36864+a;e[36864+a]=t[144][a]}t[145]="����������������������������������������������������������������慇慉態慍慏慐慒慓慔慖慗慘慙慚慛慜慞慟慠慡慣慤慥慦慩慪慫慬慭慮慯慱慲慳慴慶慸慹慺慻慼慽慾慿憀憁憂憃憄憅憆憇憈憉憊憌憍憏憐憑憒憓憕�憖憗憘憙憚憛憜憞憟憠憡憢憣憤憥憦憪憫憭憮憯憰憱憲憳憴憵憶憸憹憺憻憼憽憿懀懁懃懄懅懆懇應懌懍懎懏懐懓懕懖懗懘懙懚懛懜懝懞懟懠懡懢懣懤懥懧懨懩懪懫懬懭懮懯懰懱懲懳懴懶懷懸懹懺懻懼懽懾戀戁戂戃戄戅戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸戹戺戻戼扂扄扅扆扊�".split("");for(a=0;a!=t[145].length;++a)if(t[145][a].charCodeAt(0)!==65533){r[t[145][a]]=37120+a;e[37120+a]=t[145][a]}t[146]="����������������������������������������������������������������扏扐払扖扗扙扚扜扝扞扟扠扡扢扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋抌抍抎抏抐抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁�拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳挴挵挶挷挸挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖捗捘捙捚捛捜捝捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙掚掛掜掝掞掟採掤掦掫掯掱掲掵掶掹掻掽掿揀�".split("");for(a=0;a!=t[146].length;++a)if(t[146][a].charCodeAt(0)!==65533){r[t[146][a]]=37376+a;e[37376+a]=t[146][a]}t[147]="����������������������������������������������������������������揁揂揃揅揇揈揊揋揌揑揓揔揕揗揘揙揚換揜揝揟揢揤揥揦揧揨揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆搇搈搉搊損搎搑搒搕搖搗搘搙搚搝搟搢搣搤�搥搧搨搩搫搮搯搰搱搲搳搵搶搷搸搹搻搼搾摀摂摃摉摋摌摍摎摏摐摑摓摕摖摗摙摚摛摜摝摟摠摡摢摣摤摥摦摨摪摫摬摮摯摰摱摲摳摴摵摶摷摻摼摽摾摿撀撁撃撆撈撉撊撋撌撍撎撏撐撓撔撗撘撚撛撜撝撟撠撡撢撣撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆擇擈擉擊擋擌擏擑擓擔擕擖擙據�".split("");for(a=0;a!=t[147].length;++a)if(t[147][a].charCodeAt(0)!==65533){r[t[147][a]]=37632+a;e[37632+a]=t[147][a]}t[148]="����������������������������������������������������������������擛擜擝擟擠擡擣擥擧擨擩擪擫擬擭擮擯擰擱擲擳擴擵擶擷擸擹擺擻擼擽擾擿攁攂攃攄攅攆攇攈攊攋攌攍攎攏攐攑攓攔攕攖攗攙攚攛攜攝攞攟攠攡�攢攣攤攦攧攨攩攪攬攭攰攱攲攳攷攺攼攽敀敁敂敃敄敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數敹敺敻敼敽敾敿斀斁斂斃斄斅斆斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱斲斳斴斵斶斷斸斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘旙旚旛旜旝旞旟旡旣旤旪旫�".split("");for(a=0;a!=t[148].length;++a)if(t[148][a].charCodeAt(0)!==65533){r[t[148][a]]=37888+a;e[37888+a]=t[148][a]}t[149]="����������������������������������������������������������������旲旳旴旵旸旹旻旼旽旾旿昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷昸昹昺昻昽昿晀時晄晅晆晇晈晉晊晍晎晐晑晘�晙晛晜晝晞晠晢晣晥晧晩晪晫晬晭晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘暙暚暛暜暞暟暠暡暢暣暤暥暦暩暪暫暬暭暯暰暱暲暳暵暶暷暸暺暻暼暽暿曀曁曂曃曄曅曆曇曈曉曊曋曌曍曎曏曐曑曒曓曔曕曖曗曘曚曞曟曠曡曢曣曤曥曧曨曪曫曬曭曮曯曱曵曶書曺曻曽朁朂會�".split("");for(a=0;a!=t[149].length;++a)if(t[149][a].charCodeAt(0)!==65533){r[t[149][a]]=38144+a;e[38144+a]=t[149][a]}t[150]="����������������������������������������������������������������朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠朡朢朣朤朥朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗杘杙杚杛杝杢杣杤杦杧杫杬杮東杴杶�杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹枺枻枼枽枾枿柀柂柅柆柇柈柉柊柋柌柍柎柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵柶柷柸柹柺査柼柾栁栂栃栄栆栍栐栒栔栕栘栙栚栛栜栞栟栠栢栣栤栥栦栧栨栫栬栭栮栯栰栱栴栵栶栺栻栿桇桋桍桏桒桖桗桘桙桚桛�".split("");for(a=0;a!=t[150].length;++a)if(t[150][a].charCodeAt(0)!==65533){r[t[150][a]]=38400+a;e[38400+a]=t[150][a]}t[151]="����������������������������������������������������������������桜桝桞桟桪桬桭桮桯桰桱桲桳桵桸桹桺桻桼桽桾桿梀梂梄梇梈梉梊梋梌梍梎梐梑梒梔梕梖梘梙梚梛梜條梞梟梠梡梣梤梥梩梪梫梬梮梱梲梴梶梷梸�梹梺梻梼梽梾梿棁棃棄棅棆棇棈棊棌棎棏棐棑棓棔棖棗棙棛棜棝棞棟棡棢棤棥棦棧棨棩棪棫棬棭棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆椇椈椉椊椌椏椑椓椔椕椖椗椘椙椚椛検椝椞椡椢椣椥椦椧椨椩椪椫椬椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃楄楅楆楇楈楉楊楋楌楍楎楏楐楑楒楓楕楖楘楙楛楜楟�".split("");for(a=0;a!=t[151].length;++a)if(t[151][a].charCodeAt(0)!==65533){r[t[151][a]]=38656+a;e[38656+a]=t[151][a]}t[152]="����������������������������������������������������������������楡楢楤楥楧楨楩楪楬業楯楰楲楳楴極楶楺楻楽楾楿榁榃榅榊榋榌榎榏榐榑榒榓榖榗榙榚榝榞榟榠榡榢榣榤榥榦榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽�榾榿槀槂槃槄槅槆槇槈槉構槍槏槑槒槓槕槖槗様槙槚槜槝槞槡槢槣槤槥槦槧槨槩槪槫槬槮槯槰槱槳槴槵槶槷槸槹槺槻槼槾樀樁樂樃樄樅樆樇樈樉樋樌樍樎樏樐樑樒樓樔樕樖標樚樛樜樝樞樠樢樣樤樥樦樧権樫樬樭樮樰樲樳樴樶樷樸樹樺樻樼樿橀橁橂橃橅橆橈橉橊橋橌橍橎橏橑橒橓橔橕橖橗橚�".split("");for(a=0;a!=t[152].length;++a)if(t[152][a].charCodeAt(0)!==65533){r[t[152][a]]=38912+a;e[38912+a]=t[152][a]; -}t[153]="����������������������������������������������������������������橜橝橞機橠橢橣橤橦橧橨橩橪橫橬橭橮橯橰橲橳橴橵橶橷橸橺橻橽橾橿檁檂檃檅檆檇檈檉檊檋檌檍檏檒檓檔檕檖檘檙檚檛檜檝檞檟檡檢檣檤檥檦�檧檨檪檭檮檯檰檱檲檳檴檵檶檷檸檹檺檻檼檽檾檿櫀櫁櫂櫃櫄櫅櫆櫇櫈櫉櫊櫋櫌櫍櫎櫏櫐櫑櫒櫓櫔櫕櫖櫗櫘櫙櫚櫛櫜櫝櫞櫟櫠櫡櫢櫣櫤櫥櫦櫧櫨櫩櫪櫫櫬櫭櫮櫯櫰櫱櫲櫳櫴櫵櫶櫷櫸櫹櫺櫻櫼櫽櫾櫿欀欁欂欃欄欅欆欇欈欉權欋欌欍欎欏欐欑欒欓欔欕欖欗欘欙欚欛欜欝欞欟欥欦欨欩欪欫欬欭欮�".split("");for(a=0;a!=t[153].length;++a)if(t[153][a].charCodeAt(0)!==65533){r[t[153][a]]=39168+a;e[39168+a]=t[153][a]}t[154]="����������������������������������������������������������������欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍歎歏歐歑歒歓歔歕歖歗歘歚歛歜歝歞歟歠歡歨歩歫歬歭歮歯歰歱歲歳歴歵歶歷歸歺歽歾歿殀殅殈�殌殎殏殐殑殔殕殗殘殙殜殝殞殟殠殢殣殤殥殦殧殨殩殫殬殭殮殯殰殱殲殶殸殹殺殻殼殽殾毀毃毄毆毇毈毉毊毌毎毐毑毘毚毜毝毞毟毠毢毣毤毥毦毧毨毩毬毭毮毰毱毲毴毶毷毸毺毻毼毾毿氀氁氂氃氄氈氉氊氋氌氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋汌汍汎汏汑汒汓汖汘�".split("");for(a=0;a!=t[154].length;++a)if(t[154][a].charCodeAt(0)!==65533){r[t[154][a]]=39424+a;e[39424+a]=t[154][a]}t[155]="����������������������������������������������������������������汙汚汢汣汥汦汧汫汬汭汮汯汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘�泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟洠洡洢洣洤洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽浾浿涀涁涃涄涆涇涊涋涍涏涐涒涖涗涘涙涚涜涢涥涬涭涰涱涳涴涶涷涹涺涻涼涽涾淁淂淃淈淉淊�".split("");for(a=0;a!=t[155].length;++a)if(t[155][a].charCodeAt(0)!==65533){r[t[155][a]]=39680+a;e[39680+a]=t[155][a]}t[156]="����������������������������������������������������������������淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽淾淿渀渁渂渃渄渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵�渶渷渹渻渼渽渾渿湀湁湂湅湆湇湈湉湊湋湌湏湐湑湒湕湗湙湚湜湝湞湠湡湢湣湤湥湦湧湨湩湪湬湭湯湰湱湲湳湴湵湶湷湸湹湺湻湼湽満溁溂溄溇溈溊溋溌溍溎溑溒溓溔溕準溗溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪滫滬滭滮滯�".split("");for(a=0;a!=t[156].length;++a)if(t[156][a].charCodeAt(0)!==65533){r[t[156][a]]=39936+a;e[39936+a]=t[156][a]}t[157]="����������������������������������������������������������������滰滱滲滳滵滶滷滸滺滻滼滽滾滿漀漁漃漄漅漇漈漊漋漌漍漎漐漑漒漖漗漘漙漚漛漜漝漞漟漡漢漣漥漦漧漨漬漮漰漲漴漵漷漸漹漺漻漼漽漿潀潁潂�潃潄潅潈潉潊潌潎潏潐潑潒潓潔潕潖潗潙潚潛潝潟潠潡潣潤潥潧潨潩潪潫潬潯潰潱潳潵潶潷潹潻潽潾潿澀澁澂澃澅澆澇澊澋澏澐澑澒澓澔澕澖澗澘澙澚澛澝澞澟澠澢澣澤澥澦澨澩澪澫澬澭澮澯澰澱澲澴澵澷澸澺澻澼澽澾澿濁濃濄濅濆濇濈濊濋濌濍濎濏濐濓濔濕濖濗濘濙濚濛濜濝濟濢濣濤濥�".split("");for(a=0;a!=t[157].length;++a)if(t[157][a].charCodeAt(0)!==65533){r[t[157][a]]=40192+a;e[40192+a]=t[157][a]}t[158]="����������������������������������������������������������������濦濧濨濩濪濫濬濭濰濱濲濳濴濵濶濷濸濹濺濻濼濽濾濿瀀瀁瀂瀃瀄瀅瀆瀇瀈瀉瀊瀋瀌瀍瀎瀏瀐瀒瀓瀔瀕瀖瀗瀘瀙瀜瀝瀞瀟瀠瀡瀢瀤瀥瀦瀧瀨瀩瀪�瀫瀬瀭瀮瀯瀰瀱瀲瀳瀴瀶瀷瀸瀺瀻瀼瀽瀾瀿灀灁灂灃灄灅灆灇灈灉灊灋灍灎灐灑灒灓灔灕灖灗灘灙灚灛灜灝灟灠灡灢灣灤灥灦灧灨灩灪灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞炟炠炡炢炣炤炥炦炧炨炩炪炰炲炴炵炶為炾炿烄烅烆烇烉烋烌烍烎烏烐烑烒烓烔烕烖烗烚�".split("");for(a=0;a!=t[158].length;++a)if(t[158][a].charCodeAt(0)!==65533){r[t[158][a]]=40448+a;e[40448+a]=t[158][a]}t[159]="����������������������������������������������������������������烜烝烞烠烡烢烣烥烪烮烰烱烲烳烴烵烶烸烺烻烼烾烿焀焁焂焃焄焅焆焇焈焋焌焍焎焏焑焒焔焗焛焜焝焞焟焠無焢焣焤焥焧焨焩焪焫焬焭焮焲焳焴�焵焷焸焹焺焻焼焽焾焿煀煁煂煃煄煆煇煈煉煋煍煏煐煑煒煓煔煕煖煗煘煙煚煛煝煟煠煡煢煣煥煩煪煫煬煭煯煰煱煴煵煶煷煹煻煼煾煿熀熁熂熃熅熆熇熈熉熋熌熍熎熐熑熒熓熕熖熗熚熛熜熝熞熡熢熣熤熥熦熧熩熪熫熭熮熯熰熱熲熴熶熷熸熺熻熼熽熾熿燀燁燂燄燅燆燇燈燉燊燋燌燍燏燐燑燒燓�".split("");for(a=0;a!=t[159].length;++a)if(t[159][a].charCodeAt(0)!==65533){r[t[159][a]]=40704+a;e[40704+a]=t[159][a]}t[160]="����������������������������������������������������������������燖燗燘燙燚燛燜燝燞營燡燢燣燤燦燨燩燪燫燬燭燯燰燱燲燳燴燵燶燷燸燺燻燼燽燾燿爀爁爂爃爄爅爇爈爉爊爋爌爍爎爏爐爑爒爓爔爕爖爗爘爙爚�爛爜爞爟爠爡爢爣爤爥爦爧爩爫爭爮爯爲爳爴爺爼爾牀牁牂牃牄牅牆牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅犆犇犈犉犌犎犐犑犓犔犕犖犗犘犙犚犛犜犝犞犠犡犢犣犤犥犦犧犨犩犪犫犮犱犲犳犵犺犻犼犽犾犿狀狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛�".split("");for(a=0;a!=t[160].length;++a)if(t[160][a].charCodeAt(0)!==65533){r[t[160][a]]=40960+a;e[40960+a]=t[160][a]}t[161]="����������������������������������������������������������������������������������������������������������������������������������������������������������������� 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split("");for(a=0;a!=t[161].length;++a)if(t[161][a].charCodeAt(0)!==65533){r[t[161][a]]=41216+a;e[41216+a]=t[161][a]}t[162]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split("");for(a=0;a!=t[162].length;++a)if(t[162][a].charCodeAt(0)!==65533){r[t[162][a]]=41472+a;e[41472+a]=t[162][a]}t[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������!"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split("");for(a=0;a!=t[163].length;++a)if(t[163][a].charCodeAt(0)!==65533){r[t[163][a]]=41728+a;e[41728+a]=t[163][a]}t[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split("");for(a=0;a!=t[164].length;++a)if(t[164][a].charCodeAt(0)!==65533){r[t[164][a]]=41984+a;e[41984+a]=t[164][a]}t[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split("");for(a=0;a!=t[165].length;++a)if(t[165][a].charCodeAt(0)!==65533){r[t[165][a]]=42240+a;e[42240+a]=t[165][a]}t[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������︵︶︹︺︿﹀︽︾﹁﹂﹃﹄��︻︼︷︸︱�︳︴����������".split("");for(a=0;a!=t[166].length;++a)if(t[166][a].charCodeAt(0)!==65533){r[t[166][a]]=42496+a;e[42496+a]=t[166][a]}t[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split("");for(a=0;a!=t[167].length;++a)if(t[167][a].charCodeAt(0)!==65533){r[t[167][a]]=42752+a;e[42752+a]=t[167][a]}t[168]="����������������������������������������������������������������ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇�█▉▊▋▌▍▎▏▓▔▕▼▽◢◣◤◥☉⊕〒〝〞�����������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ�ńň�ɡ����ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split("");for(a=0;a!=t[168].length;++a)if(t[168][a].charCodeAt(0)!==65533){r[t[168][a]]=43008+a;e[43008+a]=t[168][a]}t[169]="����������������������������������������������������������������〡〢〣〤〥〦〧〨〩㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦�℡㈱�‐���ー゛゜ヽヾ〆ゝゞ﹉﹊﹋﹌﹍﹎﹏﹐﹑﹒﹔﹕﹖﹗﹙﹚﹛﹜﹝﹞﹟﹠﹡�﹢﹣﹤﹥﹦﹨﹩﹪﹫�������������〇�������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split("");for(a=0;a!=t[169].length;++a)if(t[169][a].charCodeAt(0)!==65533){r[t[169][a]]=43264+a;e[43264+a]=t[169][a]}t[170]="����������������������������������������������������������������狜狝狟狢狣狤狥狦狧狪狫狵狶狹狽狾狿猀猂猄猅猆猇猈猉猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀獁獂獃獄獅獆獇獈�獉獊獋獌獎獏獑獓獔獕獖獘獙獚獛獜獝獞獟獡獢獣獤獥獦獧獨獩獪獫獮獰獱�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[170].length;++a)if(t[170][a].charCodeAt(0)!==65533){r[t[170][a]]=43520+a;e[43520+a]=t[170][a]}t[171]="����������������������������������������������������������������獲獳獴獵獶獷獸獹獺獻獼獽獿玀玁玂玃玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣玤玥玦玧玨玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃珄珅珆珇�珋珌珎珒珓珔珕珖珗珘珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳珴珵珶珷�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[171].length;++a)if(t[171][a].charCodeAt(0)!==65533){r[t[171][a]]=43776+a;e[43776+a]=t[171][a]}t[172]="����������������������������������������������������������������珸珹珺珻珼珽現珿琀琁琂琄琇琈琋琌琍琎琑琒琓琔琕琖琗琘琙琜琝琞琟琠琡琣琤琧琩琫琭琯琱琲琷琸琹琺琻琽琾琿瑀瑂瑃瑄瑅瑆瑇瑈瑉瑊瑋瑌瑍�瑎瑏瑐瑑瑒瑓瑔瑖瑘瑝瑠瑡瑢瑣瑤瑥瑦瑧瑨瑩瑪瑫瑬瑮瑯瑱瑲瑳瑴瑵瑸瑹瑺�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[172].length;++a)if(t[172][a].charCodeAt(0)!==65533){r[t[172][a]]=44032+a;e[44032+a]=t[172][a]}t[173]="����������������������������������������������������������������瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑璒璓璔璕璖璗璘璙璚璛璝璟璠璡璢璣璤璥璦璪璫璬璭璮璯環璱璲璳璴璵璶璷璸璹璻璼璽璾璿瓀瓁瓂瓃瓄瓅瓆瓇�瓈瓉瓊瓋瓌瓍瓎瓏瓐瓑瓓瓔瓕瓖瓗瓘瓙瓚瓛瓝瓟瓡瓥瓧瓨瓩瓪瓫瓬瓭瓰瓱瓲�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[173].length;++a)if(t[173][a].charCodeAt(0)!==65533){r[t[173][a]]=44288+a;e[44288+a]=t[173][a]}t[174]="����������������������������������������������������������������瓳瓵瓸瓹瓺瓻瓼瓽瓾甀甁甂甃甅甆甇甈甉甊甋甌甎甐甒甔甕甖甗甛甝甞甠甡產産甤甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘�畝畞畟畠畡畢畣畤畧畨畩畫畬畭畮畯異畱畳畵當畷畺畻畼畽畾疀疁疂疄疅疇�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[174].length;++a)if(t[174][a].charCodeAt(0)!==65533){r[t[174][a]]=44544+a;e[44544+a]=t[174][a]}t[175]="����������������������������������������������������������������疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦疧疨疩疪疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇�瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[175].length;++a)if(t[175][a].charCodeAt(0)!==65533){r[t[175][a]]=44800+a;e[44800+a]=t[175][a]}t[176]="����������������������������������������������������������������癅癆癇癈癉癊癋癎癏癐癑癒癓癕癗癘癙癚癛癝癟癠癡癢癤癥癦癧癨癩癪癬癭癮癰癱癲癳癴癵癶癷癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛�皜皝皞皟皠皡皢皣皥皦皧皨皩皪皫皬皭皯皰皳皵皶皷皸皹皺皻皼皽皾盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split("");for(a=0;a!=t[176].length;++a)if(t[176][a].charCodeAt(0)!==65533){r[t[176][a]]=45056+a;e[45056+a]=t[176][a]}t[177]="����������������������������������������������������������������盄盇盉盋盌盓盕盙盚盜盝盞盠盡盢監盤盦盧盨盩盪盫盬盭盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎眏眐眑眒眓眔眕眖眗眘眛眜眝眞眡眣眤眥眧眪眫�眬眮眰眱眲眳眴眹眻眽眾眿睂睄睅睆睈睉睊睋睌睍睎睏睒睓睔睕睖睗睘睙睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split("");for(a=0;a!=t[177].length;++a)if(t[177][a].charCodeAt(0)!==65533){r[t[177][a]]=45312+a;e[45312+a]=t[177][a]}t[178]="����������������������������������������������������������������睝睞睟睠睤睧睩睪睭睮睯睰睱睲睳睴睵睶睷睸睺睻睼瞁瞂瞃瞆瞇瞈瞉瞊瞋瞏瞐瞓瞔瞕瞖瞗瞘瞙瞚瞛瞜瞝瞞瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶瞷瞸瞹瞺�瞼瞾矀矁矂矃矄矅矆矇矈矉矊矋矌矎矏矐矑矒矓矔矕矖矘矙矚矝矞矟矠矡矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split("");for(a=0;a!=t[178].length;++a)if(t[178][a].charCodeAt(0)!==65533){r[t[178][a]]=45568+a;e[45568+a]=t[178][a]}t[179]="����������������������������������������������������������������矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃砄砅砆砇砈砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚�硛硜硞硟硠硡硢硣硤硥硦硧硨硩硯硰硱硲硳硴硵硶硸硹硺硻硽硾硿碀碁碂碃场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split("");for(a=0;a!=t[179].length;++a)if(t[179][a].charCodeAt(0)!==65533){r[t[179][a]]=45824+a;e[45824+a]=t[179][a]}t[180]="����������������������������������������������������������������碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨碩碪碫碬碭碮碯碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚磛磜磝磞磟磠磡磢磣�磤磥磦磧磩磪磫磭磮磯磰磱磳磵磶磸磹磻磼磽磾磿礀礂礃礄礆礇礈礉礊礋礌础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split("");for(a=0;a!=t[180].length;++a)if(t[180][a].charCodeAt(0)!==65533){r[t[180][a]]=46080+a;e[46080+a]=t[180][a]}t[181]="����������������������������������������������������������������礍礎礏礐礑礒礔礕礖礗礘礙礚礛礜礝礟礠礡礢礣礥礦礧礨礩礪礫礬礭礮礯礰礱礲礳礵礶礷礸礹礽礿祂祃祄祅祇祊祋祌祍祎祏祐祑祒祔祕祘祙祡祣�祤祦祩祪祫祬祮祰祱祲祳祴祵祶祹祻祼祽祾祿禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split("");for(a=0;a!=t[181].length;++a)if(t[181][a].charCodeAt(0)!==65533){r[t[181][a]]=46336+a;e[46336+a]=t[181][a]}t[182]="����������������������������������������������������������������禓禔禕禖禗禘禙禛禜禝禞禟禠禡禢禣禤禥禦禨禩禪禫禬禭禮禯禰禱禲禴禵禶禷禸禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙秚秛秜秝秞秠秡秢秥秨秪�秬秮秱秲秳秴秵秶秷秹秺秼秾秿稁稄稅稇稈稉稊稌稏稐稑稒稓稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split("");for(a=0;a!=t[182].length;++a)if(t[182][a].charCodeAt(0)!==65533){r[t[182][a]]=46592+a;e[46592+a]=t[182][a]}t[183]="����������������������������������������������������������������稝稟稡稢稤稥稦稧稨稩稪稫稬稭種稯稰稱稲稴稵稶稸稺稾穀穁穂穃穄穅穇穈穉穊穋穌積穎穏穐穒穓穔穕穖穘穙穚穛穜穝穞穟穠穡穢穣穤穥穦穧穨�穩穪穫穬穭穮穯穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split("");for(a=0;a!=t[183].length;++a)if(t[183][a].charCodeAt(0)!==65533){r[t[183][a]]=46848+a;e[46848+a]=t[183][a]}t[184]="����������������������������������������������������������������窣窤窧窩窪窫窮窯窰窱窲窴窵窶窷窸窹窺窻窼窽窾竀竁竂竃竄竅竆竇竈竉竊竌竍竎竏竐竑竒竓竔竕竗竘竚竛竜竝竡竢竤竧竨竩竪竫竬竮竰竱竲竳�竴竵競竷竸竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split("");for(a=0;a!=t[184].length;++a)if(t[184][a].charCodeAt(0)!==65533){r[t[184][a]]=47104+a;e[47104+a]=t[184][a]}t[185]="����������������������������������������������������������������笯笰笲笴笵笶笷笹笻笽笿筀筁筂筃筄筆筈筊筍筎筓筕筗筙筜筞筟筡筣筤筥筦筧筨筩筪筫筬筭筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆箇箈箉箊箋箌箎箏�箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹箺箻箼箽箾箿節篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split("");for(a=0;a!=t[185].length;++a)if(t[185][a].charCodeAt(0)!==65533){r[t[185][a]]=47360+a;e[47360+a]=t[185][a]}t[186]="����������������������������������������������������������������篅篈築篊篋篍篎篏篐篒篔篕篖篗篘篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲篳篴篵篶篸篹篺篻篽篿簀簁簂簃簄簅簆簈簉簊簍簎簐簑簒簓簔簕簗簘簙�簚簛簜簝簞簠簡簢簣簤簥簨簩簫簬簭簮簯簰簱簲簳簴簵簶簷簹簺簻簼簽簾籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split("");for(a=0;a!=t[186].length;++a)if(t[186][a].charCodeAt(0)!==65533){r[t[186][a]]=47616+a;e[47616+a]=t[186][a]}t[187]="����������������������������������������������������������������籃籄籅籆籇籈籉籊籋籌籎籏籐籑籒籓籔籕籖籗籘籙籚籛籜籝籞籟籠籡籢籣籤籥籦籧籨籩籪籫籬籭籮籯籰籱籲籵籶籷籸籹籺籾籿粀粁粂粃粄粅粆粇�粈粊粋粌粍粎粏粐粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴粵粶粷粸粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split("");for(a=0;a!=t[187].length;++a)if(t[187][a].charCodeAt(0)!==65533){r[t[187][a]]=47872+a;e[47872+a]=t[187][a]}t[188]="����������������������������������������������������������������粿糀糂糃糄糆糉糋糎糏糐糑糒糓糔糘糚糛糝糞糡糢糣糤糥糦糧糩糪糫糬糭糮糰糱糲糳糴糵糶糷糹糺糼糽糾糿紀紁紂紃約紅紆紇紈紉紋紌納紎紏紐�紑紒紓純紕紖紗紘紙級紛紜紝紞紟紡紣紤紥紦紨紩紪紬紭紮細紱紲紳紴紵紶肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split("");for(a=0;a!=t[188].length;++a)if(t[188][a].charCodeAt(0)!==65533){r[t[188][a]]=48128+a;e[48128+a]=t[188][a]}t[189]="����������������������������������������������������������������紷紸紹紺紻紼紽紾紿絀絁終絃組絅絆絇絈絉絊絋経絍絎絏結絑絒絓絔絕絖絗絘絙絚絛絜絝絞絟絠絡絢絣絤絥給絧絨絩絪絫絬絭絯絰統絲絳絴絵絶�絸絹絺絻絼絽絾絿綀綁綂綃綄綅綆綇綈綉綊綋綌綍綎綏綐綑綒經綔綕綖綗綘健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split("");for(a=0;a!=t[189].length;++a)if(t[189][a].charCodeAt(0)!==65533){r[t[189][a]]=48384+a;e[48384+a]=t[189][a]}t[190]="����������������������������������������������������������������継続綛綜綝綞綟綠綡綢綣綤綥綧綨綩綪綫綬維綯綰綱網綳綴綵綶綷綸綹綺綻綼綽綾綿緀緁緂緃緄緅緆緇緈緉緊緋緌緍緎総緐緑緒緓緔緕緖緗緘緙�線緛緜緝緞緟締緡緢緣緤緥緦緧編緩緪緫緬緭緮緯緰緱緲緳練緵緶緷緸緹緺尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split("");for(a=0;a!=t[190].length;++a)if(t[190][a].charCodeAt(0)!==65533){r[t[190][a]]=48640+a;e[48640+a]=t[190][a]}t[191]="����������������������������������������������������������������緻緼緽緾緿縀縁縂縃縄縅縆縇縈縉縊縋縌縍縎縏縐縑縒縓縔縕縖縗縘縙縚縛縜縝縞縟縠縡縢縣縤縥縦縧縨縩縪縫縬縭縮縯縰縱縲縳縴縵縶縷縸縹�縺縼總績縿繀繂繃繄繅繆繈繉繊繋繌繍繎繏繐繑繒繓織繕繖繗繘繙繚繛繜繝俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split("");for(a=0;a!=t[191].length;++a)if(t[191][a].charCodeAt(0)!==65533){r[t[191][a]]=48896+a;e[48896+a]=t[191][a]}t[192]="����������������������������������������������������������������繞繟繠繡繢繣繤繥繦繧繨繩繪繫繬繭繮繯繰繱繲繳繴繵繶繷繸繹繺繻繼繽繾繿纀纁纃纄纅纆纇纈纉纊纋續纍纎纏纐纑纒纓纔纕纖纗纘纙纚纜纝纞�纮纴纻纼绖绤绬绹缊缐缞缷缹缻缼缽缾缿罀罁罃罆罇罈罉罊罋罌罍罎罏罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split("");for(a=0;a!=t[192].length;++a)if(t[192][a].charCodeAt(0)!==65533){r[t[192][a]]=49152+a;e[49152+a]=t[192][a]}t[193]="����������������������������������������������������������������罖罙罛罜罝罞罠罣罤罥罦罧罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂羃羄羅羆羇羈羉羋羍羏羐羑羒羓羕羖羗羘羙羛羜羠羢羣羥羦羨義羪羫羬羭羮羱�羳羴羵羶羷羺羻羾翀翂翃翄翆翇翈翉翋翍翏翐翑習翓翖翗翙翚翛翜翝翞翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split("");for(a=0;a!=t[193].length;++a)if(t[193][a].charCodeAt(0)!==65533){r[t[193][a]]=49408+a;e[49408+a]=t[193][a]}t[194]="����������������������������������������������������������������翤翧翨翪翫翬翭翯翲翴翵翶翷翸翹翺翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫耬耭耮耯耰耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗�聙聛聜聝聞聟聠聡聢聣聤聥聦聧聨聫聬聭聮聯聰聲聳聴聵聶職聸聹聺聻聼聽隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split("");for(a=0;a!=t[194].length;++a)if(t[194][a].charCodeAt(0)!==65533){r[t[194][a]]=49664+a;e[49664+a]=t[194][a]}t[195]="����������������������������������������������������������������聾肁肂肅肈肊肍肎肏肐肑肒肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇胈胉胊胋胏胐胑胒胓胔胕胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋�脌脕脗脙脛脜脝脟脠脡脢脣脤脥脦脧脨脩脪脫脭脮脰脳脴脵脷脹脺脻脼脽脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split("");for(a=0;a!=t[195].length;++a)if(t[195][a].charCodeAt(0)!==65533){r[t[195][a]]=49920+a;e[49920+a]=t[195][a]}t[196]="����������������������������������������������������������������腀腁腂腃腄腅腇腉腍腎腏腒腖腗腘腛腜腝腞腟腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃膄膅膆膇膉膋膌膍膎膐膒膓膔膕膖膗膙膚膞膟膠膡膢膤膥�膧膩膫膬膭膮膯膰膱膲膴膵膶膷膸膹膼膽膾膿臄臅臇臈臉臋臍臎臏臐臑臒臓摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split("");for(a=0;a!=t[196].length;++a)if(t[196][a].charCodeAt(0)!==65533){r[t[196][a]]=50176+a;e[50176+a]=t[196][a]}t[197]="����������������������������������������������������������������臔臕臖臗臘臙臚臛臜臝臞臟臠臡臢臤臥臦臨臩臫臮臯臰臱臲臵臶臷臸臹臺臽臿舃與興舉舊舋舎舏舑舓舕舖舗舘舙舚舝舠舤舥舦舧舩舮舲舺舼舽舿�艀艁艂艃艅艆艈艊艌艍艎艐艑艒艓艔艕艖艗艙艛艜艝艞艠艡艢艣艤艥艦艧艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split("");for(a=0;a!=t[197].length;++a)if(t[197][a].charCodeAt(0)!==65533){r[t[197][a]]=50432+a;e[50432+a]=t[197][a]}t[198]="����������������������������������������������������������������艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸�苺苼苽苾苿茀茊茋茍茐茒茓茖茘茙茝茞茟茠茡茢茣茤茥茦茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split("");for(a=0;a!=t[198].length;++a)if(t[198][a].charCodeAt(0)!==65533){r[t[198][a]]=50688+a;e[50688+a]=t[198][a]}t[199]="����������������������������������������������������������������茾茿荁荂荄荅荈荊荋荌荍荎荓荕荖荗荘荙荝荢荰荱荲荳荴荵荶荹荺荾荿莀莁莂莃莄莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡莢莣莤莥莦莧莬莭莮�莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split("");for(a=0;a!=t[199].length;++a)if(t[199][a].charCodeAt(0)!==65533){r[t[199][a]]=50944+a;e[50944+a]=t[199][a]}t[200]="����������������������������������������������������������������菮華菳菴菵菶菷菺菻菼菾菿萀萂萅萇萈萉萊萐萒萓萔萕萖萗萙萚萛萞萟萠萡萢萣萩萪萫萬萭萮萯萰萲萳萴萵萶萷萹萺萻萾萿葀葁葂葃葄葅葇葈葉�葊葋葌葍葎葏葐葒葓葔葕葖葘葝葞葟葠葢葤葥葦葧葨葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split("");for(a=0;a!=t[200].length;++a)if(t[200][a].charCodeAt(0)!==65533){r[t[200][a]]=51200+a;e[51200+a]=t[200][a]}t[201]="����������������������������������������������������������������葽葾葿蒀蒁蒃蒄蒅蒆蒊蒍蒏蒐蒑蒒蒓蒔蒕蒖蒘蒚蒛蒝蒞蒟蒠蒢蒣蒤蒥蒦蒧蒨蒩蒪蒫蒬蒭蒮蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗�蓘蓙蓚蓛蓜蓞蓡蓢蓤蓧蓨蓩蓪蓫蓭蓮蓯蓱蓲蓳蓴蓵蓶蓷蓸蓹蓺蓻蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split("");for(a=0;a!=t[201].length;++a)if(t[201][a].charCodeAt(0)!==65533){r[t[201][a]]=51456+a;e[51456+a]=t[201][a]}t[202]="����������������������������������������������������������������蔃蔄蔅蔆蔇蔈蔉蔊蔋蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢蔣蔤蔥蔦蔧蔨蔩蔪蔭蔮蔯蔰蔱蔲蔳蔴蔵蔶蔾蔿蕀蕁蕂蕄蕅蕆蕇蕋蕌蕍蕎蕏蕐蕑蕒蕓蕔蕕�蕗蕘蕚蕛蕜蕝蕟蕠蕡蕢蕣蕥蕦蕧蕩蕪蕫蕬蕭蕮蕯蕰蕱蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split("");for(a=0;a!=t[202].length;++a)if(t[202][a].charCodeAt(0)!==65533){r[t[202][a]]=51712+a;e[51712+a]=t[202][a]}t[203]="����������������������������������������������������������������薂薃薆薈薉薊薋薌薍薎薐薑薒薓薔薕薖薗薘薙薚薝薞薟薠薡薢薣薥薦薧薩薫薬薭薱薲薳薴薵薶薸薺薻薼薽薾薿藀藂藃藄藅藆藇藈藊藋藌藍藎藑藒�藔藖藗藘藙藚藛藝藞藟藠藡藢藣藥藦藧藨藪藫藬藭藮藯藰藱藲藳藴藵藶藷藸恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split("");for(a=0;a!=t[203].length;++a)if(t[203][a].charCodeAt(0)!==65533){r[t[203][a]]=51968+a;e[51968+a]=t[203][a]}t[204]="����������������������������������������������������������������藹藺藼藽藾蘀蘁蘂蘃蘄蘆蘇蘈蘉蘊蘋蘌蘍蘎蘏蘐蘒蘓蘔蘕蘗蘘蘙蘚蘛蘜蘝蘞蘟蘠蘡蘢蘣蘤蘥蘦蘨蘪蘫蘬蘭蘮蘯蘰蘱蘲蘳蘴蘵蘶蘷蘹蘺蘻蘽蘾蘿虀�虁虂虃虄虅虆虇虈虉虊虋虌虒虓處虖虗虘虙虛虜虝號虠虡虣虤虥虦虧虨虩虪獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split("");for(a=0;a!=t[204].length;++a)if(t[204][a].charCodeAt(0)!==65533){r[t[204][a]]=52224+a;e[52224+a]=t[204][a]}t[205]="����������������������������������������������������������������虭虯虰虲虳虴虵虶虷虸蚃蚄蚅蚆蚇蚈蚉蚎蚏蚐蚑蚒蚔蚖蚗蚘蚙蚚蚛蚞蚟蚠蚡蚢蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻蚼蚽蚾蚿蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜�蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split("");for(a=0;a!=t[205].length;++a)if(t[205][a].charCodeAt(0)!==65533){r[t[205][a]]=52480+a;e[52480+a]=t[205][a]}t[206]="����������������������������������������������������������������蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀蝁蝂蝃蝄蝅蝆蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚蝛蝜蝝蝞蝟蝡蝢蝦蝧蝨蝩蝪蝫蝬蝭蝯蝱蝲蝳蝵�蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎螏螐螑螒螔螕螖螘螙螚螛螜螝螞螠螡螢螣螤巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split("");for(a=0;a!=t[206].length;++a)if(t[206][a].charCodeAt(0)!==65533){r[t[206][a]]=52736+a;e[52736+a]=t[206][a]}t[207]="����������������������������������������������������������������螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁蟂蟃蟄蟅蟇蟈蟉蟌蟍蟎蟏蟐蟔蟕蟖蟗蟘蟙蟚蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯蟰蟱蟲蟳蟴蟵蟶蟷蟸�蟺蟻蟼蟽蟿蠀蠁蠂蠄蠅蠆蠇蠈蠉蠋蠌蠍蠎蠏蠐蠑蠒蠔蠗蠘蠙蠚蠜蠝蠞蠟蠠蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split("");for(a=0;a!=t[207].length;++a)if(t[207][a].charCodeAt(0)!==65533){r[t[207][a]]=52992+a;e[52992+a]=t[207][a]}t[208]="����������������������������������������������������������������蠤蠥蠦蠧蠨蠩蠪蠫蠬蠭蠮蠯蠰蠱蠳蠴蠵蠶蠷蠸蠺蠻蠽蠾蠿衁衂衃衆衇衈衉衊衋衎衏衐衑衒術衕衖衘衚衛衜衝衞衟衠衦衧衪衭衯衱衳衴衵衶衸衹衺�衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗袘袙袚袛袝袞袟袠袡袣袥袦袧袨袩袪小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split("");for(a=0;a!=t[208].length;++a)if(t[208][a].charCodeAt(0)!==65533){r[t[208][a]]=53248+a;e[53248+a]=t[208][a]}t[209]="����������������������������������������������������������������袬袮袯袰袲袳袴袵袶袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚裛補裝裞裠裡裦裧裩裪裫裬裭裮裯裲裵裶裷裺裻製裿褀褁褃褄褅褆複褈�褉褋褌褍褎褏褑褔褕褖褗褘褜褝褞褟褠褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split("");for(a=0;a!=t[209].length;++a)if(t[209][a].charCodeAt(0)!==65533){r[t[209][a]]=53504+a;e[53504+a]=t[209][a]}t[210]="����������������������������������������������������������������褸褹褺褻褼褽褾褿襀襂襃襅襆襇襈襉襊襋襌襍襎襏襐襑襒襓襔襕襖襗襘襙襚襛襜襝襠襡襢襣襤襥襧襨襩襪襫襬襭襮襯襰襱襲襳襴襵襶襷襸襹襺襼�襽襾覀覂覄覅覇覈覉覊見覌覍覎規覐覑覒覓覔覕視覗覘覙覚覛覜覝覞覟覠覡摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split("");for(a=0;a!=t[210].length;++a)if(t[210][a].charCodeAt(0)!==65533){r[t[210][a]]=53760+a;e[53760+a]=t[210][a]}t[211]="����������������������������������������������������������������覢覣覤覥覦覧覨覩親覫覬覭覮覯覰覱覲観覴覵覶覷覸覹覺覻覼覽覾覿觀觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴觵觶觷觸觹觺�觻觼觽觾觿訁訂訃訄訅訆計訉訊訋訌訍討訏訐訑訒訓訔訕訖託記訙訚訛訜訝印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split("");for(a=0;a!=t[211].length;++a)if(t[211][a].charCodeAt(0)!==65533){r[t[211][a]]=54016+a;e[54016+a]=t[211][a]}t[212]="����������������������������������������������������������������訞訟訠訡訢訣訤訥訦訧訨訩訪訫訬設訮訯訰許訲訳訴訵訶訷訸訹診註証訽訿詀詁詂詃詄詅詆詇詉詊詋詌詍詎詏詐詑詒詓詔評詖詗詘詙詚詛詜詝詞�詟詠詡詢詣詤詥試詧詨詩詪詫詬詭詮詯詰話該詳詴詵詶詷詸詺詻詼詽詾詿誀浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split("");for(a=0;a!=t[212].length;++a)if(t[212][a].charCodeAt(0)!==65533){r[t[212][a]]=54272+a;e[54272+a]=t[212][a]}t[213]="����������������������������������������������������������������誁誂誃誄誅誆誇誈誋誌認誎誏誐誑誒誔誕誖誗誘誙誚誛誜誝語誟誠誡誢誣誤誥誦誧誨誩說誫説読誮誯誰誱課誳誴誵誶誷誸誹誺誻誼誽誾調諀諁諂�諃諄諅諆談諈諉諊請諌諍諎諏諐諑諒諓諔諕論諗諘諙諚諛諜諝諞諟諠諡諢諣铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split("");for(a=0;a!=t[213].length;++a)if(t[213][a].charCodeAt(0)!==65533){r[t[213][a]]=54528+a;e[54528+a]=t[213][a]}t[214]="����������������������������������������������������������������諤諥諦諧諨諩諪諫諬諭諮諯諰諱諲諳諴諵諶諷諸諹諺諻諼諽諾諿謀謁謂謃謄謅謆謈謉謊謋謌謍謎謏謐謑謒謓謔謕謖謗謘謙謚講謜謝謞謟謠謡謢謣�謤謥謧謨謩謪謫謬謭謮謯謰謱謲謳謴謵謶謷謸謹謺謻謼謽謾謿譀譁譂譃譄譅帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split("");for(a=0;a!=t[214].length;++a)if(t[214][a].charCodeAt(0)!==65533){r[t[214][a]]=54784+a;e[54784+a]=t[214][a]}t[215]="����������������������������������������������������������������譆譇譈證譊譋譌譍譎譏譐譑譒譓譔譕譖譗識譙譚譛譜譝譞譟譠譡譢譣譤譥譧譨譩譪譫譭譮譯議譱譲譳譴譵譶護譸譹譺譻譼譽譾譿讀讁讂讃讄讅讆�讇讈讉變讋讌讍讎讏讐讑讒讓讔讕讖讗讘讙讚讛讜讝讞讟讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split("");for(a=0;a!=t[215].length;++a)if(t[215][a].charCodeAt(0)!==65533){r[t[215][a]]=55040+a;e[55040+a]=t[215][a]}t[216]="����������������������������������������������������������������谸谹谺谻谼谽谾谿豀豂豃豄豅豈豊豋豍豎豏豐豑豒豓豔豖豗豘豙豛豜豝豞豟豠豣豤豥豦豧豨豩豬豭豮豯豰豱豲豴豵豶豷豻豼豽豾豿貀貁貃貄貆貇�貈貋貍貎貏貐貑貒貓貕貖貗貙貚貛貜貝貞貟負財貢貣貤貥貦貧貨販貪貫責貭亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split("");for(a=0;a!=t[216].length;++a)if(t[216][a].charCodeAt(0)!==65533){r[t[216][a]]=55296+a;e[55296+a]=t[216][a]}t[217]="����������������������������������������������������������������貮貯貰貱貲貳貴貵貶買貸貹貺費貼貽貾貿賀賁賂賃賄賅賆資賈賉賊賋賌賍賎賏賐賑賒賓賔賕賖賗賘賙賚賛賜賝賞賟賠賡賢賣賤賥賦賧賨賩質賫賬�賭賮賯賰賱賲賳賴賵賶賷賸賹賺賻購賽賾賿贀贁贂贃贄贅贆贇贈贉贊贋贌贍佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split("");for(a=0;a!=t[217].length;++a)if(t[217][a].charCodeAt(0)!==65533){r[t[217][a]]=55552+a;e[55552+a]=t[217][a]}t[218]="����������������������������������������������������������������贎贏贐贑贒贓贔贕贖贗贘贙贚贛贜贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸赹赺赻赼赽赾赿趀趂趃趆趇趈趉趌趍趎趏趐趒趓趕趖趗趘趙趚趛趜趝趞趠趡�趢趤趥趦趧趨趩趪趫趬趭趮趯趰趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split("");for(a=0;a!=t[218].length;++a)if(t[218][a].charCodeAt(0)!==65533){r[t[218][a]]=55808+a;e[55808+a]=t[218][a]}t[219]="����������������������������������������������������������������跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾跿踀踁踂踃踄踆踇踈踋踍踎踐踑踒踓踕踖踗踘踙踚踛踜踠踡踤踥踦踧踨踫踭踰踲踳踴踶踷踸踻踼踾�踿蹃蹅蹆蹌蹍蹎蹏蹐蹓蹔蹕蹖蹗蹘蹚蹛蹜蹝蹞蹟蹠蹡蹢蹣蹤蹥蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split("");for(a=0;a!=t[219].length;++a)if(t[219][a].charCodeAt(0)!==65533){r[t[219][a]]=56064+a;e[56064+a]=t[219][a]}t[220]="����������������������������������������������������������������蹳蹵蹷蹸蹹蹺蹻蹽蹾躀躂躃躄躆躈躉躊躋躌躍躎躑躒躓躕躖躗躘躙躚躛躝躟躠躡躢躣躤躥躦躧躨躩躪躭躮躰躱躳躴躵躶躷躸躹躻躼躽躾躿軀軁軂�軃軄軅軆軇軈軉車軋軌軍軏軐軑軒軓軔軕軖軗軘軙軚軛軜軝軞軟軠軡転軣軤堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split("");for(a=0;a!=t[220].length;++a)if(t[220][a].charCodeAt(0)!==65533){r[t[220][a]]=56320+a;e[56320+a]=t[220][a]}t[221]="����������������������������������������������������������������軥軦軧軨軩軪軫軬軭軮軯軰軱軲軳軴軵軶軷軸軹軺軻軼軽軾軿輀輁輂較輄輅輆輇輈載輊輋輌輍輎輏輐輑輒輓輔輕輖輗輘輙輚輛輜輝輞輟輠輡輢輣�輤輥輦輧輨輩輪輫輬輭輮輯輰輱輲輳輴輵輶輷輸輹輺輻輼輽輾輿轀轁轂轃轄荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split("");for(a=0;a!=t[221].length;++a)if(t[221][a].charCodeAt(0)!==65533){r[t[221][a]]=56576+a;e[56576+a]=t[221][a]}t[222]="����������������������������������������������������������������轅轆轇轈轉轊轋轌轍轎轏轐轑轒轓轔轕轖轗轘轙轚轛轜轝轞轟轠轡轢轣轤轥轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆�迉迊迋迌迍迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split("");for(a=0;a!=t[222].length;++a)if(t[222][a].charCodeAt(0)!==65533){r[t[222][a]]=56832+a;e[56832+a]=t[222][a]}t[223]="����������������������������������������������������������������這逜連逤逥逧逨逩逪逫逬逰週進逳逴逷逹逺逽逿遀遃遅遆遈遉遊運遌過達違遖遙遚遜遝遞遟遠遡遤遦遧適遪遫遬遯遰遱遲遳遶遷選遹遺遻遼遾邁�還邅邆邇邉邊邌邍邎邏邐邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split("");for(a=0;a!=t[223].length;++a)if(t[223][a].charCodeAt(0)!==65533){r[t[223][a]]=57088+a;e[57088+a]=t[223][a]}t[224]="����������������������������������������������������������������郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅鄆鄇鄈鄉鄊鄋鄌鄍鄎鄏鄐鄑鄒鄓鄔鄕鄖鄗鄘鄚鄛鄜�鄝鄟鄠鄡鄤鄥鄦鄧鄨鄩鄪鄫鄬鄭鄮鄰鄲鄳鄴鄵鄶鄷鄸鄺鄻鄼鄽鄾鄿酀酁酂酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split("");for(a=0;a!=t[224].length;++a)if(t[224][a].charCodeAt(0)!==65533){r[t[224][a]]=57344+a;e[57344+a]=t[224][a]}t[225]="����������������������������������������������������������������酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀醁醂醃醄醆醈醊醎醏醓醔醕醖醗醘醙醜醝醞醟醠醡醤醥醦醧醨醩醫醬醰醱醲醳醶醷醸醹醻�醼醽醾醿釀釁釂釃釄釅釆釈釋釐釒釓釔釕釖釗釘釙釚釛針釞釟釠釡釢釣釤釥帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split("");for(a=0;a!=t[225].length;++a)if(t[225][a].charCodeAt(0)!==65533){r[t[225][a]]=57600+a;e[57600+a]=t[225][a]}t[226]="����������������������������������������������������������������釦釧釨釩釪釫釬釭釮釯釰釱釲釳釴釵釶釷釸釹釺釻釼釽釾釿鈀鈁鈂鈃鈄鈅鈆鈇鈈鈉鈊鈋鈌鈍鈎鈏鈐鈑鈒鈓鈔鈕鈖鈗鈘鈙鈚鈛鈜鈝鈞鈟鈠鈡鈢鈣鈤�鈥鈦鈧鈨鈩鈪鈫鈬鈭鈮鈯鈰鈱鈲鈳鈴鈵鈶鈷鈸鈹鈺鈻鈼鈽鈾鈿鉀鉁鉂鉃鉄鉅狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split("");for(a=0;a!=t[226].length;++a)if(t[226][a].charCodeAt(0)!==65533){r[t[226][a]]=57856+a;e[57856+a]=t[226][a]}t[227]="����������������������������������������������������������������鉆鉇鉈鉉鉊鉋鉌鉍鉎鉏鉐鉑鉒鉓鉔鉕鉖鉗鉘鉙鉚鉛鉜鉝鉞鉟鉠鉡鉢鉣鉤鉥鉦鉧鉨鉩鉪鉫鉬鉭鉮鉯鉰鉱鉲鉳鉵鉶鉷鉸鉹鉺鉻鉼鉽鉾鉿銀銁銂銃銄銅�銆銇銈銉銊銋銌銍銏銐銑銒銓銔銕銖銗銘銙銚銛銜銝銞銟銠銡銢銣銤銥銦銧恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split("");for(a=0;a!=t[227].length;++a)if(t[227][a].charCodeAt(0)!==65533){r[t[227][a]]=58112+a;e[58112+a]=t[227][a]}t[228]="����������������������������������������������������������������銨銩銪銫銬銭銯銰銱銲銳銴銵銶銷銸銹銺銻銼銽銾銿鋀鋁鋂鋃鋄鋅鋆鋇鋉鋊鋋鋌鋍鋎鋏鋐鋑鋒鋓鋔鋕鋖鋗鋘鋙鋚鋛鋜鋝鋞鋟鋠鋡鋢鋣鋤鋥鋦鋧鋨�鋩鋪鋫鋬鋭鋮鋯鋰鋱鋲鋳鋴鋵鋶鋷鋸鋹鋺鋻鋼鋽鋾鋿錀錁錂錃錄錅錆錇錈錉洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split("");for(a=0;a!=t[228].length;++a)if(t[228][a].charCodeAt(0)!==65533){r[t[228][a]]=58368+a;e[58368+a]=t[228][a]}t[229]="����������������������������������������������������������������錊錋錌錍錎錏錐錑錒錓錔錕錖錗錘錙錚錛錜錝錞錟錠錡錢錣錤錥錦錧錨錩錪錫錬錭錮錯錰錱録錳錴錵錶錷錸錹錺錻錼錽錿鍀鍁鍂鍃鍄鍅鍆鍇鍈鍉�鍊鍋鍌鍍鍎鍏鍐鍑鍒鍓鍔鍕鍖鍗鍘鍙鍚鍛鍜鍝鍞鍟鍠鍡鍢鍣鍤鍥鍦鍧鍨鍩鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split("");for(a=0;a!=t[229].length;++a)if(t[229][a].charCodeAt(0)!==65533){r[t[229][a]]=58624+a;e[58624+a]=t[229][a]}t[230]="����������������������������������������������������������������鍬鍭鍮鍯鍰鍱鍲鍳鍴鍵鍶鍷鍸鍹鍺鍻鍼鍽鍾鍿鎀鎁鎂鎃鎄鎅鎆鎇鎈鎉鎊鎋鎌鎍鎎鎐鎑鎒鎓鎔鎕鎖鎗鎘鎙鎚鎛鎜鎝鎞鎟鎠鎡鎢鎣鎤鎥鎦鎧鎨鎩鎪鎫�鎬鎭鎮鎯鎰鎱鎲鎳鎴鎵鎶鎷鎸鎹鎺鎻鎼鎽鎾鎿鏀鏁鏂鏃鏄鏅鏆鏇鏈鏉鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split("");for(a=0;a!=t[230].length;++a)if(t[230][a].charCodeAt(0)!==65533){r[t[230][a]]=58880+a;e[58880+a]=t[230][a]}t[231]="����������������������������������������������������������������鏎鏏鏐鏑鏒鏓鏔鏕鏗鏘鏙鏚鏛鏜鏝鏞鏟鏠鏡鏢鏣鏤鏥鏦鏧鏨鏩鏪鏫鏬鏭鏮鏯鏰鏱鏲鏳鏴鏵鏶鏷鏸鏹鏺鏻鏼鏽鏾鏿鐀鐁鐂鐃鐄鐅鐆鐇鐈鐉鐊鐋鐌鐍�鐎鐏鐐鐑鐒鐓鐔鐕鐖鐗鐘鐙鐚鐛鐜鐝鐞鐟鐠鐡鐢鐣鐤鐥鐦鐧鐨鐩鐪鐫鐬鐭鐮纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split("");for(a=0;a!=t[231].length;++a)if(t[231][a].charCodeAt(0)!==65533){r[t[231][a]]=59136+a;e[59136+a]=t[231][a]}t[232]="����������������������������������������������������������������鐯鐰鐱鐲鐳鐴鐵鐶鐷鐸鐹鐺鐻鐼鐽鐿鑀鑁鑂鑃鑄鑅鑆鑇鑈鑉鑊鑋鑌鑍鑎鑏鑐鑑鑒鑓鑔鑕鑖鑗鑘鑙鑚鑛鑜鑝鑞鑟鑠鑡鑢鑣鑤鑥鑦鑧鑨鑩鑪鑬鑭鑮鑯�鑰鑱鑲鑳鑴鑵鑶鑷鑸鑹鑺鑻鑼鑽鑾鑿钀钁钂钃钄钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split("");for(a=0;a!=t[232].length;++a)if(t[232][a].charCodeAt(0)!==65533){r[t[232][a]]=59392+a;e[59392+a]=t[232][a]}t[233]="����������������������������������������������������������������锧锳锽镃镈镋镕镚镠镮镴镵長镸镹镺镻镼镽镾門閁閂閃閄閅閆閇閈閉閊開閌閍閎閏閐閑閒間閔閕閖閗閘閙閚閛閜閝閞閟閠閡関閣閤閥閦閧閨閩閪�閫閬閭閮閯閰閱閲閳閴閵閶閷閸閹閺閻閼閽閾閿闀闁闂闃闄闅闆闇闈闉闊闋椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split("");for(a=0;a!=t[233].length;++a)if(t[233][a].charCodeAt(0)!==65533){r[t[233][a]]=59648+a;e[59648+a]=t[233][a]}t[234]="����������������������������������������������������������������闌闍闎闏闐闑闒闓闔闕闖闗闘闙闚闛關闝闞闟闠闡闢闣闤闥闦闧闬闿阇阓阘阛阞阠阣阤阥阦阧阨阩阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗�陘陙陚陜陝陞陠陣陥陦陫陭陮陯陰陱陳陸陹険陻陼陽陾陿隀隁隂隃隄隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split("");for(a=0;a!=t[234].length;++a)if(t[234][a].charCodeAt(0)!==65533){r[t[234][a]]=59904+a;e[59904+a]=t[234][a]}t[235]="����������������������������������������������������������������隌階隑隒隓隕隖隚際隝隞隟隠隡隢隣隤隥隦隨隩險隫隬隭隮隯隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖雗雘雙雚雛雜雝雞雟雡離難雤雥雦雧雫�雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗霘霙霚霛霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split("");for(a=0;a!=t[235].length;++a)if(t[235][a].charCodeAt(0)!==65533){r[t[235][a]]=60160+a;e[60160+a]=t[235][a]}t[236]="����������������������������������������������������������������霡霢霣霤霥霦霧霨霩霫霬霮霯霱霳霴霵霶霷霺霻霼霽霿靀靁靂靃靄靅靆靇靈靉靊靋靌靍靎靏靐靑靔靕靗靘靚靜靝靟靣靤靦靧靨靪靫靬靭靮靯靰靱�靲靵靷靸靹靺靻靽靾靿鞀鞁鞂鞃鞄鞆鞇鞈鞉鞊鞌鞎鞏鞐鞓鞕鞖鞗鞙鞚鞛鞜鞝臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split(""); -for(a=0;a!=t[236].length;++a)if(t[236][a].charCodeAt(0)!==65533){r[t[236][a]]=60416+a;e[60416+a]=t[236][a]}t[237]="����������������������������������������������������������������鞞鞟鞡鞢鞤鞥鞦鞧鞨鞩鞪鞬鞮鞰鞱鞳鞵鞶鞷鞸鞹鞺鞻鞼鞽鞾鞿韀韁韂韃韄韅韆韇韈韉韊韋韌韍韎韏韐韑韒韓韔韕韖韗韘韙韚韛韜韝韞韟韠韡韢韣�韤韥韨韮韯韰韱韲韴韷韸韹韺韻韼韽韾響頀頁頂頃頄項順頇須頉頊頋頌頍頎怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split("");for(a=0;a!=t[237].length;++a)if(t[237][a].charCodeAt(0)!==65533){r[t[237][a]]=60672+a;e[60672+a]=t[237][a]}t[238]="����������������������������������������������������������������頏預頑頒頓頔頕頖頗領頙頚頛頜頝頞頟頠頡頢頣頤頥頦頧頨頩頪頫頬頭頮頯頰頱頲頳頴頵頶頷頸頹頺頻頼頽頾頿顀顁顂顃顄顅顆顇顈顉顊顋題額�顎顏顐顑顒顓顔顕顖顗願顙顚顛顜顝類顟顠顡顢顣顤顥顦顧顨顩顪顫顬顭顮睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split("");for(a=0;a!=t[238].length;++a)if(t[238][a].charCodeAt(0)!==65533){r[t[238][a]]=60928+a;e[60928+a]=t[238][a]}t[239]="����������������������������������������������������������������顯顰顱顲顳顴颋颎颒颕颙颣風颩颪颫颬颭颮颯颰颱颲颳颴颵颶颷颸颹颺颻颼颽颾颿飀飁飂飃飄飅飆飇飈飉飊飋飌飍飏飐飔飖飗飛飜飝飠飡飢飣飤�飥飦飩飪飫飬飭飮飯飰飱飲飳飴飵飶飷飸飹飺飻飼飽飾飿餀餁餂餃餄餅餆餇铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split("");for(a=0;a!=t[239].length;++a)if(t[239][a].charCodeAt(0)!==65533){r[t[239][a]]=61184+a;e[61184+a]=t[239][a]}t[240]="����������������������������������������������������������������餈餉養餋餌餎餏餑餒餓餔餕餖餗餘餙餚餛餜餝餞餟餠餡餢餣餤餥餦餧館餩餪餫餬餭餯餰餱餲餳餴餵餶餷餸餹餺餻餼餽餾餿饀饁饂饃饄饅饆饇饈饉�饊饋饌饍饎饏饐饑饒饓饖饗饘饙饚饛饜饝饞饟饠饡饢饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split("");for(a=0;a!=t[240].length;++a)if(t[240][a].charCodeAt(0)!==65533){r[t[240][a]]=61440+a;e[61440+a]=t[240][a]}t[241]="����������������������������������������������������������������馌馎馚馛馜馝馞馟馠馡馢馣馤馦馧馩馪馫馬馭馮馯馰馱馲馳馴馵馶馷馸馹馺馻馼馽馾馿駀駁駂駃駄駅駆駇駈駉駊駋駌駍駎駏駐駑駒駓駔駕駖駗駘�駙駚駛駜駝駞駟駠駡駢駣駤駥駦駧駨駩駪駫駬駭駮駯駰駱駲駳駴駵駶駷駸駹瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split("");for(a=0;a!=t[241].length;++a)if(t[241][a].charCodeAt(0)!==65533){r[t[241][a]]=61696+a;e[61696+a]=t[241][a]}t[242]="����������������������������������������������������������������駺駻駼駽駾駿騀騁騂騃騄騅騆騇騈騉騊騋騌騍騎騏騐騑騒験騔騕騖騗騘騙騚騛騜騝騞騟騠騡騢騣騤騥騦騧騨騩騪騫騬騭騮騯騰騱騲騳騴騵騶騷騸�騹騺騻騼騽騾騿驀驁驂驃驄驅驆驇驈驉驊驋驌驍驎驏驐驑驒驓驔驕驖驗驘驙颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split("");for(a=0;a!=t[242].length;++a)if(t[242][a].charCodeAt(0)!==65533){r[t[242][a]]=61952+a;e[61952+a]=t[242][a]}t[243]="����������������������������������������������������������������驚驛驜驝驞驟驠驡驢驣驤驥驦驧驨驩驪驫驲骃骉骍骎骔骕骙骦骩骪骫骬骭骮骯骲骳骴骵骹骻骽骾骿髃髄髆髇髈髉髊髍髎髏髐髒體髕髖髗髙髚髛髜�髝髞髠髢髣髤髥髧髨髩髪髬髮髰髱髲髳髴髵髶髷髸髺髼髽髾髿鬀鬁鬂鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split("");for(a=0;a!=t[243].length;++a)if(t[243][a].charCodeAt(0)!==65533){r[t[243][a]]=62208+a;e[62208+a]=t[243][a]}t[244]="����������������������������������������������������������������鬇鬉鬊鬋鬌鬍鬎鬐鬑鬒鬔鬕鬖鬗鬘鬙鬚鬛鬜鬝鬞鬠鬡鬢鬤鬥鬦鬧鬨鬩鬪鬫鬬鬭鬮鬰鬱鬳鬴鬵鬶鬷鬸鬹鬺鬽鬾鬿魀魆魊魋魌魎魐魒魓魕魖魗魘魙魚�魛魜魝魞魟魠魡魢魣魤魥魦魧魨魩魪魫魬魭魮魯魰魱魲魳魴魵魶魷魸魹魺魻簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split("");for(a=0;a!=t[244].length;++a)if(t[244][a].charCodeAt(0)!==65533){r[t[244][a]]=62464+a;e[62464+a]=t[244][a]}t[245]="����������������������������������������������������������������魼魽魾魿鮀鮁鮂鮃鮄鮅鮆鮇鮈鮉鮊鮋鮌鮍鮎鮏鮐鮑鮒鮓鮔鮕鮖鮗鮘鮙鮚鮛鮜鮝鮞鮟鮠鮡鮢鮣鮤鮥鮦鮧鮨鮩鮪鮫鮬鮭鮮鮯鮰鮱鮲鮳鮴鮵鮶鮷鮸鮹鮺�鮻鮼鮽鮾鮿鯀鯁鯂鯃鯄鯅鯆鯇鯈鯉鯊鯋鯌鯍鯎鯏鯐鯑鯒鯓鯔鯕鯖鯗鯘鯙鯚鯛酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split("");for(a=0;a!=t[245].length;++a)if(t[245][a].charCodeAt(0)!==65533){r[t[245][a]]=62720+a;e[62720+a]=t[245][a]}t[246]="����������������������������������������������������������������鯜鯝鯞鯟鯠鯡鯢鯣鯤鯥鯦鯧鯨鯩鯪鯫鯬鯭鯮鯯鯰鯱鯲鯳鯴鯵鯶鯷鯸鯹鯺鯻鯼鯽鯾鯿鰀鰁鰂鰃鰄鰅鰆鰇鰈鰉鰊鰋鰌鰍鰎鰏鰐鰑鰒鰓鰔鰕鰖鰗鰘鰙鰚�鰛鰜鰝鰞鰟鰠鰡鰢鰣鰤鰥鰦鰧鰨鰩鰪鰫鰬鰭鰮鰯鰰鰱鰲鰳鰴鰵鰶鰷鰸鰹鰺鰻觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split("");for(a=0;a!=t[246].length;++a)if(t[246][a].charCodeAt(0)!==65533){r[t[246][a]]=62976+a;e[62976+a]=t[246][a]}t[247]="����������������������������������������������������������������鰼鰽鰾鰿鱀鱁鱂鱃鱄鱅鱆鱇鱈鱉鱊鱋鱌鱍鱎鱏鱐鱑鱒鱓鱔鱕鱖鱗鱘鱙鱚鱛鱜鱝鱞鱟鱠鱡鱢鱣鱤鱥鱦鱧鱨鱩鱪鱫鱬鱭鱮鱯鱰鱱鱲鱳鱴鱵鱶鱷鱸鱹鱺�鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾鲿鳀鳁鳂鳈鳉鳑鳒鳚鳛鳠鳡鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split("");for(a=0;a!=t[247].length;++a)if(t[247][a].charCodeAt(0)!==65533){r[t[247][a]]=63232+a;e[63232+a]=t[247][a]}t[248]="����������������������������������������������������������������鳣鳤鳥鳦鳧鳨鳩鳪鳫鳬鳭鳮鳯鳰鳱鳲鳳鳴鳵鳶鳷鳸鳹鳺鳻鳼鳽鳾鳿鴀鴁鴂鴃鴄鴅鴆鴇鴈鴉鴊鴋鴌鴍鴎鴏鴐鴑鴒鴓鴔鴕鴖鴗鴘鴙鴚鴛鴜鴝鴞鴟鴠鴡�鴢鴣鴤鴥鴦鴧鴨鴩鴪鴫鴬鴭鴮鴯鴰鴱鴲鴳鴴鴵鴶鴷鴸鴹鴺鴻鴼鴽鴾鴿鵀鵁鵂�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[248].length;++a)if(t[248][a].charCodeAt(0)!==65533){r[t[248][a]]=63488+a;e[63488+a]=t[248][a]}t[249]="����������������������������������������������������������������鵃鵄鵅鵆鵇鵈鵉鵊鵋鵌鵍鵎鵏鵐鵑鵒鵓鵔鵕鵖鵗鵘鵙鵚鵛鵜鵝鵞鵟鵠鵡鵢鵣鵤鵥鵦鵧鵨鵩鵪鵫鵬鵭鵮鵯鵰鵱鵲鵳鵴鵵鵶鵷鵸鵹鵺鵻鵼鵽鵾鵿鶀鶁�鶂鶃鶄鶅鶆鶇鶈鶉鶊鶋鶌鶍鶎鶏鶐鶑鶒鶓鶔鶕鶖鶗鶘鶙鶚鶛鶜鶝鶞鶟鶠鶡鶢�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[249].length;++a)if(t[249][a].charCodeAt(0)!==65533){r[t[249][a]]=63744+a;e[63744+a]=t[249][a]}t[250]="����������������������������������������������������������������鶣鶤鶥鶦鶧鶨鶩鶪鶫鶬鶭鶮鶯鶰鶱鶲鶳鶴鶵鶶鶷鶸鶹鶺鶻鶼鶽鶾鶿鷀鷁鷂鷃鷄鷅鷆鷇鷈鷉鷊鷋鷌鷍鷎鷏鷐鷑鷒鷓鷔鷕鷖鷗鷘鷙鷚鷛鷜鷝鷞鷟鷠鷡�鷢鷣鷤鷥鷦鷧鷨鷩鷪鷫鷬鷭鷮鷯鷰鷱鷲鷳鷴鷵鷶鷷鷸鷹鷺鷻鷼鷽鷾鷿鸀鸁鸂�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[250].length;++a)if(t[250][a].charCodeAt(0)!==65533){r[t[250][a]]=64e3+a;e[64e3+a]=t[250][a]}t[251]="����������������������������������������������������������������鸃鸄鸅鸆鸇鸈鸉鸊鸋鸌鸍鸎鸏鸐鸑鸒鸓鸔鸕鸖鸗鸘鸙鸚鸛鸜鸝鸞鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴鹵鹶鹷鹸鹹鹺鹻鹼鹽麀�麁麃麄麅麆麉麊麌麍麎麏麐麑麔麕麖麗麘麙麚麛麜麞麠麡麢麣麤麥麧麨麩麪�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[251].length;++a)if(t[251][a].charCodeAt(0)!==65533){r[t[251][a]]=64256+a;e[64256+a]=t[251][a]}t[252]="����������������������������������������������������������������麫麬麭麮麯麰麱麲麳麵麶麷麹麺麼麿黀黁黂黃黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰黱黲黳黴黵黶黷黸黺黽黿鼀鼁鼂鼃鼄鼅�鼆鼇鼈鼉鼊鼌鼏鼑鼒鼔鼕鼖鼘鼚鼛鼜鼝鼞鼟鼡鼣鼤鼥鼦鼧鼨鼩鼪鼫鼭鼮鼰鼱�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[252].length;++a)if(t[252][a].charCodeAt(0)!==65533){r[t[252][a]]=64512+a;e[64512+a]=t[252][a]}t[253]="����������������������������������������������������������������鼲鼳鼴鼵鼶鼸鼺鼼鼿齀齁齂齃齅齆齇齈齉齊齋齌齍齎齏齒齓齔齕齖齗齘齙齚齛齜齝齞齟齠齡齢齣齤齥齦齧齨齩齪齫齬齭齮齯齰齱齲齳齴齵齶齷齸�齹齺齻齼齽齾龁龂龍龎龏龐龑龒龓龔龕龖龗龘龜龝龞龡龢龣龤龥郎凉秊裏隣�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[253].length;++a)if(t[253][a].charCodeAt(0)!==65533){r[t[253][a]]=64768+a;e[64768+a]=t[253][a]}t[254]="����������������������������������������������������������������兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[254].length;++a)if(t[254][a].charCodeAt(0)!==65533){r[t[254][a]]=65024+a;e[65024+a]=t[254][a]}return{enc:r,dec:e}}();cptable[949]=function(){var e=[],r={},t=[],a;t[0]="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[0].length;++a)if(t[0][a].charCodeAt(0)!==65533){r[t[0][a]]=0+a;e[0+a]=t[0][a]}t[129]="�����������������������������������������������������������������갂갃갅갆갋갌갍갎갏갘갞갟갡갢갣갥갦갧갨갩갪갫갮갲갳갴������갵갶갷갺갻갽갾갿걁걂걃걄걅걆걇걈걉걊걌걎걏걐걑걒걓걕������걖걗걙걚걛걝걞걟걠걡걢걣걤걥걦걧걨걩걪걫걬걭걮걯걲걳걵걶걹걻걼걽걾걿겂겇겈겍겎겏겑겒겓겕겖겗겘겙겚겛겞겢겣겤겥겦겧겫겭겮겱겲겳겴겵겶겷겺겾겿곀곂곃곅곆곇곉곊곋곍곎곏곐곑곒곓곔곖곘곙곚곛곜곝곞곟곢곣곥곦곩곫곭곮곲곴곷곸곹곺곻곾곿괁괂괃괅괇괈괉괊괋괎괐괒괓�".split("");for(a=0;a!=t[129].length;++a)if(t[129][a].charCodeAt(0)!==65533){r[t[129][a]]=33024+a;e[33024+a]=t[129][a]}t[130]="�����������������������������������������������������������������괔괕괖괗괙괚괛괝괞괟괡괢괣괤괥괦괧괨괪괫괮괯괰괱괲괳������괶괷괹괺괻괽괾괿굀굁굂굃굆굈굊굋굌굍굎굏굑굒굓굕굖굗������굙굚굛굜굝굞굟굠굢굤굥굦굧굨굩굪굫굮굯굱굲굷굸굹굺굾궀궃궄궅궆궇궊궋궍궎궏궑궒궓궔궕궖궗궘궙궚궛궞궟궠궡궢궣궥궦궧궨궩궪궫궬궭궮궯궰궱궲궳궴궵궶궸궹궺궻궼궽궾궿귂귃귅귆귇귉귊귋귌귍귎귏귒귔귕귖귗귘귙귚귛귝귞귟귡귢귣귥귦귧귨귩귪귫귬귭귮귯귰귱귲귳귴귵귶귷�".split("");for(a=0;a!=t[130].length;++a)if(t[130][a].charCodeAt(0)!==65533){r[t[130][a]]=33280+a;e[33280+a]=t[130][a]}t[131]="�����������������������������������������������������������������귺귻귽귾긂긃긄긅긆긇긊긌긎긏긐긑긒긓긕긖긗긘긙긚긛긜������긝긞긟긠긡긢긣긤긥긦긧긨긩긪긫긬긭긮긯긲긳긵긶긹긻긼������긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗깘깙깚깛깞깢깣깤깦깧깪깫깭깮깯깱깲깳깴깵깶깷깺깾깿꺀꺁꺂꺃꺆꺇꺈꺉꺊꺋꺍꺎꺏꺐꺑꺒꺓꺔꺕꺖꺗꺘꺙꺚꺛꺜꺝꺞꺟꺠꺡꺢꺣꺤꺥꺦꺧꺨꺩꺪꺫꺬꺭꺮꺯꺰꺱꺲꺳꺴꺵꺶꺷꺸꺹꺺꺻꺿껁껂껃껅껆껇껈껉껊껋껎껒껓껔껕껖껗껚껛껝껞껟껠껡껢껣껤껥�".split("");for(a=0;a!=t[131].length;++a)if(t[131][a].charCodeAt(0)!==65533){r[t[131][a]]=33536+a;e[33536+a]=t[131][a]}t[132]="�����������������������������������������������������������������껦껧껩껪껬껮껯껰껱껲껳껵껶껷껹껺껻껽껾껿꼀꼁꼂꼃꼄꼅������꼆꼉꼊꼋꼌꼎꼏꼑꼒꼓꼔꼕꼖꼗꼘꼙꼚꼛꼜꼝꼞꼟꼠꼡꼢꼣������꼤꼥꼦꼧꼨꼩꼪꼫꼮꼯꼱꼳꼵꼶꼷꼸꼹꼺꼻꼾꽀꽄꽅꽆꽇꽊꽋꽌꽍꽎꽏꽑꽒꽓꽔꽕꽖꽗꽘꽙꽚꽛꽞꽟꽠꽡꽢꽣꽦꽧꽨꽩꽪꽫꽬꽭꽮꽯꽰꽱꽲꽳꽴꽵꽶꽷꽸꽺꽻꽼꽽꽾꽿꾁꾂꾃꾅꾆꾇꾉꾊꾋꾌꾍꾎꾏꾒꾓꾔꾖꾗꾘꾙꾚꾛꾝꾞꾟꾠꾡꾢꾣꾤꾥꾦꾧꾨꾩꾪꾫꾬꾭꾮꾯꾰꾱꾲꾳꾴꾵꾶꾷꾺꾻꾽꾾�".split("");for(a=0;a!=t[132].length;++a)if(t[132][a].charCodeAt(0)!==65533){r[t[132][a]]=33792+a;e[33792+a]=t[132][a]}t[133]="�����������������������������������������������������������������꾿꿁꿂꿃꿄꿅꿆꿊꿌꿏꿐꿑꿒꿓꿕꿖꿗꿘꿙꿚꿛꿝꿞꿟꿠꿡������꿢꿣꿤꿥꿦꿧꿪꿫꿬꿭꿮꿯꿲꿳꿵꿶꿷꿹꿺꿻꿼꿽꿾꿿뀂뀃������뀅뀆뀇뀈뀉뀊뀋뀍뀎뀏뀑뀒뀓뀕뀖뀗뀘뀙뀚뀛뀞뀟뀠뀡뀢뀣뀤뀥뀦뀧뀩뀪뀫뀬뀭뀮뀯뀰뀱뀲뀳뀴뀵뀶뀷뀸뀹뀺뀻뀼뀽뀾뀿끀끁끂끃끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞끟끠끡끢끣끤끥끦끧끨끩끪끫끬끭끮끯끰끱끲끳끴끵끶끷끸끹끺끻끾끿낁낂낃낅낆낇낈낉낊낋낎낐낒낓낔낕낖낗낛낝낞낣낤�".split("");for(a=0;a!=t[133].length;++a)if(t[133][a].charCodeAt(0)!==65533){r[t[133][a]]=34048+a;e[34048+a]=t[133][a]}t[134]="�����������������������������������������������������������������낥낦낧낪낰낲낶낷낹낺낻낽낾낿냀냁냂냃냆냊냋냌냍냎냏냒������냓냕냖냗냙냚냛냜냝냞냟냡냢냣냤냦냧냨냩냪냫냬냭냮냯냰������냱냲냳냴냵냶냷냸냹냺냻냼냽냾냿넀넁넂넃넄넅넆넇넊넍넎넏넑넔넕넖넗넚넞넟넠넡넢넦넧넩넪넫넭넮넯넰넱넲넳넶넺넻넼넽넾넿녂녃녅녆녇녉녊녋녌녍녎녏녒녓녖녗녙녚녛녝녞녟녡녢녣녤녥녦녧녨녩녪녫녬녭녮녯녰녱녲녳녴녵녶녷녺녻녽녾녿놁놃놄놅놆놇놊놌놎놏놐놑놕놖놗놙놚놛놝�".split("");for(a=0;a!=t[134].length;++a)if(t[134][a].charCodeAt(0)!==65533){r[t[134][a]]=34304+a;e[34304+a]=t[134][a]}t[135]="�����������������������������������������������������������������놞놟놠놡놢놣놤놥놦놧놩놪놫놬놭놮놯놰놱놲놳놴놵놶놷놸������놹놺놻놼놽놾놿뇀뇁뇂뇃뇄뇅뇆뇇뇈뇉뇊뇋뇍뇎뇏뇑뇒뇓뇕������뇖뇗뇘뇙뇚뇛뇞뇠뇡뇢뇣뇤뇥뇦뇧뇪뇫뇭뇮뇯뇱뇲뇳뇴뇵뇶뇷뇸뇺뇼뇾뇿눀눁눂눃눆눇눉눊눍눎눏눐눑눒눓눖눘눚눛눜눝눞눟눡눢눣눤눥눦눧눨눩눪눫눬눭눮눯눰눱눲눳눵눶눷눸눹눺눻눽눾눿뉀뉁뉂뉃뉄뉅뉆뉇뉈뉉뉊뉋뉌뉍뉎뉏뉐뉑뉒뉓뉔뉕뉖뉗뉙뉚뉛뉝뉞뉟뉡뉢뉣뉤뉥뉦뉧뉪뉫뉬뉭뉮�".split("");for(a=0;a!=t[135].length;++a)if(t[135][a].charCodeAt(0)!==65533){r[t[135][a]]=34560+a;e[34560+a]=t[135][a]}t[136]="�����������������������������������������������������������������뉯뉰뉱뉲뉳뉶뉷뉸뉹뉺뉻뉽뉾뉿늀늁늂늃늆늇늈늊늋늌늍늎������늏늒늓늕늖늗늛늜늝늞늟늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷������늸늹늺늻늼늽늾늿닀닁닂닃닄닅닆닇닊닋닍닎닏닑닓닔닕닖닗닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉댊댋댌댍댎댏댒댖댗댘댙댚댛댝댞댟댠댡댢댣댤댥댦댧댨댩댪댫댬댭댮댯댰댱댲댳댴댵댶댷댸댹댺댻댼댽댾댿덀덁덂덃덄덅덆덇덈덉덊덋덌덍덎덏덐덑덒덓덗덙덚덝덠덡덢덣�".split("");for(a=0;a!=t[136].length;++a)if(t[136][a].charCodeAt(0)!==65533){r[t[136][a]]=34816+a;e[34816+a]=t[136][a]}t[137]="�����������������������������������������������������������������덦덨덪덬덭덯덲덳덵덶덷덹덺덻덼덽덾덿뎂뎆뎇뎈뎉뎊뎋뎍������뎎뎏뎑뎒뎓뎕뎖뎗뎘뎙뎚뎛뎜뎝뎞뎟뎢뎣뎤뎥뎦뎧뎩뎪뎫뎭������뎮뎯뎰뎱뎲뎳뎴뎵뎶뎷뎸뎹뎺뎻뎼뎽뎾뎿돀돁돂돃돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩돪돫돬돭돮돯돰돱돲돳돴돵돶돷돸돹돺돻돽돾돿됀됁됂됃됄됅됆됇됈됉됊됋됌됍됎됏됑됒됓됔됕됖됗됙됚됛됝됞됟됡됢됣됤됥됦됧됪됬됭됮됯됰됱됲됳됵됶됷됸됹됺됻됼됽됾됿둀둁둂둃둄�".split("");for(a=0;a!=t[137].length;++a)if(t[137][a].charCodeAt(0)!==65533){r[t[137][a]]=35072+a;e[35072+a]=t[137][a]}t[138]="�����������������������������������������������������������������둅둆둇둈둉둊둋둌둍둎둏둒둓둕둖둗둙둚둛둜둝둞둟둢둤둦������둧둨둩둪둫둭둮둯둰둱둲둳둴둵둶둷둸둹둺둻둼둽둾둿뒁뒂������뒃뒄뒅뒆뒇뒉뒊뒋뒌뒍뒎뒏뒐뒑뒒뒓뒔뒕뒖뒗뒘뒙뒚뒛뒜뒞뒟뒠뒡뒢뒣뒥뒦뒧뒩뒪뒫뒭뒮뒯뒰뒱뒲뒳뒴뒶뒸뒺뒻뒼뒽뒾뒿듁듂듃듅듆듇듉듊듋듌듍듎듏듑듒듓듔듖듗듘듙듚듛듞듟듡듢듥듧듨듩듪듫듮듰듲듳듴듵듶듷듹듺듻듼듽듾듿딀딁딂딃딄딅딆딇딈딉딊딋딌딍딎딏딐딑딒딓딖딗딙딚딝�".split("");for(a=0;a!=t[138].length;++a)if(t[138][a].charCodeAt(0)!==65533){r[t[138][a]]=35328+a;e[35328+a]=t[138][a]}t[139]="�����������������������������������������������������������������딞딟딠딡딢딣딦딫딬딭딮딯딲딳딵딶딷딹딺딻딼딽딾딿땂땆������땇땈땉땊땎땏땑땒땓땕땖땗땘땙땚땛땞땢땣땤땥땦땧땨땩땪������땫땬땭땮땯땰땱땲땳땴땵땶땷땸땹땺땻땼땽땾땿떀떁떂떃떄떅떆떇떈떉떊떋떌떍떎떏떐떑떒떓떔떕떖떗떘떙떚떛떜떝떞떟떢떣떥떦떧떩떬떭떮떯떲떶떷떸떹떺떾떿뗁뗂뗃뗅뗆뗇뗈뗉뗊뗋뗎뗒뗓뗔뗕뗖뗗뗙뗚뗛뗜뗝뗞뗟뗠뗡뗢뗣뗤뗥뗦뗧뗨뗩뗪뗫뗭뗮뗯뗰뗱뗲뗳뗴뗵뗶뗷뗸뗹뗺뗻뗼뗽뗾뗿�".split("");for(a=0;a!=t[139].length;++a)if(t[139][a].charCodeAt(0)!==65533){r[t[139][a]]=35584+a;e[35584+a]=t[139][a]}t[140]="�����������������������������������������������������������������똀똁똂똃똄똅똆똇똈똉똊똋똌똍똎똏똒똓똕똖똗똙똚똛똜똝������똞똟똠똡똢똣똤똦똧똨똩똪똫똭똮똯똰똱똲똳똵똶똷똸똹똺������똻똼똽똾똿뙀뙁뙂뙃뙄뙅뙆뙇뙉뙊뙋뙌뙍뙎뙏뙐뙑뙒뙓뙔뙕뙖뙗뙘뙙뙚뙛뙜뙝뙞뙟뙠뙡뙢뙣뙥뙦뙧뙩뙪뙫뙬뙭뙮뙯뙰뙱뙲뙳뙴뙵뙶뙷뙸뙹뙺뙻뙼뙽뙾뙿뚀뚁뚂뚃뚄뚅뚆뚇뚈뚉뚊뚋뚌뚍뚎뚏뚐뚑뚒뚓뚔뚕뚖뚗뚘뚙뚚뚛뚞뚟뚡뚢뚣뚥뚦뚧뚨뚩뚪뚭뚮뚯뚰뚲뚳뚴뚵뚶뚷뚸뚹뚺뚻뚼뚽뚾뚿뛀뛁뛂�".split("");for(a=0;a!=t[140].length;++a)if(t[140][a].charCodeAt(0)!==65533){r[t[140][a]]=35840+a;e[35840+a]=t[140][a]}t[141]="�����������������������������������������������������������������뛃뛄뛅뛆뛇뛈뛉뛊뛋뛌뛍뛎뛏뛐뛑뛒뛓뛕뛖뛗뛘뛙뛚뛛뛜뛝������뛞뛟뛠뛡뛢뛣뛤뛥뛦뛧뛨뛩뛪뛫뛬뛭뛮뛯뛱뛲뛳뛵뛶뛷뛹뛺������뛻뛼뛽뛾뛿뜂뜃뜄뜆뜇뜈뜉뜊뜋뜌뜍뜎뜏뜐뜑뜒뜓뜔뜕뜖뜗뜘뜙뜚뜛뜜뜝뜞뜟뜠뜡뜢뜣뜤뜥뜦뜧뜪뜫뜭뜮뜱뜲뜳뜴뜵뜶뜷뜺뜼뜽뜾뜿띀띁띂띃띅띆띇띉띊띋띍띎띏띐띑띒띓띖띗띘띙띚띛띜띝띞띟띡띢띣띥띦띧띩띪띫띬띭띮띯띲띴띶띷띸띹띺띻띾띿랁랂랃랅랆랇랈랉랊랋랎랓랔랕랚랛랝랞�".split("");for(a=0;a!=t[141].length;++a)if(t[141][a].charCodeAt(0)!==65533){r[t[141][a]]=36096+a;e[36096+a]=t[141][a]}t[142]="�����������������������������������������������������������������랟랡랢랣랤랥랦랧랪랮랯랰랱랲랳랶랷랹랺랻랼랽랾랿럀럁������럂럃럄럅럆럈럊럋럌럍럎럏럐럑럒럓럔럕럖럗럘럙럚럛럜럝������럞럟럠럡럢럣럤럥럦럧럨럩럪럫럮럯럱럲럳럵럶럷럸럹럺럻럾렂렃렄렅렆렊렋렍렎렏렑렒렓렔렕렖렗렚렜렞렟렠렡렢렣렦렧렩렪렫렭렮렯렰렱렲렳렶렺렻렼렽렾렿롁롂롃롅롆롇롈롉롊롋롌롍롎롏롐롒롔롕롖롗롘롙롚롛롞롟롡롢롣롥롦롧롨롩롪롫롮롰롲롳롴롵롶롷롹롺롻롽롾롿뢀뢁뢂뢃뢄�".split("");for(a=0;a!=t[142].length;++a)if(t[142][a].charCodeAt(0)!==65533){r[t[142][a]]=36352+a;e[36352+a]=t[142][a]}t[143]="�����������������������������������������������������������������뢅뢆뢇뢈뢉뢊뢋뢌뢎뢏뢐뢑뢒뢓뢔뢕뢖뢗뢘뢙뢚뢛뢜뢝뢞뢟������뢠뢡뢢뢣뢤뢥뢦뢧뢩뢪뢫뢬뢭뢮뢯뢱뢲뢳뢵뢶뢷뢹뢺뢻뢼뢽������뢾뢿룂룄룆룇룈룉룊룋룍룎룏룑룒룓룕룖룗룘룙룚룛룜룞룠룢룣룤룥룦룧룪룫룭룮룯룱룲룳룴룵룶룷룺룼룾룿뤀뤁뤂뤃뤅뤆뤇뤈뤉뤊뤋뤌뤍뤎뤏뤐뤑뤒뤓뤔뤕뤖뤗뤙뤚뤛뤜뤝뤞뤟뤡뤢뤣뤤뤥뤦뤧뤨뤩뤪뤫뤬뤭뤮뤯뤰뤱뤲뤳뤴뤵뤶뤷뤸뤹뤺뤻뤾뤿륁륂륃륅륆륇륈륉륊륋륍륎륐륒륓륔륕륖륗�".split("");for(a=0;a!=t[143].length;++a)if(t[143][a].charCodeAt(0)!==65533){r[t[143][a]]=36608+a;e[36608+a]=t[143][a]}t[144]="�����������������������������������������������������������������륚륛륝륞륟륡륢륣륤륥륦륧륪륬륮륯륰륱륲륳륶륷륹륺륻륽������륾륿릀릁릂릃릆릈릋릌릏릐릑릒릓릔릕릖릗릘릙릚릛릜릝릞������릟릠릡릢릣릤릥릦릧릨릩릪릫릮릯릱릲릳릵릶릷릸릹릺릻릾맀맂맃맄맅맆맇맊맋맍맓맔맕맖맗맚맜맟맠맢맦맧맩맪맫맭맮맯맰맱맲맳맶맻맼맽맾맿먂먃먄먅먆먇먉먊먋먌먍먎먏먐먑먒먓먔먖먗먘먙먚먛먜먝먞먟먠먡먢먣먤먥먦먧먨먩먪먫먬먭먮먯먰먱먲먳먴먵먶먷먺먻먽먾먿멁멃멄멅멆�".split("");for(a=0;a!=t[144].length;++a)if(t[144][a].charCodeAt(0)!==65533){r[t[144][a]]=36864+a;e[36864+a]=t[144][a]}t[145]="�����������������������������������������������������������������멇멊멌멏멐멑멒멖멗멙멚멛멝멞멟멠멡멢멣멦멪멫멬멭멮멯������멲멳멵멶멷멹멺멻멼멽멾멿몀몁몂몆몈몉몊몋몍몎몏몐몑몒������몓몔몕몖몗몘몙몚몛몜몝몞몟몠몡몢몣몤몥몦몧몪몭몮몯몱몳몴몵몶몷몺몼몾몿뫀뫁뫂뫃뫅뫆뫇뫉뫊뫋뫌뫍뫎뫏뫐뫑뫒뫓뫔뫕뫖뫗뫚뫛뫜뫝뫞뫟뫠뫡뫢뫣뫤뫥뫦뫧뫨뫩뫪뫫뫬뫭뫮뫯뫰뫱뫲뫳뫴뫵뫶뫷뫸뫹뫺뫻뫽뫾뫿묁묂묃묅묆묇묈묉묊묋묌묎묐묒묓묔묕묖묗묙묚묛묝묞묟묡묢묣묤묥묦묧�".split("");for(a=0;a!=t[145].length;++a)if(t[145][a].charCodeAt(0)!==65533){r[t[145][a]]=37120+a;e[37120+a]=t[145][a]}t[146]="�����������������������������������������������������������������묨묪묬묭묮묯묰묱묲묳묷묹묺묿뭀뭁뭂뭃뭆뭈뭊뭋뭌뭎뭑뭒������뭓뭕뭖뭗뭙뭚뭛뭜뭝뭞뭟뭠뭢뭤뭥뭦뭧뭨뭩뭪뭫뭭뭮뭯뭰뭱������뭲뭳뭴뭵뭶뭷뭸뭹뭺뭻뭼뭽뭾뭿뮀뮁뮂뮃뮄뮅뮆뮇뮉뮊뮋뮍뮎뮏뮑뮒뮓뮔뮕뮖뮗뮘뮙뮚뮛뮜뮝뮞뮟뮠뮡뮢뮣뮥뮦뮧뮩뮪뮫뮭뮮뮯뮰뮱뮲뮳뮵뮶뮸뮹뮺뮻뮼뮽뮾뮿믁믂믃믅믆믇믉믊믋믌믍믎믏믑믒믔믕믖믗믘믙믚믛믜믝믞믟믠믡믢믣믤믥믦믧믨믩믪믫믬믭믮믯믰믱믲믳믴믵믶믷믺믻믽믾밁�".split("");for(a=0;a!=t[146].length;++a)if(t[146][a].charCodeAt(0)!==65533){r[t[146][a]]=37376+a;e[37376+a]=t[146][a]}t[147]="�����������������������������������������������������������������밃밄밅밆밇밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵������밶밷밹밺밻밼밽밾밿뱂뱆뱇뱈뱊뱋뱎뱏뱑뱒뱓뱔뱕뱖뱗뱘뱙������뱚뱛뱜뱞뱟뱠뱡뱢뱣뱤뱥뱦뱧뱨뱩뱪뱫뱬뱭뱮뱯뱰뱱뱲뱳뱴뱵뱶뱷뱸뱹뱺뱻뱼뱽뱾뱿벀벁벂벃벆벇벉벊벍벏벐벑벒벓벖벘벛벜벝벞벟벢벣벥벦벩벪벫벬벭벮벯벲벶벷벸벹벺벻벾벿볁볂볃볅볆볇볈볉볊볋볌볎볒볓볔볖볗볙볚볛볝볞볟볠볡볢볣볤볥볦볧볨볩볪볫볬볭볮볯볰볱볲볳볷볹볺볻볽�".split("");for(a=0;a!=t[147].length;++a)if(t[147][a].charCodeAt(0)!==65533){r[t[147][a]]=37632+a;e[37632+a]=t[147][a]}t[148]="�����������������������������������������������������������������볾볿봀봁봂봃봆봈봊봋봌봍봎봏봑봒봓봕봖봗봘봙봚봛봜봝������봞봟봠봡봢봣봥봦봧봨봩봪봫봭봮봯봰봱봲봳봴봵봶봷봸봹������봺봻봼봽봾봿뵁뵂뵃뵄뵅뵆뵇뵊뵋뵍뵎뵏뵑뵒뵓뵔뵕뵖뵗뵚뵛뵜뵝뵞뵟뵠뵡뵢뵣뵥뵦뵧뵩뵪뵫뵬뵭뵮뵯뵰뵱뵲뵳뵴뵵뵶뵷뵸뵹뵺뵻뵼뵽뵾뵿붂붃붅붆붋붌붍붎붏붒붔붖붗붘붛붝붞붟붠붡붢붣붥붦붧붨붩붪붫붬붭붮붯붱붲붳붴붵붶붷붹붺붻붼붽붾붿뷀뷁뷂뷃뷄뷅뷆뷇뷈뷉뷊뷋뷌뷍뷎뷏뷐뷑�".split("");for(a=0;a!=t[148].length;++a)if(t[148][a].charCodeAt(0)!==65533){r[t[148][a]]=37888+a;e[37888+a]=t[148][a]}t[149]="�����������������������������������������������������������������뷒뷓뷖뷗뷙뷚뷛뷝뷞뷟뷠뷡뷢뷣뷤뷥뷦뷧뷨뷪뷫뷬뷭뷮뷯뷱������뷲뷳뷵뷶뷷뷹뷺뷻뷼뷽뷾뷿븁븂븄븆븇븈븉븊븋븎븏븑븒븓������븕븖븗븘븙븚븛븞븠븡븢븣븤븥븦븧븨븩븪븫븬븭븮븯븰븱븲븳븴븵븶븷븸븹븺븻븼븽븾븿빀빁빂빃빆빇빉빊빋빍빏빐빑빒빓빖빘빜빝빞빟빢빣빥빦빧빩빫빬빭빮빯빲빶빷빸빹빺빾빿뺁뺂뺃뺅뺆뺇뺈뺉뺊뺋뺎뺒뺓뺔뺕뺖뺗뺚뺛뺜뺝뺞뺟뺠뺡뺢뺣뺤뺥뺦뺧뺩뺪뺫뺬뺭뺮뺯뺰뺱뺲뺳뺴뺵뺶뺷�".split("");for(a=0;a!=t[149].length;++a)if(t[149][a].charCodeAt(0)!==65533){r[t[149][a]]=38144+a;e[38144+a]=t[149][a]}t[150]="�����������������������������������������������������������������뺸뺹뺺뺻뺼뺽뺾뺿뻀뻁뻂뻃뻄뻅뻆뻇뻈뻉뻊뻋뻌뻍뻎뻏뻒뻓������뻕뻖뻙뻚뻛뻜뻝뻞뻟뻡뻢뻦뻧뻨뻩뻪뻫뻭뻮뻯뻰뻱뻲뻳뻴뻵������뻶뻷뻸뻹뻺뻻뻼뻽뻾뻿뼀뼂뼃뼄뼅뼆뼇뼊뼋뼌뼍뼎뼏뼐뼑뼒뼓뼔뼕뼖뼗뼚뼞뼟뼠뼡뼢뼣뼤뼥뼦뼧뼨뼩뼪뼫뼬뼭뼮뼯뼰뼱뼲뼳뼴뼵뼶뼷뼸뼹뼺뼻뼼뼽뼾뼿뽂뽃뽅뽆뽇뽉뽊뽋뽌뽍뽎뽏뽒뽓뽔뽖뽗뽘뽙뽚뽛뽜뽝뽞뽟뽠뽡뽢뽣뽤뽥뽦뽧뽨뽩뽪뽫뽬뽭뽮뽯뽰뽱뽲뽳뽴뽵뽶뽷뽸뽹뽺뽻뽼뽽뽾뽿뾀뾁뾂�".split("");for(a=0;a!=t[150].length;++a)if(t[150][a].charCodeAt(0)!==65533){r[t[150][a]]=38400+a;e[38400+a]=t[150][a]}t[151]="�����������������������������������������������������������������뾃뾄뾅뾆뾇뾈뾉뾊뾋뾌뾍뾎뾏뾐뾑뾒뾓뾕뾖뾗뾘뾙뾚뾛뾜뾝������뾞뾟뾠뾡뾢뾣뾤뾥뾦뾧뾨뾩뾪뾫뾬뾭뾮뾯뾱뾲뾳뾴뾵뾶뾷뾸������뾹뾺뾻뾼뾽뾾뾿뿀뿁뿂뿃뿄뿆뿇뿈뿉뿊뿋뿎뿏뿑뿒뿓뿕뿖뿗뿘뿙뿚뿛뿝뿞뿠뿢뿣뿤뿥뿦뿧뿨뿩뿪뿫뿬뿭뿮뿯뿰뿱뿲뿳뿴뿵뿶뿷뿸뿹뿺뿻뿼뿽뿾뿿쀀쀁쀂쀃쀄쀅쀆쀇쀈쀉쀊쀋쀌쀍쀎쀏쀐쀑쀒쀓쀔쀕쀖쀗쀘쀙쀚쀛쀜쀝쀞쀟쀠쀡쀢쀣쀤쀥쀦쀧쀨쀩쀪쀫쀬쀭쀮쀯쀰쀱쀲쀳쀴쀵쀶쀷쀸쀹쀺쀻쀽쀾쀿�".split("");for(a=0;a!=t[151].length;++a)if(t[151][a].charCodeAt(0)!==65533){r[t[151][a]]=38656+a;e[38656+a]=t[151][a]}t[152]="�����������������������������������������������������������������쁀쁁쁂쁃쁄쁅쁆쁇쁈쁉쁊쁋쁌쁍쁎쁏쁐쁒쁓쁔쁕쁖쁗쁙쁚쁛������쁝쁞쁟쁡쁢쁣쁤쁥쁦쁧쁪쁫쁬쁭쁮쁯쁰쁱쁲쁳쁴쁵쁶쁷쁸쁹������쁺쁻쁼쁽쁾쁿삀삁삂삃삄삅삆삇삈삉삊삋삌삍삎삏삒삓삕삖삗삙삚삛삜삝삞삟삢삤삦삧삨삩삪삫삮삱삲삷삸삹삺삻삾샂샃샄샆샇샊샋샍샎샏샑샒샓샔샕샖샗샚샞샟샠샡샢샣샦샧샩샪샫샭샮샯샰샱샲샳샶샸샺샻샼샽샾샿섁섂섃섅섆섇섉섊섋섌섍섎섏섑섒섓섔섖섗섘섙섚섛섡섢섥섨섩섪섫섮�".split("");for(a=0;a!=t[152].length;++a)if(t[152][a].charCodeAt(0)!==65533){r[t[152][a]]=38912+a;e[38912+a]=t[152][a]}t[153]="�����������������������������������������������������������������섲섳섴섵섷섺섻섽섾섿셁셂셃셄셅셆셇셊셎셏셐셑셒셓셖셗������셙셚셛셝셞셟셠셡셢셣셦셪셫셬셭셮셯셱셲셳셵셶셷셹셺셻������셼셽셾셿솀솁솂솃솄솆솇솈솉솊솋솏솑솒솓솕솗솘솙솚솛솞솠솢솣솤솦솧솪솫솭솮솯솱솲솳솴솵솶솷솸솹솺솻솼솾솿쇀쇁쇂쇃쇅쇆쇇쇉쇊쇋쇍쇎쇏쇐쇑쇒쇓쇕쇖쇙쇚쇛쇜쇝쇞쇟쇡쇢쇣쇥쇦쇧쇩쇪쇫쇬쇭쇮쇯쇲쇴쇵쇶쇷쇸쇹쇺쇻쇾쇿숁숂숃숅숆숇숈숉숊숋숎숐숒숓숔숕숖숗숚숛숝숞숡숢숣�".split("");for(a=0;a!=t[153].length;++a)if(t[153][a].charCodeAt(0)!==65533){r[t[153][a]]=39168+a;e[39168+a]=t[153][a]}t[154]="�����������������������������������������������������������������숤숥숦숧숪숬숮숰숳숵숶숷숸숹숺숻숼숽숾숿쉀쉁쉂쉃쉄쉅������쉆쉇쉉쉊쉋쉌쉍쉎쉏쉒쉓쉕쉖쉗쉙쉚쉛쉜쉝쉞쉟쉡쉢쉣쉤쉦������쉧쉨쉩쉪쉫쉮쉯쉱쉲쉳쉵쉶쉷쉸쉹쉺쉻쉾슀슂슃슄슅슆슇슊슋슌슍슎슏슑슒슓슔슕슖슗슙슚슜슞슟슠슡슢슣슦슧슩슪슫슮슯슰슱슲슳슶슸슺슻슼슽슾슿싀싁싂싃싄싅싆싇싈싉싊싋싌싍싎싏싐싑싒싓싔싕싖싗싘싙싚싛싞싟싡싢싥싦싧싨싩싪싮싰싲싳싴싵싷싺싽싾싿쌁쌂쌃쌄쌅쌆쌇쌊쌋쌎쌏�".split("");for(a=0;a!=t[154].length;++a)if(t[154][a].charCodeAt(0)!==65533){r[t[154][a]]=39424+a;e[39424+a]=t[154][a]}t[155]="�����������������������������������������������������������������쌐쌑쌒쌖쌗쌙쌚쌛쌝쌞쌟쌠쌡쌢쌣쌦쌧쌪쌫쌬쌭쌮쌯쌰쌱쌲������쌳쌴쌵쌶쌷쌸쌹쌺쌻쌼쌽쌾쌿썀썁썂썃썄썆썇썈썉썊썋썌썍������썎썏썐썑썒썓썔썕썖썗썘썙썚썛썜썝썞썟썠썡썢썣썤썥썦썧썪썫썭썮썯썱썳썴썵썶썷썺썻썾썿쎀쎁쎂쎃쎅쎆쎇쎉쎊쎋쎍쎎쎏쎐쎑쎒쎓쎔쎕쎖쎗쎘쎙쎚쎛쎜쎝쎞쎟쎠쎡쎢쎣쎤쎥쎦쎧쎨쎩쎪쎫쎬쎭쎮쎯쎰쎱쎲쎳쎴쎵쎶쎷쎸쎹쎺쎻쎼쎽쎾쎿쏁쏂쏃쏄쏅쏆쏇쏈쏉쏊쏋쏌쏍쏎쏏쏐쏑쏒쏓쏔쏕쏖쏗쏚�".split("");for(a=0;a!=t[155].length;++a)if(t[155][a].charCodeAt(0)!==65533){r[t[155][a]]=39680+a;e[39680+a]=t[155][a]}t[156]="�����������������������������������������������������������������쏛쏝쏞쏡쏣쏤쏥쏦쏧쏪쏫쏬쏮쏯쏰쏱쏲쏳쏶쏷쏹쏺쏻쏼쏽쏾������쏿쐀쐁쐂쐃쐄쐅쐆쐇쐉쐊쐋쐌쐍쐎쐏쐑쐒쐓쐔쐕쐖쐗쐘쐙쐚������쐛쐜쐝쐞쐟쐠쐡쐢쐣쐥쐦쐧쐨쐩쐪쐫쐭쐮쐯쐱쐲쐳쐵쐶쐷쐸쐹쐺쐻쐾쐿쑀쑁쑂쑃쑄쑅쑆쑇쑉쑊쑋쑌쑍쑎쑏쑐쑑쑒쑓쑔쑕쑖쑗쑘쑙쑚쑛쑜쑝쑞쑟쑠쑡쑢쑣쑦쑧쑩쑪쑫쑭쑮쑯쑰쑱쑲쑳쑶쑷쑸쑺쑻쑼쑽쑾쑿쒁쒂쒃쒄쒅쒆쒇쒈쒉쒊쒋쒌쒍쒎쒏쒐쒑쒒쒓쒕쒖쒗쒘쒙쒚쒛쒝쒞쒟쒠쒡쒢쒣쒤쒥쒦쒧쒨쒩�".split("");for(a=0;a!=t[156].length;++a)if(t[156][a].charCodeAt(0)!==65533){r[t[156][a]]=39936+a;e[39936+a]=t[156][a]}t[157]="�����������������������������������������������������������������쒪쒫쒬쒭쒮쒯쒰쒱쒲쒳쒴쒵쒶쒷쒹쒺쒻쒽쒾쒿쓀쓁쓂쓃쓄쓅������쓆쓇쓈쓉쓊쓋쓌쓍쓎쓏쓐쓑쓒쓓쓔쓕쓖쓗쓘쓙쓚쓛쓜쓝쓞쓟������쓠쓡쓢쓣쓤쓥쓦쓧쓨쓪쓫쓬쓭쓮쓯쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂씃씄씅씆씇씈씉씊씋씍씎씏씑씒씓씕씖씗씘씙씚씛씝씞씟씠씡씢씣씤씥씦씧씪씫씭씮씯씱씲씳씴씵씶씷씺씼씾씿앀앁앂앃앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩앪앫앬앭앮앯앲앶앷앸앹앺앻앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔�".split("");for(a=0;a!=t[157].length;++a)if(t[157][a].charCodeAt(0)!==65533){r[t[157][a]]=40192+a;e[40192+a]=t[157][a]}t[158]="�����������������������������������������������������������������얖얙얚얛얝얞얟얡얢얣얤얥얦얧얨얪얫얬얭얮얯얰얱얲얳얶������얷얺얿엀엁엂엃엋엍엏엒엓엕엖엗엙엚엛엜엝엞엟엢엤엦엧������엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑옒옓옔옕옖옗옚옝옞옟옠옡옢옣옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉왊왋왌왍왎왏왒왖왗왘왙왚왛왞왟왡왢왣왤왥왦왧왨왩왪왫왭왮왰왲왳왴왵왶왷왺왻왽왾왿욁욂욃욄욅욆욇욊욌욎욏욐욑욒욓욖욗욙욚욛욝욞욟욠욡욢욣욦�".split("");for(a=0;a!=t[158].length;++a)if(t[158][a].charCodeAt(0)!==65533){r[t[158][a]]=40448+a;e[40448+a]=t[158][a]}t[159]="�����������������������������������������������������������������욨욪욫욬욭욮욯욲욳욵욶욷욻욼욽욾욿웂웄웆웇웈웉웊웋웎������웏웑웒웓웕웖웗웘웙웚웛웞웟웢웣웤웥웦웧웪웫웭웮웯웱웲������웳웴웵웶웷웺웻웼웾웿윀윁윂윃윆윇윉윊윋윍윎윏윐윑윒윓윖윘윚윛윜윝윞윟윢윣윥윦윧윩윪윫윬윭윮윯윲윴윶윸윹윺윻윾윿읁읂읃읅읆읇읈읉읋읎읐읙읚읛읝읞읟읡읢읣읤읥읦읧읩읪읬읭읮읯읰읱읲읳읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛잜잝잞잟잢잧잨잩잪잫잮잯잱잲잳잵잶잷�".split("");for(a=0;a!=t[159].length;++a)if(t[159][a].charCodeAt(0)!==65533){r[t[159][a]]=40704+a;e[40704+a]=t[159][a]}t[160]="�����������������������������������������������������������������잸잹잺잻잾쟂쟃쟄쟅쟆쟇쟊쟋쟍쟏쟑쟒쟓쟔쟕쟖쟗쟙쟚쟛쟜������쟞쟟쟠쟡쟢쟣쟥쟦쟧쟩쟪쟫쟭쟮쟯쟰쟱쟲쟳쟴쟵쟶쟷쟸쟹쟺������쟻쟼쟽쟾쟿젂젃젅젆젇젉젋젌젍젎젏젒젔젗젘젙젚젛젞젟젡젢젣젥젦젧젨젩젪젫젮젰젲젳젴젵젶젷젹젺젻젽젾젿졁졂졃졄졅졆졇졊졋졎졏졐졑졒졓졕졖졗졘졙졚졛졜졝졞졟졠졡졢졣졤졥졦졧졨졩졪졫졬졭졮졯졲졳졵졶졷졹졻졼졽졾졿좂좄좈좉좊좎좏좐좑좒좓좕좖좗좘좙좚좛좜좞좠좢좣좤�".split("");for(a=0;a!=t[160].length;++a)if(t[160][a].charCodeAt(0)!==65533){r[t[160][a]]=40960+a;e[40960+a]=t[160][a]}t[161]="�����������������������������������������������������������������좥좦좧좩좪좫좬좭좮좯좰좱좲좳좴좵좶좷좸좹좺좻좾좿죀죁������죂죃죅죆죇죉죊죋죍죎죏죐죑죒죓죖죘죚죛죜죝죞죟죢죣죥������죦죧죨죩죪죫죬죭죮죯죰죱죲죳죴죶죷죸죹죺죻죾죿줁줂줃줇줈줉줊줋줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈〉《》「」『』【】±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬�".split("");for(a=0;a!=t[161].length;++a)if(t[161][a].charCodeAt(0)!==65533){r[t[161][a]]=41216+a;e[41216+a]=t[161][a]}t[162]="�����������������������������������������������������������������줐줒줓줔줕줖줗줙줚줛줜줝줞줟줠줡줢줣줤줥줦줧줨줩줪줫������줭줮줯줰줱줲줳줵줶줷줸줹줺줻줼줽줾줿쥀쥁쥂쥃쥄쥅쥆쥇������쥈쥉쥊쥋쥌쥍쥎쥏쥒쥓쥕쥖쥗쥙쥚쥛쥜쥝쥞쥟쥢쥤쥥쥦쥧쥨쥩쥪쥫쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®������������������������".split("");for(a=0;a!=t[162].length;++a)if(t[162][a].charCodeAt(0)!==65533){r[t[162][a]]=41472+a;e[41472+a]=t[162][a]}t[163]="�����������������������������������������������������������������쥱쥲쥳쥵쥶쥷쥸쥹쥺쥻쥽쥾쥿즀즁즂즃즄즅즆즇즊즋즍즎즏������즑즒즓즔즕즖즗즚즜즞즟즠즡즢즣즤즥즦즧즨즩즪즫즬즭즮������즯즰즱즲즳즴즵즶즷즸즹즺즻즼즽즾즿짂짃짅짆짉짋짌짍짎짏짒짔짗짘짛!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[₩]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split("");for(a=0;a!=t[163].length;++a)if(t[163][a].charCodeAt(0)!==65533){r[t[163][a]]=41728+a;e[41728+a]=t[163][a]}t[164]="�����������������������������������������������������������������짞짟짡짣짥짦짨짩짪짫짮짲짳짴짵짶짷짺짻짽짾짿쨁쨂쨃쨄������쨅쨆쨇쨊쨎쨏쨐쨑쨒쨓쨕쨖쨗쨙쨚쨛쨜쨝쨞쨟쨠쨡쨢쨣쨤쨥������쨦쨧쨨쨪쨫쨬쨭쨮쨯쨰쨱쨲쨳쨴쨵쨶쨷쨸쨹쨺쨻쨼쨽쨾쨿쩀쩁쩂쩃쩄쩅쩆ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅤㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ�".split("");for(a=0;a!=t[164].length;++a)if(t[164][a].charCodeAt(0)!==65533){r[t[164][a]]=41984+a;e[41984+a]=t[164][a]}t[165]="�����������������������������������������������������������������쩇쩈쩉쩊쩋쩎쩏쩑쩒쩓쩕쩖쩗쩘쩙쩚쩛쩞쩢쩣쩤쩥쩦쩧쩩쩪������쩫쩬쩭쩮쩯쩰쩱쩲쩳쩴쩵쩶쩷쩸쩹쩺쩻쩼쩾쩿쪀쪁쪂쪃쪅쪆������쪇쪈쪉쪊쪋쪌쪍쪎쪏쪐쪑쪒쪓쪔쪕쪖쪗쪙쪚쪛쪜쪝쪞쪟쪠쪡쪢쪣쪤쪥쪦쪧ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ�����ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������".split("");for(a=0;a!=t[165].length;++a)if(t[165][a].charCodeAt(0)!==65533){r[t[165][a]]=42240+a;e[42240+a]=t[165][a]}t[166]="�����������������������������������������������������������������쪨쪩쪪쪫쪬쪭쪮쪯쪰쪱쪲쪳쪴쪵쪶쪷쪸쪹쪺쪻쪾쪿쫁쫂쫃쫅������쫆쫇쫈쫉쫊쫋쫎쫐쫒쫔쫕쫖쫗쫚쫛쫜쫝쫞쫟쫡쫢쫣쫤쫥쫦쫧������쫨쫩쫪쫫쫭쫮쫯쫰쫱쫲쫳쫵쫶쫷쫸쫹쫺쫻쫼쫽쫾쫿쬀쬁쬂쬃쬄쬅쬆쬇쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃╄╅╆╇╈╉╊���������������������������".split("");for(a=0;a!=t[166].length;++a)if(t[166][a].charCodeAt(0)!==65533){r[t[166][a]]=42496+a;e[42496+a]=t[166][a]}t[167]="�����������������������������������������������������������������쬋쬌쬍쬎쬏쬑쬒쬓쬕쬖쬗쬙쬚쬛쬜쬝쬞쬟쬢쬣쬤쬥쬦쬧쬨쬩������쬪쬫쬬쬭쬮쬯쬰쬱쬲쬳쬴쬵쬶쬷쬸쬹쬺쬻쬼쬽쬾쬿쭀쭂쭃쭄������쭅쭆쭇쭊쭋쭍쭎쭏쭑쭒쭓쭔쭕쭖쭗쭚쭛쭜쭞쭟쭠쭡쭢쭣쭥쭦쭧쭨쭩쭪쭫쭬㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙㎚㎛㎜㎝㎞㎟㎠㎡㎢㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰㎱㎲㎳㎴㎵㎶㎷㎸㎹㎀㎁㎂㎃㎄㎺㎻㎼㎽㎾㎿㎐㎑㎒㎓㎔Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆����������������".split("");for(a=0;a!=t[167].length;++a)if(t[167][a].charCodeAt(0)!==65533){r[t[167][a]]=42752+a;e[42752+a]=t[167][a]}t[168]="�����������������������������������������������������������������쭭쭮쭯쭰쭱쭲쭳쭴쭵쭶쭷쭺쭻쭼쭽쭾쭿쮀쮁쮂쮃쮄쮅쮆쮇쮈������쮉쮊쮋쮌쮍쮎쮏쮐쮑쮒쮓쮔쮕쮖쮗쮘쮙쮚쮛쮝쮞쮟쮠쮡쮢쮣������쮤쮥쮦쮧쮨쮩쮪쮫쮬쮭쮮쮯쮰쮱쮲쮳쮴쮵쮶쮷쮹쮺쮻쮼쮽쮾쮿쯀쯁쯂쯃쯄ÆÐªĦ�IJ�ĿŁØŒºÞŦŊ�㉠㉡㉢㉣㉤㉥㉦㉧㉨㉩㉪㉫㉬㉭㉮㉯㉰㉱㉲㉳㉴㉵㉶㉷㉸㉹㉺㉻ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮½⅓⅔¼¾⅛⅜⅝⅞�".split("");for(a=0;a!=t[168].length;++a)if(t[168][a].charCodeAt(0)!==65533){r[t[168][a]]=43008+a;e[43008+a]=t[168][a]}t[169]="�����������������������������������������������������������������쯅쯆쯇쯈쯉쯊쯋쯌쯍쯎쯏쯐쯑쯒쯓쯕쯖쯗쯘쯙쯚쯛쯜쯝쯞쯟������쯠쯡쯢쯣쯥쯦쯨쯪쯫쯬쯭쯮쯯쯰쯱쯲쯳쯴쯵쯶쯷쯸쯹쯺쯻쯼������쯽쯾쯿찀찁찂찃찄찅찆찇찈찉찊찋찎찏찑찒찓찕찖찗찘찙찚찛찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀㈁㈂㈃㈄㈅㈆㈇㈈㈉㈊㈋㈌㈍㈎㈏㈐㈑㈒㈓㈔㈕㈖㈗㈘㈙㈚㈛⒜⒝⒞⒟⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯⒰⒱⒲⒳⒴⒵⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂¹²³⁴ⁿ₁₂₃₄�".split("");for(a=0;a!=t[169].length;++a)if(t[169][a].charCodeAt(0)!==65533){r[t[169][a]]=43264+a;e[43264+a]=t[169][a]}t[170]="�����������������������������������������������������������������찥찦찪찫찭찯찱찲찳찴찵찶찷찺찿챀챁챂챃챆챇챉챊챋챍챎������챏챐챑챒챓챖챚챛챜챝챞챟챡챢챣챥챧챩챪챫챬챭챮챯챱챲������챳챴챶챷챸챹챺챻챼챽챾챿첀첁첂첃첄첅첆첇첈첉첊첋첌첍첎첏첐첑첒첓ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split("");for(a=0;a!=t[170].length;++a)if(t[170][a].charCodeAt(0)!==65533){r[t[170][a]]=43520+a;e[43520+a]=t[170][a]}t[171]="�����������������������������������������������������������������첔첕첖첗첚첛첝첞첟첡첢첣첤첥첦첧첪첮첯첰첱첲첳첶첷첹������첺첻첽첾첿쳀쳁쳂쳃쳆쳈쳊쳋쳌쳍쳎쳏쳑쳒쳓쳕쳖쳗쳘쳙쳚������쳛쳜쳝쳞쳟쳠쳡쳢쳣쳥쳦쳧쳨쳩쳪쳫쳭쳮쳯쳱쳲쳳쳴쳵쳶쳷쳸쳹쳺쳻쳼쳽ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split("");for(a=0;a!=t[171].length;++a)if(t[171][a].charCodeAt(0)!==65533){r[t[171][a]]=43776+a;e[43776+a]=t[171][a]}t[172]="�����������������������������������������������������������������쳾쳿촀촂촃촄촅촆촇촊촋촍촎촏촑촒촓촔촕촖촗촚촜촞촟촠������촡촢촣촥촦촧촩촪촫촭촮촯촰촱촲촳촴촵촶촷촸촺촻촼촽촾������촿쵀쵁쵂쵃쵄쵅쵆쵇쵈쵉쵊쵋쵌쵍쵎쵏쵐쵑쵒쵓쵔쵕쵖쵗쵘쵙쵚쵛쵝쵞쵟АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split("");for(a=0;a!=t[172].length;++a)if(t[172][a].charCodeAt(0)!==65533){r[t[172][a]]=44032+a;e[44032+a]=t[172][a]}t[173]="�����������������������������������������������������������������쵡쵢쵣쵥쵦쵧쵨쵩쵪쵫쵮쵰쵲쵳쵴쵵쵶쵷쵹쵺쵻쵼쵽쵾쵿춀������춁춂춃춄춅춆춇춉춊춋춌춍춎춏춐춑춒춓춖춗춙춚춛춝춞춟������춠춡춢춣춦춨춪춫춬춭춮춯춱춲춳춴춵춶춷춸춹춺춻춼춽춾춿췀췁췂췃췅�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[173].length;++a)if(t[173][a].charCodeAt(0)!==65533){r[t[173][a]]=44288+a;e[44288+a]=t[173][a]}t[174]="�����������������������������������������������������������������췆췇췈췉췊췋췍췎췏췑췒췓췔췕췖췗췘췙췚췛췜췝췞췟췠췡������췢췣췤췥췦췧췩췪췫췭췮췯췱췲췳췴췵췶췷췺췼췾췿츀츁츂������츃츅츆츇츉츊츋츍츎츏츐츑츒츓츕츖츗츘츚츛츜츝츞츟츢츣츥츦츧츩츪츫�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[174].length;++a)if(t[174][a].charCodeAt(0)!==65533){r[t[174][a]]=44544+a;e[44544+a]=t[174][a]}t[175]="�����������������������������������������������������������������츬츭츮츯츲츴츶츷츸츹츺츻츼츽츾츿칀칁칂칃칄칅칆칇칈칉������칊칋칌칍칎칏칐칑칒칓칔칕칖칗칚칛칝칞칢칣칤칥칦칧칪칬������칮칯칰칱칲칳칶칷칹칺칻칽칾칿캀캁캂캃캆캈캊캋캌캍캎캏캒캓캕캖캗캙�����������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[175].length;++a)if(t[175][a].charCodeAt(0)!==65533){r[t[175][a]]=44800+a;e[44800+a]=t[175][a]}t[176]="�����������������������������������������������������������������캚캛캜캝캞캟캢캦캧캨캩캪캫캮캯캰캱캲캳캴캵캶캷캸캹캺������캻캼캽캾캿컀컂컃컄컅컆컇컈컉컊컋컌컍컎컏컐컑컒컓컔컕������컖컗컘컙컚컛컜컝컞컟컠컡컢컣컦컧컩컪컭컮컯컰컱컲컳컶컺컻컼컽컾컿가각간갇갈갉갊감갑값갓갔강갖갗같갚갛개객갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆�".split("");for(a=0;a!=t[176].length;++a)if(t[176][a].charCodeAt(0)!==65533){r[t[176][a]]=45056+a;e[45056+a]=t[176][a]}t[177]="�����������������������������������������������������������������켂켃켅켆켇켉켊켋켌켍켎켏켒켔켖켗켘켙켚켛켝켞켟켡켢켣������켥켦켧켨켩켪켫켮켲켳켴켵켶켷켹켺켻켼켽켾켿콀콁콂콃콄������콅콆콇콈콉콊콋콌콍콎콏콐콑콒콓콖콗콙콚콛콝콞콟콠콡콢콣콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸�".split("");for(a=0;a!=t[177].length;++a)if(t[177][a].charCodeAt(0)!==65533){r[t[177][a]]=45312+a;e[45312+a]=t[177][a]}t[178]="�����������������������������������������������������������������콭콮콯콲콳콵콶콷콹콺콻콼콽콾콿쾁쾂쾃쾄쾆쾇쾈쾉쾊쾋쾍������쾎쾏쾐쾑쾒쾓쾔쾕쾖쾗쾘쾙쾚쾛쾜쾝쾞쾟쾠쾢쾣쾤쾥쾦쾧쾩������쾪쾫쾬쾭쾮쾯쾱쾲쾳쾴쾵쾶쾷쾸쾹쾺쾻쾼쾽쾾쾿쿀쿁쿂쿃쿅쿆쿇쿈쿉쿊쿋깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙�".split("");for(a=0;a!=t[178].length;++a)if(t[178][a].charCodeAt(0)!==65533){r[t[178][a]]=45568+a;e[45568+a]=t[178][a]}t[179]="�����������������������������������������������������������������쿌쿍쿎쿏쿐쿑쿒쿓쿔쿕쿖쿗쿘쿙쿚쿛쿜쿝쿞쿟쿢쿣쿥쿦쿧쿩������쿪쿫쿬쿭쿮쿯쿲쿴쿶쿷쿸쿹쿺쿻쿽쿾쿿퀁퀂퀃퀅퀆퀇퀈퀉퀊������퀋퀌퀍퀎퀏퀐퀒퀓퀔퀕퀖퀗퀙퀚퀛퀜퀝퀞퀟퀠퀡퀢퀣퀤퀥퀦퀧퀨퀩퀪퀫퀬끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫났낭낮낯낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝�".split("");for(a=0;a!=t[179].length;++a)if(t[179][a].charCodeAt(0)!==65533){r[t[179][a]]=45824+a;e[45824+a]=t[179][a]}t[180]="�����������������������������������������������������������������퀮퀯퀰퀱퀲퀳퀶퀷퀹퀺퀻퀽퀾퀿큀큁큂큃큆큈큊큋큌큍큎큏������큑큒큓큕큖큗큙큚큛큜큝큞큟큡큢큣큤큥큦큧큨큩큪큫큮큯������큱큲큳큵큶큷큸큹큺큻큾큿킀킂킃킄킅킆킇킈킉킊킋킌킍킎킏킐킑킒킓킔뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫달닭닮닯닳담답닷닸당닺닻닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥�".split("");for(a=0;a!=t[180].length;++a)if(t[180][a].charCodeAt(0)!==65533){r[t[180][a]]=46080+a;e[46080+a]=t[180][a]}t[181]="�����������������������������������������������������������������킕킖킗킘킙킚킛킜킝킞킟킠킡킢킣킦킧킩킪킫킭킮킯킰킱킲������킳킶킸킺킻킼킽킾킿탂탃탅탆탇탊탋탌탍탎탏탒탖탗탘탙탚������탛탞탟탡탢탣탥탦탧탨탩탪탫탮탲탳탴탵탶탷탹탺탻탼탽탾탿턀턁턂턃턄덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸�".split("");for(a=0;a!=t[181].length;++a)if(t[181][a].charCodeAt(0)!==65533){r[t[181][a]]=46336+a;e[46336+a]=t[181][a]}t[182]="�����������������������������������������������������������������턅턆턇턈턉턊턋턌턎턏턐턑턒턓턔턕턖턗턘턙턚턛턜턝턞턟������턠턡턢턣턤턥턦턧턨턩턪턫턬턭턮턯턲턳턵턶턷턹턻턼턽턾������턿텂텆텇텈텉텊텋텎텏텑텒텓텕텖텗텘텙텚텛텞텠텢텣텤텥텦텧텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗�".split("");for(a=0;a!=t[182].length;++a)if(t[182][a].charCodeAt(0)!==65533){r[t[182][a]]=46592+a;e[46592+a]=t[182][a]}t[183]="�����������������������������������������������������������������텮텯텰텱텲텳텴텵텶텷텸텹텺텻텽텾텿톀톁톂톃톅톆톇톉톊������톋톌톍톎톏톐톑톒톓톔톕톖톗톘톙톚톛톜톝톞톟톢톣톥톦톧������톩톪톫톬톭톮톯톲톴톶톷톸톹톻톽톾톿퇁퇂퇃퇄퇅퇆퇇퇈퇉퇊퇋퇌퇍퇎퇏래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩�".split("");for(a=0;a!=t[183].length;++a)if(t[183][a].charCodeAt(0)!==65533){r[t[183][a]]=46848+a;e[46848+a]=t[183][a]}t[184]="�����������������������������������������������������������������퇐퇑퇒퇓퇔퇕퇖퇗퇙퇚퇛퇜퇝퇞퇟퇠퇡퇢퇣퇤퇥퇦퇧퇨퇩퇪������퇫퇬퇭퇮퇯퇰퇱퇲퇳퇵퇶퇷퇹퇺퇻퇼퇽퇾퇿툀툁툂툃툄툅툆������툈툊툋툌툍툎툏툑툒툓툔툕툖툗툘툙툚툛툜툝툞툟툠툡툢툣툤툥툦툧툨툩륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많맏말맑맒맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼�".split("");for(a=0;a!=t[184].length;++a)if(t[184][a].charCodeAt(0)!==65533){r[t[184][a]]=47104+a;e[47104+a]=t[184][a]}t[185]="�����������������������������������������������������������������툪툫툮툯툱툲툳툵툶툷툸툹툺툻툾퉀퉂퉃퉄퉅퉆퉇퉉퉊퉋퉌������퉍퉎퉏퉐퉑퉒퉓퉔퉕퉖퉗퉘퉙퉚퉛퉝퉞퉟퉠퉡퉢퉣퉥퉦퉧퉨������퉩퉪퉫퉬퉭퉮퉯퉰퉱퉲퉳퉴퉵퉶퉷퉸퉹퉺퉻퉼퉽퉾퉿튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바박밖밗반받발밝밞밟밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗�".split("");for(a=0;a!=t[185].length;++a)if(t[185][a].charCodeAt(0)!==65533){r[t[185][a]]=47360+a;e[47360+a]=t[185][a]}t[186]="�����������������������������������������������������������������튍튎튏튒튓튔튖튗튘튙튚튛튝튞튟튡튢튣튥튦튧튨튩튪튫튭������튮튯튰튲튳튴튵튶튷튺튻튽튾틁틃틄틅틆틇틊틌틍틎틏틐틑������틒틓틕틖틗틙틚틛틝틞틟틠틡틢틣틦틧틨틩틪틫틬틭틮틯틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤�".split("");for(a=0;a!=t[186].length;++a)if(t[186][a].charCodeAt(0)!==65533){r[t[186][a]]=47616+a;e[47616+a]=t[186][a]}t[187]="�����������������������������������������������������������������틻틼틽틾틿팂팄팆팇팈팉팊팋팏팑팒팓팕팗팘팙팚팛팞팢팣������팤팦팧팪팫팭팮팯팱팲팳팴팵팶팷팺팾팿퍀퍁퍂퍃퍆퍇퍈퍉������퍊퍋퍌퍍퍎퍏퍐퍑퍒퍓퍔퍕퍖퍗퍘퍙퍚퍛퍜퍝퍞퍟퍠퍡퍢퍣퍤퍥퍦퍧퍨퍩빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤�".split("");for(a=0;a!=t[187].length;++a)if(t[187][a].charCodeAt(0)!==65533){r[t[187][a]]=47872+a;e[47872+a]=t[187][a]}t[188]="�����������������������������������������������������������������퍪퍫퍬퍭퍮퍯퍰퍱퍲퍳퍴퍵퍶퍷퍸퍹퍺퍻퍾퍿펁펂펃펅펆펇������펈펉펊펋펎펒펓펔펕펖펗펚펛펝펞펟펡펢펣펤펥펦펧펪펬펮������펯펰펱펲펳펵펶펷펹펺펻펽펾펿폀폁폂폃폆폇폊폋폌폍폎폏폑폒폓폔폕폖샥샨샬샴샵샷샹섀섄섈섐섕서석섞섟선섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭�".split("");for(a=0;a!=t[188].length;++a)if(t[188][a].charCodeAt(0)!==65533){r[t[188][a]]=48128+a;e[48128+a]=t[188][a]}t[189]="�����������������������������������������������������������������폗폙폚폛폜폝폞폟폠폢폤폥폦폧폨폩폪폫폮폯폱폲폳폵폶폷������폸폹폺폻폾퐀퐂퐃퐄퐅퐆퐇퐉퐊퐋퐌퐍퐎퐏퐐퐑퐒퐓퐔퐕퐖������퐗퐘퐙퐚퐛퐜퐞퐟퐠퐡퐢퐣퐤퐥퐦퐧퐨퐩퐪퐫퐬퐭퐮퐯퐰퐱퐲퐳퐴퐵퐶퐷숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰�".split("");for(a=0;a!=t[189].length;++a)if(t[189][a].charCodeAt(0)!==65533){r[t[189][a]]=48384+a;e[48384+a]=t[189][a]}t[190]="�����������������������������������������������������������������퐸퐹퐺퐻퐼퐽퐾퐿푁푂푃푅푆푇푈푉푊푋푌푍푎푏푐푑푒푓������푔푕푖푗푘푙푚푛푝푞푟푡푢푣푥푦푧푨푩푪푫푬푮푰푱푲������푳푴푵푶푷푺푻푽푾풁풃풄풅풆풇풊풌풎풏풐풑풒풓풕풖풗풘풙풚풛풜풝쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄업없엇었엉엊엌엎�".split("");for(a=0;a!=t[190].length;++a)if(t[190][a].charCodeAt(0)!==65533){r[t[190][a]]=48640+a;e[48640+a]=t[190][a]}t[191]="�����������������������������������������������������������������풞풟풠풡풢풣풤풥풦풧풨풪풫풬풭풮풯풰풱풲풳풴풵풶풷풸������풹풺풻풼풽풾풿퓀퓁퓂퓃퓄퓅퓆퓇퓈퓉퓊퓋퓍퓎퓏퓑퓒퓓퓕������퓖퓗퓘퓙퓚퓛퓝퓞퓠퓡퓢퓣퓤퓥퓦퓧퓩퓪퓫퓭퓮퓯퓱퓲퓳퓴퓵퓶퓷퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염엽엾엿였영옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨�".split("");for(a=0;a!=t[191].length;++a)if(t[191][a].charCodeAt(0)!==65533){r[t[191][a]]=48896+a;e[48896+a]=t[191][a]}t[192]="�����������������������������������������������������������������퓾퓿픀픁픂픃픅픆픇픉픊픋픍픎픏픐픑픒픓픖픘픙픚픛픜픝������픞픟픠픡픢픣픤픥픦픧픨픩픪픫픬픭픮픯픰픱픲픳픴픵픶픷������픸픹픺픻픾픿핁핂핃핅핆핇핈핉핊핋핎핐핒핓핔핕핖핗핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응읒읓읔읕읖읗의읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊�".split("");for(a=0;a!=t[192].length;++a)if(t[192][a].charCodeAt(0)!==65533){r[t[192][a]]=49152+a;e[49152+a]=t[192][a]}t[193]="�����������������������������������������������������������������핤핦핧핪핬핮핯핰핱핲핳핶핷핹핺핻핽핾핿햀햁햂햃햆햊햋������햌햍햎햏햑햒햓햔햕햖햗햘햙햚햛햜햝햞햟햠햡햢햣햤햦햧������햨햩햪햫햬햭햮햯햰햱햲햳햴햵햶햷햸햹햺햻햼햽햾햿헀헁헂헃헄헅헆헇점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓�".split(""); -for(a=0;a!=t[193].length;++a)if(t[193][a].charCodeAt(0)!==65533){r[t[193][a]]=49408+a;e[49408+a]=t[193][a]}t[194]="�����������������������������������������������������������������헊헋헍헎헏헑헓헔헕헖헗헚헜헞헟헠헡헢헣헦헧헩헪헫헭헮������헯헰헱헲헳헶헸헺헻헼헽헾헿혂혃혅혆혇혉혊혋혌혍혎혏혒������혖혗혘혙혚혛혝혞혟혡혢혣혥혦혧혨혩혪혫혬혮혯혰혱혲혳혴혵혶혷혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻�".split("");for(a=0;a!=t[194].length;++a)if(t[194][a].charCodeAt(0)!==65533){r[t[194][a]]=49664+a;e[49664+a]=t[194][a]}t[195]="�����������������������������������������������������������������혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝홞홟홠홡������홢홣홤홥홦홨홪홫홬홭홮홯홲홳홵홶홷홸홹홺홻홼홽홾홿횀������횁횂횄횆횇횈횉횊횋횎횏횑횒횓횕횖횗횘횙횚횛횜횞횠횢횣횤횥횦횧횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층�".split("");for(a=0;a!=t[195].length;++a)if(t[195][a].charCodeAt(0)!==65533){r[t[195][a]]=49920+a;e[49920+a]=t[195][a]}t[196]="�����������������������������������������������������������������횫횭횮횯횱횲횳횴횵횶횷횸횺횼횽횾횿훀훁훂훃훆훇훉훊훋������훍훎훏훐훒훓훕훖훘훚훛훜훝훞훟훡훢훣훥훦훧훩훪훫훬훭������훮훯훱훲훳훴훶훷훸훹훺훻훾훿휁휂휃휅휆휇휈휉휊휋휌휍휎휏휐휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼�".split("");for(a=0;a!=t[196].length;++a)if(t[196][a].charCodeAt(0)!==65533){r[t[196][a]]=50176+a;e[50176+a]=t[196][a]}t[197]="�����������������������������������������������������������������휕휖휗휚휛휝휞휟휡휢휣휤휥휦휧휪휬휮휯휰휱휲휳휶휷휹������휺휻휽휾휿흀흁흂흃흅흆흈흊흋흌흍흎흏흒흓흕흚흛흜흝흞������흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵흶흷흸흹흺흻흾흿힀힂힃힄힅힆힇힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜�".split("");for(a=0;a!=t[197].length;++a)if(t[197][a].charCodeAt(0)!==65533){r[t[197][a]]=50432+a;e[50432+a]=t[197][a]}t[198]="�����������������������������������������������������������������힍힎힏힑힒힓힔힕힖힗힚힜힞힟힠힡힢힣������������������������������������������������������������������������������퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁�".split("");for(a=0;a!=t[198].length;++a)if(t[198][a].charCodeAt(0)!==65533){r[t[198][a]]=50688+a;e[50688+a]=t[198][a]}t[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠�".split("");for(a=0;a!=t[199].length;++a)if(t[199][a].charCodeAt(0)!==65533){r[t[199][a]]=50944+a;e[50944+a]=t[199][a]}t[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝�".split("");for(a=0;a!=t[200].length;++a)if(t[200][a].charCodeAt(0)!==65533){r[t[200][a]]=51200+a;e[51200+a]=t[200][a]}t[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕�".split("");for(a=0;a!=t[202].length;++a)if(t[202][a].charCodeAt(0)!==65533){r[t[202][a]]=51712+a;e[51712+a]=t[202][a]}t[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢�".split("");for(a=0;a!=t[203].length;++a)if(t[203][a].charCodeAt(0)!==65533){r[t[203][a]]=51968+a;e[51968+a]=t[203][a]}t[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械�".split("");for(a=0;a!=t[204].length;++a)if(t[204][a].charCodeAt(0)!==65533){r[t[204][a]]=52224+a;e[52224+a]=t[204][a]}t[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜�".split("");for(a=0;a!=t[205].length;++a)if(t[205][a].charCodeAt(0)!==65533){r[t[205][a]]=52480+a;e[52480+a]=t[205][a]}t[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾�".split("");for(a=0;a!=t[206].length;++a)if(t[206][a].charCodeAt(0)!==65533){r[t[206][a]]=52736+a;e[52736+a]=t[206][a]}t[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴�".split("");for(a=0;a!=t[207].length;++a)if(t[207][a].charCodeAt(0)!==65533){r[t[207][a]]=52992+a;e[52992+a]=t[207][a]}t[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣�".split("");for(a=0;a!=t[208].length;++a)if(t[208][a].charCodeAt(0)!==65533){r[t[208][a]]=53248+a;e[53248+a]=t[208][a]}t[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩羅蘿螺裸邏那樂洛烙珞落諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉�".split("");for(a=0;a!=t[209].length;++a)if(t[209][a].charCodeAt(0)!==65533){r[t[209][a]]=53504+a;e[53504+a]=t[209][a]}t[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������納臘蠟衲囊娘廊朗浪狼郎乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧老蘆虜路露駑魯鷺碌祿綠菉錄鹿論壟弄濃籠聾膿農惱牢磊腦賂雷尿壘屢樓淚漏累縷陋嫩訥杻紐勒肋凜凌稜綾能菱陵尼泥匿溺多茶�".split("");for(a=0;a!=t[210].length;++a)if(t[210][a].charCodeAt(0)!==65533){r[t[210][a]]=53760+a;e[53760+a]=t[210][a]}t[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃�".split("");for(a=0;a!=t[211].length;++a)if(t[211][a].charCodeAt(0)!==65533){r[t[211][a]]=54016+a;e[54016+a]=t[211][a]}t[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅�".split("");for(a=0;a!=t[212].length;++a)if(t[212][a].charCodeAt(0)!==65533){r[t[212][a]]=54272+a;e[54272+a]=t[212][a]}t[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣�".split("");for(a=0;a!=t[213].length;++a)if(t[213][a].charCodeAt(0)!==65533){r[t[213][a]]=54528+a;e[54528+a]=t[213][a]}t[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼�".split("");for(a=0;a!=t[214].length;++a)if(t[214][a].charCodeAt(0)!==65533){r[t[214][a]]=54784+a;e[54784+a]=t[214][a]}t[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬�".split("");for(a=0;a!=t[215].length;++a)if(t[215][a].charCodeAt(0)!==65533){r[t[215][a]]=55040+a;e[55040+a]=t[215][a]}t[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅�".split("");for(a=0;a!=t[216].length;++a)if(t[216][a].charCodeAt(0)!==65533){r[t[216][a]]=55296+a;e[55296+a]=t[216][a]}t[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文�".split("");for(a=0;a!=t[217].length;++a)if(t[217][a].charCodeAt(0)!==65533){r[t[217][a]]=55552+a;e[55552+a]=t[217][a]}t[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑�".split("");for(a=0;a!=t[218].length;++a)if(t[218][a].charCodeAt(0)!==65533){r[t[218][a]]=55808+a;e[55808+a]=t[218][a]}t[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖�".split("");for(a=0;a!=t[219].length;++a)if(t[219][a].charCodeAt(0)!==65533){r[t[219][a]]=56064+a;e[56064+a]=t[219][a]}t[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦�".split("");for(a=0;a!=t[220].length;++a)if(t[220][a].charCodeAt(0)!==65533){r[t[220][a]]=56320+a;e[56320+a]=t[220][a]}t[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥�".split("");for(a=0;a!=t[221].length;++a)if(t[221][a].charCodeAt(0)!==65533){r[t[221][a]]=56576+a;e[56576+a]=t[221][a]}t[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索�".split("");for(a=0;a!=t[222].length;++a)if(t[222][a].charCodeAt(0)!==65533){r[t[222][a]]=56832+a;e[56832+a]=t[222][a]}t[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署�".split("");for(a=0;a!=t[223].length;++a)if(t[223][a].charCodeAt(0)!==65533){r[t[223][a]]=57088+a;e[57088+a]=t[223][a]}t[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬�".split("");for(a=0;a!=t[224].length;++a)if(t[224][a].charCodeAt(0)!==65533){r[t[224][a]]=57344+a;e[57344+a]=t[224][a]}t[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁�".split("");for(a=0;a!=t[225].length;++a)if(t[225][a].charCodeAt(0)!==65533){r[t[225][a]]=57600+a;e[57600+a]=t[225][a]}t[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧�".split("");for(a=0;a!=t[226].length;++a)if(t[226][a].charCodeAt(0)!==65533){r[t[226][a]]=57856+a;e[57856+a]=t[226][a]}t[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁�".split("");for(a=0;a!=t[227].length;++a)if(t[227][a].charCodeAt(0)!==65533){r[t[227][a]]=58112+a;e[58112+a]=t[227][a]}t[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額�".split("");for(a=0;a!=t[228].length;++a)if(t[228][a].charCodeAt(0)!==65533){r[t[228][a]]=58368+a;e[58368+a]=t[228][a]}t[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬�".split("");for(a=0;a!=t[229].length;++a)if(t[229][a].charCodeAt(0)!==65533){r[t[229][a]]=58624+a;e[58624+a]=t[229][a]}t[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒�".split("");for(a=0;a!=t[230].length;++a)if(t[230][a].charCodeAt(0)!==65533){r[t[230][a]]=58880+a;e[58880+a]=t[230][a]}t[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳�".split("");for(a=0;a!=t[231].length;++a)if(t[231][a].charCodeAt(0)!==65533){r[t[231][a]]=59136+a;e[59136+a]=t[231][a]}t[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療�".split("");for(a=0;a!=t[232].length;++a)if(t[232][a].charCodeAt(0)!==65533){r[t[232][a]]=59392+a;e[59392+a]=t[232][a]}t[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓�".split("");for(a=0;a!=t[233].length;++a)if(t[233][a].charCodeAt(0)!==65533){r[t[233][a]]=59648+a;e[59648+a]=t[233][a]}t[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜�".split("");for(a=0;a!=t[234].length;++a)if(t[234][a].charCodeAt(0)!==65533){r[t[234][a]]=59904+a;e[59904+a]=t[234][a]}t[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼�".split("");for(a=0;a!=t[235].length;++a)if(t[235][a].charCodeAt(0)!==65533){r[t[235][a]]=60160+a;e[60160+a]=t[235][a]}t[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄�".split("");for(a=0;a!=t[236].length;++a)if(t[236][a].charCodeAt(0)!==65533){r[t[236][a]]=60416+a;e[60416+a]=t[236][a]}t[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長�".split("");for(a=0;a!=t[237].length;++a)if(t[237][a].charCodeAt(0)!==65533){r[t[237][a]]=60672+a;e[60672+a]=t[237][a]}t[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱�".split("");for(a=0;a!=t[238].length;++a)if(t[238][a].charCodeAt(0)!==65533){r[t[238][a]]=60928+a;e[60928+a]=t[238][a]}t[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖�".split("");for(a=0;a!=t[239].length;++a)if(t[239][a].charCodeAt(0)!==65533){r[t[239][a]]=61184+a;e[61184+a]=t[239][a]}t[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫�".split("");for(a=0;a!=t[240].length;++a)if(t[240][a].charCodeAt(0)!==65533){r[t[240][a]]=61440+a;e[61440+a]=t[240][a]}t[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只�".split("");for(a=0;a!=t[241].length;++a)if(t[241][a].charCodeAt(0)!==65533){r[t[241][a]]=61696+a;e[61696+a]=t[241][a]}t[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯�".split("");for(a=0;a!=t[242].length;++a)if(t[242][a].charCodeAt(0)!==65533){r[t[242][a]]=61952+a;e[61952+a]=t[242][a]}t[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策�".split("");for(a=0;a!=t[243].length;++a)if(t[243][a].charCodeAt(0)!==65533){r[t[243][a]]=62208+a;e[62208+a]=t[243][a]}t[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢�".split("");for(a=0;a!=t[244].length;++a)if(t[244][a].charCodeAt(0)!==65533){r[t[244][a]]=62464+a;e[62464+a]=t[244][a]}t[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃�".split("");for(a=0;a!=t[245].length;++a)if(t[245][a].charCodeAt(0)!==65533){r[t[245][a]]=62720+a;e[62720+a]=t[245][a]}t[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託�".split("");for(a=0;a!=t[246].length;++a)if(t[246][a].charCodeAt(0)!==65533){r[t[246][a]]=62976+a;e[62976+a]=t[246][a]}t[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑�".split("");for(a=0;a!=t[247].length;++a)if(t[247][a].charCodeAt(0)!==65533){r[t[247][a]]=63232+a;e[63232+a]=t[247][a]}t[248]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃�".split("");for(a=0;a!=t[248].length;++a)if(t[248][a].charCodeAt(0)!==65533){r[t[248][a]]=63488+a;e[63488+a]=t[248][a]}t[249]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航�".split("");for(a=0;a!=t[249].length;++a)if(t[249][a].charCodeAt(0)!==65533){r[t[249][a]]=63744+a;e[63744+a]=t[249][a]}t[250]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型�".split("");for(a=0;a!=t[250].length;++a)if(t[250][a].charCodeAt(0)!==65533){r[t[250][a]]=64e3+a;e[64e3+a]=t[250][a]}t[251]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵�".split("");for(a=0;a!=t[251].length;++a)if(t[251][a].charCodeAt(0)!==65533){r[t[251][a]]=64256+a;e[64256+a]=t[251][a]}t[252]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆�".split("");for(a=0;a!=t[252].length;++a)if(t[252][a].charCodeAt(0)!==65533){r[t[252][a]]=64512+a;e[64512+a]=t[252][a]}t[253]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰�".split("");for(a=0;a!=t[253].length;++a)if(t[253][a].charCodeAt(0)!==65533){r[t[253][a]]=64768+a;e[64768+a]=t[253][a]}return{enc:r,dec:e}}();cptable[950]=function(){var e=[],r={},t=[],a;t[0]="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[0].length;++a)if(t[0][a].charCodeAt(0)!==65533){r[t[0][a]]=0+a;e[0+a]=t[0][a]}t[161]="���������������������������������������������������������������� ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚����������������������������������﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢﹣﹤﹥﹦~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/�".split("");for(a=0;a!=t[161].length;++a)if(t[161][a].charCodeAt(0)!==65533){r[t[161][a]]=41216+a;e[41216+a]=t[161][a]}t[162]="����������������������������������������������������������������\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁▂▃▄▅▆▇█▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭����������������������������������╮╰╯═╞╪╡◢◣◥◤╱╲╳0123456789ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ〡〢〣〤〥〦〧〨〩十卄卅ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv�".split("");for(a=0;a!=t[162].length;++a)if(t[162][a].charCodeAt(0)!==65533){r[t[162][a]]=41472+a;e[41472+a]=t[162][a]}t[163]="����������������������������������������������������������������wxyzΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏ����������������������������������ㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ˙ˉˊˇˋ���������������������������������€������������������������������".split("");for(a=0;a!=t[163].length;++a)if(t[163][a].charCodeAt(0)!==65533){r[t[163][a]]=41728+a;e[41728+a]=t[163][a]}t[164]="����������������������������������������������������������������一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才����������������������������������丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙�".split("");for(a=0;a!=t[164].length;++a)if(t[164][a].charCodeAt(0)!==65533){r[t[164][a]]=41984+a;e[41984+a]=t[164][a]}t[165]="����������������������������������������������������������������世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外����������������������������������央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全�".split("");for(a=0;a!=t[165].length;++a)if(t[165][a].charCodeAt(0)!==65533){r[t[165][a]]=42240+a;e[42240+a]=t[165][a]}t[166]="����������������������������������������������������������������共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年����������������������������������式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣�".split("");for(a=0;a!=t[166].length;++a)if(t[166][a].charCodeAt(0)!==65533){r[t[166][a]]=42496+a;e[42496+a]=t[166][a]}t[167]="����������������������������������������������������������������作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍����������������������������������均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠�".split("");for(a=0;a!=t[167].length;++a)if(t[167][a].charCodeAt(0)!==65533){r[t[167][a]]=42752+a;e[42752+a]=t[167][a]}t[168]="����������������������������������������������������������������杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒����������������������������������芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵�".split("");for(a=0;a!=t[168].length;++a)if(t[168][a].charCodeAt(0)!==65533){r[t[168][a]]=43008+a;e[43008+a]=t[168][a]}t[169]="����������������������������������������������������������������咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居����������������������������������屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊�".split("");for(a=0;a!=t[169].length;++a)if(t[169][a].charCodeAt(0)!==65533){r[t[169][a]]=43264+a;e[43264+a]=t[169][a]}t[170]="����������������������������������������������������������������昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠����������������������������������炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附�".split("");for(a=0;a!=t[170].length;++a)if(t[170][a].charCodeAt(0)!==65533){r[t[170][a]]=43520+a;e[43520+a]=t[170][a]}t[171]="����������������������������������������������������������������陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品����������������������������������哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷�".split("");for(a=0;a!=t[171].length;++a)if(t[171][a].charCodeAt(0)!==65533){r[t[171][a]]=43776+a;e[43776+a]=t[171][a]}t[172]="����������������������������������������������������������������拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗����������������������������������活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄�".split("");for(a=0;a!=t[172].length;++a)if(t[172][a].charCodeAt(0)!==65533){r[t[172][a]]=44032+a;e[44032+a]=t[172][a]}t[173]="����������������������������������������������������������������耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥����������������������������������迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪�".split("");for(a=0;a!=t[173].length;++a)if(t[173][a].charCodeAt(0)!==65533){r[t[173][a]]=44288+a;e[44288+a]=t[173][a]}t[174]="����������������������������������������������������������������哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙����������������������������������恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓�".split("");for(a=0;a!=t[174].length;++a)if(t[174][a].charCodeAt(0)!==65533){r[t[174][a]]=44544+a;e[44544+a]=t[174][a]}t[175]="����������������������������������������������������������������浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷����������������������������������砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃�".split("");for(a=0;a!=t[175].length;++a)if(t[175][a].charCodeAt(0)!==65533){r[t[175][a]]=44800+a;e[44800+a]=t[175][a]}t[176]="����������������������������������������������������������������虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡����������������������������������陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀�".split("");for(a=0;a!=t[176].length;++a)if(t[176][a].charCodeAt(0)!==65533){r[t[176][a]]=45056+a;e[45056+a]=t[176][a]}t[177]="����������������������������������������������������������������娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽����������������������������������情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺�".split("");for(a=0;a!=t[177].length;++a)if(t[177][a].charCodeAt(0)!==65533){r[t[177][a]]=45312+a;e[45312+a]=t[177][a]}t[178]="����������������������������������������������������������������毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶����������������������������������瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼�".split("");for(a=0;a!=t[178].length;++a)if(t[178][a].charCodeAt(0)!==65533){r[t[178][a]]=45568+a;e[45568+a]=t[178][a]}t[179]="����������������������������������������������������������������莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途����������������������������������部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠�".split("");for(a=0;a!=t[179].length;++a)if(t[179][a].charCodeAt(0)!==65533){r[t[179][a]]=45824+a;e[45824+a]=t[179][a]}t[180]="����������������������������������������������������������������婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍����������������������������������插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋�".split("");for(a=0;a!=t[180].length;++a)if(t[180][a].charCodeAt(0)!==65533){r[t[180][a]]=46080+a;e[46080+a]=t[180][a]}t[181]="����������������������������������������������������������������溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘����������������������������������窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁�".split("");for(a=0;a!=t[181].length;++a)if(t[181][a].charCodeAt(0)!==65533){r[t[181][a]]=46336+a;e[46336+a]=t[181][a]}t[182]="����������������������������������������������������������������詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑����������������������������������間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼�".split("");for(a=0;a!=t[182].length;++a)if(t[182][a].charCodeAt(0)!==65533){r[t[182][a]]=46592+a;e[46592+a]=t[182][a]}t[183]="����������������������������������������������������������������媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業����������������������������������楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督�".split("");for(a=0;a!=t[183].length;++a)if(t[183][a].charCodeAt(0)!==65533){r[t[183][a]]=46848+a;e[46848+a]=t[183][a]}t[184]="����������������������������������������������������������������睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫����������������������������������腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊�".split(""); -for(a=0;a!=t[184].length;++a)if(t[184][a].charCodeAt(0)!==65533){r[t[184][a]]=47104+a;e[47104+a]=t[184][a]}t[185]="����������������������������������������������������������������辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴����������������������������������飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇�".split("");for(a=0;a!=t[185].length;++a)if(t[185][a].charCodeAt(0)!==65533){r[t[185][a]]=47360+a;e[47360+a]=t[185][a]}t[186]="����������������������������������������������������������������愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢����������������������������������滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬�".split("");for(a=0;a!=t[186].length;++a)if(t[186][a].charCodeAt(0)!==65533){r[t[186][a]]=47616+a;e[47616+a]=t[186][a]}t[187]="����������������������������������������������������������������罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤����������������������������������說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜�".split("");for(a=0;a!=t[187].length;++a)if(t[187][a].charCodeAt(0)!==65533){r[t[187][a]]=47872+a;e[47872+a]=t[187][a]}t[188]="����������������������������������������������������������������劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂����������������������������������慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃�".split("");for(a=0;a!=t[188].length;++a)if(t[188][a].charCodeAt(0)!==65533){r[t[188][a]]=48128+a;e[48128+a]=t[188][a]}t[189]="����������������������������������������������������������������瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯����������������������������������翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞�".split("");for(a=0;a!=t[189].length;++a)if(t[189][a].charCodeAt(0)!==65533){r[t[189][a]]=48384+a;e[48384+a]=t[189][a]}t[190]="����������������������������������������������������������������輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉����������������������������������鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡�".split("");for(a=0;a!=t[190].length;++a)if(t[190][a].charCodeAt(0)!==65533){r[t[190][a]]=48640+a;e[48640+a]=t[190][a]}t[191]="����������������������������������������������������������������濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊����������������������������������縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚�".split("");for(a=0;a!=t[191].length;++a)if(t[191][a].charCodeAt(0)!==65533){r[t[191][a]]=48896+a;e[48896+a]=t[191][a]}t[192]="����������������������������������������������������������������錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇����������������������������������嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬�".split("");for(a=0;a!=t[192].length;++a)if(t[192][a].charCodeAt(0)!==65533){r[t[192][a]]=49152+a;e[49152+a]=t[192][a]}t[193]="����������������������������������������������������������������瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪����������������������������������薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁�".split("");for(a=0;a!=t[193].length;++a)if(t[193][a].charCodeAt(0)!==65533){r[t[193][a]]=49408+a;e[49408+a]=t[193][a]}t[194]="����������������������������������������������������������������駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘����������������������������������癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦�".split("");for(a=0;a!=t[194].length;++a)if(t[194][a].charCodeAt(0)!==65533){r[t[194][a]]=49664+a;e[49664+a]=t[194][a]}t[195]="����������������������������������������������������������������鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸����������������������������������獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類�".split("");for(a=0;a!=t[195].length;++a)if(t[195][a].charCodeAt(0)!==65533){r[t[195][a]]=49920+a;e[49920+a]=t[195][a]}t[196]="����������������������������������������������������������������願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼����������������������������������纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴�".split("");for(a=0;a!=t[196].length;++a)if(t[196][a].charCodeAt(0)!==65533){r[t[196][a]]=50176+a;e[50176+a]=t[196][a]}t[197]="����������������������������������������������������������������護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬����������������������������������禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒�".split("");for(a=0;a!=t[197].length;++a)if(t[197][a].charCodeAt(0)!==65533){r[t[197][a]]=50432+a;e[50432+a]=t[197][a]}t[198]="����������������������������������������������������������������讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲���������������������������������������������������������������������������������������������������������������������������������".split("");for(a=0;a!=t[198].length;++a)if(t[198][a].charCodeAt(0)!==65533){r[t[198][a]]=50688+a;e[50688+a]=t[198][a]}t[201]="����������������������������������������������������������������乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕����������������������������������氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋�".split("");for(a=0;a!=t[201].length;++a)if(t[201][a].charCodeAt(0)!==65533){r[t[201][a]]=51456+a;e[51456+a]=t[201][a]}t[202]="����������������������������������������������������������������汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘����������������������������������吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇�".split("");for(a=0;a!=t[202].length;++a)if(t[202][a].charCodeAt(0)!==65533){r[t[202][a]]=51712+a;e[51712+a]=t[202][a]}t[203]="����������������������������������������������������������������杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓����������������������������������芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢�".split("");for(a=0;a!=t[203].length;++a)if(t[203][a].charCodeAt(0)!==65533){r[t[203][a]]=51968+a;e[51968+a]=t[203][a]}t[204]="����������������������������������������������������������������坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋����������������������������������怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲�".split("");for(a=0;a!=t[204].length;++a)if(t[204][a].charCodeAt(0)!==65533){r[t[204][a]]=52224+a;e[52224+a]=t[204][a]}t[205]="����������������������������������������������������������������泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺����������������������������������矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏�".split("");for(a=0;a!=t[205].length;++a)if(t[205][a].charCodeAt(0)!==65533){r[t[205][a]]=52480+a;e[52480+a]=t[205][a]}t[206]="����������������������������������������������������������������哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛����������������������������������峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺�".split("");for(a=0;a!=t[206].length;++a)if(t[206][a].charCodeAt(0)!==65533){r[t[206][a]]=52736+a;e[52736+a]=t[206][a]}t[207]="����������������������������������������������������������������柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂����������������������������������洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀�".split("");for(a=0;a!=t[207].length;++a)if(t[207][a].charCodeAt(0)!==65533){r[t[207][a]]=52992+a;e[52992+a]=t[207][a]}t[208]="����������������������������������������������������������������穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪����������������������������������苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱�".split("");for(a=0;a!=t[208].length;++a)if(t[208][a].charCodeAt(0)!==65533){r[t[208][a]]=53248+a;e[53248+a]=t[208][a]}t[209]="����������������������������������������������������������������唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧����������������������������������恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤�".split("");for(a=0;a!=t[209].length;++a)if(t[209][a].charCodeAt(0)!==65533){r[t[209][a]]=53504+a;e[53504+a]=t[209][a]}t[210]="����������������������������������������������������������������毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸����������������������������������牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐�".split("");for(a=0;a!=t[210].length;++a)if(t[210][a].charCodeAt(0)!==65533){r[t[210][a]]=53760+a;e[53760+a]=t[210][a]}t[211]="����������������������������������������������������������������笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢����������������������������������荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐�".split("");for(a=0;a!=t[211].length;++a)if(t[211][a].charCodeAt(0)!==65533){r[t[211][a]]=54016+a;e[54016+a]=t[211][a]}t[212]="����������������������������������������������������������������酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅����������������������������������唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏�".split("");for(a=0;a!=t[212].length;++a)if(t[212][a].charCodeAt(0)!==65533){r[t[212][a]]=54272+a;e[54272+a]=t[212][a]}t[213]="����������������������������������������������������������������崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟����������������������������������捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉�".split("");for(a=0;a!=t[213].length;++a)if(t[213][a].charCodeAt(0)!==65533){r[t[213][a]]=54528+a;e[54528+a]=t[213][a]}t[214]="����������������������������������������������������������������淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏����������������������������������痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟�".split("");for(a=0;a!=t[214].length;++a)if(t[214][a].charCodeAt(0)!==65533){r[t[214][a]]=54784+a;e[54784+a]=t[214][a]}t[215]="����������������������������������������������������������������耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷����������������������������������蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪�".split("");for(a=0;a!=t[215].length;++a)if(t[215][a].charCodeAt(0)!==65533){r[t[215][a]]=55040+a;e[55040+a]=t[215][a]}t[216]="����������������������������������������������������������������釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷����������������������������������堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔�".split("");for(a=0;a!=t[216].length;++a)if(t[216][a].charCodeAt(0)!==65533){r[t[216][a]]=55296+a;e[55296+a]=t[216][a]}t[217]="����������������������������������������������������������������惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒����������������������������������晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞�".split("");for(a=0;a!=t[217].length;++a)if(t[217][a].charCodeAt(0)!==65533){r[t[217][a]]=55552+a;e[55552+a]=t[217][a]}t[218]="����������������������������������������������������������������湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖����������������������������������琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥�".split("");for(a=0;a!=t[218].length;++a)if(t[218][a].charCodeAt(0)!==65533){r[t[218][a]]=55808+a;e[55808+a]=t[218][a]}t[219]="����������������������������������������������������������������罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳����������������������������������菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺�".split("");for(a=0;a!=t[219].length;++a)if(t[219][a].charCodeAt(0)!==65533){r[t[219][a]]=56064+a;e[56064+a]=t[219][a]}t[220]="����������������������������������������������������������������軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈����������������������������������隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆�".split("");for(a=0;a!=t[220].length;++a)if(t[220][a].charCodeAt(0)!==65533){r[t[220][a]]=56320+a;e[56320+a]=t[220][a]}t[221]="����������������������������������������������������������������媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤����������������������������������搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼�".split("");for(a=0;a!=t[221].length;++a)if(t[221][a].charCodeAt(0)!==65533){r[t[221][a]]=56576+a;e[56576+a]=t[221][a]}t[222]="����������������������������������������������������������������毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓����������������������������������煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓�".split("");for(a=0;a!=t[222].length;++a)if(t[222][a].charCodeAt(0)!==65533){r[t[222][a]]=56832+a;e[56832+a]=t[222][a]}t[223]="����������������������������������������������������������������稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯����������������������������������腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤�".split("");for(a=0;a!=t[223].length;++a)if(t[223][a].charCodeAt(0)!==65533){r[t[223][a]]=57088+a;e[57088+a]=t[223][a]}t[224]="����������������������������������������������������������������觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿����������������������������������遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠�".split("");for(a=0;a!=t[224].length;++a)if(t[224][a].charCodeAt(0)!==65533){r[t[224][a]]=57344+a;e[57344+a]=t[224][a]}t[225]="����������������������������������������������������������������凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠����������������������������������寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉�".split("");for(a=0;a!=t[225].length;++a)if(t[225][a].charCodeAt(0)!==65533){r[t[225][a]]=57600+a;e[57600+a]=t[225][a]}t[226]="����������������������������������������������������������������榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊����������������������������������漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓�".split("");for(a=0;a!=t[226].length;++a)if(t[226][a].charCodeAt(0)!==65533){r[t[226][a]]=57856+a;e[57856+a]=t[226][a]}t[227]="����������������������������������������������������������������禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞����������������������������������耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻�".split("");for(a=0;a!=t[227].length;++a)if(t[227][a].charCodeAt(0)!==65533){r[t[227][a]]=58112+a;e[58112+a]=t[227][a]}t[228]="����������������������������������������������������������������裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍����������������������������������銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘�".split("");for(a=0;a!=t[228].length;++a)if(t[228][a].charCodeAt(0)!==65533){r[t[228][a]]=58368+a;e[58368+a]=t[228][a]}t[229]="����������������������������������������������������������������噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉����������������������������������憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒�".split("");for(a=0;a!=t[229].length;++a)if(t[229][a].charCodeAt(0)!==65533){r[t[229][a]]=58624+a;e[58624+a]=t[229][a]}t[230]="����������������������������������������������������������������澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙����������������������������������獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟�".split("");for(a=0;a!=t[230].length;++a)if(t[230][a].charCodeAt(0)!==65533){r[t[230][a]]=58880+a;e[58880+a]=t[230][a]}t[231]="����������������������������������������������������������������膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢����������������������������������蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧�".split("");for(a=0;a!=t[231].length;++a)if(t[231][a].charCodeAt(0)!==65533){r[t[231][a]]=59136+a;e[59136+a]=t[231][a]}t[232]="����������������������������������������������������������������踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓����������������������������������銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮�".split("");for(a=0;a!=t[232].length;++a)if(t[232][a].charCodeAt(0)!==65533){r[t[232][a]]=59392+a;e[59392+a]=t[232][a]}t[233]="����������������������������������������������������������������噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺����������������������������������憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸�".split("");for(a=0;a!=t[233].length;++a)if(t[233][a].charCodeAt(0)!==65533){r[t[233][a]]=59648+a;e[59648+a]=t[233][a]}t[234]="����������������������������������������������������������������澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙����������������������������������瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘�".split("");for(a=0;a!=t[234].length;++a)if(t[234][a].charCodeAt(0)!==65533){r[t[234][a]]=59904+a;e[59904+a]=t[234][a]}t[235]="����������������������������������������������������������������蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠����������������������������������諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌�".split("");for(a=0;a!=t[235].length;++a)if(t[235][a].charCodeAt(0)!==65533){r[t[235][a]]=60160+a;e[60160+a]=t[235][a]}t[236]="����������������������������������������������������������������錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕����������������������������������魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎�".split("");for(a=0;a!=t[236].length;++a)if(t[236][a].charCodeAt(0)!==65533){r[t[236][a]]=60416+a;e[60416+a]=t[236][a]}t[237]="����������������������������������������������������������������檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶����������������������������������瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞�".split("");for(a=0;a!=t[237].length;++a)if(t[237][a].charCodeAt(0)!==65533){r[t[237][a]]=60672+a;e[60672+a]=t[237][a]}t[238]="����������������������������������������������������������������蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞����������������������������������謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜�".split("");for(a=0;a!=t[238].length;++a)if(t[238][a].charCodeAt(0)!==65533){r[t[238][a]]=60928+a;e[60928+a]=t[238][a]}t[239]="����������������������������������������������������������������鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰����������������������������������鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶�".split("");for(a=0;a!=t[239].length;++a)if(t[239][a].charCodeAt(0)!==65533){r[t[239][a]]=61184+a;e[61184+a]=t[239][a]}t[240]="����������������������������������������������������������������璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒����������������������������������臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧�".split("");for(a=0;a!=t[240].length;++a)if(t[240][a].charCodeAt(0)!==65533){r[t[240][a]]=61440+a;e[61440+a]=t[240][a]}t[241]="����������������������������������������������������������������蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪����������������������������������鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰�".split("");for(a=0;a!=t[241].length;++a)if(t[241][a].charCodeAt(0)!==65533){r[t[241][a]]=61696+a;e[61696+a]=t[241][a]}t[242]="����������������������������������������������������������������徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛����������������������������������礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕�".split("");for(a=0;a!=t[242].length;++a)if(t[242][a].charCodeAt(0)!==65533){r[t[242][a]]=61952+a;e[61952+a]=t[242][a]}t[243]="����������������������������������������������������������������譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦����������������������������������鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲�".split("");for(a=0;a!=t[243].length;++a)if(t[243][a].charCodeAt(0)!==65533){r[t[243][a]]=62208+a;e[62208+a]=t[243][a]}t[244]="����������������������������������������������������������������嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩����������������������������������禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿�".split("");for(a=0;a!=t[244].length;++a)if(t[244][a].charCodeAt(0)!==65533){r[t[244][a]]=62464+a;e[62464+a]=t[244][a]}t[245]="����������������������������������������������������������������鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛����������������������������������鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥�".split("");for(a=0;a!=t[245].length;++a)if(t[245][a].charCodeAt(0)!==65533){r[t[245][a]]=62720+a;e[62720+a]=t[245][a]}t[246]="����������������������������������������������������������������蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺����������������������������������騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚�".split("");for(a=0;a!=t[246].length;++a)if(t[246][a].charCodeAt(0)!==65533){r[t[246][a]]=62976+a;e[62976+a]=t[246][a]}t[247]="����������������������������������������������������������������糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊����������������������������������驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾�".split("");for(a=0;a!=t[247].length;++a)if(t[247][a].charCodeAt(0)!==65533){r[t[247][a]]=63232+a;e[63232+a]=t[247][a]}t[248]="����������������������������������������������������������������讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏����������������������������������齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚�".split("");for(a=0;a!=t[248].length;++a)if(t[248][a].charCodeAt(0)!==65533){r[t[248][a]]=63488+a;e[63488+a]=t[248][a]}t[249]="����������������������������������������������������������������纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊����������������������������������龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓�".split("");for(a=0;a!=t[249].length;++a)if(t[249][a].charCodeAt(0)!==65533){r[t[249][a]]=63744+a;e[63744+a]=t[249][a]}return{enc:r,dec:e}}();cptable[1250]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[1251]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[1252]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[1253]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[1254]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[1255]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹ�ֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[1256]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[1257]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[1258]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[1e4]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[10006]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[10007]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[10008]=function(){var e=[],r={},t=[],a;t[0]="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€���������������������������������������������������������������������������������������".split("");for(a=0;a!=t[0].length;++a)if(t[0][a].charCodeAt(0)!==65533){r[t[0][a]]=0+a;e[0+a]=t[0][a]}t[161]="����������������������������������������������������������������������������������������������������������������������������������������������������������������� 、。・ˉˇ¨〃々―~�…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split("");for(a=0;a!=t[161].length;++a)if(t[161][a].charCodeAt(0)!==65533){r[t[161][a]]=41216+a;e[41216+a]=t[161][a]}t[162]="���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split("");for(a=0;a!=t[162].length;++a)if(t[162][a].charCodeAt(0)!==65533){r[t[162][a]]=41472+a;e[41472+a]=t[162][a]}t[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������!"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split("");for(a=0;a!=t[163].length;++a)if(t[163][a].charCodeAt(0)!==65533){r[t[163][a]]=41728+a;e[41728+a]=t[163][a]}t[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split("");for(a=0;a!=t[164].length;++a)if(t[164][a].charCodeAt(0)!==65533){r[t[164][a]]=41984+a;e[41984+a]=t[164][a]}t[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split("");for(a=0;a!=t[165].length;++a)if(t[165][a].charCodeAt(0)!==65533){r[t[165][a]]=42240+a;e[42240+a]=t[165][a]}t[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω���������������������������������������".split("");for(a=0;a!=t[166].length;++a)if(t[166][a].charCodeAt(0)!==65533){ -r[t[166][a]]=42496+a;e[42496+a]=t[166][a]}t[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split("");for(a=0;a!=t[167].length;++a)if(t[167][a].charCodeAt(0)!==65533){r[t[167][a]]=42752+a;e[42752+a]=t[167][a]}t[168]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüê����������ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split("");for(a=0;a!=t[168].length;++a)if(t[168][a].charCodeAt(0)!==65533){r[t[168][a]]=43008+a;e[43008+a]=t[168][a]}t[169]="��������������������������������������������������������������������������������������������������������������������������������������������������������������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split("");for(a=0;a!=t[169].length;++a)if(t[169][a].charCodeAt(0)!==65533){r[t[169][a]]=43264+a;e[43264+a]=t[169][a]}t[176]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split("");for(a=0;a!=t[176].length;++a)if(t[176][a].charCodeAt(0)!==65533){r[t[176][a]]=45056+a;e[45056+a]=t[176][a]}t[177]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split("");for(a=0;a!=t[177].length;++a)if(t[177][a].charCodeAt(0)!==65533){r[t[177][a]]=45312+a;e[45312+a]=t[177][a]}t[178]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split("");for(a=0;a!=t[178].length;++a)if(t[178][a].charCodeAt(0)!==65533){r[t[178][a]]=45568+a;e[45568+a]=t[178][a]}t[179]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split("");for(a=0;a!=t[179].length;++a)if(t[179][a].charCodeAt(0)!==65533){r[t[179][a]]=45824+a;e[45824+a]=t[179][a]}t[180]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split("");for(a=0;a!=t[180].length;++a)if(t[180][a].charCodeAt(0)!==65533){r[t[180][a]]=46080+a;e[46080+a]=t[180][a]}t[181]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split("");for(a=0;a!=t[181].length;++a)if(t[181][a].charCodeAt(0)!==65533){r[t[181][a]]=46336+a;e[46336+a]=t[181][a]}t[182]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split("");for(a=0;a!=t[182].length;++a)if(t[182][a].charCodeAt(0)!==65533){r[t[182][a]]=46592+a;e[46592+a]=t[182][a]}t[183]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split("");for(a=0;a!=t[183].length;++a)if(t[183][a].charCodeAt(0)!==65533){r[t[183][a]]=46848+a;e[46848+a]=t[183][a]}t[184]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split("");for(a=0;a!=t[184].length;++a)if(t[184][a].charCodeAt(0)!==65533){r[t[184][a]]=47104+a;e[47104+a]=t[184][a]}t[185]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split("");for(a=0;a!=t[185].length;++a)if(t[185][a].charCodeAt(0)!==65533){r[t[185][a]]=47360+a;e[47360+a]=t[185][a]}t[186]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split("");for(a=0;a!=t[186].length;++a)if(t[186][a].charCodeAt(0)!==65533){r[t[186][a]]=47616+a;e[47616+a]=t[186][a]}t[187]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split("");for(a=0;a!=t[187].length;++a)if(t[187][a].charCodeAt(0)!==65533){r[t[187][a]]=47872+a;e[47872+a]=t[187][a]}t[188]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split("");for(a=0;a!=t[188].length;++a)if(t[188][a].charCodeAt(0)!==65533){r[t[188][a]]=48128+a;e[48128+a]=t[188][a]}t[189]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split("");for(a=0;a!=t[189].length;++a)if(t[189][a].charCodeAt(0)!==65533){r[t[189][a]]=48384+a;e[48384+a]=t[189][a]}t[190]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split("");for(a=0;a!=t[190].length;++a)if(t[190][a].charCodeAt(0)!==65533){r[t[190][a]]=48640+a;e[48640+a]=t[190][a]}t[191]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split("");for(a=0;a!=t[191].length;++a)if(t[191][a].charCodeAt(0)!==65533){r[t[191][a]]=48896+a;e[48896+a]=t[191][a]}t[192]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split("");for(a=0;a!=t[192].length;++a)if(t[192][a].charCodeAt(0)!==65533){r[t[192][a]]=49152+a;e[49152+a]=t[192][a]}t[193]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split("");for(a=0;a!=t[193].length;++a)if(t[193][a].charCodeAt(0)!==65533){r[t[193][a]]=49408+a;e[49408+a]=t[193][a]}t[194]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split("");for(a=0;a!=t[194].length;++a)if(t[194][a].charCodeAt(0)!==65533){r[t[194][a]]=49664+a;e[49664+a]=t[194][a]}t[195]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split("");for(a=0;a!=t[195].length;++a)if(t[195][a].charCodeAt(0)!==65533){r[t[195][a]]=49920+a;e[49920+a]=t[195][a]}t[196]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split("");for(a=0;a!=t[196].length;++a)if(t[196][a].charCodeAt(0)!==65533){r[t[196][a]]=50176+a;e[50176+a]=t[196][a]}t[197]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split("");for(a=0;a!=t[197].length;++a)if(t[197][a].charCodeAt(0)!==65533){r[t[197][a]]=50432+a;e[50432+a]=t[197][a]}t[198]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split("");for(a=0;a!=t[198].length;++a)if(t[198][a].charCodeAt(0)!==65533){r[t[198][a]]=50688+a;e[50688+a]=t[198][a]}t[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split("");for(a=0;a!=t[199].length;++a)if(t[199][a].charCodeAt(0)!==65533){r[t[199][a]]=50944+a;e[50944+a]=t[199][a]}t[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split("");for(a=0;a!=t[200].length;++a)if(t[200][a].charCodeAt(0)!==65533){r[t[200][a]]=51200+a;e[51200+a]=t[200][a]}t[201]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split("");for(a=0;a!=t[201].length;++a)if(t[201][a].charCodeAt(0)!==65533){r[t[201][a]]=51456+a;e[51456+a]=t[201][a]}t[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split("");for(a=0;a!=t[202].length;++a)if(t[202][a].charCodeAt(0)!==65533){r[t[202][a]]=51712+a;e[51712+a]=t[202][a]}t[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split("");for(a=0;a!=t[203].length;++a)if(t[203][a].charCodeAt(0)!==65533){r[t[203][a]]=51968+a;e[51968+a]=t[203][a]}t[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split("");for(a=0;a!=t[204].length;++a)if(t[204][a].charCodeAt(0)!==65533){r[t[204][a]]=52224+a;e[52224+a]=t[204][a]}t[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split("");for(a=0;a!=t[205].length;++a)if(t[205][a].charCodeAt(0)!==65533){r[t[205][a]]=52480+a;e[52480+a]=t[205][a]}t[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split("");for(a=0;a!=t[206].length;++a)if(t[206][a].charCodeAt(0)!==65533){r[t[206][a]]=52736+a;e[52736+a]=t[206][a]}t[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split("");for(a=0;a!=t[207].length;++a)if(t[207][a].charCodeAt(0)!==65533){r[t[207][a]]=52992+a;e[52992+a]=t[207][a]}t[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split("");for(a=0;a!=t[208].length;++a)if(t[208][a].charCodeAt(0)!==65533){r[t[208][a]]=53248+a;e[53248+a]=t[208][a]}t[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split("");for(a=0;a!=t[209].length;++a)if(t[209][a].charCodeAt(0)!==65533){r[t[209][a]]=53504+a;e[53504+a]=t[209][a]}t[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split("");for(a=0;a!=t[210].length;++a)if(t[210][a].charCodeAt(0)!==65533){r[t[210][a]]=53760+a;e[53760+a]=t[210][a]}t[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split("");for(a=0;a!=t[211].length;++a)if(t[211][a].charCodeAt(0)!==65533){r[t[211][a]]=54016+a;e[54016+a]=t[211][a]}t[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split("");for(a=0;a!=t[212].length;++a)if(t[212][a].charCodeAt(0)!==65533){r[t[212][a]]=54272+a;e[54272+a]=t[212][a]}t[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split("");for(a=0;a!=t[213].length;++a)if(t[213][a].charCodeAt(0)!==65533){r[t[213][a]]=54528+a;e[54528+a]=t[213][a]}t[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split("");for(a=0;a!=t[214].length;++a)if(t[214][a].charCodeAt(0)!==65533){r[t[214][a]]=54784+a;e[54784+a]=t[214][a]}t[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split("");for(a=0;a!=t[215].length;++a)if(t[215][a].charCodeAt(0)!==65533){r[t[215][a]]=55040+a;e[55040+a]=t[215][a]}t[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split("");for(a=0;a!=t[216].length;++a)if(t[216][a].charCodeAt(0)!==65533){r[t[216][a]]=55296+a;e[55296+a]=t[216][a]}t[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split("");for(a=0;a!=t[217].length;++a)if(t[217][a].charCodeAt(0)!==65533){r[t[217][a]]=55552+a;e[55552+a]=t[217][a]}t[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split("");for(a=0;a!=t[218].length;++a)if(t[218][a].charCodeAt(0)!==65533){r[t[218][a]]=55808+a;e[55808+a]=t[218][a]}t[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split("");for(a=0;a!=t[219].length;++a)if(t[219][a].charCodeAt(0)!==65533){r[t[219][a]]=56064+a;e[56064+a]=t[219][a]}t[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split("");for(a=0;a!=t[220].length;++a)if(t[220][a].charCodeAt(0)!==65533){r[t[220][a]]=56320+a;e[56320+a]=t[220][a]}t[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split("");for(a=0;a!=t[221].length;++a)if(t[221][a].charCodeAt(0)!==65533){r[t[221][a]]=56576+a;e[56576+a]=t[221][a]}t[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split("");for(a=0;a!=t[222].length;++a)if(t[222][a].charCodeAt(0)!==65533){r[t[222][a]]=56832+a;e[56832+a]=t[222][a]}t[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split("");for(a=0;a!=t[223].length;++a)if(t[223][a].charCodeAt(0)!==65533){r[t[223][a]]=57088+a;e[57088+a]=t[223][a]}t[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split("");for(a=0;a!=t[224].length;++a)if(t[224][a].charCodeAt(0)!==65533){r[t[224][a]]=57344+a;e[57344+a]=t[224][a]}t[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split("");for(a=0;a!=t[225].length;++a)if(t[225][a].charCodeAt(0)!==65533){r[t[225][a]]=57600+a;e[57600+a]=t[225][a]}t[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split("");for(a=0;a!=t[226].length;++a)if(t[226][a].charCodeAt(0)!==65533){r[t[226][a]]=57856+a;e[57856+a]=t[226][a]}t[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split("");for(a=0;a!=t[227].length;++a)if(t[227][a].charCodeAt(0)!==65533){r[t[227][a]]=58112+a;e[58112+a]=t[227][a]}t[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split("");for(a=0;a!=t[228].length;++a)if(t[228][a].charCodeAt(0)!==65533){r[t[228][a]]=58368+a;e[58368+a]=t[228][a]}t[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split("");for(a=0;a!=t[229].length;++a)if(t[229][a].charCodeAt(0)!==65533){r[t[229][a]]=58624+a;e[58624+a]=t[229][a]}t[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split("");for(a=0;a!=t[230].length;++a)if(t[230][a].charCodeAt(0)!==65533){r[t[230][a]]=58880+a;e[58880+a]=t[230][a]}t[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split("");for(a=0;a!=t[231].length;++a)if(t[231][a].charCodeAt(0)!==65533){r[t[231][a]]=59136+a;e[59136+a]=t[231][a]}t[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split("");for(a=0;a!=t[232].length;++a)if(t[232][a].charCodeAt(0)!==65533){r[t[232][a]]=59392+a;e[59392+a]=t[232][a]}t[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split("");for(a=0;a!=t[233].length;++a)if(t[233][a].charCodeAt(0)!==65533){r[t[233][a]]=59648+a;e[59648+a]=t[233][a]}t[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split("");for(a=0;a!=t[234].length;++a)if(t[234][a].charCodeAt(0)!==65533){r[t[234][a]]=59904+a;e[59904+a]=t[234][a]}t[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split("");for(a=0;a!=t[235].length;++a)if(t[235][a].charCodeAt(0)!==65533){r[t[235][a]]=60160+a;e[60160+a]=t[235][a]}t[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split("");for(a=0;a!=t[236].length;++a)if(t[236][a].charCodeAt(0)!==65533){r[t[236][a]]=60416+a;e[60416+a]=t[236][a]}t[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split("");for(a=0;a!=t[237].length;++a)if(t[237][a].charCodeAt(0)!==65533){r[t[237][a]]=60672+a;e[60672+a]=t[237][a]}t[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split("");for(a=0;a!=t[238].length;++a)if(t[238][a].charCodeAt(0)!==65533){r[t[238][a]]=60928+a;e[60928+a]=t[238][a]}t[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split("");for(a=0;a!=t[239].length;++a)if(t[239][a].charCodeAt(0)!==65533){r[t[239][a]]=61184+a;e[61184+a]=t[239][a]}t[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split("");for(a=0;a!=t[240].length;++a)if(t[240][a].charCodeAt(0)!==65533){r[t[240][a]]=61440+a;e[61440+a]=t[240][a]}t[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split("");for(a=0;a!=t[241].length;++a)if(t[241][a].charCodeAt(0)!==65533){r[t[241][a]]=61696+a;e[61696+a]=t[241][a]}t[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split("");for(a=0;a!=t[242].length;++a)if(t[242][a].charCodeAt(0)!==65533){r[t[242][a]]=61952+a;e[61952+a]=t[242][a]}t[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split("");for(a=0;a!=t[243].length;++a)if(t[243][a].charCodeAt(0)!==65533){r[t[243][a]]=62208+a;e[62208+a]=t[243][a]}t[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split("");for(a=0;a!=t[244].length;++a)if(t[244][a].charCodeAt(0)!==65533){r[t[244][a]]=62464+a;e[62464+a]=t[244][a]}t[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split("");for(a=0;a!=t[245].length;++a)if(t[245][a].charCodeAt(0)!==65533){r[t[245][a]]=62720+a;e[62720+a]=t[245][a]}t[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split("");for(a=0;a!=t[246].length;++a)if(t[246][a].charCodeAt(0)!==65533){r[t[246][a]]=62976+a;e[62976+a]=t[246][a]}t[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split("");for(a=0;a!=t[247].length;++a)if(t[247][a].charCodeAt(0)!==65533){r[t[247][a]]=63232+a;e[63232+a]=t[247][a]}return{enc:r,dec:e}}();cptable[10029]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[10079]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[10081]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();cptable[28591]=function(){var e="\0\b\t\n\x0B\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",r=[],t={};for(var a=0;a!=e.length;++a){if(e.charCodeAt(a)!==65533)t[e.charAt(a)]=a;r[a]=e.charAt(a)}return{enc:t,dec:r}}();if(typeof module!=="undefined"&&module.exports&&typeof DO_NOT_EXPORT_CODEPAGE==="undefined")module.exports=cptable;(function(e,r){"use strict";if(typeof cptable==="undefined"){if(typeof require!=="undefined"){var t=cptable;if(typeof module!=="undefined"&&module.exports&&typeof DO_NOT_EXPORT_CODEPAGE==="undefined")module.exports=r(t);else e.cptable=r(t)}else throw new Error("cptable not found")}else cptable=r(cptable)})(this,function(e){"use strict";var r={1200:"utf16le",1201:"utf16be",12000:"utf32le",12001:"utf32be",16969:"utf64le",20127:"ascii",65000:"utf7",65001:"utf8"};var t=[874,1250,1251,1252,1253,1254,1255,1256,1e4];var a=[932,936,949,950];var n=[65001];var i={};var s={};var f={};var l={};var o=function D(e){return String.fromCharCode(e)};var c=function P(e){return e.charCodeAt(0)};var h=typeof Buffer!=="undefined";var u=function(){};if(h){var d=!Buffer.from;if(!d)try{Buffer.from("foo","utf8")}catch(v){d=true}u=d?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer);if(!Buffer.allocUnsafe)Buffer.allocUnsafe=function(e){return new Buffer(e)};var p=1024,m=Buffer.allocUnsafe(p);var g=function L(e){var r=Buffer.allocUnsafe(65536);for(var t=0;t<65536;++t)r[t]=0;var a=Object.keys(e),n=a.length;for(var i=0,s=a[i];i>10&1023)];n[s++]=t[56320+(l&1023)]}}}n=n.slice(0,s)}else{n=Buffer.allocUnsafe(a);for(i=0;i>8}return function f(e){var r=e.length,t=0,n=0;if(2*r>p){p=2*r;m=Buffer.allocUnsafe(p)}if(Buffer.isBuffer(e)){for(t=0;t>8}return function o(e,r){var t=e.length,n=Buffer.allocUnsafe(2*t),i=0,s=0,f=0,l=0,o=0;if(typeof e==="string"){for(i=l=0;i0)n[l++]=a[s]}n=n.slice(0,l)}else if(Buffer.isBuffer(e)){for(i=l=0;i0)n[l++]=a[s]}else{f=s-65536;s=2*(55296+(f>>10&1023));n[l++]=a[s+1]||a[s];if(a[s+1]>0)n[l++]=a[s];s=2*(56320+(f&1023));n[l++]=a[s+1]||a[s];if(a[s+1]>0)n[l++]=a[s]}}n=n.slice(0,l)}else{for(i=l=0;i0)n[l++]=a[s]}}if(!r||r==="buf")return n;if(r!=="arr")return n.toString("binary");return[].slice.call(n)}};var A=function W(r){var t=e[r].dec;var a=Buffer.allocUnsafe(131072),n=0,i,s=0,f=0,l=0;for(l=0;l<65536;++l){a[2*l]=255;a[2*l+1]=253}for(n=0;n>8}return function o(e){var r=e.length,t=Buffer.allocUnsafe(2*r),n=0,i=0,s=0;if(Buffer.isBuffer(e)){for(n=0;np){p=4*r;m=Buffer.allocUnsafe(p)}var n=0;if(r>=3&&e[0]==239)if(e[1]==187&&e[2]==191)n=3;for(var i=1,s=0,f=0;n>8}else{t-=65536;a=55296+(t>>10&1023);t=56320+(t&1023);m[s++]=a&255;m[s++]=a>>>8;m[s++]=t&255;m[s++]=t>>>8&255}}return m.slice(0,s).toString("ucs2")};s[65001]=function H(e,r){if(h&&Buffer.isBuffer(e)){if(!r||r==="buf")return e;if(r!=="arr")return e.toString("binary");return[].slice.call(e)}var t=e.length,a=0,n=0,i=0;var s=typeof e==="string";if(4*t>p){p=4*t;m=Buffer.allocUnsafe(p)}for(var f=0;f>6);m[i++]=128+(a&63)}else if(a>=55296&&a<=57343){a-=55296;++f;n=(s?e.charCodeAt(f):e[f].charCodeAt(0))-56320+(a<<10);m[i++]=240+(n>>>18&7);m[i++]=144+(n>>>12&63);m[i++]=128+(n>>>6&63);m[i++]=128+(n&63)}else{m[i++]=224+(a>>12);m[i++]=128+(a>>6&63);m[i++]=128+(a&63)}}if(!r||r==="buf")return m.slice(0,i);if(r!=="arr")return m.slice(0,i).toString("binary");return[].slice.call(m,0,i)}}var T=function V(){if(h){if(f[t[0]])return;var r=0,o=0;for(r=0;r255){s[d]=f>>8;s[++d]=f&255}else s[d]=f&255}else if(g=r[t])switch(g){case"utf8":if(h&&b){s=u(a,g);d=s.length;break}for(c=0;c>6);s[++d]=128+(f&63)}else if(f>=55296&&f<=57343){f-=55296;v=(b?a.charCodeAt(++c):a[++c].charCodeAt(0))-56320+(f<<10);s[d]=240+(v>>>18&7);s[++d]=144+(v>>>12&63);s[++d]=128+(v>>>6&63);s[++d]=128+(v&63)}else{s[d]=224+(f>>12);s[++d]=128+(f>>6&63);s[++d]=128+(f&63)}}break;case"ascii":if(h&&typeof a==="string"){s=u(a,g);d=s.length;break}for(c=0;c>8}break;case"utf16be":for(c=0;c>8;s[d++]=f&255}break;case"utf32le":for(c=0;c=55296&&f<=57343)f=65536+(f-55296<<10)+(a[++c].charCodeAt(0)-56320);s[d++]=f&255;f>>=8;s[d++]=f&255;f>>=8;s[d++]=f&255;f>>=8;s[d++]=f&255}break;case"utf32be":for(c=0;c=55296&&f<=57343)f=65536+(f-55296<<10)+(a[++c].charCodeAt(0)-56320);s[d+3]=f&255;f>>=8;s[d+2]=f&255;f>>=8;s[d+1]=f&255;f>>=8;s[d]=f&255;d+=4}break;case"utf7":for(c=0;c-1){s[d++]=w.charCodeAt(0);continue}var k=G(1201,w);s[d++]=43;s[d++]=S.charCodeAt(k[0]>>2);s[d++]=S.charCodeAt(((k[0]&3)<<4)+((k[1]||0)>>4));s[d++]=S.charCodeAt(((k[1]&15)<<2)+((k[2]||0)>>6));s[d++]=45}break;default:throw new Error("Unsupported magic: "+t+" "+r[t]);}else throw new Error("Unrecognized CP: "+t);s=s.slice(0,d);if(!h)return n=="str"?s.map(o).join(""):s;if(!n||n==="buf")return s;if(n!=="arr")return s.toString("binary");return[].slice.call(s)};var N=function j(t,a){var n;if(n=f[t])return n(a);if(typeof a==="string")return j(t,a.split("").map(c));var i=a.length,s=new Array(i),l="",o=0,u=0,d=1,v=0,p=0;var m=e[t],g,b="";if(m&&(g=m.dec)){for(u=0;u=3&&a[0]==239)if(a[1]==187&&a[2]==191)u=3;for(;u>10&1023);o=56320+(o&1023);s[v++]=String.fromCharCode(p);s[v++]=String.fromCharCode(o)}}break;case"ascii":if(h&&Buffer.isBuffer(a))return a.toString(b);for(u=0;u=2&&a[0]==255)if(a[1]==254)u=2;if(h&&Buffer.isBuffer(a))return a.toString(b);d=2;for(;u+1=2&&a[0]==254)if(a[1]==255)u=2;d=2;for(;u+1=4&&a[0]==255)if(a[1]==254&&a[2]===0&&a[3]===0)u=4;d=4;for(;u65535){o-=65536;s[v++]=String.fromCharCode(55296+(o>>10&1023));s[v++]=String.fromCharCode(56320+(o&1023))}else s[v++]=String.fromCharCode(o)}break;case"utf32be":if(i>=4&&a[3]==255)if(a[2]==254&&a[1]===0&&a[0]===0)u=4;d=4;for(;u65535){o-=65536;s[v++]=String.fromCharCode(55296+(o>>10&1023));s[v++]=String.fromCharCode(56320+(o&1023))}else s[v++]=String.fromCharCode(o)}break;case"utf7":if(i>=4&&a[0]==43&&a[1]==47&&a[2]==118){if(i>=5&&a[3]==56&&a[4]==45)u=5;else if(a[3]==56||a[3]==57||a[3]==43||a[3]==47)u=4}for(;u>4;k.push(T);x=S.indexOf(String.fromCharCode(a[u+I++]));if(x===-1)break;y=(_&15)<<4|x>>2;k.push(y);O=S.indexOf(String.fromCharCode(a[u+I++]));if(O===-1)break;E=(x&3)<<6|O;if(O<64)k.push(E)}A=j(1201,k);for(I=0;I>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function u(e){var r=[];for(var t=0;t>1;++t)r[t]=String.fromCharCode(e[2*t]+(e[2*t+1]<<8));return r.join("")}function d(e){var r=[];for(var t=0;t>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var v=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return h(e.slice(2));if(r==254&&t==255)return d(e.slice(2));if(r==65279)return e.slice(1);return e};var p=function fA(e){return String.fromCharCode(e)};var m=function lA(e){return String.fromCharCode(e)};function g(e){a=e;l=function(e){r=e;s(e)};v=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return a.utils.decode(1200,c(e.slice(2)))}return e};p=function n(e){if(r===1200)return String.fromCharCode(e);return a.utils.decode(r,[e&255,e>>8])[0]};m=function i(e){return a.utils.decode(t,[e])[0]};ma()}var b=null;var w=true;var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function A(e){var r="";var t=0,a=0,n=0,i=0,s=0,f=0,l=0;for(var o=0;o>2;a=e.charCodeAt(o++);s=(t&3)<<4|a>>4;n=e.charCodeAt(o++);f=(a&15)<<2|n>>6;l=n&63;if(isNaN(a)){f=l=64}else if(isNaN(n)){l=64}r+=k.charAt(i)+k.charAt(s)+k.charAt(f)+k.charAt(l)}return r}function T(e){var r="";var t=0,a=0,n=0,i=0,s=0,f=0,l=0;for(var o=0;o255)t=95;i=t>>2;a=e.charCodeAt(o++);if(a>255)a=95;s=(t&3)<<4|a>>4;n=e.charCodeAt(o++);if(n>255)n=95;f=(a&15)<<2|n>>6;l=n&63;if(isNaN(a)){f=l=64}else if(isNaN(n)){l=64}r+=k.charAt(i)+k.charAt(s)+k.charAt(f)+k.charAt(l)}return r}function y(e){var r="";var t=0,a=0,n=0,i=0,s=0,f=0,l=0;for(var o=0;o>2;a=e[o++];s=(t&3)<<4|a>>4;n=e[o++];f=(a&15)<<2|n>>6;l=n&63;if(isNaN(a)){f=l=64}else if(isNaN(n)){l=64}r+=k.charAt(i)+k.charAt(s)+k.charAt(f)+k.charAt(l)}return r}function E(e){var r="";var t=0,a=0,n=0,i=0,s=0,f=0,l=0;if(e.slice(0,5)=="data:"){var o=e.slice(0,1024).indexOf(";base64,");if(o>-1)e=e.slice(o+8)}e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o>4;r+=String.fromCharCode(t);f=k.indexOf(e.charAt(o++));a=(s&15)<<4|f>>2;if(f!==64){r+=String.fromCharCode(a)}l=k.indexOf(e.charAt(o++));n=(f&3)<<6|l;if(l!==64){r+=String.fromCharCode(n)}}return r}var C=function(){return typeof Buffer!=="undefined"&&typeof undefined!=="undefined"&&typeof{}!=="undefined"&&!!{}.node}();var _=function(){if(typeof Buffer!=="undefined"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(r){e=true}return e?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();var S=function(){if(typeof Buffer==="undefined")return false;var e=_([65,0]);if(!e)return false;var r=e.toString("utf16le");return r.length==1}();function x(e){if(C)return Buffer.alloc?Buffer.alloc(e):new Buffer(e);return typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}function O(e){if(C)return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e);return typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}var I=function oA(e){if(C)return _(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})};function R(e){if(typeof ArrayBuffer==="undefined")return I(e);var r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(var a=0;a!=e.length;++a)t[a]=e.charCodeAt(a)&255;return r}function N(e){if(Array.isArray(e))return e.map(function(e){return String.fromCharCode(e)}).join("");var r=[];for(var t=0;t>6&31;n[t++]=128|s&63}else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++i)&1023;n[t++]=240|s>>8&7;n[t++]=128|s>>2&63;n[t++]=128|f>>6&15|(s&3)<<4;n[t++]=128|f&63}else{n[t++]=224|s>>12&15;n[t++]=128|s>>6&63;n[t++]=128|s&63}if(t>a){r.push(n.slice(0,t));t=0;n=x(65535);a=65530}}r.push(n.slice(0,t));return P(r)}var M=/\u0000/g,U=/[\u0001-\u0006]/g;function B(e){var r="",t=e.length-1;while(t>=0)r+=e.charAt(t--);return r}function W(e,r){var t=""+e;return t.length>=r?t:Tr("0",r-t.length)+t}function z(e,r){var t=""+e;return t.length>=r?t:Tr(" ",r-t.length)+t}function H(e,r){var t=""+e;return t.length>=r?t:t+Tr(" ",r-t.length)}function V(e,r){var t=""+Math.round(e);return t.length>=r?t:Tr("0",r-t.length)+t}function X(e,r){var t=""+e;return t.length>=r?t:Tr("0",r-t.length)+t}var G=Math.pow(2,32);function j(e,r){if(e>G||e<-G)return V(e,r);var t=Math.round(e);return X(t,r)}function K(e,r){r=r||0;return e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var Y=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var Z=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function J(e){if(!e)e={};e[0]="General";e[1]="0";e[2]="0.00";e[3]="#,##0";e[4]="#,##0.00";e[9]="0%";e[10]="0.00%";e[11]="0.00E+00";e[12]="# ?/?";e[13]="# ??/??";e[14]="m/d/yy";e[15]="d-mmm-yy";e[16]="d-mmm";e[17]="mmm-yy";e[18]="h:mm AM/PM";e[19]="h:mm:ss AM/PM";e[20]="h:mm";e[21]="h:mm:ss";e[22]="m/d/yy h:mm";e[37]="#,##0 ;(#,##0)";e[38]="#,##0 ;[Red](#,##0)";e[39]="#,##0.00;(#,##0.00)";e[40]="#,##0.00;[Red](#,##0.00)";e[45]="mm:ss";e[46]="[h]:mm:ss";e[47]="mmss.0";e[48]="##0.0E+0";e[49]="@";e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "';return e}var q={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'};var Q={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0};var ee={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function re(e,r,t){var a=e<0?-1:1;var n=e*a;var i=0,s=1,f=0;var l=1,o=0,c=0;var h=Math.floor(n);while(or){if(o>r){c=l;f=i}else{c=o;f=s}}if(!t)return[0,a*f,c];var u=Math.floor(a*f/c);return[u,a*f-u*c,c]}function te(e){var r=e.toPrecision(16);if(r.indexOf("e")>-1){var t=r.slice(0,r.indexOf("e"));t=t.indexOf(".")>-1?t.slice(0,t.slice(0,2)=="0."?17:16):t.slice(0,15)+Tr("0",t.length-15);return t+r.slice(r.indexOf("e"))}var a=r.indexOf(".")>-1?r.slice(0,r.slice(0,2)=="0."?17:16):r.slice(0,15)+Tr("0",r.length-15);return Number(a)}function ae(e,r,t){if(e>2958465||e<0)return null;e=te(e);var a=e|0,n=Math.floor(86400*(e-a)),i=0;var s=[];var f={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6)f.u=0;if(r&&r.date1904)a+=1462;if(f.u>.9999){f.u=0;if(++n==86400){f.T=n=0;++a;++f.D}}if(a===60){s=t?[1317,10,29]:[1900,2,29];i=3}else if(a===0){s=t?[1317,8,29]:[1900,1,0];i=6}else{if(a>60)--a;var l=new Date(1900,0,1);l.setDate(l.getDate()+a-1);s=[l.getFullYear(),l.getMonth()+1,l.getDate()];i=l.getDay();if(a<60)i=(i+6)%7;if(t)i=ce(l,s)}f.y=s[0];f.m=s[1];f.d=s[2];f.S=n%60;n=Math.floor(n/60);f.M=n%60;n=Math.floor(n/60);f.H=n;f.q=i;return f}function ne(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function ie(e){if(e.indexOf("E")==-1)return e;return e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function se(e){var r=e<0?12:11;var t=ne(e.toFixed(12));if(t.length<=r)return t;t=e.toPrecision(10);if(t.length<=r)return t;return e.toExponential(5)}function fe(e){var r=ne(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function le(e){if(!isFinite(e))return isNaN(e)?"#NUM!":"#DIV/0!";var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;if(r>=-4&&r<=-1)t=e.toPrecision(10+r);else if(Math.abs(r)<=9)t=se(e);else if(r===10)t=e.toFixed(10).substr(0,12);else t=fe(e);return ne(ie(t.toUpperCase()))}function oe(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):le(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return ze(14,dr(e,r&&r.date1904),r);}throw new Error("unsupported value in General format: "+e)}function ce(e,r){r[0]-=581;var t=e.getDay();if(e<60)t=(t+6)%7;return t}function he(e,r,t,a){var n="",i=0,s=0,f=t.y,l,o=0;switch(e){case 98:f=t.y+543;case 121:switch(r.length){case 1:;case 2:l=f%100;o=2;break;default:l=f%1e4;o=4;break;}break;case 109:switch(r.length){case 1:;case 2:l=t.m;o=r.length;break;case 3:return Z[t.m-1][1];case 5:return Z[t.m-1][0];default:return Z[t.m-1][2];}break;case 100:switch(r.length){case 1:;case 2:l=t.d;o=r.length;break;case 3:return Y[t.q][0];default:return Y[t.q][1];}break;case 104:switch(r.length){case 1:;case 2:l=1+(t.H+11)%12;o=r.length;break;default:throw"bad hour format: "+r;}break;case 72:switch(r.length){case 1:;case 2:l=t.H;o=r.length;break;default:throw"bad hour format: "+r;}break;case 77:switch(r.length){case 1:;case 2:l=t.M;o=r.length;break;default:throw"bad minute format: "+r;}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;if(t.u===0&&(r=="s"||r=="ss"))return W(t.S,r.length);if(a>=2)s=a===3?1e3:100;else s=a===1?10:1;i=Math.round(s*(t.S+t.u));if(i>=60*s)i=0;if(r==="s")return i===0?"0":""+i/s;n=W(i,2+a);if(r==="ss")return n.substr(0,2);return"."+n.substr(2,r.length-1);case 90:switch(r){case"[h]":;case"[hh]":l=t.D*24+t.H;break;case"[m]":;case"[mm]":l=(t.D*24+t.H)*60+t.M;break;case"[s]":;case"[ss]":l=((t.D*24+t.H)*60+t.M)*60+(a==0?Math.round(t.S+t.u):t.S);break;default:throw"bad abstime format: "+r;}o=r.length===3?1:2;break;case 101:l=f;o=1;break;}var c=o>0?W(l,o):"";return c}function ue(e){var r=3;if(e.length<=r)return e;var t=e.length%r,a=e.substr(0,t);for(;t!=e.length;t+=r)a+=(a.length>0?",":"")+e.substr(t,r);return a}var de=/%/g;function ve(e,r,t){var a=r.replace(de,""),n=r.length-a.length;return Fe(e,a,t*Math.pow(10,2*n))+Tr("%",n)}function pe(e,r,t){var a=r.length-1;while(r.charCodeAt(a-1)===44)--a;return Fe(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function me(e,r){var t;var a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";else if(r<0)return"-"+me(e,-r);var n=e.indexOf(".");if(n===-1)n=e.indexOf("E");var i=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0)i+=n;t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n);if(t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);if(t.indexOf(".")===-1)t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+i);else t+="E+"+(s-i);while(t.substr(0,2)==="0."){t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n);t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.")}t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,r,t,a){return r+t+a.substr(0,(n+i)%n)+"."+a.substr(i)+"E"})}else t=r.toExponential(a);if(e.match(/E\+00$/)&&t.match(/e[+-]\d$/))t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1);if(e.match(/E\-/)&&t.match(/e\+/))t=t.replace(/e\+/,"e");return t.replace("e","E")}var ge=/# (\?+)( ?)\/( ?)(\d+)/;function be(e,r,t){var a=parseInt(e[4],10),n=Math.round(r*a),i=Math.floor(n/a);var s=n-i*a,f=a;return t+(i===0?"":""+i)+" "+(s===0?Tr(" ",e[1].length+1+e[4].length):z(s,e[1].length)+e[2]+"/"+e[3]+W(f,e[4].length))}function we(e,r,t){return t+(r===0?"":""+r)+Tr(" ",e[1].length+2+e[4].length)}var ke=/^#*0*\.([0#]+)/;var Ae=/\)[^)]*[0#]/;var Te=/\(###\) ###\\?-####/;function ye(e){var r="",t;for(var a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t);}return r}function Ee(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function Ce(e,r){var t=e-Math.floor(e),a=Math.pow(10,r);if(r<(""+Math.round(t*a)).length)return 0;return Math.round(t*a)}function _e(e,r){if(r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length){return 1}return 0}function Se(e){if(e<2147483647&&e>-2147483648)return""+(e>=0?e|0:e-1|0);return""+Math.floor(e)}function xe(e,r,t){if(e.charCodeAt(0)===40&&!r.match(Ae)){var a=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");if(t>=0)return xe("n",a,t);return"("+xe("n",a,-t)+")"}if(r.charCodeAt(r.length-1)===44)return pe(e,r,t);if(r.indexOf("%")!==-1)return ve(e,r,t);if(r.indexOf("E")!==-1)return me(r,t);if(r.charCodeAt(0)===36)return"$"+xe(e,r.substr(r.charAt(1)==" "?2:1),t);var n;var i,s,f,l=Math.abs(t),o=t<0?"-":"";if(r.match(/^00+$/))return o+j(l,r.length);if(r.match(/^[#?]+$/)){n=j(t,0);if(n==="0")n="";return n.length>r.length?n:ye(r.substr(0,r.length-n.length))+n}if(i=r.match(ge))return be(i,l,o);if(r.match(/^#+0+$/))return o+j(l,r.length-r.indexOf("0"));if(i=r.match(ke)){n=Ee(t,i[1].length).replace(/^([^\.]+)$/,"$1."+ye(i[1])).replace(/\.$/,"."+ye(i[1])).replace(/\.(\d*)$/,function(e,r){return"."+r+Tr("0",ye(i[1]).length-r.length)});return r.indexOf("0.")!==-1?n:n.replace(/^0\./,".")}r=r.replace(/^#+([0.])/,"$1");if(i=r.match(/^(0*)\.(#*)$/)){return o+Ee(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".")}if(i=r.match(/^#{1,3},##0(\.?)$/))return o+ue(j(l,0));if(i=r.match(/^#,##0\.([#0]*0)$/)){return t<0?"-"+xe(e,r,-t):ue(""+(Math.floor(t)+_e(t,i[1].length)))+"."+W(Ce(t,i[1].length),i[1].length)}if(i=r.match(/^#,#*,#0/))return xe(e,r.replace(/^#,#*,/,""),t);if(i=r.match(/^([0#]+)(\\?-([0#]+))+$/)){n=B(xe(e,r.replace(/[\\-]/g,""),t));s=0;return B(B(r.replace(/\\/g,"")).replace(/[0#]/g,function(e){return s=0)return Ne("n",a,t);return"("+Ne("n",a,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Oe(e,r,t);if(r.indexOf("%")!==-1)return Ie(e,r,t);if(r.indexOf("E")!==-1)return Re(r,t);if(r.charCodeAt(0)===36)return"$"+Ne(e,r.substr(r.charAt(1)==" "?2:1),t);var n;var i,s,f,l=Math.abs(t),o=t<0?"-":"";if(r.match(/^00+$/))return o+W(l,r.length);if(r.match(/^[#?]+$/)){n=""+t;if(t===0)n="";return n.length>r.length?n:ye(r.substr(0,r.length-n.length))+n}if(i=r.match(ge))return we(i,l,o);if(r.match(/^#+0+$/))return o+W(l,r.length-r.indexOf("0"));if(i=r.match(ke)){n=(""+t).replace(/^([^\.]+)$/,"$1."+ye(i[1])).replace(/\.$/,"."+ye(i[1]));n=n.replace(/\.(\d*)$/,function(e,r){return"."+r+Tr("0",ye(i[1]).length-r.length)});return r.indexOf("0.")!==-1?n:n.replace(/^0\./,".")}r=r.replace(/^#+([0.])/,"$1");if(i=r.match(/^(0*)\.(#*)$/)){return o+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".")}if(i=r.match(/^#{1,3},##0(\.?)$/))return o+ue(""+l);if(i=r.match(/^#,##0\.([#0]*0)$/)){return t<0?"-"+Ne(e,r,-t):ue(""+t)+"."+Tr("0",i[1].length)}if(i=r.match(/^#,#*,#0/))return Ne(e,r.replace(/^#,#*,/,""),t);if(i=r.match(/^([0#]+)(\\?-([0#]+))+$/)){n=B(Ne(e,r.replace(/[\\-]/g,""),t));s=0;return B(B(r.replace(/\\/g,"")).replace(/[0#]/g,function(e){return s-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r-1){}break;case" ":++r;break;default:++r;break;}}return false}function Me(e,r,t,a){var n=[],i="",s=0,f="",l="t",o,c,h;var u="H";while(s=12?e.charAt(s+2):f;p.t="T";u="h";s+=3}else if(e.substr(s,5).toUpperCase()==="AM/PM"){if(o!=null)p.v=o.H>=12?"PM":"AM";p.t="T";s+=5;u="h"}else if(e.substr(s,5).toUpperCase()==="上午/下午"){if(o!=null)p.v=o.H>=12?"下午":"上午";p.t="T";s+=5;u="h"}else{p.t="t";++s}if(o==null&&p.t==="T")return"";n[n.length]=p;l=f;break;case"[":i=f;while(e.charAt(s++)!=="]"&&s-1){i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$";if(!Le(e))n[n.length]={t:"t",v:i}}break;case".":if(o!=null){i=f;while(++s-1)i+=f;n[n.length]={t:"n",v:i};break;case"?":i=f;while(e.charAt(++s)===f)i+=f;n[n.length]={t:f,v:i};l=f;break;case"*":++s;if(e.charAt(s)==" "||e.charAt(s)=="*")++s;break;case"(":;case")":n[n.length]={t:a===1?"t":f,v:f};++s;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":i=f;while(s-1)i+=e.charAt(s);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:f,v:f};++s;break;case"$":n[n.length]={t:"t",v:"$"};++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);n[n.length]={t:"t",v:f};++s;break;}}var m=0,g=0,b;for(s=n.length-1,l="t";s>=0;--s){switch(n[s].t){case"h":;case"H":n[s].t=u;l="h";if(m<1)m=1;break;case"s":if(b=n[s].v.match(/\.0+$/)){g=Math.max(g,b[0].length-1);m=4}if(m<3)m=3;case"d":;case"y":;case"e":l=n[s].t;break;case"M":l=n[s].t;if(m<2)m=2;break;case"m":if(l==="s"){n[s].t="M";if(m<2)m=2}break;case"X":break;case"Z":if(m<1&&n[s].v.match(/[Hh]/))m=1;if(m<2&&n[s].v.match(/[Mm]/))m=2;if(m<3&&n[s].v.match(/[Ss]/))m=3;}}var w;switch(m){case 0:break;case 1:;case 2:;case 3:if(o.u>=.5){o.u=0;++o.S}if(o.S>=60){o.S=0;++o.M}if(o.M>=60){o.M=0;++o.H}if(o.H>=24){o.H=0;++o.D;w=ae(o.D);w.u=o.u;w.S=o.S;w.M=o.M;w.H=o.H;o=w}break;case 4:switch(g){case 1:o.u=Math.round(o.u*10)/10;break;case 2:o.u=Math.round(o.u*100)/100;break;case 3:o.u=Math.round(o.u*1e3)/1e3;break;}if(o.u>=1){o.u=0;++o.S}if(o.S>=60){o.S=0;++o.M}if(o.M>=60){o.M=0;++o.H}if(o.H>=24){o.H=0;++o.D;w=ae(o.D);w.u=o.u;w.S=o.S;w.M=o.M;w.H=o.H;o=w}break;}var k="",A;for(s=0;s0){if(k.charCodeAt(0)==40){y=r<0&&k.charCodeAt(0)===45?-r:r;E=Fe("n",k,y)}else{y=r<0&&a>1?-r:r;E=Fe("n",k,y);if(y<0&&n[0]&&n[0].t=="t"){E=E.substr(1);n[0].v="-"+n[0].v}}A=E.length-1;var C=n.length;for(s=0;s-1){C=s;break}var _=n.length;if(C===n.length&&E.indexOf("E")===-1){for(s=n.length-1;s>=0;--s){if(n[s]==null||"n?".indexOf(n[s].t)===-1)continue;if(A>=n[s].v.length-1){A-=n[s].v.length;n[s].v=E.substr(A+1,n[s].v.length)}else if(A<0)n[s].v="";else{n[s].v=E.substr(0,A+1);A=-1}n[s].t="t";_=s}if(A>=0&&_=0;--s){if(n[s]==null||"n?".indexOf(n[s].t)===-1)continue;c=n[s].v.indexOf(".")>-1&&s===C?n[s].v.indexOf(".")-1:n[s].v.length-1;T=n[s].v.substr(c+1);for(;c>=0;--c){if(A>=0&&(n[s].v.charAt(c)==="0"||n[s].v.charAt(c)==="#"))T=E.charAt(A--)+T}n[s].v=T;n[s].t="t";_=s}if(A>=0&&_-1&&s===C?n[s].v.indexOf(".")+1:0;T=n[s].v.substr(0,c);for(;c-1){y=a>1&&r<0&&s>0&&n[s-1].v==="-"?-r:r;n[s].v=Fe(n[s].t,n[s].v,y);n[s].t="t"}var S="";for(s=0;s!==n.length;++s)if(n[s]!=null)S+=n[s].v;return S}var Ue=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Be(e,r){if(r==null)return false;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return true;break;case">":if(e>t)return true;break;case"<":if(e":if(e!=t)return true;break;case">=":if(e>=t)return true;break;case"<=":if(e<=t)return true;break;}return false}function We(e,r){var t=De(e);var a=t.length,n=t[a-1].indexOf("@");if(a<4&&n>-1)--a;if(t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!=="number")return[4,t.length===4||n>-1?t[t.length-1]:"@"];if(typeof r==="number"&&!isFinite(r))r=0;switch(t.length){case 1:t=n>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=n>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=n>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break;case 4:break;}var i=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[a,i];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var s=t[0].match(Ue);var f=t[1].match(Ue);return Be(r,s)?[a,t[0]]:Be(r,f)?[a,t[1]]:[a,t[s!=null&&f!=null?2:1]]}return[a,i]}function ze(e,r,t){if(t==null)t={};var a="";switch(typeof e){case"string":if(e=="m/d/yy"&&t.dateNF)a=t.dateNF;else a=e;break;case"number":if(e==14&&t.dateNF)a=t.dateNF;else a=(t.table!=null?t.table:q)[e];if(a==null)a=t.table&&t.table[Q[e]]||q[Q[e]];if(a==null)a=ee[e]||"General";break;}if(K(a,0))return oe(r,t);if(r instanceof Date)r=dr(r,t.date1904);var n=We(a,r);if(K(n[1]))return oe(r,t);if(r===true)r="TRUE";else if(r===false)r="FALSE";else if(r===""||r==null)return"";else if(isNaN(r)&&n[1].indexOf("0")>-1)return"#NUM!";else if(!isFinite(r)&&n[1].indexOf("0")>-1)return"#DIV/0!";return Me(n[1],r,t,n[0])}function He(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(q[t]==undefined){if(r<0)r=t;continue}if(q[t]==e){r=t;break}}if(r<0)r=391}q[r]=e;return r}function Ve(e){for(var r=0;r!=392;++r)if(e[r]!==undefined)He(e[r],r)}function $e(){q=J()}var Xe={format:ze,load:He,_table:q,load_table:Ve,parse_date_code:ae,is_date:Le,get_table:function cA(){return Xe._table=q}};var Ge={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"};var je=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ke(e){var r=typeof e=="number"?q[e]:e;r=r.replace(je,"(\\d+)");je.lastIndex=0;return new RegExp("^"+r+"$")}function Ye(e,r,t){var a=-1,n=-1,i=-1,s=-1,f=-1,l=-1;(r.match(je)||[]).forEach(function(e,r){var o=parseInt(t[r+1],10);switch(e.toLowerCase().charAt(0)){case"y":a=o;break;case"d":i=o;break;case"h":s=o;break;case"s":l=o;break;case"m":if(s>=0)f=o;else n=o;break;}});je.lastIndex=0;if(l>=0&&f==-1&&n>=0){f=n;n=-1}var o=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);if(o.length==7)o="0"+o;if(o.length==8)o="20"+o;var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);if(s==-1&&f==-1&&l==-1)return o;if(a==-1&&n==-1&&i==-1)return c;return o+"T"+c}var Ze={"d.m":"d\\.m"};function Je(e,r){return He(Ze[e]||e,r)}var qe=function(){var e={};e.version="1.2.0";function r(){var e=0,r=new Array(256);for(var t=0;t!=256;++t){e=t;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;r[t]=e}return typeof Int32Array!=="undefined"?new Int32Array(r):r}var t=r();function a(e){var r=0,t=0,a=0,n=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(a=0;a!=256;++a)n[a]=e[a];for(a=0;a!=256;++a){t=e[a];for(r=256+a;r<4096;r+=256)t=n[r]=t>>>8^e[t&255]}var i=[];for(a=1;a!=16;++a)i[a-1]=typeof Int32Array!=="undefined"&&typeof n.subarray=="function"?n.subarray(a*256,a*256+256):n.slice(a*256,a*256+256);return i}var n=a(t);var i=n[0],s=n[1],f=n[2],l=n[3],o=n[4];var c=n[5],h=n[6],u=n[7],d=n[8],v=n[9];var p=n[10],m=n[11],g=n[12],b=n[13],w=n[14];function k(e,r){var a=r^-1;for(var n=0,i=e.length;n>>8^t[(a^e.charCodeAt(n++))&255];return~a}function A(e,r){var a=r^-1,n=e.length-15,k=0;for(;k>8&255]^g[e[k++]^a>>16&255]^m[e[k++]^a>>>24]^p[e[k++]]^v[e[k++]]^d[e[k++]]^u[e[k++]]^h[e[k++]]^c[e[k++]]^o[e[k++]]^l[e[k++]]^f[e[k++]]^s[e[k++]]^i[e[k++]]^t[e[k++]];n+=15;while(k>>8^t[(a^e[k++])&255];return~a}function T(e,r){var a=r^-1;for(var n=0,i=e.length,s=0,f=0;n>>8^t[(a^s)&255]}else if(s<2048){a=a>>>8^t[(a^(192|s>>6&31))&255];a=a>>>8^t[(a^(128|s&63))&255]}else if(s>=55296&&s<57344){s=(s&1023)+64;f=e.charCodeAt(n++)&1023;a=a>>>8^t[(a^(240|s>>8&7))&255];a=a>>>8^t[(a^(128|s>>2&63))&255];a=a>>>8^t[(a^(128|f>>6&15|(s&3)<<4))&255];a=a>>>8^t[(a^(128|f&63))&255]}else{a=a>>>8^t[(a^(224|s>>12&15))&255];a=a>>>8^t[(a^(128|s>>6&63))&255];a=a>>>8^t[(a^(128|s&63))&255]}}return~a}e.table=t;e.bstr=k;e.buf=A;e.str=T;return e}();var Qe=function hA(){var e={};e.version="1.2.2";function r(e,r){var t=e.split("/"),a=r.split("/");for(var n=0,i=0,s=Math.min(t.length,a.length);n>>1;e._W(2,t);var a=r.getFullYear()-1980;a=a<<4|r.getMonth()+1;a=a<<5|r.getDate();e._W(2,a)}function i(e){var r=e._R(2)&65535;var t=e._R(2)&65535;var a=new Date;var n=t&31;t>>>=5;var i=t&15;t>>>=4;a.setMilliseconds(0);a.setFullYear(t+1980);a.setMonth(i-1);a.setDate(n);var s=r&31;r>>>=5;var f=r&63;r>>>=6;a.setHours(r);a.setMinutes(f);a.setSeconds(s<<1);return a}function s(e){Oa(e,0);var r={};var t=0;while(e.l<=e.length-4){var a=e._R(2);var n=e._R(2),i=e.l+n;var s={};switch(a){case 21589:{t=e._R(1);if(t&1)s.mtime=e._R(4);if(n>5){if(t&2)s.atime=e._R(4);if(t&4)s.ctime=e._R(4)}if(s.mtime)s.mt=new Date(s.mtime*1e3)}break;case 1:{var f=e._R(4),l=e._R(4);s.usz=l*Math.pow(2,32)+f;f=e._R(4);l=e._R(4);s.csz=l*Math.pow(2,32)+f}break;}e.l=i;r[a]=s}return r}var f;function l(){return f||(f=er)}function o(e,r){if(e[0]==80&&e[1]==75)return Re(e,r);if((e[0]|32)==109&&(e[1]|32)==105)return We(e,r);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var t=3;var a=512;var n=0;var i=0;var s=0;var f=0;var l=0;var o=[];var v=e.slice(0,512);Oa(v,0);var m=c(v);t=m[0];switch(t){case 3:a=512;break;case 4:a=4096;break;case 0:if(m[1]==0)return Re(e,r);default:throw new Error("Major Version: Expected 3 or 4 saw "+t);}if(a!==512){v=e.slice(0,a);Oa(v,28)}var w=e.slice(0,a);h(v,t);var k=v._R(4,"i");if(t===3&&k!==0)throw new Error("# Directory Sectors: Expected 0 saw "+k);v.l+=4;s=v._R(4,"i");v.l+=4;v.chk("00100000","Mini Stream Cutoff Size: ");f=v._R(4,"i");n=v._R(4,"i");l=v._R(4,"i");i=v._R(4,"i");for(var A=-1,T=0;T<109;++T){A=v._R(4,"i");if(A<0)break;o[T]=A}var y=u(e,a);p(l,i,y,a,o);var E=g(y,s,o,a);if(s0&&f!==L)E[f].name="!MiniFAT";E[o[0]].name="!FAT";E.fat_addrs=o;E.ssz=a;var C={},_=[],S=[],x=[];b(s,E,y,_,n,C,S,f);d(S,x,_);_.shift();var O={FileIndex:S,FullPaths:x};if(r&&r.raw)O.raw={header:w,sectors:y};return O}function c(e){if(e[e.l]==80&&e[e.l+1]==75)return[0,0];e.chk(B,"Header Signature: ");e.l+=16;var r=e._R(2,"u");return[e._R(2,"u"),r]}function h(e,r){var t=9;e.l+=2;switch(t=e._R(2)){case 9:if(r!=3)throw new Error("Sector Shift: Expected 9 saw "+t);break;case 12:if(r!=4)throw new Error("Sector Shift: Expected 12 saw "+t);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+t);}e.chk("0600","Mini Sector Shift: ");e.chk("000000000000","Reserved: ")}function u(e,r){var t=Math.ceil(e.length/r)-1;var a=[];for(var n=1;n0&&s>=0){i.push(r.slice(s*D,s*D+D));n-=D;s=Aa(t,s*4)}if(i.length===0)return Ra(0);return P(i).slice(0,e.size)}function p(e,r,t,a,n){var i=L;if(e===L){if(r!==0)throw new Error("DIFAT chain shorter than expected")}else if(e!==-1){var s=t[e],f=(a>>>2)-1;if(!s)return;for(var l=0;l=1)p(Aa(s,a-4),r-1,t,a,n)}}function m(e,r,t,a,n){var i=[],s=[];if(!n)n=[];var f=a-1,l=0,o=0;for(l=r;l>=0;){n[l]=true;i[i.length]=l;s.push(e[l]);var c=t[Math.floor(l*4/a)];o=l*4&f;if(a<4+o)throw new Error("FAT boundary crossed: "+l+" 4 "+a);if(!e[c])break;l=Aa(e[c],o)}return{nodes:i,data:Zt([s])}}function g(e,r,t,a){var n=e.length,i=[];var s=[],f=[],l=[];var o=a-1,c=0,h=0,u=0,d=0;for(c=0;c=n)u-=n;if(s[u])continue;l=[];var v=[];for(h=u;h>=0;){v[h]=true;s[h]=true;f[f.length]=h;l.push(e[h]);var p=t[Math.floor(h*4/a)];d=h*4&o;if(a<4+d)throw new Error("FAT boundary crossed: "+h+" 4 "+a);if(!e[p])break;h=Aa(e[p],d);if(v[h])break}i[u]={nodes:f,data:Zt([l])}}return i}function b(e,r,t,a,n,i,s,f){var l=0,o=a.length?2:0;var c=r[e].data;var h=0,u=0,d;for(;h0&&l!==L)r[l].name="!StreamData"}else if(g.size>=4096){g.storage="fat";if(r[g.start]===undefined)r[g.start]=m(t,g.start,r.fat_addrs,r.ssz);r[g.start].name=g.name;g.content=r[g.start].data.slice(0,g.size)}else{g.storage="minifat";if(g.size<0)g.size=0;else if(l!==L&&g.start!==L&&r[l]){g.content=v(g,r[l].data,(r[f]||{}).data)}}if(g.content)Oa(g.content,0);i[d]=g;s.push(g)}}function w(e,r){return new Date((ka(e,r+4)/1e7*Math.pow(2,32)+ka(e,r)/1e7-11644473600)*1e3)}function k(e,r){l();return o(f.readFileSync(e),r)}function T(e,r){var t=r&&r.type;if(!t){if(C&&Buffer.isBuffer(e))t="buffer"}switch(t||"base64"){case"file":return k(e,r);case"base64":return o(I(E(e)),r);case"binary":return o(I(e),r);}return o(e,r)}function y(e,r){var t=r||{},a=t.root||"Root Entry";if(!e.FullPaths)e.FullPaths=[];if(!e.FileIndex)e.FileIndex=[];if(e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");if(e.FullPaths.length===0){e.FullPaths[0]=a+"/";e.FileIndex[0]={name:a,type:5}}if(t.CLSID)e.FileIndex[0].clsid=t.CLSID;S(e)}function S(e){var r="Sh33tJ5";if(Qe.find(e,"/"+r))return;var t=Ra(4);t[0]=55;t[1]=t[3]=50;t[2]=54;e.FileIndex.push({name:r,type:2,content:t,size:4,L:69,R:69,C:69});e.FullPaths.push(e.FullPaths[0]+r);R(e)}function R(e,n){y(e);var i=false,s=false;for(var f=e.FullPaths.length-1;f>=0;--f){var l=e.FileIndex[f];switch(l.type){case 0:if(s)i=true;else{e.FileIndex.pop();e.FullPaths.pop()}break;case 1:;case 2:;case 5:s=true;if(isNaN(l.R*l.L*l.C))i=true;if(l.R>-1&&l.L>-1&&l.R==l.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var o=new Date(1987,1,19),c=0;var h=Object.create?Object.create(null):{};var u=[];for(f=0;f1?1:-1;v.size=0;v.type=5}else if(p.slice(-1)=="/"){for(c=f+1;c=u.length?-1:c;for(c=f+1;c=u.length?-1:c;v.type=1}else{if(t(e.FullPaths[f+1]||"")==t(p))v.R=f+1;v.type=2}}}function N(e,r){var t=r||{};if(t.fileType=="mad")return ze(e,t);R(e);switch(t.fileType){case"zip":return Fe(e,t);}var a=function(e){var r=0,t=0;for(var a=0;a0){if(i<4096)r+=i+63>>6;else t+=i+511>>9}}var s=e.FullPaths.length+3>>2;var f=r+7>>3;var l=r+127>>7;var o=f+t+s+l;var c=o+127>>7;var h=c<=109?0:Math.ceil((c-109)/127);while(o+c+h+127>>7>c)h=++c<=109?0:Math.ceil((c-109)/127);var u=[1,h,c,l,s,t,r,0];e.FileIndex[0].size=r<<6;u[7]=(e.FileIndex[0].start=u[0]+u[1]+u[2]+u[3]+u[4]+u[5])+(u[6]+7>>3);return u}(e);var n=Ra(a[7]<<9);var i=0,s=0;{for(i=0;i<8;++i)n._W(1,W[i]);for(i=0;i<8;++i)n._W(2,0);n._W(2,62);n._W(2,3);n._W(2,65534);n._W(2,9);n._W(2,6);for(i=0;i<3;++i)n._W(2,0);n._W(4,0);n._W(4,a[2]);n._W(4,a[0]+a[1]+a[2]+a[3]-1);n._W(4,0);n._W(4,1<<12);n._W(4,a[3]?a[0]+a[1]+a[2]-1:L);n._W(4,a[3]);n._W(-4,a[1]?a[0]-1:L);n._W(4,a[1]);for(i=0;i<109;++i)n._W(-4,i>9)}f(a[6]+7>>3);while(n.l&511)n._W(-4,H.ENDOFCHAIN);s=i=0;for(l=0;l=4096)continue;c.start=s;f(o+63>>6)}while(n.l&511)n._W(-4,H.ENDOFCHAIN);for(i=0;i31){console.error("Name "+u+" will be truncated to "+u.slice(0,31));u=u.slice(0,31)}o=2*(u.length+1);n._W(64,u,"utf16le");n._W(2,o);n._W(1,c.type);n._W(1,c.color);n._W(-4,c.L);n._W(-4,c.R);n._W(-4,c.C);if(!c.clsid)for(l=0;l<4;++l)n._W(4,0);else n._W(16,c.clsid,"hex");n._W(4,c.state||0);n._W(4,0);n._W(4,0);n._W(4,0);n._W(4,0);n._W(4,c.start);n._W(4,c.size);n._W(4,0)}for(i=1;i=4096){n.l=c.start+1<<9;if(C&&Buffer.isBuffer(c.content)){c.content.copy(n,n.l,0,c.size);n.l+=c.size+511&-512}else{for(l=0;l0&&c.size<4096){if(C&&Buffer.isBuffer(c.content)){c.content.copy(n,n.l,0,c.size);n.l+=c.size+63&-64}else{for(l=0;l>16|r>>8|r)&255}var ee=typeof Uint8Array!=="undefined";var re=ee?new Uint8Array(1<<8):[];for(var te=0;te<1<<8;++te)re[te]=Q(te);function ae(e,r){var t=re[e&255];if(r<=8)return t>>>8-r;t=t<<8|re[e>>8&255];if(r<=16)return t>>>16-r;t=t<<8|re[e>>16&255];return t>>>24-r}function ne(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=6?0:e[a+1]<<8))>>>t&3}function ie(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=5?0:e[a+1]<<8))>>>t&7}function se(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=4?0:e[a+1]<<8))>>>t&15}function fe(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=3?0:e[a+1]<<8))>>>t&31}function le(e,r){var t=r&7,a=r>>>3;return(e[a]|(t<=1?0:e[a+1]<<8))>>>t&127}function oe(e,r,t){var a=r&7,n=r>>>3,i=(1<>>a;if(t<8-a)return s&i;s|=e[n+1]<<8-a;if(t<16-a)return s&i;s|=e[n+2]<<16-a;if(t<24-a)return s&i;s|=e[n+3]<<24-a;return s&i}function ce(e,r,t){var a=r&7,n=r>>>3;if(a<=5)e[n]|=(t&7)<>8-a}return r+3}function he(e,r,t){var a=r&7,n=r>>>3;t=(t&1)<>>3;t<<=a;e[n]|=t&255;t>>>=8;e[n+1]=t;return r+8}function de(e,r,t){var a=r&7,n=r>>>3;t<<=a;e[n]|=t&255;t>>>=8;e[n+1]=t&255;e[n+2]=t>>>8;return r+16}function ve(e,r){var t=e.length,a=2*t>r?2*t:r+5,n=0;if(t>=r)return e;if(C){var i=O(a);if(e.copy)e.copy(i);else for(;n>a-h;for(s=(1<=0;--s)r[f|s<0)r[r.l++]=e[t++]}return r.l}function i(r,t){var n=0;var i=0;var s=ee?new Uint16Array(32768):[];while(i0)t[t.l++]=r[i++];n=t.l*8;continue}n=ce(t,n,+!!(i+f==r.length)+2);var l=0;while(f-- >0){var o=r[i];l=(l<<5^o)&32767;var c=-1,h=0;if(c=s[l]){c|=i&~32767;if(c>i)c-=32768;if(c2){o=a[h];if(o<=22)n=ue(t,n,re[o+1]>>1)-1;else{ue(t,n,3);n+=5;ue(t,n,re[o-23]>>5);n+=3}var u=o<8?0:o-4>>2;if(u>0){de(t,n,h-J[o]);n+=u}o=e[i-c];n=ue(t,n,re[o]>>3);n-=3;var d=o<4?0:o-2>>1;if(d>0){de(t,n,i-c-q[o]);n+=d}for(var v=0;v>8-v;for(var p=(1<<7-v)-1;p>=0;--p)Ee[d|p<>>=3){case 16:i=3+ne(e,r);r+=2;d=m[m.length-1];while(i-- >0)m.push(d);break;case 17:i=3+ie(e,r);r+=3;while(i-- >0)m.push(0);break;case 18:i=11+le(e,r);r+=7;while(i-- >0)m.push(0);break;default:m.push(d);if(l>>0;var f=0,l=0;while((a&1)==0){a=ie(e,t);t+=3;if(a>>>1==0){if(t&7)t+=8-(t&7);var o=e[t>>>3]|e[(t>>>3)+1]<<8;t+=32;if(o>0){if(!r&&s0){n[i++]=e[t>>>3];t+=8}}continue}else if(a>>1==1){f=9;l=5}else{t=Se(e,t);f=Ce;l=_e}for(;;){if(!r&&s>>1==1?ge[c]:Te[c];t+=h&15;h>>>=4;if((h>>>8&255)===0)n[i++]=h;else if(h==256)break;else{h-=257;var u=h<8?0:h-4>>2;if(u>5)u=0;var d=i+J[h];if(u>0){d+=oe(e,t,u);t+=u}c=oe(e,t,l);h=a>>>1==1?be[c]:ye[c];t+=h&15;h>>>=4;var v=h<4?0:h-2>>1;var p=q[h];if(v>0){p+=oe(e,t,v);t+=v}if(!r&&s>>3];return[n.slice(0,i),t+7>>>3]}function Oe(e,r){var t=e.slice(e.l||0); -var a=xe(t,r);e.l+=a[1];return a[0]}function Ie(e,r){if(e){if(typeof console!=="undefined")console.error(r)}else throw new Error(r)}function Re(e,r){var t=e;Oa(t,0);var a=[],n=[];var i={FileIndex:a,FullPaths:n};y(i,{root:r.root});var f=t.length-4;while((t[f]!=80||t[f+1]!=75||t[f+2]!=5||t[f+3]!=6)&&f>=0)--f;t.l=f+4;t.l+=4;var l=t._R(2);t.l+=6;var o=t._R(4);t.l=o;for(f=0;f0){t=t.slice(0,t.length-1);t=t.slice(0,t.lastIndexOf("/")+1);if(i.slice(0,t.length)==t)break}}var s=(a[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var f="--"+(s[1]||"");var l=[],o=[];var c={FileIndex:l,FullPaths:o};y(c);var h,u=0;for(n=0;n=32&&d<128)++h;var p=h>=u*4/5;n.push(a);n.push("Content-Location: "+(t.root||"file:///C:/SheetJS/")+s);n.push("Content-Transfer-Encoding: "+(p?"quoted-printable":"base64"));n.push("Content-Type: "+Pe(f,s));n.push("");n.push(p?Me(c):Le(c))}n.push(a+"--\r\n");return n.join("\r\n")}function He(e){var r={};y(r,e);return r}function Ve(e,r,t,n){var i=n&&n.unsafe;if(!i)y(e);var s=!i&&Qe.find(e,r);if(!s){var f=e.FullPaths[0];if(r.slice(0,f.length)==f)f=r;else{if(f.slice(-1)!="/")f+="/";f=(f+r).replace("//","/")}s={name:a(r),type:2};e.FileIndex.push(s);e.FullPaths.push(f);if(!i)Qe.utils.cfb_gc(e)}s.content=t;s.size=t?t.length:0;if(n){if(n.CLSID)s.clsid=n.CLSID;if(n.mt)s.mt=n.mt;if(n.ct)s.ct=n.ct}return s}function $e(e,r){y(e);var t=Qe.find(e,r);if(t)for(var a=0;a=60&&e<61)return e;var r=new Date;r.setTime((e>60?e:e+1)*24*60*60*1e3+cr);return r}function pr(e){var r=0,t=0,a=false;var n=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=n.length;++i){if(!n[i])continue;t=1;if(i>3)a=true;switch(n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");else t*=60;case"S":break;}r+=t*parseInt(n[i],10)}return r}var mr=/^(\d+):(\d+)(:\d+)?(\.\d+)?$/;var gr=/^(\d+)-(\d+)-(\d+)$/;var br=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)?(\.\d+)?$/;function wr(e,r){if(e instanceof Date)return e;var t=e.match(mr);if(t)return new Date((r?ur:hr)+((parseInt(t[1],10)*60+parseInt(t[2],10))*60+(t[3]?parseInt(t[3].slice(1),10):0))*1e3+(t[4]?parseInt((t[4]+"000").slice(1,4),10):0));t=e.match(gr);if(t)return new Date(Date.UTC(+t[1],+t[2]-1,+t[3],0,0,0,0));t=e.match(br);if(t)return new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4],+t[5],t[6]&&parseInt(t[6].slice(1),10)||0,t[7]&&parseInt((t[7]+"0000").slice(1,4),10)||0));var a=new Date(e);return a}function kr(e,r){if(C&&Buffer.isBuffer(e)){if(r&&S){if(e[0]==255&&e[1]==254)return Rt(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Rt(d(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder!=="undefined")try{if(r){if(e[0]==255&&e[1]==254)return Rt(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Rt(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};if(Array.isArray(e))e=new Uint8Array(e);return new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(e){return t[e]||e})}catch(a){}var n=[],i=0;try{for(i=0;i3&&Ir.indexOf(r)==-1)return i}else if(r.replace(/[ap]m?/,"").match(/[a-z]/))return i;if(s<0||s>8099||e.match(/[^-0-9:,\/\\\ ]/))return i;return n}var Nr=function(){var e="abacaba".split(/(:?b)/i).length==5;return function r(t,a,n){if(e||typeof a=="string")return t.split(a);var i=t.split(a),s=[i[0]];for(var f=1;f-1){var i=e.indexOf(t,n+r.length);if(i==-1)break;a.push(e.slice(n,i+t.length));n=e.indexOf(r,i+t.length)}return a.length>0?a:null}function Mr(e,r,t){var a=[],n=0;var i=e.indexOf(r);if(i==-1)return e;while(i>-1){a.push(e.slice(n,i));var s=e.indexOf(t,i+r.length);if(s==-1)break;if((i=e.indexOf(r,n=s+t.length))==-1)a.push(e.slice(n))}return a.join("")}var Ur={" ":1,"\t":1,"\r":1,"\n":1,">":1};function Br(e,r){var t=e.indexOf("<"+r),a=r.length+1,n=e.length;while(t>=0&&t<=n-a&&!Ur[e.charAt(t+a)])t=e.indexOf("<"+r,t+1);if(t===-1)return null;var i=e.indexOf(">",t+r.length);if(i===-1)return null;var s="";var f=e.indexOf(s,i);if(f==-1)return null;return[e.slice(t,f+s.length),e.slice(i+1,f)]}var Wr=function(){var e={};return function r(t,a){var n=e[a];if(!n)e[a]=n=[new RegExp("<(?:\\w+:)?"+a+"\\b[^<>]*>","g"),new RegExp("","g")];n[0].lastIndex=n[1].lastIndex=0;var i=n[0].exec(t);if(!i)return null;var s=i.index;var f=n[0].lastIndex;n[1].lastIndex=n[0].lastIndex;i=n[1].exec(t);if(!i)return null;var l=i.index;var o=n[1].lastIndex;return[t.slice(s,o),t.slice(f,l)]}}();var zr=function(){var e={};return function r(t,a){var n=[];var i=e[a];if(!i)e[a]=i=[new RegExp("<(?:\\w+:)?"+a+"\\b[^<>]*>","g"),new RegExp("","g")];i[0].lastIndex=i[1].lastIndex=0;var s;while(s=i[0].exec(t)){var f=s.index;i[1].lastIndex=i[0].lastIndex;s=i[1].exec(t);if(!s)return null;var l=i[1].lastIndex;n.push(t.slice(f,l));i[0].lastIndex=i[1].lastIndex}return n.length==0?null:n}}();var Hr=function(){var e={};return function r(t,a){var n=[];var i=e[a];if(!i)e[a]=i=[new RegExp("<(?:\\w+:)?"+a+"\\b[^<>]*>","g"),new RegExp("","g")];i[0].lastIndex=i[1].lastIndex=0;var s;var f=0,l=0;while(s=i[0].exec(t)){f=s.index;n.push(t.slice(l,f));l=f;i[1].lastIndex=i[0].lastIndex;s=i[1].exec(t);if(!s)return null;l=i[1].lastIndex;i[0].lastIndex=i[1].lastIndex}n.push(t.slice(l));return n.length==0?"":n.join("")}}();var Vr=function(){var e={};return function r(t,a){var n=[];var i=e[a];if(!i)e[a]=i=[new RegExp("<"+a+"\\b[^<>]*>","ig"),new RegExp("","ig")];i[0].lastIndex=i[1].lastIndex=0;var s;while(s=i[0].exec(t)){var f=s.index;i[1].lastIndex=i[0].lastIndex;s=i[1].exec(t);if(!s)return null;var l=i[1].lastIndex;n.push(t.slice(f,l));i[0].lastIndex=i[1].lastIndex}return n.length==0?null:n}}();function $r(e){if(!e)return null;if(e.content&&e.type)return kr(e.content,true);if(e.data)return v(e.data);if(e.asNodeBuffer&&C)return v(e.asNodeBuffer().toString("binary"));if(e.asBinary)return v(e.asBinary());if(e._data&&e._data.getContent)return v(kr(Array.prototype.slice.call(e._data.getContent(),0)));return null}function Xr(e){if(!e)return null;if(e.data)return c(e.data);if(e.asNodeBuffer&&C)return e.asNodeBuffer();if(e._data&&e._data.getContent){var r=e._data.getContent();if(typeof r=="string")return c(r);return Array.prototype.slice.call(r)}if(e.content&&e.type)return e.content;return null}function Gr(e){return e&&e.name.slice(-4)===".bin"?Xr(e):$r(e)}function jr(e,r){var t=e.FullPaths||ir(e.files);var a=r.toLowerCase().replace(/[\/]/g,"\\"),n=a.replace(/\\/g,"/");for(var i=0;i\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g;var it=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?<>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'"<>\s=]+))*\s*[\/\?]?>/gm,st=/<[^<>]*>/g;var ft=at.match(it)?it:st;var lt=/<\w*:/,ot=/<(\/?)\w+:/;function ct(e,r,t){var a={};var n=0,i=0;for(;n!==e.length;++n)if((i=e.charCodeAt(n))===32||i===10||i===13)break;if(!r)a[0]=e.slice(0,n);if(n===e.length)return a;var s=e.match(nt),f=0,l="",o=0,c="",h="",u=1;if(s)for(o=0;o!=s.length;++o){h=s[o].slice(1);for(i=0;i!=h.length;++i)if(h.charCodeAt(i)===61)break;c=h.slice(0,i).trim();while(h.charCodeAt(i+1)==32)++i;u=(n=h.charCodeAt(i+1))==34||n==39?1:0;l=h.slice(i+1+u,h.length-u);for(f=0;f!=c.length;++f)if(c.charCodeAt(f)===58)break;if(f===c.length){if(c.indexOf("_")>0)c=c.slice(0,c.indexOf("_"));a[c]=l;if(!t)a[c.toLowerCase()]=l}else{var d=(f===5&&c.slice(0,5)==="xmlns"?"xmlns":"")+c.slice(f+1);if(a[d]&&c.slice(f-3,f)=="ext")continue;a[d]=l;if(!t)a[d.toLowerCase()]=l}}return a}function ht(e,r,t){var a={};var n=0,i=0;for(;n!==e.length;++n)if((i=e.charCodeAt(n))===32||i===10||i===13)break;if(!r)a[0]=e.slice(0,n);if(n===e.length)return a;var s=e.match(nt),f=0,l="",o=0,c="",h="",u=1;if(s)for(o=0;o!=s.length;++o){h=s[o].slice(1);for(i=0;i!=h.length;++i)if(h.charCodeAt(i)===61)break;c=h.slice(0,i).trim();while(h.charCodeAt(i+1)==32)++i;u=(n=h.charCodeAt(i+1))==34||n==39?1:0;l=h.slice(i+1+u,h.length-u);if(c.indexOf("_")>0)c=c.slice(0,c.indexOf("_"));a[c]=l;if(!t)a[c.toLowerCase()]=l}return a}function ut(e){return e.replace(ot,"<$1")}var dt={""":'"',"'":"'",">":">","<":"<","&":"&"};var vt=fr(dt);var pt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,r=/_x([\da-fA-F]{4})_/gi;function t(a){var n=a+"",i=n.indexOf("-1?16:10))||e}).replace(r,function(e,r){return String.fromCharCode(parseInt(r,16))});var s=n.indexOf("]]>");return t(n.slice(0,i))+n.slice(i+9,s)+t(n.slice(s+3))}return function a(e,r){var a=t(e);return r?a.replace(/\r\n/g,"\n"):a}}();var mt=/[&<>'"]/g,gt=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function bt(e){var r=e+"";return r.replace(mt,function(e){return vt[e]}).replace(gt,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function wt(e){return bt(e).replace(/ /g,"_x0020_")}var kt=/[\u0000-\u001f]/g;function At(e){var r=e+"";return r.replace(mt,function(e){return vt[e]}).replace(/\n/g,"
                        ").replace(kt,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function Tt(e){var r=e+"";return r.replace(mt,function(e){return vt[e]}).replace(kt,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}var yt=function(){var e=/&#(\d+);/g;function r(e,r){return String.fromCharCode(parseInt(r,10))}return function t(a){return a.replace(e,r)}}();function Et(e){return e.replace(/(\r\n|[\r\n])/g," ")}function Ct(e){switch(e){case 1:;case true:;case"1":;case"true":return true;case 0:;case false:;case"0":;case"false":return false;}return false}function _t(e){var r="",t=0,a=0,n=0,i=0,s=0,f=0;while(t191&&a<224){s=(a&31)<<6;s|=n&63;r+=String.fromCharCode(s);continue}i=e.charCodeAt(t++);if(a<240){r+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}s=e.charCodeAt(t++);f=((a&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536;r+=String.fromCharCode(55296+(f>>>10&1023));r+=String.fromCharCode(56320+(f&1023))}return r}function St(e){var r=x(2*e.length),t,a,n=1,i=0,s=0,f;for(a=0;a>>10&1023);t=56320+(t&1023)}if(s!==0){r[i++]=s&255;r[i++]=s>>>8;s=0}r[i++]=t%256;r[i++]=t>>>8}return r.slice(0,i).toString("ucs2")}function xt(e){return _(e,"binary").toString("utf8")}var Ot="foo bar baz☃🍣";var It=C&&(xt(Ot)==_t(Ot)&&xt||St(Ot)==_t(Ot)&&St)||_t;var Rt=C?function(e){return _(e,"utf8").toString("binary")}:function(e){var r=[],t=0,a=0,n=0;while(t>6)));r.push(String.fromCharCode(128+(a&63)));break;case a>=55296&&a<57344:a-=55296;n=e.charCodeAt(t++)-56320+(a<<10);r.push(String.fromCharCode(240+(n>>18&7)));r.push(String.fromCharCode(144+(n>>12&63)));r.push(String.fromCharCode(128+(n>>6&63)));r.push(String.fromCharCode(128+(n&63)));break;default:r.push(String.fromCharCode(224+(a>>12)));r.push(String.fromCharCode(128+(a>>6&63)));r.push(String.fromCharCode(128+(a&63)));}}return r.join("")};var Nt=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function r(t){var a=t.replace(/^[\t\n\r ]+/,"").replace(/(^|[^\t\n\r ])[\t\n\r ]+$/,"$1").replace(/>\s+/g,">").replace(/\b\s+/g,"\n").replace(/<[^<>]*>/g,"");for(var n=0;n/g,Dt=/<(?:vt:)([^<"'>]*)>([\s\S]*)"+r+""}function Ut(e){return ir(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function Bt(e,r,t){return"<"+e+(t!=null?Ut(t):"")+(r!=null?(r.match(Lt)?' xml:space="preserve"':"")+">"+r+""}function Wt(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function zt(e,r){switch(typeof e){case"string":var t=Bt("vt:lpwstr",bt(e));if(r)t=t.replace(/"/g,"_x0022_");return t;case"number":return Bt((e|0)==e?"vt:i4":"vt:r8",bt(String(e)));case"boolean":return Bt("vt:bool",e?"true":"false");}if(e instanceof Date)return Bt("vt:filetime",Wt(e));throw new Error("Unable to serialize "+e)}function Ht(e){if(C&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e==="string")return e;if(typeof Uint8Array!=="undefined"&&e instanceof Uint8Array)return It(N(D(e)));throw new Error("Bad input format: expected Buffer or string")}var Vt=/<([\/]?)([^\s?>:\/"]+)(?:\s+[^<>=?"'\s]+="[^"]*?")*\s*[\/]?>/gm;var $t={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};var Xt=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];var Gt={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function jt(e,r){var t=1-2*(e[r+7]>>>7);var a=((e[r+7]&127)<<4)+(e[r+6]>>>4&15);var n=e[r+6]&15;for(var i=5;i>=0;--i)n=n*256+e[r+i];if(a==2047)return n==0?t*Infinity:NaN;if(a==0)a=-1022;else{a-=1023;n+=Math.pow(2,52)}return t*Math.pow(2,a-52)*n}function Kt(e,r,t){var a=(r<0||1/r==-Infinity?1:0)<<7,n=0,i=0;var s=a?-r:r;if(!isFinite(s)){n=2047;i=isNaN(r)?26985:0}else if(s==0)n=i=0;else{n=Math.floor(Math.log(s)/Math.LN2);i=s*Math.pow(2,52-n);if(n<=-1023&&(!isFinite(i)||i>4|a}var Yt=function(e){var r=[],t=10240;for(var a=0;a0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(e){return Buffer.isBuffer(e)?e:_(e)})):Yt(e)}:Yt;var Jt=function(e,r,t){var a=[];for(var n=r;n0?ta(e,r+4,r+4+t-1):""};var na=aa;var ia=function(e,r){var t=ka(e,r);return t>0?ta(e,r+4,r+4+t-1):""};var sa=ia;var fa=function(e,r){var t=2*ka(e,r);return t>0?ta(e,r+4,r+4+t-1):""};var la=fa;var oa=function dA(e,r){var t=ka(e,r);return t>0?qt(e,r+4,r+4+t):""};var ca=oa;var ha=function(e,r){ -var t=ka(e,r);return t>0?ta(e,r+4,r+4+t):""};var ua=ha;var da=function(e,r){return jt(e,r)};var va=da;var pa=function vA(e){return Array.isArray(e)||typeof Uint8Array!=="undefined"&&e instanceof Uint8Array};if(C){na=function pA(e,r){if(!Buffer.isBuffer(e))return aa(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};sa=function mA(e,r){if(!Buffer.isBuffer(e))return ia(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};la=function gA(e,r){if(!Buffer.isBuffer(e)||!S)return fa(e,r);var t=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t-1)};ca=function bA(e,r){if(!Buffer.isBuffer(e)||!S)return oa(e,r);var t=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t)};ua=function wA(e,r){if(!Buffer.isBuffer(e))return ha(e,r);var t=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+t)};va=function kA(e,r){if(Buffer.isBuffer(e))return e.readDoubleLE(r);return da(e,r)};pa=function AA(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array!=="undefined"&&e instanceof Uint8Array}}function ma(){qt=function(e,r,t){return a.utils.decode(1200,e.slice(r,t)).replace(M,"")};ta=function(e,r,t){return a.utils.decode(65001,e.slice(r,t))};na=function(e,r){var n=ka(e,r);return n>0?a.utils.decode(t,e.slice(r+4,r+4+n-1)):""};sa=function(e,t){var n=ka(e,t);return n>0?a.utils.decode(r,e.slice(t+4,t+4+n-1)):""};la=function(e,r){var t=2*ka(e,r);return t>0?a.utils.decode(1200,e.slice(r+4,r+4+t-1)):""};ca=function(e,r){var t=ka(e,r);return t>0?a.utils.decode(1200,e.slice(r+4,r+4+t)):""};ua=function(e,r){var t=ka(e,r);return t>0?a.utils.decode(65001,e.slice(r+4,r+4+t)):""}}if(typeof a!=="undefined")ma();var ga=function(e,r){return e[r]};var ba=function(e,r){return e[r+1]*(1<<8)+e[r]};var wa=function(e,r){var t=e[r+1]*(1<<8)+e[r];return t<32768?t:(65535-t+1)*-1};var ka=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]};var Aa=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]};var Ta=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function ya(e,t){var n="",i,s,f=[],l,o,c,h;switch(t){case"dbcs":h=this.l;if(C&&Buffer.isBuffer(this)&&S)n=this.slice(this.l,this.l+2*e).toString("utf16le");else for(c=0;c0?Aa:Ta)(this,this.l);this.l+=4;return i}else{s=ka(this,this.l);this.l+=4}return s;case 8:;case-8:if(t==="f"){if(e==8)s=va(this,this.l);else s=va([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0);this.l+=8;return s}else e=8;case 16:n=ea(this,this.l,e);break;};}this.l+=e;return n}var Ea=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255;e[t+2]=r>>>16&255;e[t+3]=r>>>24&255};var Ca=function(e,r,t){e[t]=r&255;e[t+1]=r>>8&255;e[t+2]=r>>16&255;e[t+3]=r>>24&255};var _a=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255};function Sa(e,n,i){var s=0,f=0;if(i==="dbcs"){for(f=0;f!=n.length;++f)_a(this,n.charCodeAt(f),this.l+2*f);s=2*n.length}else if(i==="sbcs"||i=="cpstr"){if(typeof a!=="undefined"&&t==874){for(f=0;f!=n.length;++f){var l=a.utils.encode(t,n.charAt(f));this[this.l+f]=l[0]}s=n.length}else if(typeof a!=="undefined"&&i=="cpstr"){l=a.utils.encode(r,n);if(l.length==n.length)for(f=0;f>8}while(this.l>>=8;this[this.l+1]=n&255;break;case 3:s=3;this[this.l]=n&255;n>>>=8;this[this.l+1]=n&255;n>>>=8;this[this.l+2]=n&255;break;case 4:s=4;Ea(this,n,this.l);break;case 8:s=8;if(i==="f"){Kt(this,n,this.l);break};case 16:break;case-4:s=4;Ca(this,n,this.l);break;}this.l+=s;return this}function xa(e,r){var t=ea(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function Oa(e,r){e.l=r;e._R=ya;e.chk=xa;e._W=Sa}function Ia(e,r){e.l+=r}function Ra(e){var r=x(e);Oa(r,0);return r}function Na(e,r,t){if(!e)return;var a,n,i;Oa(e,e.l||0);var s=e.length,f=0,l=0;while(e.ln.l){n=n.slice(0,n.l);n.l=n.length}if(n.length>0)e.push(n)}n=null};var s=function u(e){if(n&&e=128?1:0)+1;if(a>=128)++i;if(a>=16384)++i;if(a>=2097152)++i;var s=e.next(i);if(n<=127)s._W(1,n);else{s._W(1,(n&127)+128);s._W(1,n>>7)}for(var f=0;f!=4;++f){if(a>=128){s._W(1,(a&127)+128);a>>=7}else{s._W(1,a);break}}if(a>0&&pa(t))e.push(t)}function Pa(e,r,t){var a=Ar(e);if(r.s){if(a.cRel)a.c+=r.s.c;if(a.rRel)a.r+=r.s.r}else{if(a.cRel)a.c+=r.c;if(a.rRel)a.r+=r.r}if(!t||t.biff<12){while(a.c>=256)a.c-=256;while(a.r>=65536)a.r-=65536}return a}function La(e,r,t){var a=Ar(e);a.s=Pa(a.s,r.s,t);a.e=Pa(a.e,r.s,t);return a}function Ma(e,r){if(e.cRel&&e.c<0){e=Ar(e);while(e.c<0)e.c+=r>8?16384:256}if(e.rRel&&e.r<0){e=Ar(e);while(e.r<0)e.r+=r>8?1048576:r>5?65536:16384}var t=Ya(e);if(!e.cRel&&e.cRel!=null)t=Xa(t);if(!e.rRel&&e.rRel!=null)t=za(t);return t}function Ua(e,r){if(e.s.r==0&&!e.s.rRel){if(e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel){return(e.s.cRel?"":"$")+$a(e.s.c)+":"+(e.e.cRel?"":"$")+$a(e.e.c)}}if(e.s.c==0&&!e.s.cRel){if(e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel){return(e.s.rRel?"":"$")+Wa(e.s.r)+":"+(e.e.rRel?"":"$")+Wa(e.e.r)}}return Ma(e.s,r.biff)+":"+Ma(e.e,r.biff)}if(typeof cptable!=="undefined")g(cptable);else if(typeof module!=="undefined"&&typeof require!=="undefined"){g(undefined)}function Ba(e){return parseInt(Ha(e),10)-1}function Wa(e){return""+(e+1)}function za(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Ha(e){return e.replace(/\$(\d+)$/,"$1")}function Va(e){var r=Ga(e),t=0,a=0;for(;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function $a(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function Xa(e){return e.replace(/^([A-Z])/,"$$$1")}function Ga(e){return e.replace(/^\$([A-Z])/,"$1")}function ja(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ka(e){var r=0,t=0;for(var a=0;a=48&&n<=57)r=10*r+(n-48);else if(n>=65&&n<=90)t=26*t+(n-64)}return{c:t-1,r:r-1}}function Ya(e){var r=e.c+1;var t="";for(;r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function Za(e){var r=e.indexOf(":");if(r==-1)return{s:Ka(e),e:Ka(e)};return{s:Ka(e.slice(0,r)),e:Ka(e.slice(r+1))}}function Ja(e,r){if(typeof r==="undefined"||typeof r==="number"){return Ja(e.s,e.e)}if(typeof e!=="string")e=Ya(e);if(typeof r!=="string")r=Ya(r);return e==r?e:e+":"+r}function qa(e){var r=Za(e);return"$"+$a(r.s.c)+"$"+Wa(r.s.r)+":$"+$a(r.e.c)+"$"+Wa(r.e.r)}function Qa(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");if(/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e))return"'"+e.replace(/'/g,"''")+"'";return e}function en(e){var r={s:{c:0,r:0},e:{c:0,r:0}};var t=0,a=0,n=0;var i=e.length;for(t=0;a26)break;t=26*t+n}r.s.c=--t;for(t=0;a9)break;t=10*t+n}r.s.r=--t;if(a===i||n!=10){r.e.c=r.s.c;r.e.r=r.s.r;return r}++a;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.e.c=--t;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.e.r=--t;return r}function rn(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=ze(e.z,t?dr(r):r)}catch(a){}try{return e.w=ze((e.XF||{}).numFmtId||(t?14:0),t?dr(r):r)}catch(a){return""+r}}function tn(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)return e.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(e.t=="e")return ci[e.v]||e.v;if(r==undefined)return rn(e,e.v);return rn(e,r)}function an(e,r){var t=r&&r.sheet?r.sheet:"Sheet1";var a={};a[t]=e;return{SheetNames:[t],Sheets:a}}function nn(e){var r={};var t=e||{};if(t.dense)r["!data"]=[];return r}function sn(e,r,t){var a=t||{};var n=e?e["!data"]!=null:a.dense;if(b!=null&&n==null)n=b;var i=e||(n?{"!data":[]}:{});if(n&&!i["!data"])i["!data"]=[];var s=0,f=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var l=typeof a.origin=="string"?Ka(a.origin):a.origin;s=l.r;f=l.c}}var o={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=en(i["!ref"]);o.s.c=c.s.c;o.s.r=c.s.r;o.e.c=Math.max(o.e.c,c.e.c);o.e.r=Math.max(o.e.r,c.e.r);if(s==-1)o.e.r=s=i["!ref"]?c.e.r+1:0}else{o.s.c=o.e.c=o.s.r=o.e.r=0}var h=[],u=false;for(var d=0;d!=r.length;++d){if(!r[d])continue;if(!Array.isArray(r[d]))throw new Error("aoa_to_sheet expects an array of arrays");var v=s+d;if(n){if(!i["!data"][v])i["!data"][v]=[];h=i["!data"][v]}var p=r[d];for(var m=0;m!=p.length;++m){if(typeof p[m]==="undefined")continue;var g={v:p[m],t:""};var w=f+m;if(o.s.r>v)o.s.r=v;if(o.s.c>w)o.s.c=w;if(o.e.r0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}function un(e){return{ich:e._R(2),ifnt:e._R(2)}}function dn(e,r){if(!r)r=Ra(4);r._W(2,e.ich||0);r._W(2,e.ifnt||0);return r}function vn(e,r){var t=e.l;var a=e._R(1);var n=cn(e);var i=[];var s={t:n,h:n};if((a&1)!==0){var f=e._R(4);for(var l=0;l!=f;++l)i.push(un(e));s.r=i}else s.r=[{ich:0,ifnt:0}];e.l=t+r;return s}function pn(e,r){var t=false;if(r==null){t=true;r=Ra(15+4*e.t.length)}r._W(1,0);hn(e.t,r);return t?r.slice(0,r.l):r}var mn=vn;function gn(e,r){var t=false;if(r==null){t=true;r=Ra(23+4*e.t.length)}r._W(1,1);hn(e.t,r);r._W(4,1);dn({ich:0,ifnt:0},r);return t?r.slice(0,r.l):r}function bn(e){var r=e._R(4);var t=e._R(2);t+=e._R(1)<<16;e.l++;return{c:r,iStyleRef:t}}function wn(e,r){if(r==null)r=Ra(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);return r}function kn(e){var r=e._R(2);r+=e._R(1)<<16;e.l++;return{c:-1,iStyleRef:r}}function An(e,r){if(r==null)r=Ra(4);r._W(3,e.iStyleRef||e.s);r._W(1,0);return r}var Tn=cn;var yn=hn;function En(e){var r=e._R(4);return r===0||r===4294967295?"":e._R(r,"dbcs")}function Cn(e,r){var t=false;if(r==null){t=true;r=Ra(127)}r._W(4,e.length>0?e.length:4294967295);if(e.length>0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}var _n=cn;var Sn=En;var xn=Cn;function On(e){var r=e.slice(e.l,e.l+4);var t=r[0]&1,a=r[0]&2;e.l+=4;var n=a===0?va([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Aa(r,0)>>2;return t?n/100:n}function In(e,r){if(r==null)r=Ra(4);var t=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29){a=1}else if(n==(n|0)&&n>=-(1<<29)&&n<1<<29){a=1;t=1}if(a)r._W(-4,((t?n:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function Rn(e){var r={s:{},e:{}};r.s.r=e._R(4);r.e.r=e._R(4);r.s.c=e._R(4);r.e.c=e._R(4);return r}function Nn(e,r){if(!r)r=Ra(16);r._W(4,e.s.r);r._W(4,e.e.r);r._W(4,e.s.c);r._W(4,e.e.c);return r}var Fn=Rn;var Dn=Nn;function Pn(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e._R(8,"f")}function Ln(e,r){return(r||Ra(8))._W(8,e,"f")}function Mn(e){var r={};var t=e._R(1);var a=t>>>1;var n=e._R(1);var i=e._R(2,"i");var s=e._R(1);var f=e._R(1);var l=e._R(1);e.l++;switch(a){case 0:r.auto=1;break;case 1:r.index=n;var o=oi[n];if(o)r.rgb=Zo(o);break;case 2:r.rgb=Zo([s,f,l]);break;case 3:r.theme=n;break;}if(i!=0)r.tint=i>0?i/32767:i/32768;return r}function Un(e,r){if(!r)r=Ra(8);if(!e||e.auto){r._W(4,0);r._W(4,0);return r}if(e.index!=null){r._W(1,2);r._W(1,e.index)}else if(e.theme!=null){r._W(1,6);r._W(1,e.theme)}else{r._W(1,5);r._W(1,0)}var t=e.tint||0;if(t>0)t*=32767;else if(t<0)t*=32768;r._W(2,t);if(!e.rgb||e.theme!=null){r._W(2,0);r._W(1,0);r._W(1,0)}else{var a=e.rgb||"FFFFFF";if(typeof a=="number")a=("000000"+a.toString(16)).slice(-6);r._W(1,parseInt(a.slice(0,2),16));r._W(1,parseInt(a.slice(2,4),16));r._W(1,parseInt(a.slice(4,6),16));r._W(1,255)}return r}function Bn(e){var r=e._R(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function Wn(e,r){if(!r)r=Ra(2);var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);r._W(1,t);r._W(1,0);return r}function zn(e,r){var t={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"};var a=e._R(4);switch(a){case 0:return"";case 4294967295:;case 4294967294:return t[e._R(4)]||"";}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));e.l-=4;return e._R(0,r==1?"lpstr":"lpwstr")}function Hn(e){return zn(e,1)}function Vn(e){return zn(e,2)}var $n=2;var Xn=3;var Gn=11;var jn=12;var Kn=19;var Yn=64;var Zn=65;var Jn=71;var qn=4108;var Qn=4126;var ei=80;var ri=81;var ti=[ei,ri];var ai={1:{n:"CodePage",t:$n},2:{n:"Category",t:ei},3:{n:"PresentationFormat",t:ei},4:{n:"ByteCount",t:Xn},5:{n:"LineCount",t:Xn},6:{n:"ParagraphCount",t:Xn},7:{n:"SlideCount",t:Xn},8:{n:"NoteCount",t:Xn},9:{n:"HiddenCount",t:Xn},10:{n:"MultimediaClipCount",t:Xn},11:{n:"ScaleCrop",t:Gn},12:{n:"HeadingPairs",t:qn},13:{n:"TitlesOfParts",t:Qn},14:{n:"Manager",t:ei},15:{n:"Company",t:ei},16:{n:"LinksUpToDate",t:Gn},17:{n:"CharacterCount",t:Xn},19:{n:"SharedDoc",t:Gn},22:{n:"HyperlinksChanged",t:Gn},23:{n:"AppVersion",t:Xn,p:"version"},24:{n:"DigSig",t:Zn},26:{n:"ContentType",t:ei},27:{n:"ContentStatus",t:ei},28:{n:"Language",t:ei},29:{n:"Version",t:ei},255:{},2147483648:{n:"Locale",t:Kn},2147483651:{n:"Behavior",t:Kn},1919054434:{}};var ni={1:{n:"CodePage",t:$n},2:{n:"Title",t:ei},3:{n:"Subject",t:ei},4:{n:"Author",t:ei},5:{n:"Keywords",t:ei},6:{n:"Comments",t:ei},7:{n:"Template",t:ei},8:{n:"LastAuthor",t:ei},9:{n:"RevNumber",t:ei},10:{n:"EditTime",t:Yn},11:{n:"LastPrinted",t:Yn},12:{n:"CreatedDate",t:Yn},13:{n:"ModifiedDate",t:Yn},14:{n:"PageCount",t:Xn},15:{n:"WordCount",t:Xn},16:{n:"CharCount",t:Xn},17:{n:"Thumbnail",t:Jn},18:{n:"Application",t:ei},19:{n:"DocSecurity",t:Xn},255:{},2147483648:{n:"Locale",t:Kn},2147483651:{n:"Behavior",t:Kn},1919054434:{}};var ii={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"};var si=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function fi(e){return e.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var li=fi([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);var oi=Ar(li);var ci={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var hi={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255};var ui=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];var di={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};var vi={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function pi(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function mi(e){var r=pi();if(!e||!e.match)return r;var t={};(e.match(ft)||[]).forEach(function(e){var a=ct(e);switch(a[0].replace(lt,"<")){case"0?r.calcchains[0]:"";r.sst=r.strs.length>0?r.strs[0]:"";r.style=r.styles.length>0?r.styles[0]:"";r.defaults=t;delete r.calcchains;return r}function gi(e,r,t){var a=or(di);var n=[],i;if(!t){n[n.length]=at;n[n.length]=Bt("Types",null,{xmlns:$t.CT,"xmlns:xsd":$t.xsd,"xmlns:xsi":$t.xsi});n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(e){return Bt("Default",null,{Extension:e[0],ContentType:e[1]})}))}var s=function(t){if(e[t]&&e[t].length>0){i=e[t][0];n[n.length]=Bt("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:vi[t][r.bookType]||vi[t]["xlsx"]})}};var f=function(t){(e[t]||[]).forEach(function(e){n[n.length]=Bt("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:vi[t][r.bookType]||vi[t]["xlsx"]})})};var l=function(r){(e[r]||[]).forEach(function(e){n[n.length]=Bt("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:a[r][0]})})};s("workbooks");f("sheets");f("charts");l("themes");["strs","styles"].forEach(s);["coreprops","extprops","custprops"].forEach(l);l("vba");l("comments");l("threadedcomments");l("drawings");f("metadata");l("people");if(!t&&n.length>2){n[n.length]="";n[1]=n[1].replace("/>",">")}return n.join("")}var bi={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function wi(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function ki(e,r){var t={"!id":{}};if(!e)return t;if(r.charAt(0)!=="/"){ -r="/"+r}var a={};(e.match(ft)||[]).forEach(function(e){var n=ct(e);if(n[0]==="2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}function Ti(e,r,t,a,n,i){if(!n)n={};if(!e["!id"])e["!id"]={};if(!e["!idx"])e["!idx"]=1;if(r<0)for(r=e["!idx"];e["!id"]["rId"+r];++r){}e["!idx"]=r+1;n.Id="rId"+r;n.Type=a;n.Target=t;if(i)n.TargetMode=i;else if([bi.HLINK,bi.XPATH,bi.XMISS].indexOf(n.Type)>-1)n.TargetMode="External";if(e["!id"][n.Id])throw new Error("Cannot rewrite rId "+r);e["!id"][n.Id]=n;e[("/"+n.Target).replace("//","/")]=n;return r}var yi="application/vnd.oasis.opendocument.spreadsheet";function Ei(e,r){var t=Ht(e);var a;var n;while(a=Vt.exec(t))switch(a[3]){case"manifest":break;case"file-entry":n=ct(a[0],false);if(n.path=="/"&&n.type!==yi)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":;case"algorithm":;case"start-key-generation":;case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(r&&r.WTF)throw a;}}function Ci(e){var r=[at];r.push('\n');r.push(' \n');for(var t=0;t\n');r.push("");return r.join("")}function _i(e,r,t){return[' \n',' \n'," \n"].join("")}function Si(e,r){return[' \n',' \n'," \n"].join("")}function xi(e){var r=[at];r.push('\n');for(var t=0;t!=e.length;++t){r.push(_i(e[t][0],e[t][1]));r.push(Si("",e[t][0]))}r.push(_i("","Document","pkg"));r.push("");return r.join("")}function Oi(r,t){return'SheetJS '+e.version+""}var Ii=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Ri(e){var r={};e=It(e);for(var t=0;t0)r[a[1]]=pt(n[1]);if(a[2]==="date"&&r[a[1]])r[a[1]]=wr(r[a[1]])}return r}function Ni(e,r,t,a,n){if(n[e]!=null||r==null||r==="")return;n[e]=r;r=bt(r);a[a.length]=t?Bt(e,r,t):Mt(e,r)}function Fi(e,r){var t=r||{};var a=[at,Bt("cp:coreProperties",null,{"xmlns:cp":$t.CORE_PROPS,"xmlns:dc":$t.dc,"xmlns:dcterms":$t.dcterms,"xmlns:dcmitype":$t.dcmitype,"xmlns:xsi":$t.xsi})],n={};if(!e&&!t.Props)return a.join("");if(e){if(e.CreatedDate!=null)Ni("dcterms:created",typeof e.CreatedDate==="string"?e.CreatedDate:Wt(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n);if(e.ModifiedDate!=null)Ni("dcterms:modified",typeof e.ModifiedDate==="string"?e.ModifiedDate:Wt(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n)}for(var i=0;i!=Ii.length;++i){var s=Ii[i];var f=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;if(f===true)f="1";else if(f===false)f="0";else if(typeof f=="number")f=String(f);if(f!=null)Ni(s[0],f,null,a,n)}if(a.length>2){a[a.length]="";a[1]=a[1].replace("/>",">")}return a.join("")}var Di=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];var Pi=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Li(e,r,t,a){var n=[];if(typeof e=="string")n=Pt(e,a);else for(var i=0;i0)for(var o=0;o!==n.length;o+=2){l=+n[o+1].v;switch(n[o].v){case"Worksheets":;case"工作表":;case"Листы":;case"أوراق العمل":;case"ワークシート":;case"גליונות עבודה":;case"Arbeitsblätter":;case"Çalışma Sayfaları":;case"Feuilles de calcul":;case"Fogli di lavoro":;case"Folhas de cálculo":;case"Planilhas":;case"Regneark":;case"Hojas de cálculo":;case"Werkbladen":t.Worksheets=l;t.SheetNames=s.slice(f,f+l);break;case"Named Ranges":;case"Rangos con nombre":;case"名前付き一覧":;case"Benannte Bereiche":;case"Navngivne områder":t.NamedRanges=l;t.DefinedNames=s.slice(f,f+l);break;case"Charts":;case"Diagramme":t.Chartsheets=l;t.ChartNames=s.slice(f,f+l);break;}f+=l}}function Mi(e,r,t){var a={};if(!r)r={};e=It(e);Di.forEach(function(t){var n=(Wr(e,t[0])||[])[1];switch(t[2]){case"string":if(n)r[t[1]]=pt(n);break;case"bool":r[t[1]]=n==="true";break;case"raw":var i=Br(e,t[0]);if(i&&i.length>0)a[t[1]]=i[1];break;}});if(a.HeadingPairs&&a.TitlesOfParts)Li(a.HeadingPairs,a.TitlesOfParts,r,t);return r}function Ui(e){var r=[],t=Bt;if(!e)e={};e.Application="SheetJS";r[r.length]=at;r[r.length]=Bt("Properties",null,{xmlns:$t.EXT_PROPS,"xmlns:vt":$t.vt});Di.forEach(function(a){if(e[a[1]]===undefined)return;var n;switch(a[2]){case"string":n=bt(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break;}if(n!==undefined)r[r.length]=t(a[0],n)});r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","Worksheets")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"}));r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(e){return""+bt(e)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}var Bi=/<[^<>]+>[^<]*/g;function Wi(e,r){var t={},a="";var n=e.match(Bi);if(n)for(var i=0;i!=n.length;++i){var s=n[i],f=ct(s);switch(ut(f[0])){case"":a=null;break;default:if(s.indexOf("");var o=l[0].slice(4),c=l[1];switch(o){case"lpstr":;case"bstr":;case"lpwstr":t[a]=pt(c);break;case"bool":t[a]=Ct(c);break;case"i1":;case"i2":;case"i4":;case"i8":;case"int":;case"uint":t[a]=parseInt(c,10);break;case"r4":;case"r8":;case"decimal":t[a]=parseFloat(c);break;case"filetime":;case"date":t[a]=wr(c);break;case"cy":;case"error":t[a]=pt(c);break;default:if(o.slice(-1)=="/")break;if(r.WTF&&typeof console!=="undefined")console.warn("Unexpected",s,o,l);}}else if(s.slice(0,2)==="2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}var Hi={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};var Vi;function $i(e,r,t){if(!Vi)Vi=fr(Hi);r=Vi[r]||r;e[r]=t}function Xi(e,r){var t=[];ir(Hi).map(function(e){for(var r=0;r'+n.join("")+""}function ji(e){var r=e._R(4),t=e._R(4);return new Date((t/1e7*Math.pow(2,32)+r/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function Ki(e){var r=typeof e=="string"?new Date(Date.parse(e)):e;var t=r.getTime()/1e3+11644473600;var a=t%Math.pow(2,32),n=(t-a)/Math.pow(2,32);a*=1e7;n*=1e7;var i=a/Math.pow(2,32)|0;if(i>0){a=a%Math.pow(2,32);n+=i}var s=Ra(8);s._W(4,a);s._W(4,n);return s}function Yi(e,r,t){var a=e.l;var n=e._R(0,"lpstr-cp");if(t)while(e.l-a&3)++e.l;return n}function Zi(e,r,t){var a=e._R(0,"lpwstr");if(t)e.l+=4-(a.length+1&3)&3;return a}function Ji(e,r,t){if(r===31)return Zi(e);return Yi(e,r,t)}function qi(e,r,t){return Ji(e,r,t===false?0:4)}function Qi(e,r){if(!r)throw new Error("VtUnalignedString must have positive length");return Ji(e,r,0)}function es(e){var r=e._R(4);var t=[];for(var a=0;a!=r;++a){var n=e.l;t[a]=e._R(0,"lpwstr").replace(M,"");if(e.l-n&2)e.l+=2}return t}function rs(e){var r=e._R(4);var t=[];for(var a=0;a!=r;++a)t[a]=e._R(0,"lpstr-cp").replace(M,"");return t}function ts(e){var r=e.l;var t=fs(e,ri);if(e[e.l]==0&&e[e.l+1]==0&&e.l-r&2)e.l+=2;var a=fs(e,Xn);return[t,a]}function as(e){var r=e._R(4);var t=[];for(var a=0;a>2+1<<2;return a}function is(e){var r=e._R(4);var t=e.slice(e.l,e.l+r);e.l+=r;if((r&3)>0)e.l+=4-(r&3)&3;return t}function ss(e){var r={};r.Size=e._R(4);e.l+=r.Size+3-(r.Size-1)%4;return r}function fs(e,r,t){var a=e._R(2),n,i=t||{};e.l+=2;if(r!==jn)if(a!==r&&ti.indexOf(r)===-1&&!((r&65534)==4126&&(a&65534)==4126))throw new Error("Expected type "+r+" saw "+a);switch(r===jn?a:r){case 2:n=e._R(2,"i");if(!i.raw)e.l+=2;return n;case 3:n=e._R(4,"i");return n;case 11:return e._R(4)!==0;case 19:n=e._R(4);return n;case 30:e.l+=4;val=qi(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case 31:e.l+=4;val=qi(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case 64:return ji(e);case 65:return is(e);case 71:return ss(e);case 80:return qi(e,a,!i.raw).replace(M,"");case 81:return Qi(e,a).replace(M,"");case 4108:return as(e);case 4126:;case 4127:return a==4127?es(e):rs(e);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a);}}function ls(e,r){var t=Ra(4),a=Ra(4);t._W(4,e==80?31:e);switch(e){case 3:a._W(-4,r);break;case 5:a=Ra(8);a._W(8,r,"f");break;case 11:a._W(4,r?1:0);break;case 64:a=Ki(r);break;case 31:;case 80:a=Ra(4+2*(r.length+1)+(r.length%2?0:2));a._W(4,r.length+1);a._W(0,r,"dbcs");while(a.l!=a.length)a._W(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r);}return P([t,a])}function os(e,r){var t=e.l;var a=e._R(4);var n=e._R(4);var i=[],s=0;var f=0;var o=-1,c={};for(s=0;s!=n;++s){var h=e._R(4);var u=e._R(4);i[s]=[h,u+t]}i.sort(function(e,r){return e[1]-r[1]});var d={};for(s=0;s!=n;++s){if(e.l!==i[s][1]){var v=true;if(s>0&&r)switch(r[i[s-1][0]].t){case 2:if(e.l+2===i[s][1]){e.l+=2;v=false}break;case 80:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;case 4108:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;}if((!r||s==0)&&e.l<=i[s][1]){v=false;e.l=i[s][1]}if(v)throw new Error("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(r){if(i[s][0]==0&&i.length>s+1&&i[s][1]==i[s+1][1])continue;var p=r[i[s][0]];d[p.n]=fs(e,p.t,{raw:true});if(p.p==="version")d[p.n]=String(d[p.n]>>16)+"."+("0000"+String(d[p.n]&65535)).slice(-4);if(p.n=="CodePage")switch(d[p.n]){case 0:d[p.n]=1252;case 874:;case 932:;case 936:;case 949:;case 950:;case 1250:;case 1251:;case 1253:;case 1254:;case 1255:;case 1256:;case 1257:;case 1258:;case 1e4:;case 1200:;case 1201:;case 1252:;case 65e3:;case-536:;case 65001:;case-535:l(f=d[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[p.n]);}}else{if(i[s][0]===1){f=d.CodePage=fs(e,$n);l(f);if(o!==-1){var m=e.l;e.l=i[o][1];c=ns(e,f);e.l=m}}else if(i[s][0]===0){if(f===0){o=s;e.l=i[s+1][1];continue}c=ns(e,f)}else{var g=c[i[s][0]];var b;switch(e[e.l]){case 65:e.l+=4;b=is(e);break;case 30:e.l+=4;b=qi(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case 31:e.l+=4;b=qi(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case 3:e.l+=4;b=e._R(4,"i");break;case 19:e.l+=4;b=e._R(4);break;case 5:e.l+=4;b=e._R(8,"f");break;case 11:e.l+=4;b=bs(e,4);break;case 64:e.l+=4;b=wr(ji(e));break;default:throw new Error("unparsed value: "+e[e.l]);}d[g]=b}}}e.l=t+a;return d}var cs=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function hs(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break;}return-1}function us(e,r,t){var a=Ra(8),n=[],i=[];var s=8,f=0;var l=Ra(8),o=Ra(8);l._W(4,2);l._W(4,1200);o._W(4,1);i.push(l);n.push(o);s+=8+l.length;if(!r){o=Ra(8);o._W(4,0);n.unshift(o);var c=[Ra(4)];c[0]._W(4,e.length);for(f=0;f-1||Pi.indexOf(e[f][0])>-1)continue;if(e[f][1]==null)continue;var u=e[f][1],d=0;if(r){d=+r[e[f][0]];var v=t[d];if(v.p=="version"&&typeof u=="string"){var p=u.split(".");u=(+p[0]<<16)+(+p[1]||0)}l=ls(v.t,u)}else{var m=hs(u);if(m==-1){m=31;u=String(u)}l=ls(m,u)}i.push(l);o=Ra(8);o._W(4,!r?2+f:d);n.push(o);s+=8+l.length}var g=8*(i.length+1);for(f=0;f=12?2:1);var i="sbcs-cont";var s=r;if(a&&a.biff>=8)r=1200;if(!a||a.biff==8){var f=e._R(1);if(f){i="dbcs-cont"}}else if(a.biff==12){i="wstr"}if(a.biff>=2&&a.biff<=5)i="cpstr";var l=n?e._R(n,i):"";r=s;return l}function _s(e){var t=r;r=1200;var a=e._R(2),n=e._R(1);var i=n&4,s=n&8;var f=1+(n&1);var l=0,o;var c={};if(s)l=e._R(2);if(i)o=e._R(4);var h=f==2?"dbcs-cont":"sbcs-cont";var u=a===0?"":e._R(a,h);if(s)e.l+=4*l;if(i)e.l+=o;c.t=u;if(!s){c.raw=""+c.t+"";c.r=c.t}r=t;return c}function Ss(e){var r=e.t||"",t=1;var a=Ra(3+(t>1?2:0));a._W(2,r.length);a._W(1,(t>1?8:0)|1);if(t>1)a._W(2,t);var n=Ra(2*r.length);n._W(2*r.length,r,"utf16le");var i=[a,n];return P(i)}function xs(e,r,t){var a;if(t){if(t.biff>=2&&t.biff<=5)return e._R(r,"cpstr");if(t.biff>=12)return e._R(r,"dbcs-cont")}var n=e._R(1);if(n===0){a=e._R(r,"sbcs-cont")}else{a=e._R(r,"dbcs-cont")}return a}function Os(e,r,t){var a=e._R(t&&t.biff==2?1:2);if(a===0){e.l++;return""}return xs(e,a,t)}function Is(e,r,t){if(t.biff>5)return Os(e,r,t);var a=e._R(1);if(a===0){e.l++;return""}return e._R(a,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Rs(e,r,t){if(!t)t=Ra(3+2*e.length);t._W(2,e.length);t._W(1,1);t._W(31,e,"utf16le");return t}function Ns(e){var r=e._R(1);e.l++;var t=e._R(2);e.l+=2;return[r,t]}function Fs(e){var r=e._R(4),t=e.l;var a=false;if(r>24){e.l+=r-24;if(e._R(16)==="795881f43b1d7f48af2c825dc4852763")a=true;e.l=t}var n=e._R((a?r-24:r)>>1,"utf16le").replace(M,"");if(a)e.l+=24;return n}function Ds(e){var r=e._R(2);var t="";while(r-- >0)t+="../";var a=e._R(0,"lpstr-ansi");e.l+=2;if(e._R(2)!=57005)throw new Error("Bad FileMoniker");var n=e._R(4);if(n===0)return t+a.replace(/\\/g,"/");var i=e._R(4);if(e._R(2)!=3)throw new Error("Bad FileMoniker");var s=e._R(i>>1,"utf16le").replace(M,"");return t+s}function Ps(e,r){var t=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return Fs(e,r);case"0303000000000000c000000000000046":return Ds(e,r);default:throw new Error("Unsupported Moniker "+t);}}function Ls(e){var r=e._R(4);var t=r>0?e._R(r,"utf16le").replace(M,""):"";return t}function Ms(e,r){if(!r)r=Ra(6+e.length*2);r._W(4,1+e.length);for(var t=0;t-1?31:23;switch(a.charAt(0)){case"#":i=28;break;case".":i&=~2;break;}r._W(4,2);r._W(4,i);var s=[8,6815827,6619237,4849780,83];for(t=0;t-1?a.slice(0,n):a;r._W(4,2*(f.length+1));for(t=0;t-1?a.slice(n+1):"",r)}else{s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" ");for(t=0;t8?4:2;var n=e._R(a),i=e._R(a,"i"),s=e._R(a,"i");return[n,i,s]}function js(e){var r=e._R(2);var t=On(e);return[r,t]}function Ks(e,r,t){e.l+=4;r-=4;var a=e.l+r;var n=Cs(e,r,t);var i=e._R(2);a-=e.l;if(i!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;return n}function Ys(e){var r=e._R(2);var t=e._R(2);var a=e._R(2);var n=e._R(2);return{s:{c:a,r:r},e:{c:n,r:t}}}function Zs(e,r){if(!r)r=Ra(8);r._W(2,e.s.r);r._W(2,e.e.r);r._W(2,e.s.c);r._W(2,e.e.c);return r}function Js(e){var r=e._R(2);var t=e._R(2);var a=e._R(1);var n=e._R(1);return{s:{c:a,r:r},e:{c:n,r:t}}}var qs=Js;function Qs(e){e.l+=4;var r=e._R(2);var t=e._R(2);var a=e._R(2);e.l+=12;return[t,r,a]}function ef(e){var r={};e.l+=4;e.l+=16;r.fSharedNote=e._R(2);e.l+=4;return r}function rf(e){var r={};e.l+=4;e.cf=e._R(2);return r}function tf(e){e.l+=2;e.l+=e._R(2)}var af={0:tf,4:tf,5:tf,6:tf,7:rf,8:tf,9:tf,10:tf,11:tf,12:tf,13:ef,14:tf,15:tf,16:tf,17:tf,18:tf,19:tf,20:tf,21:Qs};function nf(e,r){var t=e.l+r;var a=[];while(e.l=2){t.dt=e._R(2);e.l-=2}switch(t.BIFFVer){case 1536:;case 1280:;case 1024:;case 768:;case 512:;case 2:;case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);return t}function ff(e,r,t){var a=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4":a=4;n=6;break;case"biff3":a=3;n=6;break;case"biff2":a=2;n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version");}var i=Ra(n);i._W(2,a);i._W(2,r);if(n>4)i._W(2,29282);if(n>6)i._W(2,1997);if(n>8){i._W(2,49161);i._W(2,1);i._W(2,1798);i._W(2,0)}return i}function lf(e,r){if(r===0)return 1200;if(e._R(2)!==1200){}return 1200}function of(e,r,t){if(t.enc){e.l+=r;return""}var a=e.l;var n=Is(e,0,t);e._R(r+a-e.l);return n}function cf(e,r){var t=!r||r.biff==8;var a=Ra(t?112:54);a._W(r.biff==8?2:1,7);if(t)a._W(1,0);a._W(4,859007059);a._W(4,5458548|(t?0:536870912));while(a.l=8?2:1;var a=Ra(8+t*e.name.length);a._W(4,e.pos);a._W(1,e.hs||0);a._W(1,e.dt);a._W(1,e.name.length);if(r.biff>=8)a._W(1,1);a._W(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var n=a.slice(0,a.l);n.l=a.l;return n}function vf(e,r){var t=e.l+r;var a=e._R(4);var n=e._R(4);var i=[];for(var s=0;s!=n&&e.l>15);n&=32767}var i={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}function Af(e){var r=e._R(2),t=e._R(2),a=e._R(2),n=e._R(2);var i=e._R(2),s=e._R(2),f=e._R(2);var l=e._R(2),o=e._R(2);return{Pos:[r,t],Dim:[a,n],Flags:i,CurTab:s,FirstTab:f,Selected:l,TabRatio:o}}function Tf(){var e=Ra(18);e._W(2,0);e._W(2,0);e._W(2,29280);e._W(2,17600);e._W(2,56);e._W(2,0);e._W(2,0);e._W(2,1);e._W(2,500);return e}function yf(e,r,t){if(t&&t.biff>=2&&t.biff<5)return{};var a=e._R(2);return{RTL:a&64}}function Ef(e){var r=Ra(18),t=1718;if(e&&e.RTL)t|=64;r._W(2,t);r._W(4,0);r._W(4,64);r._W(4,0);r._W(4,0);return r}function Cf(){}function _f(e,r,t){var a={dyHeight:e._R(2),fl:e._R(2)};switch(t&&t.biff||8){case 2:break;case 3:;case 4:e.l+=2;break;default:e.l+=10;break;}a.name=Cs(e,0,t);return a}function Sf(e,r){var t=e.name||"Arial";var a=r&&r.biff==5,n=a?15+t.length:16+2*t.length;var i=Ra(n);i._W(2,(e.sz||12)*20);i._W(4,0);i._W(2,400);i._W(4,0);i._W(2,0);i._W(1,t.length);if(!a)i._W(1,1);i._W((a?1:2)*t.length,t,a?"sbcs":"utf16le");return i}function xf(e,r,t){var a=Hs(e,r,t);a.isst=e._R(4);return a}function Of(e,r,t,a){var n=Ra(10);Vs(e,r,a,n);n._W(4,t);return n}function If(e,r,t){if(t.biffguess&&t.biff==2)t.biff=5;var a=e.l+r;var n=Hs(e,r,t);var i=Os(e,a-e.l,t);n.val=i;return n}function Rf(e,r,t,a,n){var i=!n||n.biff==8;var s=Ra(6+2+ +i+(1+i)*t.length);Vs(e,r,a,s);s._W(2,t.length);if(i)s._W(1,1);s._W((1+i)*t.length,t,i?"utf16le":"sbcs");return s}function Nf(e,r,t){var a=e._R(2);var n=Is(e,0,t);return[a,n]}function Ff(e,r,t,a){var n=t&&t.biff==5;if(!a)a=Ra(n?3+r.length:5+2*r.length);a._W(2,e);a._W(n?1:2,r.length);if(!n)a._W(1,1);a._W((n?1:2)*r.length,r,n?"sbcs":"utf16le");var i=a.length>a.l?a.slice(0,a.l):a;if(i.l==null)i.l=i.length;return i}var Df=Is;function Pf(e){var r=Ra(1+e.length);r._W(1,e.length);r._W(e.length,e,"sbcs");return r}function Lf(e){var r=Ra(3+e.length);r.l+=2;r._W(1,e.length);r._W(e.length,e,"sbcs");return r}function Mf(e,r,t){var a=e.l+r;var n=t.biff==8||!t.biff?4:2;var i=e._R(n),s=e._R(n);var f=e._R(2),l=e._R(2);e.l=a;return{s:{r:i,c:f},e:{r:s,c:l}}}function Uf(e,r){var t=r.biff==8||!r.biff?4:2;var a=Ra(2*t+6);a._W(t,e.s.r);a._W(t,e.e.r+1);a._W(2,e.s.c);a._W(2,e.e.c+1);a._W(2,0);return a}function Bf(e){var r=e._R(2),t=e._R(2);var a=js(e);return{r:r,c:t,ixfe:a[0],rknum:a[1]}}function Wf(e,r){var t=e.l+r-2;var a=e._R(2),n=e._R(2);var i=[];while(e.l>26];if(!a.cellStyles)return n;n.alc=i&7;n.fWrap=i>>3&1;n.alcV=i>>4&7;n.fJustLast=i>>7&1;n.trot=i>>8&255;n.cIndent=i>>16&15;n.fShrinkToFit=i>>20&1;n.iReadOrder=i>>22&2;n.fAtrNum=i>>26&1;n.fAtrFnt=i>>27&1;n.fAtrAlc=i>>28&1;n.fAtrBdr=i>>29&1;n.fAtrPat=i>>30&1;n.fAtrProt=i>>31&1;n.dgLeft=s&15;n.dgRight=s>>4&15;n.dgTop=s>>8&15;n.dgBottom=s>>12&15;n.icvLeft=s>>16&127;n.icvRight=s>>23&127;n.grbitDiag=s>>30&3;n.icvTop=f&127;n.icvBottom=f>>7&127;n.icvDiag=f>>14&127;n.dgDiag=f>>21&15;n.icvFore=l&127;n.icvBack=l>>7&127;n.fsxButton=l>>14&1;return n}function Vf(e,r,t){var a={};a.ifnt=e._R(2);a.numFmtId=e._R(2);a.flags=e._R(2);a.fStyle=a.flags>>2&1;r-=6;a.data=Hf(e,r,a.fStyle,t);return a}function $f(e,r,t,a){var n=t&&t.biff==5;if(!a)a=Ra(n?16:20);a._W(2,0);if(e.style){a._W(2,e.numFmtId||0);a._W(2,65524)}else{a._W(2,e.numFmtId||0);a._W(2,r<<4)}var i=0;if(e.numFmtId>0&&n)i|=1024;a._W(4,i);a._W(4,0);if(!n)a._W(4,0);a._W(2,0);return a}function Xf(e){var r={};r.ifnt=e._R(1);e.l++;r.flags=e._R(1);r.numFmtId=r.flags&63;r.flags>>=6;r.fStyle=0;r.data={};return r}function Gf(e){var r=Ra(4);r.l+=2;r._W(1,e.numFmtId);r.l++;return r}function jf(e){var r=Ra(12);r.l++;r._W(1,e.numFmtId);r.l+=10;return r}var Kf=jf;function Yf(e){var r={};r.ifnt=e._R(1);r.numFmtId=e._R(1);r.flags=e._R(2);r.fStyle=r.flags>>2&1;r.data={}; -return r}function Zf(e){var r={};r.ifnt=e._R(1);r.numFmtId=e._R(1);r.flags=e._R(2);r.fStyle=r.flags>>2&1;r.data={};return r}function Jf(e){e.l+=4;var r=[e._R(2),e._R(2)];if(r[0]!==0)r[0]--;if(r[1]!==0)r[1]--;if(r[0]>7||r[1]>7)throw new Error("Bad Gutters: "+r.join("|"));return r}function qf(e){var r=Ra(8);r._W(4,0);r._W(2,e[0]?e[0]+1:0);r._W(2,e[1]?e[1]+1:0);return r}function Qf(e,r,t){var a=Hs(e,6,t);var n=ys(e,2);a.val=n;a.t=n===true||n===false?"b":"e";return a}function el(e,r,t,a,n,i){var s=Ra(8);Vs(e,r,a,s);Es(t,i,s);return s}function rl(e,r,t){if(t.biffguess&&t.biff==2)t.biff=5;var a=Hs(e,6,t);var n=Pn(e,8);a.val=n;return a}function tl(e,r,t,a){var n=Ra(14);Vs(e,r,a,n);Ln(t,n);return n}var al=Xs;function nl(e,r,t){var a=e.l+r;var n=e._R(2);var i=e._R(2);t.sbcch=i;if(i==1025||i==14849)return[i,n];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);var s=xs(e,i);var f=[];while(a>e.l)f.push(Os(e));return[i,n,s,f]}function il(e,r,t){var a=e._R(2);var n;var i={fBuiltIn:a&1,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};if(t.sbcch===14849)n=Ks(e,r-2,t);i.body=n||e._R(r-2);if(typeof n==="string")i.Name=n;return i}function sl(e,r,t){var a=e.l+r;var n=e._R(2);var i=e._R(1);var s=e._R(1);var f=e._R(t&&t.biff==2?1:2);var l=0;if(!t||t.biff>=5){if(t.biff!=5)e.l+=2;l=e._R(2);if(t.biff==5)e.l+=2;e.l+=4}var o=xs(e,s,t);if(n&32)o=ui[o.charCodeAt(0)];var c=a-e.l;if(t&&t.biff==2)--c;var h=a==e.l||f===0||!(c>0)?[]:Wd(e,c,t,f);return{chKey:i,Name:o,itab:l,rgce:h}}function fl(e,r,t){if(t.biff<8)return ll(e,r,t);if(!(t.biff>8)&&r==e[e.l]+(e[e.l+1]==3?1:0)+1)return ll(e,r,t);var a=[],n=e.l+r,i=e._R(t.biff>8?4:2);while(i--!==0)a.push(Gs(e,t.biff>8?12:6,t));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function ll(e,r,t){if(e[e.l+1]==3)e[e.l]++;var a=Cs(e,r,t);return a.charCodeAt(0)==3?a.slice(1):a}function ol(e,r,t){if(t.biff<8){e.l+=r;return}var a=e._R(2);var n=e._R(2);var i=xs(e,a,t);var s=xs(e,n,t);return[i,s]}function cl(e,r,t){var a=Js(e,6);e.l++;var n=e._R(1);r-=8;return[zd(e,r,t),n,a]}function hl(e,r,t){var a=qs(e,6);switch(t.biff){case 2:e.l++;r-=7;break;case 3:;case 4:e.l+=2;r-=8;break;default:e.l+=6;r-=12;}return[a,Ud(e,r,t,a)]}function ul(e){var r=e._R(4)!==0;var t=e._R(4)!==0;var a=e._R(4);return[r,t,a]}function dl(e,r,t){var a=e._R(2),n=e._R(2);var i=e._R(2),s=e._R(2);var f=Is(e,0,t);return[{r:a,c:n},f,s,i]}function vl(e,r,t){if(t&&t.biff<8){var a=e._R(2),n=e._R(2);if(a==65535||a==-1)return;var i=e._R(2);var s=e._R(Math.min(i,2048),"cpstr");return[{r:a,c:n},s]}return dl(e,r,t)}function pl(e,r,t,a){var n=Ra(6+(a||e.length));n._W(2,r);n._W(2,t);n._W(2,a||e.length);n._W(e.length,e,"sbcs");return n}function ml(e,r){var t=[];var a=e._R(2);while(a--)t.push(Ys(e,r));return t}function gl(e){var r=Ra(2+e.length*8);r._W(2,e.length);for(var t=0;t=(c?f:2*f))break}if(n.length!==f&&n.length!==f*2){throw new Error("cchText: "+f+" != "+n.length)}e.l=a+r;return{t:n}}catch(u){e.l=a+r;return{t:n}}}function Tl(e,r){var t=Ys(e,8);e.l+=16;var a=Us(e,r-24);return[t,a]}function yl(e){var r=Ra(24);var t=Ka(e[0]);r._W(2,t.r);r._W(2,t.r);r._W(2,t.c);r._W(2,t.c);var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(var n=0;n<16;++n)r._W(1,parseInt(a[n],16));return P([r,Bs(e[1])])}function El(e,r){e._R(2);var t=Ys(e,8);var a=e._R((r-10)/2,"dbcs-cont");a=a.replace(M,"");return[t,a]}function Cl(e){var r=e[1].Tooltip;var t=Ra(10+2*(r.length+1));t._W(2,2048);var a=Ka(e[0]);t._W(2,a.r);t._W(2,a.r);t._W(2,a.c);t._W(2,a.c);for(var n=0;n0)t.push(zs(e,8));return t}function Ol(e){var r=e._R(2);var t=[];while(r-- >0)t.push(zs(e,8));return t}function Il(e){e.l+=2;var r={cxfs:0,crc:0};r.cxfs=e._R(2);r.crc=e._R(4);return r}function Rl(e,r,t){if(!t.cellStyles)return Ia(e,r);var a=t&&t.biff>=12?4:2;var n=e._R(a);var i=e._R(a);var s=e._R(a);var f=e._R(a);var l=e._R(2);if(a==2)e.l+=2;var o={s:n,e:i,w:s,ixfe:f,flags:l};if(t.biff>=5||!t.biff)o.level=l>>8&7;return o}function Nl(e,r){var t=Ra(12);t._W(2,r);t._W(2,r);t._W(2,e.width*256);t._W(2,0);var a=0;if(e.hidden)a|=1;t._W(1,a);a=e.level||0;t._W(1,a);t._W(2,0);return t}function Fl(e,r){var t={};if(r<32)return t;e.l+=16;t.header=Pn(e,8);t.footer=Pn(e,8);e.l+=2;return t}function Dl(e,r,t){var a={area:false};if(t.biff!=5){e.l+=r;return a}var n=e._R(1);e.l+=3;if(n&16)a.area=true;return a}function Pl(e){var r=Ra(2*e);for(var t=0;t1048576)c=1e6;if(s!=2)h=i._R(2);var u=i._R(2);var d=t.codepage||1252;if(s!=2){i.l+=16;i._R(1);if(i[i.l]!==0)d=e[i[i.l]];i.l+=1;i.l+=2}if(o)i.l+=36;var v=[],p={};var m=Math.min(i.length,s==2?521:h-10-(l?264:0));var g=o?32:11;while(i.l0){if(i[i.l]===42){i.l+=u;continue}++i.l;n[++b]=[];w=0;for(w=0;w!=v.length;++w){var k=i.slice(i.l,i.l+v[w].len);i.l+=v[w].len;Oa(k,0);var A=typeof a!=="undefined"?a.utils.decode(d,k):N(k);switch(v[w].type){case"C":if(A.trim().length)n[b][w]=A.replace(/([^\s])\s+$/,"$1");break;case"D":if(A.length===8){n[b][w]=new Date(Date.UTC(+A.slice(0,4),+A.slice(4,6)-1,+A.slice(6,8),0,0,0,0));if(!(t&&t.UTC)){n[b][w]=Fr(n[b][w])}}else n[b][w]=A;break;case"F":n[b][w]=parseFloat(A.trim());break;case"+":;case"I":n[b][w]=o?k._R(-4,"i")^2147483648:k._R(4,"i");break;case"L":switch(A.trim().toUpperCase()){case"Y":;case"T":n[b][w]=true;break;case"N":;case"F":n[b][w]=false;break;case"":;case"\0":;case"?":break;default:throw new Error("DBF Unrecognized L:|"+A+"|");}break;case"M":if(!f)throw new Error("DBF Unexpected MEMO for type "+s.toString(16));n[b][w]="##MEMO##"+(o?parseInt(A.trim(),10):k._R(4));break;case"N":A=A.replace(/\u0000/g,"").trim();if(A&&A!=".")n[b][w]=+A||0;break;case"@":n[b][w]=new Date(k._R(-8,"f")-621356832e5);break;case"T":{var T=k._R(4),y=k._R(4);if(T==0&&y==0)break;n[b][w]=new Date((T-2440588)*864e5+y);if(!(t&&t.UTC))n[b][w]=Fr(n[b][w])}break;case"Y":n[b][w]=k._R(4,"i")/1e4+k._R(4,"i")/1e4*Math.pow(2,32);break;case"O":n[b][w]=-k._R(-8,"f");break;case"B":if(l&&v[w].len==8){n[b][w]=k._R(8,"f");break};case"G":;case"P":k.l+=v[w].len;break;case"0":if(v[w].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+v[w].type);}}}if(s!=2)if(i.l=0)l(+f.codepage);if(f.type=="string")throw new Error("Cannot write DBF to JS string");var h=Fa();var u=Dk(i,{header:1,raw:true,cellDates:true});var d=u[0],v=u.slice(1),p=i["!cols"]||[];var m=0,g=0,b=0,w=1;for(m=0;m250)_=250;C=((p[m]||{}).DBF||{}).type;if(C=="C"){if(p[m].DBF.len>_)_=p[m].DBF.len}if(E=="B"&&C=="N"){E="N";y[m]=p[m].DBF.dec;_=p[m].DBF.len}T[m]=E=="C"||C=="N"?_:o[E]||0;w+=T[m];A[m]=E}var x=h.next(32);x._W(4,318902576);x._W(4,v.length);x._W(2,296+32*b);x._W(2,w);for(m=0;m<4;++m)x._W(4,0);var O=+n[r]||3;x._W(4,0|O<<8);if(e[O]!=+f.codepage){if(f.codepage)console.error("DBF Unsupported codepage "+r+", using 1252");r=1252}for(m=0,g=0;mT[g])D=D.slice(0,T[g]);for(b=0;b":190,"?":191,"{":223};var r=new RegExp("N("+ir(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1").replace("{","\\{")+"|\\|)","gm");try{r=new RegExp("N("+ir(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm")}catch(t){}var n=function(r,t){var a=e[t];return typeof a=="number"?m(a):a};var i=function(e,r,t){var a=r.charCodeAt(0)-32<<4|t.charCodeAt(0)-48;return a==59?e:m(a)};e["|"]=254;var s=function(e){return e.replace(/\n/g," :").replace(/\r/g," =")};function f(e,r){switch(r.type){case"base64":return o(E(e),r);case"binary":return o(e,r);case"buffer":return o(C&&Buffer.isBuffer(e)?e.toString("binary"):N(e),r);case"array":return o(kr(e),r);}throw new Error("Unrecognized type "+r.type)}function o(e,t){var s=e.split(/[\n\r]+/),f=-1,o=-1,c=0,h=0,u=[];var d=[];var v=null;var p={},m=[],g=[],b=[];var w=0,k;var A={Workbook:{WBProps:{},Names:[]}};if(+t.codepage>=0)l(+t.codepage);for(;c!==s.length;++c){w=0;var T=s[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(r,n);var y=T.replace(/;;/g,"\0").split(";").map(function(e){return e.replace(/\u0000/g,";")});var E=y[0],C;if(T.length>0)switch(E){case"ID":break;case"E":break;case"B":break;case"O":for(h=1;h=1&&_<=4)A.Workbook.WBProps.date1904=true}break;}break;case"W":break;case"P":switch(y[1].charAt(0)){case"P":d.push(T.slice(3).replace(/;;/g,";"));break;}break;case"NN":{var S={Sheet:0};for(h=1;h-1&&u[N][F];if(!M||!M[1])throw new Error("SYLK shared formula cannot find base");D=iu(M[1],{r:f-N,c:o-F})}if(D){if(!u[f][o])u[f][o]={t:"n",f:D};else u[f][o].f=D}if(L){if(!u[f][o])u[f][o]={t:"z"};u[f][o].c=[{a:"SheetJSYLK",t:L}]}break;case"F":var U=0;for(h=1;h0){m[f].hpt=w;m[f].hpx=dc(w)}else if(w===0)m[f].hidden=true;break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+T);}if(U<1)v=null;break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+T);}}if(m.length>0)p["!rows"]=m;if(g.length>0)p["!cols"]=g;g.forEach(function(e){oc(e)});if(t&&t.sheetRows)u=u.slice(0,t.sheetRows);return[u,p,A]}function c(e,r){var t=f(e,r);var a=t[0],n=t[1],i=t[2];var s=Ar(r);s.date1904=(((i||{}).Workbook||{}).WBProps||{}).date1904;var l=fn(a,s);ir(n).forEach(function(e){l[e]=n[e]});var o=an(l,r);ir(i).forEach(function(e){o[e]=i[e]});o.bookType="sylk";return o}function h(e,r,t,a,n,i){var s="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":s+=isFinite(e.v)?e.v||0:ci[isNaN(e.v)?36:7];if(e.f&&!e.F)s+=";E"+nu(e.f,{r:t,c:a});break;case"b":s+=e.v?"TRUE":"FALSE";break;case"e":s+=e.w||ci[e.v]||e.v;break;case"d":s+=dr(wr(e.v,i),i);break;case"s":s+='"'+(e.v==null?"":String(e.v)).replace(/"/g,"").replace(/;/g,";;")+'"';break;}return s}function u(e,r,t){var a="C;Y"+(r+1)+";X"+(t+1)+";A";a+=s(e.map(function(e){return e.t}).join(""));return a}function d(e,r){r.forEach(function(r,t){var a="F;W"+(t+1)+" "+(t+1)+" ";if(r.hidden)a+="0";else{if(typeof r.width=="number"&&!r.wpx)r.wpx=nc(r.width);if(typeof r.wpx=="number"&&!r.wch)r.wch=ic(r.wpx);if(typeof r.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}function v(e,r){r.forEach(function(r,t){var a="F;";if(r.hidden)a+="M0;";else if(r.hpt)a+="M"+20*r.hpt+";";else if(r.hpx)a+="M"+20*uc(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}function p(e,r,t){if(!r)r={};r._formats=["General"];var a=["ID;PSheetJS;N;E"],n=[];var i=en(e["!ref"]||"A1"),s;var f=e["!data"]!=null;var l="\r\n";var o=(((t||{}).Workbook||{}).WBProps||{}).date1904;var c="General";a.push("P;PGeneral");var p=i.s.r,m=i.s.c,g=[];if(e["!ref"])for(p=i.s.r;p<=i.e.r;++p){if(f&&!e["!data"][p])continue;g=[];for(m=i.s.c;m<=i.e.c;++m){s=f?e["!data"][p][m]:e[$a(m)+Wa(p)];if(!s||!s.c)continue;g.push(u(s.c,p,m))}if(g.length)n.push(g.join(l))}if(e["!ref"])for(p=i.s.r;p<=i.e.r;++p){if(f&&!e["!data"][p])continue;g=[];for(m=i.s.c;m<=i.e.c;++m){s=f?e["!data"][p][m]:e[$a(m)+Wa(p)];if(!s||s.v==null&&(!s.f||s.F))continue;if((s.z||(s.t=="d"?q[14]:"General"))!=c){var b=r._formats.indexOf(s.z);if(b==-1){r._formats.push(s.z);b=r._formats.length-1;a.push("P;P"+s.z.replace(/;/g,";;"))}g.push("F;P"+b+";Y"+(p+1)+";X"+(m+1))}g.push(h(s,e,p,m,r,o))}n.push(g.join(l))}a.push("F;P0;DG0G8;M255");if(e["!cols"])d(a,e["!cols"]);if(e["!rows"])v(a,e["!rows"]);if(e["!ref"])a.push("B;Y"+(i.e.r-i.s.r+1)+";X"+(i.e.c-i.s.c+1)+";D"+[i.s.c,i.s.r,i.e.c,i.e.r].join(" "));a.push("O;L;D;B"+(o?";V4":"")+";K47;G100 0.001");delete r._formats;return a.join(l)+l+n.join(l)+l+"E"+l}return{to_workbook:c,from_sheet:p}}();var eo=function(){function e(e,t){switch(t.type){case"base64":return r(E(e),t);case"binary":return r(e,t);case"buffer":return r(C&&Buffer.isBuffer(e)?e.toString("binary"):N(e),t);case"array":return r(kr(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;var f=t[i].trim().split(",");var l=f[0],o=f[1];++i;var c=t[i]||"";while((c.match(/["]/g)||[]).length&1&&i=0&&i[s].length===0)--s;var f=10,l=0;var o=0;for(;o<=s;++o){l=i[o].indexOf(" ");if(l==-1)l=i[o].length;else l++;f=Math.max(f,l)}for(o=0;o<=s;++o){n[o]=[];var c=0;e(i[o].slice(0,f).trim(),n,o,c,a);for(c=1;c<=(i[o].length-f)/10+1;++c)e(i[o].slice(f+(c-1)*10,f+c*10).trim(),n,o,c,a)}if(a.sheetRows)n=n.slice(0,a.sheetRows);return n}var t={44:",",9:"\t",59:";",124:"|"};var n={44:3,9:2,59:1,124:0};function i(e){var r={},a=false,i=0,s=0;for(;i0)g();n["!ref"]=Ja(s);return n}function f(e,t){if(!(t&&t.PRN))return s(e,t);if(t.FS)return s(e,t);if(e.slice(0,4)=="sep=")return s(e,t);if(e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0)return s(e,t);return fn(r(e,t),t)}function l(e,r){var t="",n=r.type=="string"?[0,0,0,0]:lk(e,r);switch(r.type){case"base64":t=E(e);break;case"binary":t=e;break;case"buffer":if(r.codepage==65001)t=e.toString("utf8");else if(r.codepage&&typeof a!=="undefined")t=a.utils.decode(r.codepage,e);else t=C&&Buffer.isBuffer(e)?e.toString("binary"):N(e);break;case"array":t=kr(e);break;case"string":t=e;break;default:throw new Error("Unrecognized type "+r.type);}if(n[0]==239&&n[1]==187&&n[2]==191)t=It(t.slice(3));else if(r.type!="string"&&r.type!="buffer"&&r.codepage==65001)t=It(t);else if(r.type=="binary"&&typeof a!=="undefined"&&r.codepage)t=a.utils.decode(r.codepage,a.utils.encode(28591,t));if(t.slice(0,19)=="socialcalc:version:")return ro.to_sheet(r.type=="string"?t:It(t),r);return f(t,r)}function o(e,r){return an(l(e,r),r)}function c(e){var r=[];if(!e["!ref"])return"";var t=en(e["!ref"]),a;var n=e["!data"]!=null;for(var i=t.s.r;i<=t.e.r;++i){var s=[];for(var f=t.s.c;f<=t.e.c;++f){var l=Ya({r:i,c:f});a=n?(e["!data"][i]||[])[f]:e[l];if(!a||a.v==null){s.push(" ");continue}var o=(a.w||(tn(a),a.w)||"").slice(0,10);while(o.length<10)o+=" ";s.push(o+(f===0?" ":""))}r.push(s.join(""))}return r.join("\n")}return{to_workbook:o,to_sheet:l,from_sheet:c}}();function ao(e,r){var t=r||{},a=!!t.WTF;t.WTF=true;try{var n=Ql.to_workbook(e,t);t.WTF=a;return n}catch(i){t.WTF=a;if(i.message.indexOf("SYLK bad record ID")==-1&&a)throw i;return to.to_workbook(e,r)}}var no=function(){function e(e,r,t){if(!e)return;Oa(e,e.l||0);var a=t.Enum||V;while(e.l=16&&r[14]==5&&r[15]===108)throw new Error("Unsupported Works 3 for Mac file")}}if(r[2]==2){n.Enum=V;e(r,function(e,r,a){switch(a){case 0:n.vers=e;if(e>=4096)n.qpro=true;break;case 255:n.vers=e;n.works=true;break;case 6:d=e;break;case 204:if(e)f=e;break;case 222:f=e;break;case 15:;case 51:if((!n.qpro&&!n.works||a==51)&&e[1].v.charCodeAt(0)<48)e[1].v=e[1].v.slice(1);if(n.works||n.works2)e[1].v=e[1].v.replace(/\r\n/g,"\n");case 13:;case 14:;case 16:if((e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=n.dateNF||t[(e[2]&15)-1]||q[14];if(n.cellDates){e[1].v=vr(e[1].v);e[1].t=typeof e[1].v=="number"?"n":"d"}}if(n.qpro){if(e[3]>l){i["!ref"]=Ja(d);o[s]=i;c.push(s);i={};if(n.dense)u=i["!data"]=[];d={s:{r:0,c:0},e:{r:0,c:0}};l=e[3];s=f||"Sheet"+(l+1);f=""}}var h=n.dense?(u[e[0].r]||[])[e[0].c]:i[Ya(e[0])];if(h){h.t=e[1].t;h.v=e[1].v;if(e[1].z!=null)h.z=e[1].z;if(e[1].f!=null)h.f=e[1].f;p=h;break}if(n.dense){if(!u[e[0].r])u[e[0].r]=[];u[e[0].r][e[0].c]=e[1]}else i[Ya(e[0])]=e[1];p=e[1];break;case 21509:n.works2=true;break;case 21506:{if(e==5281){p.z="hh:mm:ss";if(n.cellDates&&p.t=="n"){p.v=vr(p.v);p.t=typeof p.v=="number"?"n":"d"}}}break;}},n)}else if(r[2]==26||r[2]==14){n.Enum=$;if(r[2]==14){n.qpro=true;r.l=0}e(r,function(e,r,t){switch(t){case 204:s=e;break;case 22:if(e[1].v.charCodeAt(0)<48)e[1].v=e[1].v.slice(1);e[1].v=e[1].v.replace(/\x0F./g,function(e){return String.fromCharCode(e.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:;case 24:;case 25:;case 37:;case 39:;case 40:if(e[3]>l){i["!ref"]=Ja(d);o[s]=i;c.push(s);i={};if(n.dense)u=i["!data"]=[];d={s:{r:0,c:0},e:{r:0,c:0}};l=e[3];s="Sheet"+(l+1)}if(v>0&&e[0].r>=v)break;if(n.dense){if(!u[e[0].r])u[e[0].r]=[];u[e[0].r][e[0].c]=e[1]}else i[Ya(e[0])]=e[1];if(d.e.c=0)l(+t.codepage);if(t.type=="string")throw new Error("Cannot write WK1 to JS string");var a=Fa();if(!e["!ref"])throw new Error("Cannot export empty sheet to WK1");var n=en(e["!ref"]);var i=e["!data"]!=null;var f=[];qg(a,0,s(1030));qg(a,6,c(n));var o=Math.min(n.e.r,8191);for(var h=n.s.c;h<=n.e.c;++h)f[h]=$a(h);for(var u=n.s.r;u<=o;++u){var d=Wa(u);for(h=n.s.c;h<=n.e.c;++h){var p=i?(e["!data"][u]||[])[h]:e[f[h]+d];if(!p||p.t=="z")continue;switch(p.t){case"n":if((p.v|0)==p.v&&p.v>=-32768&&p.v<=32767)qg(a,13,g(u,h,p));else qg(a,14,k(u,h,p));break;case"d":var m=dr(p.v);if((m|0)==m&&m>=-32768&&m<=32767)qg(a,13,g(u,h,{t:"n",v:m,z:p.z||q[14]}));else qg(a,14,k(u,h,{t:"n",v:m,z:p.z||q[14]}));break;default:var b=tn(p);qg(a,15,v(u,h,b.slice(0,239)));}}}qg(a,1);return a.end()}function i(e,r){var t=r||{};if(+t.codepage>=0)l(+t.codepage);if(t.type=="string")throw new Error("Cannot write WK3 to JS string");var a=Fa();qg(a,0,f(e));for(var n=0,i=0;n8191)t=8191;r._W(2,t);r._W(1,n);r._W(1,a);r._W(2,0);r._W(2,0);r._W(1,1);r._W(1,2);r._W(4,0);r._W(4,0);return r}function o(e,r,t){var a={s:{c:0,r:0},e:{c:0,r:0}};if(r==8&&t.qpro){a.s.c=e._R(1);e.l++;a.s.r=e._R(2);a.e.c=e._R(1);e.l++;a.e.r=e._R(2);return a}a.s.c=e._R(2);a.s.r=e._R(2);if(r==12&&t.qpro)e.l+=2;a.e.c=e._R(2);a.e.r=e._R(2);if(r==12&&t.qpro)e.l+=2;if(a.s.c==65535)a.s.c=a.e.c=a.s.r=a.e.r=0;return a}function c(e){var r=Ra(8);r._W(2,e.s.c);r._W(2,e.s.r);r._W(2,e.e.c);r._W(2,e.e.r);return r}function h(e,r,t){var a=[{c:0,r:0},{t:"n",v:0},0,0];if(t.qpro&&t.vers!=20768){a[0].c=e._R(1);a[3]=e._R(1);a[0].r=e._R(2);e.l+=2}else if(t.works){a[0].c=e._R(2);a[0].r=e._R(2);a[2]=e._R(2)}else{a[2]=e._R(1);a[0].c=e._R(2);a[0].r=e._R(2)}return a}function u(e){if(e.z&&Le(e.z)){return 240|(t.indexOf(e.z)+1||2)}return 255}function d(e,r,t){var a=e.l+r;var n=h(e,r,t);n[1].t="s";if((t.vers&65534)==20768){e.l++;var i=e._R(1);n[1].v=e._R(i,"utf8");return n}if(t.qpro)e.l++;n[1].v=e._R(a-e.l,"cstr");return n}function v(e,r,t){var a=Ra(7+t.length);a._W(1,255);a._W(2,r);a._W(2,e);a._W(1,39);for(var n=0;n=128?95:i)}a._W(1,0);return a}function p(e,r,t){var a=e.l+r;var n=h(e,r,t);n[1].t="s";if(t.vers==20768){var i=e._R(1);n[1].v=e._R(i,"utf8");return n}n[1].v=e._R(a-e.l,"cstr");return n}function m(e,r,t){var a=h(e,r,t);a[1].v=e._R(2,"i");return a}function g(e,r,t){var a=Ra(7);a._W(1,u(t));a._W(2,r);a._W(2,e);a._W(2,t.v,"i");return a}function w(e,r,t){var a=h(e,r,t);a[1].v=e._R(8,"f");return a}function k(e,r,t){var a=Ra(13);a._W(1,u(t));a._W(2,r);a._W(2,e);a._W(8,t.v,"f");return a}function A(e,r,t){var a=e.l+r;var n=h(e,r,t);n[1].v=e._R(8,"f");if(t.qpro)e.l=a;else{var i=e._R(2);_(e.slice(e.l,e.l+i),n);e.l+=i}return n}function T(e,r,t){var a=r&32768;r&=~32768;r=(a?e:0)+(r>=8192?r-16384:r);return(a?"":"$")+(t?$a(r):Wa(r))}var y={31:["NA",0],33:["ABS",1],34:["TRUNC",1],35:["SQRT",1],36:["LOG",1],37:["LN",1],38:["PI",0],39:["SIN",1],40:["COS",1],41:["TAN",1],42:["ATAN2",2],43:["ATAN",1],44:["ASIN",1],45:["ACOS",1],46:["EXP",1],47:["MOD",2],49:["ISNA",1],50:["ISERR",1],51:["FALSE",0],52:["TRUE",0],53:["RAND",0],54:["DATE",3],63:["ROUND",2],64:["TIME",3],68:["ISNUMBER",1],69:["ISTEXT",1],70:["LEN",1],71:["VALUE",1],73:["MID",3],74:["CHAR",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],102:["UPPER",1],103:["LOWER",1],107:["PROPER",1],109:["TRIM",1],111:["T",1]};var C=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function _(e,r){Oa(e,0);var t=[],a=0,n="",i="",s="",f="";while(e.lt.length){console.error("WK1 bad formula parse 0x"+l.toString(16)+":|"+t.join("|")+"|");return}var u=t.slice(-a);t.length-=a;t.push(y[l][0]+"("+u.join(",")+")")}else if(l<=7)return console.error("WK1 invalid opcode "+l.toString(16));else if(l<=24)return console.error("WK1 unsupported op "+l.toString(16));else if(l<=30)return console.error("WK1 invalid opcode "+l.toString(16));else if(l<=115)return console.error("WK1 unsupported function opcode "+l.toString(16));else return console.error("WK1 unrecognized opcode "+l.toString(16));}}if(t.length==1)r[1].f=""+t[0];else console.error("WK1 bad formula parse |"+t.join("|")+"|")}function S(e){var r=[{c:0,r:0},{t:"n",v:0},0];r[0].r=e._R(2);r[3]=e[e.l++];r[0].c=e[e.l++];return r}function x(e,r){var t=S(e,r);t[1].t="s";t[1].v=e._R(r-4,"cstr");return t}function O(e,r,t,a){var n=Ra(6+a.length);n._W(2,e);n._W(1,t);n._W(1,r);n._W(1,39);for(var i=0;i=128?95:s)}n._W(1,0);return n}function R(e,r){var t=S(e,r);t[1].v=e._R(2);var a=t[1].v>>1;if(t[1].v&1){switch(a&7){case 0:a=(a>>3)*5e3;break;case 1:a=(a>>3)*500;break;case 2:a=(a>>3)/20;break;case 3:a=(a>>3)/200;break;case 4:a=(a>>3)/2e3;break;case 5:a=(a>>3)/2e4;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64;break;}}t[1].v=a;return t}function N(e,r){var t=S(e,r);var a=e._R(4);var n=e._R(4);var i=e._R(2);if(i==65535){if(a===0&&n===3221225472){t[1].t="e";t[1].v=15}else if(a===0&&n===3489660928){t[1].t="e";t[1].v=42}else t[1].v=0;return t}var s=i&32768;i=(i&32767)-16446;t[1].v=(1-s*2)*(n*Math.pow(2,i+32)+a*Math.pow(2,i));return t}function F(e,r,t,a){var n=Ra(14);n._W(2,e);n._W(1,t);n._W(1,r);if(a==0){n._W(4,0);n._W(4,0);n._W(2,65535);return n}var i=0,s=0,f=0,l=0;if(a<0){i=1;a=-a}s=Math.log2(a)|0;a/=Math.pow(2,s-31);l=a>>>0;if((l&2147483648)==0){a/=2;++s;l=a>>>0}a-=l;l|=2147483648;l>>>=0;a*=Math.pow(2,32);f=a>>>0;n._W(4,f);n._W(4,l);s+=16383+(i?32768:0);n._W(2,s);return n}function D(e,r){var t=N(e,14);e.l+=r-14;return t}function P(e,r){var t=S(e,r);var a=e._R(4);t[1].v=a>>6;return t}function L(e,r){var t=S(e,r);var a=e._R(8,"f");t[1].v=a;return t}function M(e,r){var t=L(e,12);e.l+=r-12;return t}function U(e,r){return e[e.l+r-1]==0?e._R(r,"cstr"):""}function B(e,r){var t=e[e.l++];if(t>r-1)t=r-1;var a="";while(a.length127?95:n}t[t.l++]=0;return t}var V={0:{n:"BOF",f:ks},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:m},14:{n:"NUMBER",f:w},15:{n:"LABEL",f:d},16:{n:"FORMULA",f:A},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:p},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:U},222:{n:"SHEETNAMELP",f:B},255:{n:"BOF",f:ks},21506:{n:"WKSNF",f:ks},65535:{n:""}};var $={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:x},23:{n:"NUMBER17",f:N},24:{n:"NUMBER18",f:R},25:{n:"FORMULA19",f:D},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:z},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:P},38:{n:"??"},39:{n:"NUMBER27",f:L},40:{n:"FORMULA28",f:M},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:U},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:W},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};var X={5:"dd-mmm-yy",6:"dd-mmm",7:"mmm-yy",8:"mm/dd/yy",10:"hh:mm:ss AM/PM",11:"hh:mm AM/PM",14:"dd-mmm-yyyy",15:"mmm-yyyy",34:"0.00",50:"0.00;[Red]0.00",66:"0.00;(0.00)",82:"0.00;[Red](0.00)",162:'"$"#,##0.00;\\("$"#,##0.00\\)',288:"0%",304:"0E+00",320:"# ?/?"};function G(e){var r=e._R(2);var t=e._R(1);if(t!=0)throw"unsupported QPW string type "+t.toString(16);return e._R(r,"sbcs-cont")}function j(e,r){Oa(e,0);var t=r||{};if(b!=null&&t.dense==null)t.dense=b;var a={};if(t.dense)a["!data"]=[];var n=[],i="",s=[];var f={s:{r:-1,c:-1},e:{r:-1,c:-1}};var l=0,o=0,c=0,h=0;var u={SheetNames:[],Sheets:{}};var d=[];e:while(e.l255||f.s.r>999999)break;if(f.e.cc)f.s.c=c;h=m._R(4);if(f.s.r>h)f.s.r=h;h=m._R(4);if(f.e.rh)f.s.r=h;if(f.e.r0&&l>=0){if(_&32)switch(_&31){case 2:C={t:"n",v:C.v+O&65535};break;case 3:C={t:"n",v:C.v+O&65535};if(C.v>32767)C.v-=65536;break;case 7:C={t:"s",v:n[o=o+O>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(_&31);}else switch(_&31){case 1:C={t:"z"};break;case 2:C={t:"n",v:m._R(2)};break;case 7:C={t:"s",v:n[o=m._R(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(_&31);}if(S!=-1);if(!(!t.sheetStubs&&C.t=="z")){if(a["!data"]!=null){if(!a["!data"][h])a["!data"][h]=[];a["!data"][h][c]=C}else a[E+Wa(h)]=C}++h;--l}}}break;case 3074:{c=m._R(2);h=m._R(4);var R=G(m);if(a["!data"]!=null){if(!a["!data"][h])a["!data"][h]=[];a["!data"][h][c]={t:"s",v:R}}else a[$a(c)+Wa(h)]={t:"s",v:R}}break;default:break;}e.l+=p}return u}return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:r}}();function io(e){var r={},t=e.match(ft),a=0;var n=false;if(t)for(;a!=t.length;++a){var s=ct(t[a]);switch(s[0].replace(/<\w*:/g,"<")){case"":;case"":r.shadow=1;break;case"":break;case"":;case"":r.outline=1;break;case"":break;case"":;case"":r.strike=1;break;case"":break;case"":;case"":r.u=1;break;case"":break;case"":;case"":r.b=1;break;case"":break;case"":;case"":r.i=1;break;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":break;case"":n=false;break;default:if(s[0].charCodeAt(1)!==47&&!n)throw new Error("Unrecognized rich format "+s[0]);}}return r}var so=function(){function e(e){var r=Wr(e,"t");if(!r)return{t:"s",v:""};var t={t:"s",v:pt(r[1])};var a=Wr(e,"rPr");if(a)t.s=io(a[1]);return t}var r=/<(?:\w+:)?r>/g,t=/<\/(?:\w+:)?r>/;return function a(n){return n.replace(r,"").split(t).map(e).filter(function(e){return e.v})}}();var fo=function TA(){var e=/(\r\n|\n)/g;function r(e,r,t){var a=[];if(e.u)a.push("text-decoration: underline;");if(e.uval)a.push("text-underline-style:"+e.uval+";");if(e.sz)a.push("font-size:"+e.sz+"pt;");if(e.outline)a.push("text-effect: outline;");if(e.shadow)a.push("text-shadow: auto;");r.push('');if(e.b){r.push("");t.push("")}if(e.i){r.push("");t.push("")}if(e.strike){r.push("");t.push("")}var n=e.valign||"";if(n=="superscript"||n=="super")n="sup";else if(n=="subscript")n="sub";if(n!=""){r.push("<"+n+">");t.push("")}t.push("");return e}function t(t){var a=[[],t.v,[]];if(!t.v)return"";if(t.s)r(t.s,a[0],a[2]);return a[0].join("")+a[1].replace(e,"
                        ")+a[2].join("")}return function a(e){return e.map(t).join("")}}();var lo=/<(?:\w+:)?t\b[^<>]*>([^<]*)<\/(?:\w+:)?t>/g,oo=/<(?:\w+:)?r\b[^<>]*>/;function co(e,r){var t=r?r.cellHTML:true;var a={};if(!e)return{t:""};if(e.match(/^\s*<(?:\w+:)?t[^>]*>/)){a.t=pt(It(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""),true);a.r=It(e);if(t)a.h=At(a.t)}else if(e.match(oo)){a.r=It(e);a.t=pt(It((Hr(e,"rPh").match(lo)||[]).join("").replace(ft,"")),true);if(t)a.h=fo(so(a.r))}return a}var ho=/<(?:\w+:)?(?:si|sstItem)>/g;var uo=/<\/(?:\w+:)?(?:si|sstItem)>/;function vo(e,r){var t=[],a="";if(!e)return t;var n=Wr(e,"sst");if(n){a=n[1].replace(ho,"").split(uo);for(var i=0;i!=a.length;++i){var s=co(a[i].trim(),r);if(s!=null)t[t.length]=s}n=ct(n[0].slice(0,n[0].indexOf(">")));t.Count=n.count;t.Unique=n.uniqueCount}return t}var po=/^\s|\s$|[\t\n\r]/;function mo(e,r){if(!r.bookSST)return"";var t=[at];t[t.length]=Bt("sst",null,{xmlns:Xt[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a){if(e[a]==null)continue;var n=e[a];var i="";if(n.r)i+=n.r;else{i+=""}i+="";t[t.length]=i}if(t.length>2){t[t.length]="
                        ";t[1]=t[1].replace("/>",">")}return t.join("")}function go(e){return[e._R(4),e._R(4)]}function bo(e,r){var t=[];var a=false;Na(e,function n(e,i,s){switch(s){case 159:t.Count=e[0];t.Unique=e[1];break;case 19:t.push(e);break;case 160:return true;case 35:a=true;break;case 36:a=false;break;default:if(i.T){}if(!a||r.WTF)throw new Error("Unexpected record 0x"+s.toString(16));}});return t}function wo(e,r){if(!r)r=Ra(8);r._W(4,e.Count);r._W(4,e.Unique);return r}var ko=pn;function Ao(e){var r=Fa();Da(r,159,wo(e));for(var t=0;t=4)e.l+=r-4;return t}function Eo(e){var r={};r.id=e._R(0,"lpp4");r.R=yo(e,4);r.U=yo(e,4);r.W=yo(e,4);return r}function Co(e){var r=e._R(4);var t=e.l+r-4;var a={};var n=e._R(4);var i=[];while(n-- >0)i.push({t:e._R(4),v:e._R(0,"lpp4")});a.name=e._R(0,"lpp4");a.comps=i;if(e.l!=t)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+t);return a}function _o(e){var r=[];e.l+=4;var t=e._R(4);while(t-- >0)r.push(Co(e));return r}function So(e){var r=[];e.l+=4;var t=e._R(4);while(t-- >0)r.push(e._R(0,"lpp4"));return r}function xo(e){var r={};e._R(4);e.l+=4;r.id=e._R(0,"lpp4");r.name=e._R(0,"lpp4");r.R=yo(e,4);r.U=yo(e,4);r.W=yo(e,4);return r}function Oo(e){var r=xo(e);r.ename=e._R(0,"8lpp4");r.blksz=e._R(4);r.cmode=e._R(4);if(e._R(4)!=4)throw new Error("Bad !Primary record");return r}function Io(e,r){var t=e.l+r;var a={};a.Flags=e._R(4)&63;e.l+=4;a.AlgID=e._R(4);var n=false;switch(a.AlgID){case 26126:;case 26127:;case 26128:n=a.Flags==36;break;case 26625:n=a.Flags==4;break;case 0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID;}if(!n)throw new Error("Encryption Flags/AlgID mismatch");a.AlgIDHash=e._R(4);a.KeySize=e._R(4);a.ProviderType=e._R(4);e.l+=8;a.CSPName=e._R(t-e.l>>1,"utf16le");e.l=t;return a}function Ro(e,r){var t={},a=e.l+r;e.l+=4;t.Salt=e.slice(e.l,e.l+16);e.l+=16;t.Verifier=e.slice(e.l,e.l+16);e.l+=16;e._R(4);t.VerifierHash=e.slice(e.l,a);e.l=a;return t}function No(e){var r=yo(e);switch(r.Minor){case 2:return[r.Minor,Fo(e,r)];case 3:return[r.Minor,Do(e,r)];case 4:return[r.Minor,Po(e,r)];}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}function Fo(e){var r=e._R(4);if((r&63)!=36)throw new Error("EncryptionInfo mismatch");var t=e._R(4);var a=Io(e,t);var n=Ro(e,e.length-e.l);return{t:"Std",h:a,v:n}}function Do(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Po(e){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var t=e._R(e.length-e.l,"utf8");var a={};t.replace(ft,function n(e){var t=ct(e);switch(ut(t[0])){case"":break;case"":;case"":break;case"":break;case"4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);t.Flags=e._R(4);r-=4;var n=e._R(4);r-=4;t.EncryptionHeader=Io(e,n);r-=n;t.EncryptionVerifier=Ro(e,r);return t}function Mo(e){var r={};var t=r.EncryptionVersionInfo=yo(e,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;r.Salt=e._R(16);r.EncryptedVerifier=e._R(16);r.EncryptedVerifierHash=e._R(16);return r}function Uo(e){var r=0,t;var a=To(e);var n=a.length+1,i,s;var f,l,o;t=x(n);t[0]=a.length;for(i=1;i!=n;++i)t[i]=a[i-1];for(i=n-1;i>=0;--i){s=t[i];f=(r&16384)===0?0:1;l=r<<1&32767;o=f|l;r=o^s}return r^52811}var Bo=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0];var r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163];var t=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628];var a=function(e){return(e/2|e*128)&255};var n=function(e,r){return a(e^r)};var i=function(e){var a=r[e.length-1];var n=104;for(var i=e.length-1;i>=0;--i){var s=e[i];for(var f=0;f!=7;++f){if(s&64)a^=t[n];s*=2;--n}}return a};return function(r){var t=To(r);var a=i(t);var s=t.length;var f=x(16);for(var l=0;l!=16;++l)f[l]=0;var o,c,h;if((s&1)===1){o=a>>8;f[s]=n(e[0],o);--s;o=a&255;c=t[t.length-1];f[s]=n(c,o)}while(s>0){--s;o=a>>8;f[s]=n(t[s],o);--s;o=a&255;f[s]=n(t[s],o)}s=15;h=15-t.length;while(h>0){o=a>>8;f[s]=n(e[h],o);--s;--h;o=a&255;f[s]=n(t[s],o);--s;--h}return f}}();var Wo=function(e,r,t,a,n){if(!n)n=r;if(!a)a=Bo(e);var i,s;for(i=0;i!=r.length;++i){s=r[i];s^=a[t];s=(s>>5|s<<3)&255;n[i]=s;++t}return[n,t,a]};var zo=function(e){var r=0,t=Bo(e);return function(e){var a=Wo("",e,r,t);r=a[1];return a[0]}};function Ho(e,r,t,a){var n={key:ks(e),verificationBytes:ks(e)};if(t.password)n.verifier=Uo(t.password);a.valid=n.verificationBytes===n.verifier;if(a.valid)a.insitu=zo(t.password);return n}function Vo(e,r,t){var a=t||{};a.Info=e._R(2);e.l-=2;if(a.Info===1)a.Data=Mo(e,r);else a.Data=Lo(e,r);return a}function $o(e,r,t){var a={Type:t.biff>=8?e._R(2):0};if(a.Type)Vo(e,r-2,a);else Ho(e,t.biff>=8?r:r-2,t,a);return a}function Xo(e,r){switch(r.type){case"base64":return Go(E(e),r);case"binary":return Go(e,r);case"buffer":return Go(C&&Buffer.isBuffer(e)?e.toString("binary"):N(e),r);case"array":return Go(kr(e),r);}throw new Error("Unrecognized type "+r.type)}function Go(e,r){var t=r||{};var a={};var n=t.dense;if(n)a["!data"]=[];var i=Lr(e,"\\trowd","\\row");if(!i)throw new Error("RTF missing table");var s={s:{c:0,r:0},e:{c:0,r:i.length-1}};var f=[];i.forEach(function(e,r){if(n)f=a["!data"][r]=[];var i=/\\[\w\-]+\b/g;var l=0;var o;var c=-1;var h=[];while((o=i.exec(e))!=null){var u=e.slice(l,i.lastIndex-o[0].length);if(u.charCodeAt(0)==32)u=u.slice(1);if(u.length)h.push(u);switch(o[0]){case"\\cell":++c;if(h.length){var d={v:h.join(""),t:"s"};if(d.v=="TRUE"||d.v=="FALSE"){d.v=d.v=="TRUE";d.t="b"}else if(!isNaN(yr(d.v))){d.t="n";if(t.cellText!==false)d.w=d.v;d.v=yr(d.v)}else if(hi[d.v]!=null){d.t="e";d.w=d.v;d.v=hi[d.v]}if(n)f[c]=d;else a[Ya({r:r,c:c})]=d}h=[];break;case"\\par":h.push("\n");break;}l=i.lastIndex}if(c>s.e.c)s.e.c=c});a["!ref"]=Ja(s);return a}function jo(e,r){var t=an(Xo(e,r),r);t.bookType="rtf";return t}function Ko(e,r){var t=["{\\rtf1\\ansi"];if(!e["!ref"])return t[0]+"}";var a=en(e["!ref"]),n;var i=e["!data"]!=null,s=[];for(var f=a.s.r;f<=a.e.r;++f){t.push("\\trowd\\trautofit1");for(var l=a.s.c;l<=a.e.c;++l)t.push("\\cellx"+(l+1));t.push("\\pard\\intbl");if(i)s=e["!data"][f]||[];for(l=a.s.c;l<=a.e.c;++l){var o=Ya({r:f,c:l});n=i?s[l]:e[o];if(!n||n.v==null&&(!n.f||n.F)){t.push(" \\cell");continue}t.push(" "+(n.w||(tn(n),n.w)||"").replace(/[\r\n]/g,"\\par "));t.push("\\cell")}t.push("\\pard\\intbl\\row")}return t.join("")+"}"}function Yo(e){var r=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function Zo(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}function Jo(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255;var n=Math.max(r,t,a),i=Math.min(r,t,a),s=n-i;if(s===0)return[0,0,r];var f=0,l=0,o=n+i;l=s/(o>1?2-o:o);switch(n){case r:f=((t-a)/s+6)%6;break;case t:f=(a-r)/s+2;break;case a:f=(r-t)/s+4;break;}return[f/6,l,o/2]}function qo(e){var r=e[0],t=e[1],a=e[2];var n=t*2*(a<.5?a:1-a),i=a-n/2;var s=[i,i,i],f=6*r;var l;if(t!==0)switch(f|0){case 0:;case 6:l=n*f;s[0]+=n;s[1]+=l;break;case 1:l=n*(2-f);s[0]+=l;s[1]+=n;break;case 2:l=n*(f-2);s[1]+=n;s[2]+=l;break;case 3:l=n*(4-f);s[1]+=l;s[2]+=n;break;case 4:l=n*(f-4);s[2]+=n;s[0]+=l;break;case 5:l=n*(6-f);s[2]+=l;s[0]+=n;break;}for(var o=0;o!=3;++o)s[o]=Math.round(s[o]*255);return s}function Qo(e,r){if(r===0)return e;var t=Jo(Yo(e));if(r<0)t[2]=t[2]*(1+r);else t[2]=1-(1-t[2])*(1-r);return Zo(qo(t))}var ec=6,rc=15,tc=1,ac=ec;function nc(e){return Math.floor((e+Math.round(128/ac)/256)*ac)}function ic(e){return Math.floor((e-5)/ac*100+.5)/100}function sc(e){return Math.round((e*ac+5)/ac*256)/256}function fc(e){return sc(ic(nc(e)))}function lc(e){var r=Math.abs(e-fc(e)),t=ac;if(r>.005)for(ac=tc;ac":;case"":break;case"":;case"":n={};if(t.diagonalUp)n.diagonalUp=Ct(t.diagonalUp);if(t.diagonalDown)n.diagonalDown=Ct(t.diagonalDown);r.Borders.push(n);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":;case"":break;case"":i=false;break;default:if(a&&a.WTF){if(!i)throw new Error("unrecognized "+t[0]+" in borders")};}})}function mc(e,r,t,a){r.Fills=[];var n={};var i=false;(e.match(ft)||[]).forEach(function(e){var t=ct(e);switch(ut(t[0])){case"":;case"":break;case"":;case"":n={};r.Fills.push(n);break;case"":break;case"":break;case"":r.Fills.push(n);n={};break;case"":if(t.patternType)n.patternType=t.patternType;break;case"":;case"":break;case"":;case"":break;case"":;case"":break;case"":break;case"":break;case"":break;case"":break;case"":;case"":break;case"":i=false;break;default:if(a&&a.WTF){if(!i)throw new Error("unrecognized "+t[0]+" in fills")};}})}function gc(e,r,t,a){r.Fonts=[];var n={};var s=false;(e.match(ft)||[]).forEach(function(e){var f=ct(e);switch(ut(f[0])){case"":;case"":break;case"":break;case"":;case"":r.Fonts.push(n);n={};break;case"":;case"":break;case"":n.bold=1;break;case"
                        ":;case"":n.italic=1;break;case"":;case"":n.underline=1;break;case"":;case"":n.strike=1;break;case"":;case"":n.outline=1;break;case"":;case"":n.shadow=1;break;case"":;case"":n.condense=1;break;case"":;case"":n.extend=1;break;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":break;case"":s=false;break;default:if(a&&a.WTF){if(!s)throw new Error("unrecognized "+f[0]+" in fonts")};}})}function bc(e,r,t){r.NumberFmt=[];var a=ir(q);for(var n=0;n":;case"":;case"":break;case"0){if(l>392){for(l=392;l>60;--l)if(r.NumberFmt[l]==null)break;r.NumberFmt[l]=f}Je(f,l)}}break;case"":break;default:if(t.WTF)throw new Error("unrecognized "+s[0]+" in numFmts");}}}function wc(e){var r=[""];[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)if(e[a]!=null)r[r.length]=Bt("numFmt",null,{numFmtId:a,formatCode:bt(e[a])})});if(r.length===1)return"";r[r.length]="";r[0]=Bt("numFmts",null,{count:r.length-2}).replace("/>",">");return r.join("")}var kc=["numFmtId","fillId","fontId","borderId","xfId"];var Ac=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Tc(e,r,t){r.CellXf=[];var a;var n=false;(e.match(ft)||[]).forEach(function(e){var i=ct(e),s=0;switch(ut(i[0])){case"":;case"":;case"":break;case"":;case"":a=i;delete a[0];for(s=0;s392){for(s=392;s>60;--s)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[s]){a.numFmtId=s;break}}r.CellXf.push(a);break;case"":break;case"":;case"":var f={};if(i.vertical)f.vertical=i.vertical;if(i.horizontal)f.horizontal=i.horizontal;if(i.textRotation!=null)f.textRotation=i.textRotation;if(i.indent)f.indent=i.indent;if(i.wrapText)f.wrapText=Ct(i.wrapText);a.alignment=f;break;case"":break;case"":break;case"":;case"":break;case"":n=true;break;case"":n=false;break;case"":;case"":break;case"":n=false;break;default:if(t&&t.WTF){if(!n)throw new Error("unrecognized "+i[0]+" in cellXfs")};}})}function yc(e){var r=[];r[r.length]=Bt("cellXfs",null);e.forEach(function(e){r[r.length]=Bt("xf",null,e)});r[r.length]="";if(r.length===2)return"";r[0]=Bt("cellXfs",null,{count:r.length-2}).replace("/>",">");return r.join("")}var Ec=function yA(){return function e(r,t,a){var n={};if(!r)return n;r=Pr(Mr(r,""));var i;if(i=Wr(r,"numFmts"))bc(i[0],n,a);if(i=Wr(r,"fonts"))gc(i[0],n,t,a);if(i=Wr(r,"fills"))mc(i[0],n,t,a);if(i=Wr(r,"borders"))pc(i[0],n,t,a);if(i=Wr(r,"cellXfs"))Tc(i[0],n,a);return n}}();function Cc(e,r){var t=[at,Bt("styleSheet",null,{xmlns:Xt[0],"xmlns:vt":$t.vt})],a;if(e.SSF&&(a=wc(e.SSF))!=null)t[t.length]=a;t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';if(a=yc(r.cellXfs))t[t.length]=a;t[t.length]='';t[t.length]='';t[t.length]='';if(t.length>2){t[t.length]="";t[1]=t[1].replace("/>",">")}return t.join("")}function _c(e,r){var t=e._R(2);var a=cn(e,r-2);return[t,a]}function Sc(e,r,t){if(!t)t=Ra(6+4*r.length);t._W(2,e);hn(r,t);var a=t.length>t.l?t.slice(0,t.l):t;if(t.l==null)t.l=t.length;return a}function xc(e,r,t){var a={};a.sz=e._R(2)/20;var n=Bn(e,2,t);if(n.fItalic)a.italic=1;if(n.fCondense)a.condense=1;if(n.fExtend)a.extend=1;if(n.fShadow)a.shadow=1;if(n.fOutline)a.outline=1;if(n.fStrikeout)a.strike=1;var i=e._R(2);if(i===700)a.bold=1;switch(e._R(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript";break;}var s=e._R(1);if(s!=0)a.underline=s;var f=e._R(1);if(f>0)a.family=f;var l=e._R(1);if(l>0)a.charset=l;e.l++;a.color=Mn(e,8);switch(e._R(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break;}a.name=cn(e,r-21);return a}function Oc(e,r){if(!r)r=Ra(25+4*32);r._W(2,e.sz*20);Wn(e,r);r._W(2,e.bold?700:400);var t=0;if(e.vertAlign=="superscript")t=1;else if(e.vertAlign=="subscript")t=2;r._W(2,t);r._W(1,e.underline||0);r._W(1,e.family||0);r._W(1,e.charset||0);r._W(1,0);Un(e.color,r);var a=0;if(e.scheme=="major")a=1;if(e.scheme=="minor")a=2;r._W(1,a);hn(e.name,r);return r.length>r.l?r.slice(0,r.l):r}var Ic=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];var Rc;var Nc=Ia;function Fc(e,r){if(!r)r=Ra(4*3+8*7+16*1);if(!Rc)Rc=fr(Ic);var t=Rc[e.patternType];if(t==null)t=40;r._W(4,t);var a=0;if(t!=40){Un({auto:1},r);Un({auto:1},r);for(;a<12;++a)r._W(4,0)}else{for(;a<4;++a)r._W(4,0);for(;a<12;++a)r._W(4,0)}return r.length>r.l?r.slice(0,r.l):r}function Dc(e,r){var t=e.l+r;var a=e._R(2);var n=e._R(2);e.l=t;return{ixfe:a,numFmtId:n}}function Pc(e,r,t){if(!t)t=Ra(16);t._W(2,r||0);t._W(2,e.numFmtId||0);t._W(2,0);t._W(2,0);t._W(2,0);t._W(1,0);t._W(1,0);var a=0;t._W(1,a);t._W(1,0);t._W(1,0);t._W(1,0);return t}function Lc(e,r){if(!r)r=Ra(10);r._W(1,0);r._W(1,0);r._W(4,0);r._W(4,0);return r}var Mc=Ia;function Uc(e,r){if(!r)r=Ra(51);r._W(1,0);Lc(null,r);Lc(null,r);Lc(null,r);Lc(null,r);Lc(null,r);return r.length>r.l?r.slice(0,r.l):r}function Bc(e,r){if(!r)r=Ra(12+4*10);r._W(4,e.xfId);r._W(2,1);r._W(1,+e.builtinId);r._W(1,0);Cn(e.name||"",r);return r.length>r.l?r.slice(0,r.l):r}function Wc(e,r,t){var a=Ra(4+256*2*4);a._W(4,e);Cn(r,a);Cn(t,a);return a.length>a.l?a.slice(0,a.l):a}function zc(e,r,t){var a={};a.NumberFmt=[];for(var n in q)a.NumberFmt[n]=q[n];a.CellXf=[];a.Fonts=[];var i=[];var s=false;Na(e,function f(e,n,l){switch(l){case 44:a.NumberFmt[e[0]]=e[1];Je(e[1],e[0]);break;case 43:a.Fonts.push(e);if(e.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme){e.color.rgb=Qo(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0)}break;case 1025:break;case 45:break;case 46:break;case 47:if(i[i.length-1]==617){a.CellXf.push(e)}break;case 48:;case 507:;case 572:;case 475:break;case 1171:;case 2102:;case 1130:;case 512:;case 2095:;case 3072:break;case 35:s=true;break;case 36:s=false;break;case 37:i.push(l);s=true;break;case 38:i.pop();s=false;break;default:if(n.T>0)i.push(l);else if(n.T<0)i.pop();else if(!s||t.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+l.toString(16));}});return a}function Hc(e,r){if(!r)return;var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var a=e[0];a<=e[1];++a)if(r[a]!=null)++t});if(t==0)return;Da(e,615,on(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)if(r[a]!=null)Da(e,44,Sc(a,r[a]))});Da(e,616)}function Vc(e){var r=1;if(r==0)return;Da(e,611,on(r));Da(e,43,Oc({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Da(e,612)}function $c(e){var r=2;if(r==0)return;Da(e,603,on(r));Da(e,45,Fc({patternType:"none"}));Da(e,45,Fc({patternType:"gray125"}));Da(e,604)}function Xc(e){var r=1;if(r==0)return;Da(e,613,on(r));Da(e,46,Uc({}));Da(e,614)}function Gc(e){var r=1;Da(e,626,on(r));Da(e,47,Pc({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Da(e,627)}function jc(e,r){Da(e,617,on(r.length));r.forEach(function(r){Da(e,47,Pc(r,0))});Da(e,618)}function Kc(e){var r=1;Da(e,619,on(r));Da(e,48,Bc({xfId:0,builtinId:0,name:"Normal"}));Da(e,620)}function Yc(e){var r=0;Da(e,505,on(r));Da(e,506)}function Zc(e){var r=0;Da(e,508,Wc(r,"TableStyleMedium9","PivotStyleMedium4"));Da(e,509)}function Jc(){return}function qc(e,r){var t=Fa();Da(t,278);Hc(t,e.SSF);Vc(t,e);$c(t,e);Xc(t,e);Gc(t,e);jc(t,r.cellXfs);Kc(t,e);Yc(t,e);Zc(t,e);Jc(t,e);Da(t,279);return t.end()}var Qc=["","","","","","","","","","","",""];function eh(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(ft)||[]).forEach(function(e){var n=ct(e);switch(n[0]){case"":break;case"":break;case"":break;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":;case"":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme[Qc.indexOf(n[0])]=a;a={}}else{a.name=n[0].slice(3,n[0].length-1)}break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme");}})}function rh(){}function th(){}function ah(e,r,t){r.themeElements={};var a;if(!(a=Br(e,"a:clrScheme")))throw new Error("clrScheme not found in themeElements");eh(a,r,t);if(!(a=Br(e,"a:fontScheme")))throw new Error("fontScheme not found in themeElements");rh(a,r,t);if(!(a=Br(e,"a:fmtScheme")))throw new Error("fmtScheme not found in themeElements");th(a,r,t)}function nh(e,r){if(!e||e.length===0)e=ih();var t;var a={};if(!(t=Br(e,"a:themeElements")))throw new Error("themeElements not found in theme");ah(t[0],a,r);a.raw=e;return a}function ih(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[at];t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]='';t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]='';t[t.length]="";t[t.length]="";t[t.length]="";t[t.length]="";return t.join("")}function sh(e,r,t){var a=e.l+r;var n=e._R(4);if(n===124226)return;if(!t.cellStyles){e.l=a;return}var i=e.slice(e.l);e.l=a;var s;try{s=rt(i,{type:"array"})}catch(f){return}var l=Zr(s,"theme/theme/theme1.xml",true);if(!l)return;return nh(l,t)}function fh(e){return e._R(4)}function lh(e){var r={};r.xclrType=e._R(2);r.nTintShade=e._R(2);switch(r.xclrType){case 0:e.l+=4;break;case 1:r.xclrValue=oh(e,4);break;case 2:r.xclrValue=Ws(e,4);break;case 3:r.xclrValue=fh(e,4);break;case 4:e.l+=4;break;}e.l+=8;return r}function oh(e,r){return Ia(e,r)}function ch(e,r){return Ia(e,r)}function hh(e){var r=e._R(2);var t=e._R(2)-4;var a=[r];switch(r){case 4:;case 5:;case 7:;case 8:;case 9:;case 10:;case 11:;case 13:a[1]=lh(e,t);break;case 6:a[1]=ch(e,t);break;case 14:;case 15:a[1]=e._R(t===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+t);}return a}function uh(e,r){var t=e.l+r;e.l+=2;var a=e._R(2);e.l+=2;var n=e._R(2);var i=[];while(n-- >0)i.push(hh(e,t-e.l));return{ixfe:a,ext:i}}function dh(e,r){r.forEach(function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break;}})}function vh(e,r){return{flags:e._R(4),version:e._R(4),name:cn(e,r-8)}}function ph(e){var r=Ra(12+2*e.name.length);r._W(4,e.flags);r._W(4,e.version);hn(e.name,r);return r.slice(0,r.l)}function mh(e){var r=[];var t=e._R(4);while(t-- >0)r.push([e._R(4),e._R(4)]);return r}function gh(e){var r=Ra(4+8*e.length);r._W(4,e.length);for(var t=0;t":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":i=2;break;case"":i=2;break;case"":;case"":;case"":break;case"":n=false;break;case"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n');return e.join("")}function Ch(e){var r=[];if(!e)return r;var t=1;(e.match(ft)||[]).forEach(function(e){var a=ct(e);switch(a[0]){case"":;case"":break;case"]*r:id="([^<>"]*)"/)||["",""])[1];return r["!id"][t].Target}function Rh(e,r,t){var a=0; -(zr(e,"shape")||[]).forEach(function(e){var n="";var i=true;var s=-1;var f=-1,l=-1;e.replace(ft,function(r,t){var a=ct(r);switch(ut(a[0])){case"":i=false;break;case"":s=t+r.length;break;case"":f=+e.slice(s,t).trim();break;case"":s=t+r.length;break;case"":l=+e.slice(s,t).trim();break;}return""});switch(n){case"Note":var o=Hk(r,f>=0&&l>=0?Ya({r:f,c:l}):t[a].ref);if(o.c){o.c.hidden=i}++a;break;}})}function Nh(e,r,t){var a=[21600,21600];var n=["m0,0l0",a[1],a[0],a[1],a[0],"0xe"].join(",");var i=[Bt("xml",null,{"xmlns:v":Gt.v,"xmlns:o":Gt.o,"xmlns:x":Gt.x,"xmlns:mv":Gt.mv}).replace(/\/>/,">"),Bt("o:shapelayout",Bt("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"})];var s=65536*e;var f=r||[];if(f.length>0)i.push(Bt("v:shapetype",[Bt("v:stroke",null,{joinstyle:"miter"}),Bt("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:a.join(","),"o:spt":202,path:n}));f.forEach(function(e){++s;i.push(Fh(e,s))});i.push("");return i.join("")}function Fh(e,r,t){var a=Ka(e[0]);var n={color2:"#BEFF82",type:"gradient"};if(n.type=="gradient")n.angle="-180";var i=n.type=="gradient"?Bt("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null;var s=Bt("v:fill",i,n);var f={on:"t",obscured:"t"};return["",s,Bt("v:shadow",null,f),Bt("v:path",null,{"o:connecttype":"none"}),'
                        ','',"","",Mt("x:Anchor",[a.c+1,0,a.r+1,0,a.c+3,20,a.r+5,20].join(",")),Mt("x:AutoFill","False"),Mt("x:Row",String(a.r)),Mt("x:Column",String(a.c)),e[1].hidden?"":"","",""].join("")}function Dh(e,r,t,a){var n=e["!data"]!=null;var i;r.forEach(function(r){var s=Ka(r.ref);if(s.r<0||s.c<0)return;if(n){if(!e["!data"][s.r])e["!data"][s.r]=[];i=e["!data"][s.r][s.c]}else i=e[r.ref];if(!i){i={t:"z"};if(n)e["!data"][s.r][s.c]=i;else e[r.ref]=i;var f=en(e["!ref"]||"BDWGO1000001:A1");if(f.s.r>s.r)f.s.r=s.r;if(f.e.rs.c)f.s.c=s.c;if(f.e.c=0;--c){if(!t&&i.c[c].T)return;if(t&&!i.c[c].T)i.c.splice(c,1)}if(t&&a)for(c=0;c/))return[];var t=[];var a=[];var n=Wr(e,"authors");if(n&&n[1])n[1].split(/<\/\w*:?author>/).forEach(function(e){if(e===""||e.trim()==="")return;var r=e.match(/<(?:\w+:)?author[^<>]*>(.*)/);if(r)t.push(r[1])});var i=Wr(e,"commentList");if(i&&i[1])i[1].split(/<\/\w*:?comment>/).forEach(function(e){if(e===""||e.trim()==="")return;var n=e.match(/<(?:\w+:)?comment[^<>]*>/);if(!n)return;var i=ct(n[0]);var s={author:i.authorId&&t[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid};var f=Ka(i.ref);if(r.sheetRows&&r.sheetRows<=f.r)return;var l=Wr(e,"text");var o=!!l&&!!l[1]&&co(l[1])||{r:"",t:"",h:""};s.r=o.r;if(o.r=="")o.t=o.h="";s.t=(o.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)s.h=o.h;a.push(s)});return a}function Lh(e){var r=[at,Bt("comments",null,{xmlns:Xt[0]})];var t=[];r.push("");e.forEach(function(e){e[1].forEach(function(e){var a=bt(e.a);if(t.indexOf(a)==-1){t.push(a);r.push(""+a+"")}if(e.T&&e.ID&&t.indexOf("tc="+e.ID)==-1){t.push("tc="+e.ID);r.push(""+"tc="+e.ID+"")}})});if(t.length==0){t.push("SheetJ5");r.push("SheetJ5")}r.push("");r.push("");e.forEach(function(e){var a=0,n=[],i=0;if(e[1][0]&&e[1][0].T&&e[1][0].ID)a=t.indexOf("tc="+e[1][0].ID);e[1].forEach(function(e){if(e.a)a=t.indexOf(bt(e.a));if(e.T)++i;n.push(e.t==null?"":bt(e.t))});if(i===0){e[1].forEach(function(a){r.push('');r.push(Mt("t",a.t==null?"":bt(a.t)));r.push("")})}else{if(e[1][0]&&e[1][0].T&&e[1][0].ID)a=t.indexOf("tc="+e[1][0].ID);r.push('');var s="Comment:\n "+n[0]+"\n";for(var f=1;f")}});r.push("");if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}function Mh(e,r){var t=[];var a=false,n={},i=0;e.replace(ft,function s(f,l){var o=ct(f);switch(ut(o[0])){case"":break;case"":if(n.t!=null)t.push(n);break;case"":;case"":n.t=e.slice(i,l).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":a=true;break;case"":a=false;break;case"":;case"
                        ":;case"":break;case"":a=false;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments");}return f});return t}function Uh(e,r,t){var a=[at,Bt("ThreadedComments",null,{xmlns:$t.TCMNT}).replace(/[\/]>/,">")];e.forEach(function(e){var n="";(e[1]||[]).forEach(function(i,s){if(!i.T){delete i.ID;return}if(i.a&&r.indexOf(i.a)==-1)r.push(i.a);var f={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};if(s==0)n=f.id;else f.parentId=n;i.ID=f.id;if(i.a)f.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(i.a)).slice(-12)+"}";a.push(Bt("threadedComment",Mt("text",i.t||""),f))})});a.push("");return a.join("")}function Bh(e,r){var t=[];var a=false;e.replace(ft,function n(e){var n=ct(e);switch(ut(n[0])){case"":break;case"":break;case"":;case"":;case"":break;case"":a=false;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+n[0]+" in threaded comments");}return e});return t}function Wh(e){var r=[at,Bt("personList",null,{xmlns:$t.TCMNT,"xmlns:x":Xt[0]}).replace(/[\/]>/,">")];e.forEach(function(e,t){r.push(Bt("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+t).slice(-12)+"}",userId:e,providerId:"None"}))});r.push("");return r.join("")}function zh(e){var r={};r.iauthor=e._R(4);var t=Fn(e,16);r.rfx=t.s;r.ref=Ya(t.s);e.l+=16;return r}function Hh(e,r){if(r==null)r=Ra(36);r._W(4,e[1].iauthor);Dn(e[0],r);r._W(4,0);r._W(4,0);r._W(4,0);r._W(4,0);return r}var Vh=cn;function $h(e){return hn(e.slice(0,54))}function Xh(e,r){var t=[];var a=[];var n={};var i=false;Na(e,function s(e,f,l){switch(l){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t;n.h=e.h;n.r=e.r;break;case 636:n.author=a[n.iauthor];delete n.iauthor;if(r.sheetRows&&n.rfx&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";delete n.rfx;t.push(n);break;case 3072:break;case 35:i=true;break;case 36:i=false;break;case 37:break;case 38:break;default:if(f.T){}else if(!i||r.WTF)throw new Error("Unexpected record 0x"+l.toString(16));}});return t}function Gh(e){var r=Fa();var t=[];Da(r,628);Da(r,630);e.forEach(function(e){e[1].forEach(function(e){if(t.indexOf(e.a)>-1)return;t.push(e.a.slice(0,54));Da(r,632,$h(e.a));if(e.T&&e.ID&&t.indexOf("tc="+e.ID)==-1){t.push("tc="+e.ID);Da(r,632,$h("tc="+e.ID))}})});Da(r,631);Da(r,633);e.forEach(function(e){e[1].forEach(function(a){var n=-1;if(a.ID)n=t.indexOf("tc="+a.ID);if(n==-1&&e[1][0].T&&e[1][0].ID)n=t.indexOf("tc="+e[1][0].ID);if(n==-1)n=t.indexOf(a.a);a.iauthor=n;var i={s:Ka(e[0]),e:Ka(e[0])};Da(r,635,Hh([i,a]));if(a.t&&a.t.length>0)Da(r,637,gn(a));Da(r,636);delete a.iauthor})});Da(r,634);Da(r,629);return r.end()}var jh="application/vnd.ms-office.vbaProject";function Kh(e){var r=Qe.utils.cfb_new({root:"R"});e.FullPaths.forEach(function(t,a){if(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))return;var n=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Qe.utils.cfb_add(r,n,e.FileIndex[a].content)});return Qe.write(r)}function Yh(e,r){r.FullPaths.forEach(function(t,a){if(a==0)return;var n=t.replace(/^[\/]*[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");if(n.slice(-1)!=="/")Qe.utils.cfb_add(e,n,r.FileIndex[a].content)})}var Zh=["xlsb","xlsm","xlam","biff8","xla"];function Jh(){return{"!type":"dialog"}}function qh(){return{"!type":"dialog"}}function Qh(){return{"!type":"macro"}}function eu(){return{"!type":"macro"}}var ru=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g;var r={r:0,c:0};function t(e,t,a,n){var i=false,s=false;if(a.length==0)s=true;else if(a.charAt(0)=="["){s=true;a=a.slice(1,-1)}if(n.length==0)i=true;else if(n.charAt(0)=="["){i=true;n=n.slice(1,-1)}var f=a.length>0?parseInt(a,10)|0:0,l=n.length>0?parseInt(n,10)|0:0;if(i)l+=r.c;else--l;if(s)f+=r.r;else--f;return t+(i?"":"$")+$a(l)+(s?"":"$")+Wa(f)}return function a(n,i){r=i;return n.replace(e,t)}}();var tu=/(^|[^._A-Z0-9])(\$?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])(\$?)(\d{1,7})(?![_.\(A-Za-z0-9])/g;try{tu=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g}catch(au){}var nu=function(){return function e(r,t){return r.replace(tu,function(e,r,a,n,i,s){var f=Va(n)-(a?0:t.c);var l=Ba(s)-(i?0:t.r);var o=i=="$"?l+1:l==0?"":"["+l+"]";var c=a=="$"?f+1:f==0?"":"["+f+"]";return r+"R"+o+"C"+c})}}();function iu(e,r){return e.replace(tu,function(e,t,a,n,i,s){return t+(a=="$"?a+n:$a(Va(n)+r.c))+(i=="$"?i+s:Wa(Ba(s)+r.r))})}function su(e,r,t){var a=Za(r),n=a.s,i=Ka(t);var s={r:i.r-n.r,c:i.c-n.c};return iu(e,s)}function fu(e){if(e.length==1)return false;return true}function lu(e){return e.replace(/_xlfn\./g,"")}function ou(e){e.l+=1;return}function cu(e,r){var t=e._R(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function hu(e,r,t){var a=2;if(t){if(t.biff>=2&&t.biff<=5)return uu(e,r,t);else if(t.biff==12)a=4}var n=e._R(a),i=e._R(a);var s=cu(e,2);var f=cu(e,2);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:f[0],cRel:f[1],rRel:f[2]}}}function uu(e){var r=cu(e,2),t=cu(e,2);var a=e._R(1);var n=e._R(1);return{s:{r:r[0],c:a,cRel:r[1],rRel:r[2]},e:{r:t[0],c:n,cRel:t[1],rRel:t[2]}}}function du(e,r,t){if(t.biff<8)return uu(e,r,t);var a=e._R(t.biff==12?4:2),n=e._R(t.biff==12?4:2);var i=cu(e,2);var s=cu(e,2);return{s:{r:a,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:s[0],cRel:s[1],rRel:s[2]}}}function vu(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return pu(e,r,t);var a=e._R(t&&t.biff==12?4:2);var n=cu(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function pu(e){var r=cu(e,2);var t=e._R(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function mu(e){var r=e._R(2);var t=e._R(2);return{r:r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function gu(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return bu(e,r,t);var n=e._R(a>=12?4:2);var i=e._R(2);var s=(i&16384)>>14,f=(i&32768)>>15;i&=16383;if(f==1)while(n>524287)n-=1048576;if(s==1)while(i>8191)i=i-16384;return{r:n,c:i,cRel:s,rRel:f}}function bu(e){var r=e._R(2);var t=e._R(1);var a=(r&32768)>>15,n=(r&16384)>>14;r&=16383;if(a==1&&r>=8192)r=r-16384;if(n==1&&t>=128)t=t-256;return{r:r,c:t,cRel:n,rRel:a}}function wu(e,r,t){var a=(e[e.l++]&96)>>5;var n=hu(e,t.biff>=2&&t.biff<=5?6:8,t);return[a,n]}function ku(e,r,t){var a=(e[e.l++]&96)>>5;var n=e._R(2,"i");var i=8;if(t)switch(t.biff){case 5:e.l+=12;i=6;break;case 12:i=12;break;}var s=hu(e,i,t);return[a,n,s]}function Au(e,r,t){var a=(e[e.l++]&96)>>5;e.l+=t&&t.biff>8?12:t.biff<8?6:8;return[a]}function Tu(e,r,t){var a=(e[e.l++]&96)>>5;var n=e._R(2);var i=8;if(t)switch(t.biff){case 5:e.l+=12;i=6;break;case 12:i=12;break;}e.l+=i;return[a,n]}function yu(e,r,t){var a=(e[e.l++]&96)>>5;var n=du(e,r-1,t);return[a,n]}function Eu(e,r,t){var a=(e[e.l++]&96)>>5;e.l+=t.biff==2?6:t.biff==12?14:7;return[a]}function Cu(e){var r=e[e.l+1]&1;var t=1;e.l+=4;return[r,t]}function _u(e,r,t){e.l+=2;var a=e._R(t&&t.biff==2?1:2);var n=[];for(var i=0;i<=a;++i)n.push(e._R(t&&t.biff==2?1:2));return n}function Su(e,r,t){var a=e[e.l+1]&255?1:0;e.l+=2;return[a,e._R(t&&t.biff==2?1:2)]}function xu(e,r,t){var a=e[e.l+1]&255?1:0;e.l+=2;return[a,e._R(t&&t.biff==2?1:2)]}function Ou(e){var r=e[e.l+1]&255?1:0;e.l+=2;return[r,e._R(2)]}function Iu(e,r,t){var a=e[e.l+1]&255?1:0;e.l+=t&&t.biff==2?3:4;return[a]}function Ru(e){var r=e._R(1),t=e._R(1);return[r,t]}function Nu(e){e._R(2);return Ru(e,2)}function Fu(e){e._R(2);return Ru(e,2)}function Du(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=vu(e,0,t);return[a,n]}function Pu(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=gu(e,0,t);return[a,n]}function Lu(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=e._R(2);if(t&&t.biff==5)e.l+=12;var i=vu(e,0,t);return[a,n,i]}function Mu(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=e._R(t&&t.biff<=3?1:2);return[hv[n],cv[n],a]}function Uu(e,r,t){var a=e[e.l++];var n=e._R(1),i=t&&t.biff<=3?[a==88?-1:0,e._R(1)]:Bu(e);return[n,(i[0]===0?cv:ov)[i[1]]]}function Bu(e){return[e[e.l+1]>>7,e._R(2)&32767]}function Wu(e,r,t){e.l+=t&&t.biff==2?3:4;return}function zu(e,r,t){e.l++;if(t&&t.biff==12)return[e._R(4,"i"),0];var a=e._R(2);var n=e._R(t&&t.biff==2?1:2);return[a,n]}function Hu(e){e.l++;return ci[e._R(1)]}function Vu(e){e.l++;return e._R(2)}function $u(e){e.l++;return e._R(1)!==0}function Xu(e){e.l++;return Pn(e,8)}function Gu(e,r,t){e.l++;return Cs(e,r-1,t)}function ju(e,r){var t=[e._R(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break;}switch(t[0]){case 4:t[1]=bs(e,1)?"TRUE":"FALSE";if(r!=12)e.l+=7;break;case 37:;case 16:t[1]=ci[e[e.l]];e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=Pn(e,8);break;case 2:t[1]=Is(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0]);}return t}function Ku(e,r,t){var a=e._R(t.biff==12?4:2);var n=[];for(var i=0;i!=a;++i)n.push((t.biff==12?Fn:Ys)(e,8));return n}function Yu(e,r,t){var a=0,n=0;if(t.biff==12){a=e._R(4);n=e._R(4)}else{n=1+e._R(1);a=1+e._R(2)}if(t.biff>=2&&t.biff<8){--a;if(--n==0)n=256}for(var i=0,s=[];i!=a&&(s[i]=[]);++i)for(var f=0;f!=n;++f)s[i][f]=ju(e,t.biff);return s}function Zu(e,r,t){var a=e._R(1)>>>5&3;var n=!t||t.biff>=8?4:2;var i=e._R(n);switch(t.biff){case 2:e.l+=5;break;case 3:;case 4:e.l+=8;break;case 5:e.l+=12;break;}return[a,0,i]}function Ju(e,r,t){if(t.biff==5)return qu(e,r,t);var a=e._R(1)>>>5&3;var n=e._R(2);var i=e._R(4);return[a,n,i]}function qu(e){var r=e._R(1)>>>5&3;var t=e._R(2,"i");e.l+=8;var a=e._R(2);e.l+=12;return[r,t,a]}function Qu(e,r,t){var a=e._R(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var n=e._R(t&&t.biff==2?1:2);return[a,n]}function ed(e,r,t){var a=e._R(1)>>>5&3;var n=e._R(t&&t.biff==2?1:2);return[a,n]}function rd(e,r,t){var a=e._R(1)>>>5&3;e.l+=4;if(t.biff<8)e.l--;if(t.biff==12)e.l+=2;return[a]}function td(e,r,t){var a=(e[e.l++]&96)>>5;var n=e._R(2);var i=4;if(t)switch(t.biff){case 5:i=15;break;case 12:i=6;break;}e.l+=i;return[a,n]}var ad=Ia;var nd=Ia;var id=Ia;function sd(e,r,t){e.l+=2;return[mu(e,4,t)]}function fd(e){e.l+=6;return[]}var ld=sd;var od=fd;var cd=fd;var hd=sd;function ud(e){e.l+=2;return[ks(e),e._R(2)&1]}var dd=sd;var vd=ud;var pd=fd;var md=sd;var gd=sd;var bd=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function wd(e){e.l+=2;var r=e._R(2);var t=e._R(2);var a=e._R(4);var n=e._R(2);var i=e._R(2);var s=bd[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:a,c:n,C:i}}function kd(e){e.l+=2;return[e._R(4)]}function Ad(e,r,t){e.l+=5;e.l+=2;e.l+=t.biff==2?1:4;return["PTGSHEET"]}function Td(e,r,t){e.l+=t.biff==2?4:5;return["PTGENDSHEET"]}function yd(e){var r=e._R(1)>>>5&3;var t=e._R(2);return[r,t]}function Ed(e){var r=e._R(1)>>>5&3;var t=e._R(2);return[r,t]}function Cd(e){e.l+=4;return[0,0]}var _d={1:{n:"PtgExp",f:zu},2:{n:"PtgTbl",f:id},3:{n:"PtgAdd",f:ou},4:{n:"PtgSub",f:ou},5:{n:"PtgMul",f:ou},6:{n:"PtgDiv",f:ou},7:{n:"PtgPower",f:ou},8:{n:"PtgConcat",f:ou},9:{n:"PtgLt",f:ou},10:{n:"PtgLe",f:ou},11:{n:"PtgEq",f:ou},12:{n:"PtgGe",f:ou},13:{n:"PtgGt",f:ou},14:{n:"PtgNe",f:ou},15:{n:"PtgIsect",f:ou},16:{n:"PtgUnion",f:ou},17:{n:"PtgRange",f:ou},18:{n:"PtgUplus",f:ou},19:{n:"PtgUminus",f:ou},20:{n:"PtgPercent",f:ou},21:{n:"PtgParen",f:ou},22:{n:"PtgMissArg",f:ou},23:{n:"PtgStr",f:Gu},26:{n:"PtgSheet",f:Ad},27:{n:"PtgEndSheet",f:Td},28:{n:"PtgErr",f:Hu},29:{n:"PtgBool",f:$u},30:{n:"PtgInt",f:Vu},31:{n:"PtgNum",f:Xu},32:{n:"PtgArray",f:Eu},33:{n:"PtgFunc",f:Mu},34:{n:"PtgFuncVar",f:Uu},35:{n:"PtgName",f:Zu},36:{n:"PtgRef",f:Du},37:{n:"PtgArea",f:wu},38:{n:"PtgMemArea",f:Qu},39:{n:"PtgMemErr",f:ad},40:{n:"PtgMemNoMem",f:nd},41:{n:"PtgMemFunc",f:ed},42:{n:"PtgRefErr",f:rd},43:{n:"PtgAreaErr",f:Au},44:{n:"PtgRefN",f:Pu},45:{n:"PtgAreaN",f:yu},46:{n:"PtgMemAreaN",f:yd},47:{n:"PtgMemNoMemN",f:Ed},57:{n:"PtgNameX",f:Ju},58:{n:"PtgRef3d",f:Lu},59:{n:"PtgArea3d",f:ku},60:{n:"PtgRefErr3d",f:td},61:{n:"PtgAreaErr3d",f:Tu},255:{}};var Sd={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61};var xd={1:{n:"PtgElfLel",f:ud},2:{n:"PtgElfRw",f:md},3:{n:"PtgElfCol",f:ld},6:{n:"PtgElfRwV",f:gd},7:{n:"PtgElfColV",f:hd},10:{n:"PtgElfRadical",f:dd},11:{n:"PtgElfRadicalS",f:pd},13:{n:"PtgElfColS",f:od},15:{n:"PtgElfColSV",f:cd},16:{n:"PtgElfRadicalLel",f:vd},25:{n:"PtgList",f:wd},29:{n:"PtgSxName",f:kd},255:{}};var Od={0:{n:"PtgAttrNoop",f:Cd},1:{n:"PtgAttrSemi",f:Iu},2:{n:"PtgAttrIf",f:xu},4:{n:"PtgAttrChoose",f:_u},8:{n:"PtgAttrGoto",f:Su},16:{n:"PtgAttrSum",f:Wu},32:{n:"PtgAttrBaxcel",f:Cu},33:{n:"PtgAttrBaxcel",f:Cu},64:{n:"PtgAttrSpace",f:Nu},65:{n:"PtgAttrSpaceSemi",f:Fu},128:{n:"PtgAttrIfError",f:Ou},255:{}};function Id(e,r,t,a){if(a.biff<8)return Ia(e,r);var n=e.l+r;var i=[];for(var s=0;s!==t.length;++s){switch(t[s][0]){case"PtgArray":t[s][1]=Yu(e,0,a);i.push(t[s][1]);break;case"PtgMemArea":t[s][2]=Ku(e,t[s][1],a);i.push(t[s][2]);break;case"PtgExp":if(a&&a.biff==12){t[s][1][1]=e._R(4);i.push(t[s][1])}break;case"PtgList":;case"PtgElfRadicalS":;case"PtgElfColS":;case"PtgElfColSV":throw"Unsupported "+t[s][0];default:break;}}r=n-e.l;if(r!==0)i.push(Ia(e,r));return i}function Rd(e,r,t){var a=e.l+r;var n,i,s=[];while(a!=e.l){r=a-e.l;i=e[e.l];n=_d[i]||_d[Sd[i]];if(i===24||i===25)n=(i===24?xd:Od)[e[e.l+1]];if(!n||!n.f){Ia(e,r)}else{s.push([n.n,n.f(e,r,t)])}}return s}function Nd(e){var r=[];for(var t=0;t=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Dd(e,r){var t=e.lastIndexOf("!"),a=r.lastIndexOf("!");if(t==-1&&a==-1)return e+":"+r;if(t>0&&a>0&&e.slice(0,t).toLowerCase()==r.slice(0,a).toLowerCase())return e+":"+r.slice(a+1);console.error("Cannot hydrate range",e,r);return e+":"+r}function Pd(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[r];if(t.biff<8){if(r>1e4)r-=65536;if(r<0)r=-r;return r==0?"":e.XTI[r-1]}if(!a)return"SH33TJSERR1";var n="";if(t.biff>8)switch(e[a[0]][0]){case 357:n=a[1]==-1?"#REF":e.SheetNames[a[1]];return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:if(t.SID!=null)return e.SheetNames[t.SID];return"SH33TJSSAME"+e[a[0]][0];case 355:;default:return"SH33TJSSRC"+e[a[0]][0];}switch(e[a[0]][0][0]){case 1025:n=a[1]==-1?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3";return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map(function(e){return e.Name}).join(";;");default:if(!e[a[0]][0][3])return"SH33TJSERR2";n=a[1]==-1?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4";return a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]];}}function Ld(e,r,t){var a=Pd(e,r,t);return a=="#REF"?a:Qa(a,t)}function Md(e,r,t,a,n){var i=n&&n.biff||8;var s={s:{c:0,r:0},e:{c:0,r:0}};var f=[],l,o,c,h=0,u=0,d,v="";if(!e[0]||!e[0][0])return"";var p=-1,m="";for(var g=0,b=e[0].length;g=0){switch(e[0][p][1][0]){case 0:m=Tr(" ",e[0][p][1][1]);break;case 1:m=Tr("\r",e[0][p][1][1]);break;default:m="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0]);}o=o+m;p=-1}f.push(o+Fd[w[0]]+l);break;case"PtgIsect":l=f.pop();o=f.pop();f.push(o+" "+l);break;case"PtgUnion":l=f.pop();o=f.pop();f.push(o+","+l);break;case"PtgRange":l=f.pop();o=f.pop();f.push(Dd(o,l));break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=Pa(w[1][1],s,n);f.push(Ma(c,i));break;case"PtgRefN":c=t?Pa(w[1][1],t,n):w[1][1];f.push(Ma(c,i));break;case"PtgRef3d":h=w[1][1];c=Pa(w[1][2],s,n);v=Ld(a,h,n);var k=v;f.push(v+"!"+Ma(c,i));break;case"PtgFunc":;case"PtgFuncVar":var A=w[1][0],T=w[1][1];if(!A)A=0;A&=127;var y=A==0?[]:f.slice(-A);f.length-=A;if(T==="User")T=y.shift();f.push(T+"("+y.join(",")+")");break;case"PtgBool":f.push(w[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(w[1]);break;case"PtgNum":f.push(String(w[1]));break;case"PtgStr":f.push('"'+w[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(w[1]);break;case"PtgAreaN":d=La(w[1][1],t?{s:t}:s,n);f.push(Ua(d,n));break;case"PtgArea":d=La(w[1][1],s,n);f.push(Ua(d,n));break;case"PtgArea3d":h=w[1][1];d=w[1][2];v=Ld(a,h,n);f.push(v+"!"+Ua(d,n));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":;case"PtgAttrSemi":break;case"PtgName":u=w[1][2];var E=(a.names||[])[u-1]||(a[0]||[])[u];var C=E?E.Name:"SH33TJSNAME"+String(u);if(C&&C.slice(0,6)=="_xlfn."&&!n.xlfn)C=C.slice(6);f.push(C);break;case"PtgNameX":var _=w[1][1];u=w[1][2];var S;if(n.biff<=5){if(_<0)_=-_;if(a[_])S=a[_][u]}else{var x="";if(((a[_]||[])[0]||[])[0]==14849){}else if(((a[_]||[])[0]||[])[0]==1025){if(a[_][u]&&a[_][u].itab>0){x=a.SheetNames[a[_][u].itab-1]+"!"}}else x=a.SheetNames[u-1]+"!";if(a[_]&&a[_][u])x+=a[_][u].Name;else if(a[0]&&a[0][u])x+=a[0][u].Name;else{var O=(Pd(a,_,n)||"").split(";;");if(O[u-1])x=O[u-1];else x+="SH33TJSERRX"}f.push(x);break}if(!S)S={Name:"SH33TJSERRY"};f.push(S.Name);break;case"PtgParen":var I="(",R=")";if(p>=0){m="";switch(e[0][p][1][0]){case 2:I=Tr(" ",e[0][p][1][1])+I;break;case 3:I=Tr("\r",e[0][p][1][1])+I;break;case 4:R=Tr(" ",e[0][p][1][1])+R;break;case 5:R=Tr("\r",e[0][p][1][1])+R;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0]);}p=-1}f.push(I+f.pop()+R);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:w[1][1],r:w[1][0]};var N={c:t.c,r:t.r};if(a.sharedf[Ya(c)]){var F=a.sharedf[Ya(c)];f.push(Md(F,s,N,a,n))}else{var D=false;for(l=0;l!=a.arrayf.length;++l){o=a.arrayf[l];if(c.co[0].e.c)continue;if(c.ro[0].e.r)continue;f.push(Md(o[1],s,N,a,n));D=true;break}if(!D)f.push(w[1])}break;case"PtgArray":f.push("{"+Nd(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":p=g;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+w[1].idx+"[#"+w[1].rt+"]");break;case"PtgMemAreaN":;case"PtgMemNoMemN":;case"PtgAttrNoop":;case"PtgSheet":;case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":;case"PtgElfColS":;case"PtgElfColSV":;case"PtgElfColV":;case"PtgElfLel":;case"PtgElfRadical":;case"PtgElfRadicalLel":;case"PtgElfRadicalS":;case"PtgElfRw":;case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(w));default:throw new Error("Unrecognized Formula Token: "+String(w));}var P=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3)if(p>=0&&P.indexOf(e[0][g][0])==-1){w=e[0][p];var L=true;switch(w[1][0]){case 4:L=false;case 0:m=Tr(" ",w[1][1]);break;case 5:L=false;case 1:m=Tr("\r",w[1][1]);break;default:m="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0]);}f.push((L?m:"")+f.pop()+(L?"":m));p=-1}}if(f.length>1&&n.WTF)throw new Error("bad formula stack");if(f[0]=="TRUE")return true;if(f[0]=="FALSE")return false;return f[0]}function Ud(e,r,t){var a=e.l+r,n=t.biff==2?1:2;var i,s=e._R(n);if(s==65535)return[[],Ia(e,r-2)];var f=Rd(e,s,t);if(r!==s+n)i=Id(e,r-s-n,f,t);e.l=a;return[f,i]}function Bd(e,r,t){var a=e.l+r,n=t.biff==2?1:2;var i,s=e._R(n);if(s==65535)return[[],Ia(e,r-2)];var f=Rd(e,s,t);if(r!==s+n)i=Id(e,r-s-n,f,t);e.l=a;return[f,i]}function Wd(e,r,t,a){var n=e.l+r;var i=Rd(e,a,t);var s;if(n!==e.l)s=Id(e,n-e.l,i,t);return[i,s]}function zd(e,r,t){var a=e.l+r;var n,i=e._R(2);var s=Rd(e,i,t);if(i==65535)return[[],Ia(e,r-2)];if(r!==i+2)n=Id(e,a-i-2,s,t);return[s,n]}function Hd(e){var r;if(ba(e,e.l+6)!==65535)return[Pn(e),"n"];switch(e[e.l]){case 0:e.l+=8;return["String","s"];case 1:r=e[e.l+2]===1;e.l+=8;return[r,"b"];case 2:r=e[e.l+2];e.l+=8;return[r,"e"];case 3:e.l+=8;return["","s"];}return[]}function Vd(e){if(e==null){var r=Ra(8);r._W(1,3);r._W(1,0);r._W(2,0);r._W(2,0);r._W(2,65535);return r}else if(typeof e=="number")return Ln(e);return Ln(0)}function $d(e,r,t){var a=e.l+r;var n=Hs(e,6,t);var i=Hd(e,8);var s=e._R(1);if(t.biff!=2){e._R(1);if(t.biff>=5){e._R(4)}}var f=Bd(e,a-e.l,t);return{cell:n,val:i[0],formula:f,shared:s>>3&1,tt:i[1]}}function Xd(e,r,t,a,n){var i=Vs(r,t,n);var s=Vd(e.v);var f=Ra(6);var l=1|32;f._W(2,l);f._W(4,0);var o=Ra(e.bf.length);for(var c=0;c0?Id(e,i,n,t):null;return[n,s]}var jd=Gd;var Kd=Gd;var Yd=Gd;var Zd=Gd;function Jd(e){if((e|0)==e&&e=0){var r=Ra(11);r._W(4,3);r._W(1,30);r._W(2,e);r._W(4,0);return r}var t=Ra(17);t._W(4,11);t._W(1,31);t._W(8,e);t._W(4,0);return t}function qd(e){var r=Ra(10);r._W(4,2);r._W(1,28);r._W(1,e);r._W(4,0);return r}function Qd(e){var r=Ra(10);r._W(4,2);r._W(1,29);r._W(1,e?1:0);r._W(4,0);return r}function ev(e){var r=Ra(7);r._W(4,3+2*e.length);r._W(1,23);r._W(2,e.length);var t=Ra(2*e.length);t._W(2*e.length,e,"utf16le");var a=Ra(4);a._W(4,0);return P([r,t,a])}function rv(e){var r=Ka(e);var t=Ra(15);t._W(4,7);t._W(1,4|1<<5);t._W(4,r.r);t._W(2,r.c|(e.charAt(0)=="$"?0:1)<<14|(e.match(/\$\d/)?0:1)<<15);t._W(4,0);return t}function tv(e,r){var t=e.lastIndexOf("!");var a=e.slice(0,t);e=e.slice(t+1);var n=Ka(e);if(a.charAt(0)=="'")a=a.slice(1,-1).replace(/''/g,"'");var i=Ra(17);i._W(4,9);i._W(1,26|1<<5);i._W(2,2+r.SheetNames.map(function(e){return e.toLowerCase()}).indexOf(a.toLowerCase()));i._W(4,n.r);i._W(2,n.c|(e.charAt(0)=="$"?0:1)<<14|(e.match(/\$\d/)?0:1)<<15);i._W(4,0);return i}function av(e,r){var t=e.lastIndexOf("!");var a=e.slice(0,t);e=e.slice(t+1);if(a.charAt(0)=="'")a=a.slice(1,-1).replace(/''/g,"'");var n=Ra(17);n._W(4,9);n._W(1,28|1<<5);n._W(2,2+r.SheetNames.map(function(e){return e.toLowerCase()}).indexOf(a.toLowerCase()));n._W(4,0);n._W(2,0);n._W(4,0);return n}function nv(e){var r=e.split(":"),t=r[0];var a=Ra(23);a._W(4,15);t=r[0];var n=Ka(t);a._W(1,4|1<<5);a._W(4,n.r);a._W(2,n.c|(t.charAt(0)=="$"?0:1)<<14|(t.match(/\$\d/)?0:1)<<15);a._W(4,0);t=r[1];n=Ka(t);a._W(1,4|1<<5);a._W(4,n.r);a._W(2,n.c|(t.charAt(0)=="$"?0:1)<<14|(t.match(/\$\d/)?0:1)<<15);a._W(4,0);a._W(1,17);a._W(4,0);return a}function iv(e,r){var t=e.lastIndexOf("!");var a=e.slice(0,t);e=e.slice(t+1);if(a.charAt(0)=="'")a=a.slice(1,-1).replace(/''/g,"'");var n=e.split(":");var i=Ra(27);i._W(4,19);var s=n[0],f=Ka(s);i._W(1,26|1<<5);i._W(2,2+r.SheetNames.map(function(e){return e.toLowerCase()}).indexOf(a.toLowerCase()));i._W(4,f.r);i._W(2,f.c|(s.charAt(0)=="$"?0:1)<<14|(s.match(/\$\d/)?0:1)<<15);s=n[1];f=Ka(s);i._W(1,26|1<<5);i._W(2,2+r.SheetNames.map(function(e){return e.toLowerCase()}).indexOf(a.toLowerCase()));i._W(4,f.r);i._W(2,f.c|(s.charAt(0)=="$"?0:1)<<14|(s.match(/\$\d/)?0:1)<<15);i._W(1,17);i._W(4,0);return i}function sv(e,r){var t=e.lastIndexOf("!");var a=e.slice(0,t);e=e.slice(t+1);if(a.charAt(0)=="'")a=a.slice(1,-1).replace(/''/g,"'");var n=Za(e);var i=Ra(23);i._W(4,15);i._W(1,27|1<<5);i._W(2,2+r.SheetNames.map(function(e){return e.toLowerCase()}).indexOf(a.toLowerCase()));i._W(4,n.s.r);i._W(4,n.e.r);i._W(2,n.s.c);i._W(2,n.e.c);i._W(4,0);return i}function fv(e,r){if(typeof e=="number")return Jd(e);if(typeof e=="boolean")return Qd(e);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(e))return qd(+hi[e]);if(e.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return rv(e);if(e.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return nv(e);if(e.match(/^#REF!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return sv(e,r);if(e.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return tv(e,r);if(e.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return iv(e,r); -if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(e))return av(e,r);if(/^".*"$/.test(e))return ev(e);if(/^[+-]\d+$/.test(e))return Jd(parseInt(e,10));throw"Formula |"+e+"| not supported for XLSB"}var lv=fv;var ov={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"};var cv={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"};var hv={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function uv(e){if(e.slice(0,3)=="of:")e=e.slice(3);if(e.charCodeAt(0)==61){e=e.slice(1);if(e.charCodeAt(0)==61)e=e.slice(1)}e=e.replace(/COM\.MICROSOFT\./g,"");e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,r){return r.replace(/\./g,"")});e=e.replace(/\$'([^']|'')+'/g,function(e){return e.slice(1)});e=e.replace(/\$([^\]\. #$]+)/g,function(e,r){return r.match(/^([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])?(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})?$/)?e:r});e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1");return e.replace(/[;~]/g,",").replace(/\|/g,";")}function dv(e){var r="of:="+e.replace(tu,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function vv(e){e=e.replace(/\$'([^']|'')+'/g,function(e){return e.slice(1)});e=e.replace(/\$([^\]\. #$]+)/g,function(e,r){return r.match(/^([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])?(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})?$/)?e:r});var r=e.split(":");var t=r[0].split(".")[0];return[t,r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}function pv(e){return e.replace(/!/,".").replace(/:/,":.")}var mv={};var gv={};var bv=typeof Map!=="undefined";function wv(e,r,t){var a=0,n=e.length;if(t){if(bv?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){var i=bv?t.get(r):t[r];for(;a-1){t.width=sc(a);t.customWidth=1}else if(r.width!=null)t.width=r.width;if(r.hidden)t.hidden=true;if(r.level!=null){t.outlineLevel=t.level=r.level}return t}function Av(e,r){if(!e)return;var t=[.7,.7,.75,.75,.3,.3];if(r=="xlml")t=[1,1,1,1,.5,.5];if(e.left==null)e.left=t[0];if(e.right==null)e.right=t[1];if(e.top==null)e.top=t[2];if(e.bottom==null)e.bottom=t[3];if(e.header==null)e.header=t[4];if(e.footer==null)e.footer=t[5]}function Tv(e,r,t){var a=t.revssf[r.z!=null?r.z:"General"];var n=60,i=e.length;if(a==null&&t.ssf){for(;n<392;++n)if(t.ssf[n]==null){Je(r.z,n);t.ssf[n]=r.z;t.revssf[r.z]=a=n;break}}for(n=0;n!=i;++n)if(e[n].numFmtId===a)return n;e[i]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1};return i}function yv(e,r,t,a,n,i,s){try{if(a.cellNF)e.z=q[r]}catch(f){if(a.WTF)throw f}if(e.t==="z"&&!a.cellStyles)return;if(e.t==="d"&&typeof e.v==="string")e.v=wr(e.v);if((!a||a.cellText!==false)&&e.t!=="z")try{if(q[r]==null)Je(Ge[r]||"General",r);if(e.t==="e")e.w=e.w||ci[e.v];else if(r===0){if(e.t==="n"){if((e.v|0)===e.v)e.w=e.v.toString(10);else e.w=le(e.v)}else if(e.t==="d"){var l=dr(e.v,!!s);if((l|0)===l)e.w=l.toString(10);else e.w=le(l)}else if(e.v===undefined)return"";else e.w=oe(e.v,gv)}else if(e.t==="d")e.w=ze(r,dr(e.v,!!s),gv);else e.w=ze(r,e.v,gv)}catch(f){if(a.WTF)throw f}if(!a.cellStyles)return;if(t!=null)try{e.s=i.Fills[t];if(e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb){e.s.fgColor.rgb=Qo(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0);if(a.WTF)e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb}if(e.s.bgColor&&e.s.bgColor.theme){e.s.bgColor.rgb=Qo(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0);if(a.WTF)e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb}}catch(f){if(a.WTF&&i.Fills)throw f}}function Ev(e,r,t){if(e&&e["!ref"]){var a=en(e["!ref"]);if(a.e.c=0&&t.s.c>=0)e["!ref"]=Ja(t)}var _v=/<(?:\w+:)?mergeCell ref=["'][A-Z0-9:]+['"]\s*[\/]?>/g;var Sv=/<(?:\w+:)?hyperlink [^<>]*>/gm;var xv=/"(\w*:\w*)"/;var Ov=/<(?:\w+:)?col\b[^<>]*[\/]?>/g;var Iv=/<(?:\w+:)?autoFilter[^>]*/g;var Rv=/<(?:\w+:)?pageMargins[^<>]*\/>/g;var Nv=/<(?:\w+:)?sheetPr\b[^<>]*?\/>/;function Fv(e,r,t,a,n,i,s){if(!e)return e;if(!a)a={"!id":{}};if(b!=null&&r.dense==null)r.dense=b;var f={};if(r.dense)f["!data"]=[];var l={s:{r:2e6,c:2e6},e:{r:0,c:0}};var o="",c="";var h=Wr(e,"sheetData");if(h){o=e.slice(0,h.index);c=e.slice(h.index+h[0].length)}else o=c=e;var u=o.match(Nv);if(u)Pv(u[0],f,n,t);else if(u=Wr(o,"sheetPr"))Lv(u[0],u[1]||"",f,n,t,s,i);var d=(o.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var v=o.slice(d,d+50).match(xv);if(v&&!(r&&r.nodim))Cv(f,v[1])}var p=Wr(o,"sheetViews");if(p&&p[1])Yv(p[1],n);var m=[];if(r.cellStyles){var g=o.match(Ov);if(g)$v(m,g)}if(h)qv(h[1],f,r,l,i,s,n);var w=c.match(Iv);if(w)f["!autofilter"]=Gv(w[0]);var k=[];var A=c.match(_v);if(A)for(d=0;d!=A.length;++d)k[d]=en(A[d].slice(A[d].indexOf("=")+2));var T=c.match(Sv);if(T)zv(f,T,a);var y=c.match(Rv);if(y)f["!margins"]=Hv(ct(y[0]));var E;if(E=c.match(/legacyDrawing r:id="(.*?)"/))f["!legrel"]=E[1];if(r&&r.nodim)l.s.c=l.s.r=0;if(!f["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r)f["!ref"]=Ja(l);if(r.sheetRows>0&&f["!ref"]){var C=en(f["!ref"]);if(r.sheetRows<=+C.e.r){C.e.r=r.sheetRows-1;if(C.e.r>l.e.r)C.e.r=l.e.r;if(C.e.rl.e.c)C.e.c=l.e.c;if(C.e.c0)f["!cols"]=m;if(k.length>0)f["!merges"]=k;if(a["!id"][f["!legrel"]])f["!legdrawel"]=a["!id"][f["!legrel"]];return f}function Dv(e){if(e.length===0)return"";var r='';for(var t=0;t!=e.length;++t)r+='';return r+""}function Pv(e,r,t,a){var n=ct(e);if(!t.Sheets[a])t.Sheets[a]={};if(n.codeName)t.Sheets[a].CodeName=pt(It(n.codeName))}function Lv(e,r,t,a,n){Pv(e.slice(0,e.indexOf(">")),t,a,n)}function Mv(e,r,t,a,n){var i=false;var s={},f=null;if(a.bookType!=="xlsx"&&r.vbaraw){var l=r.SheetNames[t];try{if(r.Workbook)l=r.Workbook.Sheets[t].CodeName||l}catch(o){}i=true;s.codeName=Rt(bt(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};if(e["!outline"].above)c.summaryBelow=0;if(e["!outline"].left)c.summaryRight=0;f=(f||"")+Bt("outlinePr",null,c)}if(!i&&!f)return;n[n.length]=Bt("sheetPr",f,s)}var Uv=["objects","scenarios","selectLockedCells","selectUnlockedCells"];var Bv=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Wv(e){var r={sheet:1};Uv.forEach(function(t){if(e[t]!=null&&e[t])r[t]="1"});Bv.forEach(function(t){if(e[t]!=null&&!e[t])r[t]="0"});if(e.password)r.password=Uo(e.password).toString(16).toUpperCase();return Bt("sheetProtection",null,r)}function zv(e,r,t){var a=e["!data"]!=null;for(var n=0;n!=r.length;++n){var i=ct(It(r[n]),true);if(!i.ref)return;var s=((t||{})["!id"]||[])[i.id];if(s){i.Target=s.Target;if(i.location)i.Target+="#"+pt(i.location)}else{i.Target="#"+pt(i.location);s={Target:i.Target,TargetMode:"Internal"}}i.Rel=s;if(i.tooltip){i.Tooltip=i.tooltip;delete i.tooltip}var f=en(i.ref);for(var l=f.s.r;l<=f.e.r;++l)for(var o=f.s.c;o<=f.e.c;++o){var c=$a(o)+Wa(l);if(a){if(!e["!data"][l])e["!data"][l]=[];if(!e["!data"][l][o])e["!data"][l][o]={t:"z",v:undefined};e["!data"][l][o].l=i}else{if(!e[c])e[c]={t:"z",v:undefined};e[c].l=i}}}}function Hv(e){var r={};["left","right","top","bottom","header","footer"].forEach(function(t){if(e[t])r[t]=parseFloat(e[t])});return r}function Vv(e){Av(e);return Bt("pageMargins",null,e)}function $v(e,r){var t=false;for(var a=0;a!=r.length;++a){var n=ct(r[a],true);if(n.hidden)n.hidden=Ct(n.hidden);var i=parseInt(n.min,10)-1,s=parseInt(n.max,10)-1;if(n.outlineLevel)n.level=+n.outlineLevel||0;delete n.min;delete n.max;n.width=+n.width;if(!t&&n.width){t=true;lc(n.width)}oc(n);while(i<=s)e[i++]=Ar(n)}}function Xv(e,r){var t=[""],a;for(var n=0;n!=r.length;++n){if(!(a=r[n]))continue;t[t.length]=Bt("col",null,kv(n,a))}t[t.length]="";return t.join("")}function Gv(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}function jv(e,r,t,a){var n=typeof e.ref=="string"?e.ref:Ja(e.ref);if(!t.Workbook)t.Workbook={Sheets:[]};if(!t.Workbook.Names)t.Workbook.Names=[];var i=t.Workbook.Names;var s=Za(n);if(s.s.r==s.e.r){s.e.r=Za(r["!ref"]).e.r;n=Ja(s)}for(var f=0;fa-z][^<>]*)?\/?>/g;function Yv(e,r){if(!r.Views)r.Views=[{}];(e.match(Kv)||[]).forEach(function(e,t){var a=ct(e);if(!r.Views[t])r.Views[t]={};if(+a.zoomScale)r.Views[t].zoom=+a.zoomScale;if(a.rightToLeft&&Ct(a.rightToLeft))r.Views[t].RTL=true})}function Zv(e,r,t,a){var n={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";return Bt("sheetViews",Bt("sheetView",null,n),{})}function Jv(e,r,t,a,n,i,s){if(e.c)t["!comments"].push([r,e.c]);if((e.v===undefined||e.t==="z"&&!(a||{}).sheetStubs)&&typeof e.f!=="string"&&typeof e.z=="undefined")return"";var f="";var l=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":f=e.v?"1":"0";break;case"n":if(isNaN(e.v)){e.t="e";f=ci[e.v=36]}else if(!isFinite(e.v)){e.t="e";f=ci[e.v=7]}else f=""+e.v;break;case"e":f=ci[e.v];break;case"d":if(a&&a.cellDates){var c=wr(e.v,s);f=c.toISOString();if(c.getUTCFullYear()<1900)f=f.slice(f.indexOf("T")+1).replace("Z","")}else{e=Ar(e);e.t="n";f=""+(e.v=dr(wr(e.v,s),s))}if(typeof e.z==="undefined")e.z=q[14];break;default:f=e.v;break;}var h=e.t=="z"||e.v==null?"":Mt("v",bt(f)),u={r:r};var d=Tv(a.cellXfs,e,a);if(d!==0)u.s=d;switch(e.t){case"n":break;case"d":u.t="d";break;case"b":u.t="b";break;case"e":u.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){h=Mt("v",""+wv(a.Strings,e.v,a.revStrings));u.t="s";break}else u.t="str";break;}if(e.t!=l){e.t=l;e.v=o}if(typeof e.f=="string"&&e.f){var v=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;h=Bt("f",bt(e.f),v)+(e.v!=null?h:"")}if(e.l){e.l.display=bt(f);t["!links"].push([r,e.l])}if(e.D)u.cm=1;return Bt("c",h,u)}var qv=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/;var t=/r=["']([^"']*)["']/;var a=/ref=["']([^"']*)["']/;return function n(i,s,f,l,o,c,h){var u=0,d="",v=[],p=[],m=0,g=0,b=0,w="",k;var A,T=0,y=0;var E,C;var _=0,S=0;var x=Array.isArray(c.CellXf),O;var I=[];var R=[];var N=s["!data"]!=null;var F=[],D={},P=false;var L=!!f.sheetStubs;var M=!!((h||{}).WBProps||{}).date1904;for(var U=i.split(r),B=0,W=U.length;B!=W;++B){d=U[B].trim();var z=d.length;if(z===0)continue;var H=0;e:for(u=0;u":if(d[u-1]!="/"){++u;break e}if(f&&f.cellStyles){A=ct(d.slice(H,u),true);T=A.r!=null?parseInt(A.r,10):T+1;y=-1;if(f.sheetRows&&f.sheetRows=u)break;A=ct(d.slice(H,u),true);T=A.r!=null?parseInt(A.r,10):T+1;y=-1;if(f.sheetRows&&f.sheetRowsT-1)l.s.r=T-1;if(l.e.r":"")+d;if(p!=null&&p.length===2){m=0;w=p[1];for(g=0;g!=w.length;++g){if((b=w.charCodeAt(g)-64)<1||b>26)break;m=26*m+b}--m;y=m}else++y;for(g=0;g!=d.length;++g)if(d.charCodeAt(g)===62)break;++g;A=ct(d.slice(0,g),true);if(!A.r)A.r=Ya({r:T-1,c:y});w=d.slice(g);k={t:""};if((p=Wr(w,"v"))!=null&&p[1]!=="")k.v=pt(p[1]);if(f.cellFormula){if((p=Wr(w,"f"))!=null){if(p[1]==""){if(p[0].indexOf('t="shared"')>-1){C=ct(p[0]);if(R[C.si])k.f=su(R[C.si][1],R[C.si][2],A.r)}}else{k.f=pt(It(p[1]),true);if(!f.xlfn)k.f=lu(k.f);if(p[0].indexOf('t="array"')>-1){k.F=(w.match(a)||[])[1];if(k.F.indexOf(":")>-1)I.push([en(k.F),k.F])}else if(p[0].indexOf('t="shared"')>-1){C=ct(p[0]);var $=pt(It(p[1]));if(!f.xlfn)$=lu($);R[parseInt(C.si,10)]=[C,$,A.r]}}}else if(p=w.match(/]*\/>/)){C=ct(p[0]);if(R[C.si])k.f=su(R[C.si][1],R[C.si][2],A.r)}var X=Ka(A.r);for(g=0;g=I[g][0].s.r&&X.r<=I[g][0].e.r)if(X.c>=I[g][0].s.c&&X.c<=I[g][0].e.c)k.F=I[g][1]}if(A.t==null&&k.v===undefined){if(k.f||k.F){k.v=0;k.t="n"}else if(!L)continue;else k.t="z"}else k.t=A.t||"n";if(l.s.c>y)l.s.c=y;if(l.e.cj.r)l.s.r=j.r;if(l.e.r0)s["!rows"]=F}}();function Qv(e,r,t,a){var n=[],i=[],s=en(e["!ref"]),f="",l,o="",c=[],h=0,u=0,d=e["!rows"];var v=e["!data"]!=null,p=v?e["!data"]:[];var m={r:o},g,b=-1;var w=(((a||{}).Workbook||{}).WBProps||{}).date1904;for(u=s.s.c;u<=s.e.c;++u)c[u]=$a(u);for(h=s.s.r;h<=s.e.r;++h){i=[];o=Wa(h);var k=v?p[h]:[];for(u=s.s.c;u<=s.e.c;++u){l=c[u]+o;var A=v?k[u]:e[l];if(A===undefined)continue;if((f=Jv(A,l,e,r,t,a,w))!=null)i.push(f)}if(i.length>0||d&&d[h]){m={r:o};if(d&&d[h]){g=d[h];if(g.hidden)m.hidden=1;b=-1;if(g.hpx)b=uc(g.hpx);else if(g.hpt)b=g.hpt;if(b>-1){m.ht=b;m.customHeight=1}if(g.level){m.outlineLevel=g.level}}n[n.length]=Bt("row",i.join(""),m)}}if(d)for(;h-1){m.ht=b;m.customHeight=1}if(g.level){m.outlineLevel=g.level}n[n.length]=Bt("row","",m)}}return n.join("")}function ep(e,r,t,a){var n=[at,Bt("worksheet",null,{xmlns:Xt[0],"xmlns:r":$t.r})];var i=t.SheetNames[e],s=0,f="";var l=t.Sheets[i];if(l==null)l={};var o=l["!ref"]||"A1";var c=en(o);if(c.e.c>16383||c.e.r>1048575){if(r.WTF)throw new Error("Range "+o+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383);c.e.r=Math.min(c.e.c,1048575);o=Ja(c)}if(!a)a={};l["!comments"]=[];var h=[];Mv(l,t,e,r,n);n[n.length]=Bt("dimension",null,{ref:o});n[n.length]=Zv(l,r,e,t);if(r.sheetFormat)n[n.length]=Bt("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"});if(l["!cols"]!=null&&l["!cols"].length>0)n[n.length]=Xv(l,l["!cols"]);n[s=n.length]="";l["!links"]=[];if(l["!ref"]!=null){f=Qv(l,r,e,t,a);if(f.length>0)n[n.length]=f}if(n.length>s+1){n[n.length]="";n[s]=n[s].replace("/>",">")}if(l["!protect"])n[n.length]=Wv(l["!protect"]);if(l["!autofilter"]!=null)n[n.length]=jv(l["!autofilter"],l,t,e);if(l["!merges"]!=null&&l["!merges"].length>0)n[n.length]=Dv(l["!merges"]);var u=-1,d,v=-1;if(l["!links"].length>0){n[n.length]="";l["!links"].forEach(function(e){if(!e[1].Target)return;d={ref:e[0]};if(e[1].Target.charAt(0)!="#"){v=Ti(a,-1,bt(e[1].Target).replace(/#[\s\S]*$/,""),bi.HLINK);d["r:id"]="rId"+v}if((u=e[1].Target.indexOf("#"))>-1)d.location=bt(e[1].Target.slice(u+1)); -if(e[1].Tooltip)d.tooltip=bt(e[1].Tooltip);d.display=e[1].display;n[n.length]=Bt("hyperlink",null,d)});n[n.length]=""}delete l["!links"];if(l["!margins"]!=null)n[n.length]=Vv(l["!margins"]);if(!r||r.ignoreEC||r.ignoreEC==void 0)n[n.length]=Mt("ignoredErrors",Bt("ignoredError",null,{numberStoredAsText:1,sqref:o}));if(h.length>0){v=Ti(a,-1,"../drawings/drawing"+(e+1)+".xml",bi.DRAW);n[n.length]=Bt("drawing",null,{"r:id":"rId"+v});l["!drawing"]=h}if(l["!comments"].length>0){v=Ti(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",bi.VML);n[n.length]=Bt("legacyDrawing",null,{"r:id":"rId"+v});l["!legacy"]=v}if(n.length>1){n[n.length]="";n[1]=n[1].replace("/>",">")}return n.join("")}function rp(e,r){var t={};var a=e.l+r;t.r=e._R(4);e.l+=4;var n=e._R(2);e.l+=1;var i=e._R(1);e.l=a;if(i&7)t.level=i&7;if(i&16)t.hidden=true;if(i&32)t.hpt=n/20;return t}function tp(e,r,t){var a=Ra(17+8*16);var n=(t["!rows"]||[])[e]||{};a._W(4,e);a._W(4,0);var i=320;if(n.hpx)i=uc(n.hpx)*20;else if(n.hpt)i=n.hpt*20;a._W(2,i);a._W(1,0);var s=0;if(n.level)s|=n.level;if(n.hidden)s|=16;if(n.hpx||n.hpt)s|=32;a._W(1,s);a._W(1,0);var f=0,l=a.l;a.l+=4;var o={r:e,c:0};var c=t["!data"]!=null;for(var h=0;h<16;++h){if(r.s.c>h+1<<10||r.e.ca.l?a.slice(0,a.l):a}function ap(e,r,t,a){var n=tp(a,t,r);if(n.length>17||(r["!rows"]||[])[a])Da(e,0,n)}var np=Fn;var ip=Dn;function sp(){}function fp(e,r){var t={};var a=e[e.l];++e.l;t.above=!(a&64);t.left=!(a&128);e.l+=18;t.name=Tn(e,r-19);return t}function lp(e,r,t){if(t==null)t=Ra(84+4*e.length);var a=192;if(r){if(r.above)a&=~64;if(r.left)a&=~128}t._W(1,a);for(var n=1;n<3;++n)t._W(1,0);Un({auto:1},t);t._W(-4,-1);t._W(-4,-1);yn(e,t);return t.slice(0,t.l)}function op(e){var r=bn(e);return[r]}function cp(e,r,t){if(t==null)t=Ra(8);return wn(r,t)}function hp(e){var r=kn(e);return[r]}function up(e,r,t){if(t==null)t=Ra(4);return An(r,t)}function dp(e){var r=bn(e);var t=e._R(1);return[r,t,"b"]}function vp(e,r,t){if(t==null)t=Ra(9);wn(r,t);t._W(1,e.v?1:0);return t}function pp(e){var r=kn(e);var t=e._R(1);return[r,t,"b"]}function mp(e,r,t){if(t==null)t=Ra(5);An(r,t);t._W(1,e.v?1:0);return t}function gp(e){var r=bn(e);var t=e._R(1);return[r,t,"e"]}function bp(e,r,t){if(t==null)t=Ra(9);wn(r,t);t._W(1,e.v);return t}function wp(e){var r=kn(e);var t=e._R(1);return[r,t,"e"]}function kp(e,r,t){if(t==null)t=Ra(8);An(r,t);t._W(1,e.v);t._W(2,0);t._W(1,0);return t}function Ap(e){var r=bn(e);var t=e._R(4);return[r,t,"s"]}function Tp(e,r,t){if(t==null)t=Ra(12);wn(r,t);t._W(4,r.v);return t}function yp(e){var r=kn(e);var t=e._R(4);return[r,t,"s"]}function Ep(e,r,t){if(t==null)t=Ra(8);An(r,t);t._W(4,r.v);return t}function Cp(e){var r=bn(e);var t=Pn(e);return[r,t,"n"]}function _p(e,r,t){if(t==null)t=Ra(16);wn(r,t);Ln(e.v,t);return t}function Sp(e){var r=kn(e);var t=Pn(e);return[r,t,"n"]}function xp(e,r,t){if(t==null)t=Ra(12);An(r,t);Ln(e.v,t);return t}function Op(e){var r=bn(e);var t=On(e);return[r,t,"n"]}function Ip(e,r,t){if(t==null)t=Ra(12);wn(r,t);In(e.v,t);return t}function Rp(e){var r=kn(e);var t=On(e);return[r,t,"n"]}function Np(e,r,t){if(t==null)t=Ra(8);An(r,t);In(e.v,t);return t}function Fp(e){var r=bn(e);var t=vn(e);return[r,t,"is"]}function Dp(e){var r=bn(e);var t=cn(e);return[r,t,"str"]}function Pp(e,r,t){var a=e.v==null?"":String(e.v);if(t==null)t=Ra(12+4*e.v.length);wn(r,t);hn(a,t);return t.length>t.l?t.slice(0,t.l):t}function Lp(e){var r=kn(e);var t=cn(e);return[r,t,"str"]}function Mp(e,r,t){var a=e.v==null?"":String(e.v);if(t==null)t=Ra(8+4*a.length);An(r,t);hn(a,t);return t.length>t.l?t.slice(0,t.l):t}function Up(e,r,t){var a=e.l+r;var n=bn(e);n.r=t["!row"];var i=e._R(1);var s=[n,i,"b"];if(t.cellFormula){e.l+=2;var f=Kd(e,a-e.l,t);s[3]=Md(f,null,n,t.supbooks,t)}else e.l=a;return s}function Bp(e,r,t){var a=e.l+r;var n=bn(e);n.r=t["!row"];var i=e._R(1);var s=[n,i,"e"];if(t.cellFormula){e.l+=2;var f=Kd(e,a-e.l,t);s[3]=Md(f,null,n,t.supbooks,t)}else e.l=a;return s}function Wp(e,r,t){var a=e.l+r;var n=bn(e);n.r=t["!row"];var i=Pn(e);var s=[n,i,"n"];if(t.cellFormula){e.l+=2;var f=Kd(e,a-e.l,t);s[3]=Md(f,null,n,t.supbooks,t)}else e.l=a;return s}function zp(e,r,t){var a=e.l+r;var n=bn(e);n.r=t["!row"];var i=cn(e);var s=[n,i,"str"];if(t.cellFormula){e.l+=2;var f=Kd(e,a-e.l,t);s[3]=Md(f,null,n,t.supbooks,t)}else e.l=a;return s}var Hp=Fn;var Vp=Dn;function $p(e,r){if(r==null)r=Ra(4);r._W(4,e);return r}function Xp(e,r){var t=e.l+r;var a=Fn(e,16);var n=En(e);var i=cn(e);var s=cn(e);var f=cn(e);e.l=t;var l={rfx:a,relId:n,loc:i,display:f};if(s)l.Tooltip=s;return l}function Gp(e,r){var t=Ra(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Dn({s:Ka(e[0]),e:Ka(e[0])},t);xn("rId"+r,t);var a=e[1].Target.indexOf("#");var n=a==-1?"":e[1].Target.slice(a+1);hn(n||"",t);hn(e[1].Tooltip||"",t);hn("",t);return t.slice(0,t.l)}function jp(){}function Kp(e,r,t){var a=e.l+r;var n=Rn(e,16);var i=e._R(1);var s=[n];s[2]=i;if(t.cellFormula){var f=jd(e,a-e.l,t);s[1]=f}else e.l=a;return s}function Yp(e,r,t){var a=e.l+r;var n=Fn(e,16);var i=[n];if(t.cellFormula){var s=Zd(e,a-e.l,t);i[1]=s;e.l=a}else e.l=a;return i}function Zp(e,r,t){if(t==null)t=Ra(18);var a=kv(e,r);t._W(-4,e);t._W(-4,e);t._W(4,(a.width||10)*256);t._W(4,0);var n=0;if(r.hidden)n|=1;if(typeof a.width=="number")n|=2;if(r.level)n|=r.level<<8;t._W(2,n);return t}var Jp=["left","right","top","bottom","header","footer"];function qp(e){var r={};Jp.forEach(function(t){r[t]=Pn(e,8)});return r}function Qp(e,r){if(r==null)r=Ra(6*8);Av(e);Jp.forEach(function(t){Ln(e[t],r)});return r}function em(e){var r=e._R(2);e.l+=28;return{RTL:r&32}}function rm(e,r,t){if(t==null)t=Ra(30);var a=924;if((((r||{}).Views||[])[0]||{}).RTL)a|=32;t._W(2,a);t._W(4,0);t._W(4,0);t._W(4,0);t._W(1,0);t._W(1,0);t._W(2,0);t._W(2,100);t._W(2,0);t._W(2,0);t._W(2,0);t._W(4,0);return t}function tm(e){var r=Ra(24);r._W(4,4);r._W(4,1);Dn(e,r);return r}function am(e,r){if(r==null)r=Ra(16*4+2);r._W(2,e.password?Uo(e.password):0);r._W(4,1);[["objects",false],["scenarios",false],["formatCells",true],["formatColumns",true],["formatRows",true],["insertColumns",true],["insertRows",true],["insertHyperlinks",true],["deleteColumns",true],["deleteRows",true],["selectLockedCells",false],["sort",true],["autoFilter",true],["pivotTables",true],["selectUnlockedCells",false]].forEach(function(t){if(t[1])r._W(4,e[t[0]]!=null&&!e[t[0]]?1:0);else r._W(4,e[t[0]]!=null&&e[t[0]]?0:1)});return r}function nm(){}function im(){}function sm(e,r,t,a,n,i,s){if(!e)return e;var f=r||{};if(!a)a={"!id":{}};if(b!=null&&f.dense==null)f.dense=b;var l={};if(f.dense)l["!data"]=[];var o;var c={s:{r:2e6,c:2e6},e:{r:0,c:0}};var h=[];var u=false,d=false;var v,p,m,g,w,k,A,T,y;var E=[];f.biff=12;f["!row"]=0;var C=0,_=false;var S=[];var x={};var O=f.supbooks||n.supbooks||[[]];O.sharedf=x;O.arrayf=S;O.SheetNames=n.SheetNames||n.Sheets.map(function(e){return e.name});if(!f.supbooks){f.supbooks=O;if(n.Names)for(var I=0;I0);w=e[0].c==-1?w+1:e[0].c;if(f.dense){if(!l["!data"][g])l["!data"][g]=[];l["!data"][g][w]=p}else l[$a(w)+T]=p;if(f.cellFormula){_=false;for(C=0;C=I[0].s.r&&v.r<=I[0].e.r)if(w>=I[0].s.c&&w<=I[0].e.c){p.F=Ja(I[0]);_=true}}if(!_&&e.length>3)p.f=e[3]}if(c.s.r>v.r)c.s.r=v.r;if(c.s.c>w)c.s.c=w;if(c.e.rv.r)c.s.r=v.r;if(c.s.c>w)c.s.c=w;if(c.e.r=e.s){R[e.e--]={width:e.w/256,hidden:!!(e.flags&1),level:e.level};if(!F){F=true;lc(e.w/256)}oc(R[e.e+1])}break;case 551:if(e)l["!legrel"]=e;break;case 161:l["!autofilter"]={ref:Ja(e)};break;case 476:l["!margins"]=e;break;case 147:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;if(e.above||e.left)l["!outline"]={above:e.above,left:e.left};break;case 137:if(!n.Views)n.Views=[{}];if(!n.Views[0])n.Views[0]={};if(e.RTL)n.Views[0].RTL=true;break;case 485:break;case 64:;case 1053:break;case 151:break;case 152:;case 175:;case 644:;case 625:;case 562:;case 396:;case 1112:;case 1146:;case 471:;case 1050:;case 649:;case 1105:;case 589:;case 607:;case 564:;case 1055:;case 168:;case 174:;case 1180:;case 499:;case 507:;case 550:;case 171:;case 167:;case 1177:;case 169:;case 1181:;case 552:;case 661:;case 639:;case 478:;case 537:;case 477:;case 536:;case 1103:;case 680:;case 1104:;case 1024:;case 663:;case 535:;case 678:;case 504:;case 1043:;case 428:;case 170:;case 3072:;case 50:;case 2070:;case 1045:break;case 35:u=true;break;case 36:u=false;break;case 37:h.push(b);u=true;break;case 38:h.pop();u=false;break;default:if(r.T){}else if(!u||f.WTF)throw new Error("Unexpected record 0x"+b.toString(16));}},f);delete f.supbooks;delete f["!row"];if(!l["!ref"]&&(c.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0)))l["!ref"]=Ja(o||c);if(f.sheetRows&&l["!ref"]){var M=en(l["!ref"]);if(f.sheetRows<=+M.e.r){M.e.r=f.sheetRows-1;if(M.e.r>c.e.r)M.e.r=c.e.r;if(M.e.rc.e.c)M.e.c=c.e.c;if(M.e.c0)l["!merges"]=E;if(R.length>0)l["!cols"]=R;if(N.length>0)l["!rows"]=N;if(a["!id"][l["!legrel"]])l["!legdrawel"]=a["!id"][l["!legrel"]];return l}function fm(e,r,t,a,n,i,s,f){var l={r:t,c:a};if(r.c)i["!comments"].push([Ya(l),r.c]);if(r.v===undefined)return false;var o="";switch(r.t){case"b":o=r.v?"1":"0";break;case"d":r=Ar(r);r.z=r.z||q[14];r.v=dr(wr(r.v,f),f);r.t="n";break;case"n":;case"e":o=""+r.v;break;default:o=r.v;break;}l.s=Tv(n.cellXfs,r,n);if(r.l)i["!links"].push([Ya(l),r.l]);switch(r.t){case"s":;case"str":if(n.bookSST){o=wv(n.Strings,r.v==null?"":String(r.v),n.revStrings);l.t="s";l.v=o;if(s)Da(e,18,Ep(r,l));else Da(e,7,Tp(r,l))}else{l.t="str";if(s)Da(e,17,Mp(r,l));else Da(e,6,Pp(r,l))}return true;case"n":if(r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3){if(s)Da(e,13,Np(r,l));else Da(e,2,Ip(r,l))}else if(!isFinite(r.v)){l.t="e";if(isNaN(r.v)){if(s)Da(e,14,kp({t:"e",v:36},l));else Da(e,3,bp({t:"e",v:36},l))}else{if(s)Da(e,14,kp({t:"e",v:7},l));else Da(e,3,bp({t:"e",v:7},l))}}else{if(s)Da(e,16,xp(r,l));else Da(e,5,_p(r,l))}return true;case"b":l.t="b";if(s)Da(e,15,mp(r,l));else Da(e,4,vp(r,l));return true;case"e":l.t="e";if(s)Da(e,14,kp(r,l));else Da(e,3,bp(r,l));return true;}if(s)Da(e,12,up(r,l));else Da(e,1,cp(r,l));return true}function lm(e,r,t,a,n){var i=en(r["!ref"]||"A1"),s="",f=[];var l=(((n||{}).Workbook||{}).WBProps||{}).date1904;Da(e,145);var o=r["!data"]!=null,c=o?r["!data"][i.s.r]:[];var h=i.e.r;if(r["!rows"])h=Math.max(i.e.r,r["!rows"].length-1);for(var u=i.s.r;u<=h;++u){s=Wa(u);if(o)c=r["!data"][u];ap(e,r,i,u);if(o&&!c)continue;var d=false;if(u<=i.e.r)for(var v=i.s.c;v<=i.e.c;++v){if(u===i.s.r)f[v]=$a(v);var p=o?c[v]:r[f[v]+s];if(!p){d=false;continue}d=fm(e,p,u,v,a,r,d,l)}}Da(e,146)}function om(e,r){if(!r||!r["!merges"])return;Da(e,177,$p(r["!merges"].length));r["!merges"].forEach(function(r){Da(e,176,Vp(r))});Da(e,178)}function cm(e,r){if(!r||!r["!cols"])return;Da(e,390);r["!cols"].forEach(function(r,t){if(r)Da(e,60,Zp(t,r))});Da(e,391)}function hm(e,r){if(!r||!r["!ref"])return;Da(e,648);Da(e,649,tm(en(r["!ref"])));Da(e,650)}function um(e,r,t){r["!links"].forEach(function(r){if(!r[1].Target)return;var a=Ti(t,-1,r[1].Target.replace(/#[\s\S]*$/,""),bi.HLINK);Da(e,494,Gp(r,a))});delete r["!links"]}function dm(e,r,t,a){if(r["!comments"].length>0){var n=Ti(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",bi.VML);Da(e,551,xn("rId"+n));r["!legacy"]=n}}function vm(e,r,t,a){if(!r["!autofilter"])return;var n=r["!autofilter"];var i=typeof n.ref==="string"?n.ref:Ja(n.ref);if(!t.Workbook)t.Workbook={Sheets:[]};if(!t.Workbook.Names)t.Workbook.Names=[];var s=t.Workbook.Names;var f=Za(i);if(f.s.r==f.e.r){f.e.r=Za(r["!ref"]).e.r;i=Ja(f)}for(var l=0;l16383||o.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383);o.e.r=Math.min(o.e.c,1048575)}s["!links"]=[];s["!comments"]=[];Da(n,129);if(t.vbaraw||s["!outline"])Da(n,147,lp(f,s["!outline"]));Da(n,148,ip(o));pm(n,s,t.Workbook);mm(n,s);cm(n,s,e,r,t);lm(n,s,e,r,t);gm(n,s);vm(n,s,t,e);om(n,s);um(n,s,a);if(s["!margins"])Da(n,476,Qp(s["!margins"]));if(!r||r.ignoreEC||r.ignoreEC==void 0)hm(n,s);dm(n,s,e,a);Da(n,130);return n.end()}function wm(e){var r=[];var t=e.match(/^/);var a;(e.match(/\/]*>([^<])<\/c:v><\/c:pt>/gm)||[]).forEach(function(e){var a=e.match(/\/]*>([^<]*)<\/c:v><\/c:pt>/);if(!a)return;r[+a[1]]=t?+a[2]:a[2]});var n=pt((Br(e,"c:formatCode")||["","General"])[1]);(Lr(e,"","")||[]).forEach(function(e){a=e.replace(/<[^<>]*>/g,"")});return[r,n,a]}function km(e,r,t,a,n,i){var s=i||{"!type":"chart"};if(!e)return i;var f=0,l=0,o="A";var c={s:{r:2e6,c:2e6},e:{r:0,c:0}};(Lr(e,"","")||[]).forEach(function(e){var r=wm(e);c.s.r=c.s.c=0;c.e.c=f;o=$a(f);r[0].forEach(function(e,t){if(s["!data"]){if(!s["!data"][t])s["!data"][t]=[];s["!data"][t][f]={t:"n",v:e,z:r[1]}}else s[o+Wa(t)]={t:"n",v:e,z:r[1]};l=t});if(c.e.r0)s["!ref"]=Ja(c);return s}function Am(e,r,t,a,n){if(!e)return e;if(!a)a={"!id":{}};var i={"!type":"chart","!drawel":null,"!rel":""};var s;var f=e.match(Nv);if(f)Pv(f[0],i,n,t);if(s=e.match(/drawing r:id="(.*?)"/))i["!rel"]=s[1];if(a["!id"][i["!rel"]])i["!drawel"]=a["!id"][i["!rel"]];return i}function Tm(e,r){e.l+=10;var t=cn(e,r-10);return{name:t}}function ym(e,r,t,a,n){if(!e)return e;if(!a)a={"!id":{}};var i={"!type":"chart","!drawel":null,"!rel":""};var s=[];var f=false;Na(e,function l(e,a,o){switch(o){case 550:i["!rel"]=e;break;case 651:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;break;case 562:;case 652:;case 669:;case 679:;case 551:;case 552:;case 476:;case 3072:break;case 35:f=true;break;case 36:f=false;break;case 37:s.push(o);break;case 38:s.pop();break;default:if(a.T>0)s.push(o);else if(a.T<0)s.pop();else if(!f||r.WTF)throw new Error("Unexpected record 0x"+o.toString(16));}},r);if(a["!id"][i["!rel"]])i["!drawel"]=a["!id"][i["!rel"]];return i}var Em=[["allowRefreshQuery",false,"bool"],["autoCompressPictures",true,"bool"],["backupFile",false,"bool"],["checkCompatibility",false,"bool"],["CodeName",""],["date1904",false,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",false,"bool"],["hidePivotFieldList",false,"bool"],["promptedSolutions",false,"bool"],["publishItems",false,"bool"],["refreshAllConnections",false,"bool"],["saveExternalLinkValues",true,"bool"],["showBorderUnselectedTables",true,"bool"],["showInkAnnotation",true,"bool"],["showObjects","all"],["showPivotChartFilter",false,"bool"],["updateLinks","userSet"]];var Cm=[["activeTab",0,"int"],["autoFilterDateGrouping",true,"bool"],["firstSheet",0,"int"],["minimized",false,"bool"],["showHorizontalScroll",true,"bool"],["showSheetTabs",true,"bool"],["showVerticalScroll",true,"bool"],["tabRatio",600,"int"],["visibility","visible"]];var _m=[];var Sm=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function xm(e,r){for(var t=0;t!=e.length;++t){var a=e[t];for(var n=0;n!=r.length;++n){var i=r[n];if(a[i[0]]==null)a[i[0]]=i[1];else switch(i[2]){case"bool":if(typeof a[i[0]]=="string")a[i[0]]=Ct(a[i[0]]);break;case"int":if(typeof a[i[0]]=="string")a[i[0]]=parseInt(a[i[0]],10);break;}}}}function Om(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":if(typeof e[a[0]]=="string")e[a[0]]=Ct(e[a[0]]);break;case"int":if(typeof e[a[0]]=="string")e[a[0]]=parseInt(e[a[0]],10);break;}}}function Im(e){Om(e.WBProps,Em);Om(e.CalcPr,Sm);xm(e.WBView,Cm);xm(e.Sheets,_m);gv.date1904=Ct(e.WBProps.date1904)}function Rm(e){if(!e.Workbook)return"false";if(!e.Workbook.WBProps)return"false";return Ct(e.Workbook.WBProps.date1904)?"true":"false"}var Nm=":][*?/\\".split("");function Fm(e,r){try{if(e=="")throw new Error("Sheet name cannot be blank");if(e.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(e.charCodeAt(0)==39||e.charCodeAt(e.length-1)==39)throw new Error("Sheet name cannot start or end with apostrophe (')");if(e.toLowerCase()=="history")throw new Error("Sheet name cannot be 'History'");Nm.forEach(function(r){if(e.indexOf(r)==-1)return;throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(t){if(r)return false;throw t}return true}function Dm(e,r,t){e.forEach(function(a,n){Fm(a);for(var i=0;i22)throw new Error("Bad Code Name: Worksheet"+s)}})}function Pm(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];Dm(e.SheetNames,r,!!e.vbaraw);for(var t=0;t":break;case"":;case"":break;case"":break;case"":Em.forEach(function(e){if(c[e[0]]==null)return;switch(e[2]){case"bool":t.WBProps[e[0]]=Ct(c[e[0]]);break;case"int":t.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:t.WBProps[e[0]]=c[e[0]];}});if(c.codeName)t.WBProps.CodeName=It(c.codeName);break;case"":break;case"":break;case"":;case"":break;case"":delete c[0];t.WBView.push(c);break;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":break;case"":;case"":a=false;break;case"":{i.Ref=pt(It(e.slice(s,o)));t.Names.push(i)}break;case"":break;case"":delete c[0];t.CalcPr=c;break;case"":break;case"":;case"":;case"":break;case"":;case"":;case"":break;case"":;case"":break;case"":break;case"":break;case"":;case"":break;case"":;case"":;case"":break;case"":a=false;break;case"":a=true;break;case"":a=false;break;case"0;var a={codeName:"ThisWorkbook"};if(e.Workbook&&e.Workbook.WBProps){Em.forEach(function(r){if(e.Workbook.WBProps[r[0]]==null)return;if(e.Workbook.WBProps[r[0]]==r[1])return;a[r[0]]=e.Workbook.WBProps[r[0]]});if(e.Workbook.WBProps.CodeName){a.codeName=e.Workbook.WBProps.CodeName;delete a.CodeName}}r[r.length]=Bt("workbookPr",null,a);var n=e.Workbook&&e.Workbook.Sheets||[];var i=0;if(n&&n[0]&&!!n[0].Hidden){r[r.length]="";for(i=0;i!=e.SheetNames.length;++i){if(!n[i])break;if(!n[i].Hidden)break}if(i==e.SheetNames.length)i=0;r[r.length]='';r[r.length]=""}r[r.length]="";for(i=0;i!=e.SheetNames.length;++i){var s={name:bt(e.SheetNames[i].slice(0,31))};s.sheetId=""+(i+1);s["r:id"]="rId"+(i+1);if(n[i])switch(n[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break;}r[r.length]=Bt("sheet",null,s)}r[r.length]="";if(t){r[r.length]="";if(e.Workbook&&e.Workbook.Names)e.Workbook.Names.forEach(function(e){var t={name:e.Name};if(e.Comment)t.comment=e.Comment;if(e.Sheet!=null)t.localSheetId=""+e.Sheet;if(e.Hidden)t.hidden="1";if(!e.Ref)return;r[r.length]=Bt("definedName",bt(e.Ref),t)});r[r.length]=""}if(r.length>2){r[r.length]="";r[1]=r[1].replace("/>",">")}return r.join("")}function Bm(e,r){var t={};t.Hidden=e._R(4);t.iTabID=e._R(4);t.strRelID=Sn(e,r-8);t.name=cn(e);return t}function Wm(e,r){if(!r)r=Ra(127);r._W(4,e.Hidden);r._W(4,e.iTabID);xn(e.strRelID,r);hn(e.name.slice(0,31),r);return r.length>r.l?r.slice(0,r.l):r}function zm(e,r){var t={};var a=e._R(4);t.defaultThemeVersion=e._R(4);var n=r>8?cn(e):"";if(n.length>0)t.CodeName=n;t.autoCompressPictures=!!(a&65536);t.backupFile=!!(a&64);t.checkCompatibility=!!(a&4096);t.date1904=!!(a&1);t.filterPrivacy=!!(a&8);t.hidePivotFieldList=!!(a&1024);t.promptedSolutions=!!(a&16);t.publishItems=!!(a&2048);t.refreshAllConnections=!!(a&262144);t.saveExternalLinkValues=!!(a&128);t.showBorderUnselectedTables=!!(a&4);t.showInkAnnotation=!!(a&32);t.showObjects=["all","placeholders","none"][a>>13&3];t.showPivotChartFilter=!!(a&32768);t.updateLinks=["userSet","never","always"][a>>8&3];return t}function Hm(e,r){if(!r)r=Ra(72);var t=0;if(e){if(e.date1904)t|=1;if(e.filterPrivacy)t|=8}r._W(4,t);r._W(4,0);yn(e&&e.CodeName||"ThisWorkbook",r);return r.slice(0,r.l)}function Vm(e,r){var t={};e._R(4);t.ArchID=e._R(4);e.l+=r-8;return t}function $m(e,r,t){var a=e.l+r;var n=e._R(4);e.l+=1;var i=e._R(4);var s=_n(e);var f;var l="";try{f=Yd(e,0,t);try{l=En(e)}catch(o){}}catch(o){console.error("Could not parse defined name "+s)}if(n&32)s="_xlnm."+s;e.l=a;var c={Name:s,Ptg:f,Flags:n};if(i<268435455)c.Sheet=i;if(l)c.Comment=l;return c}function Xm(e,r){var t=Ra(9);var a=0;var n=e.Name;if(ui.indexOf(n)>-1){a|=32;n=n.slice(6)}t._W(4,a);t._W(1,0);t._W(4,e.Sheet==null?4294967295:e.Sheet);var i=[t,hn(n),lv(e.Ref,r)];if(e.Comment)i.push(Cn(e.Comment));else{var s=Ra(4);s._W(4,4294967295);i.push(s)}return P(i)}function Gm(e,r){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};var a=[];var n=false;if(!r)r={};r.biff=12;var i=[];var s=[[]];s.SheetNames=[];s.XTI=[];Zg[16]={n:"BrtFRTArchID$",f:Vm};Na(e,function f(e,l,o){switch(o){case 156:s.SheetNames.push(e.name);t.Sheets.push(e);break;case 153:t.WBProps=e;break;case 39:if(e.Sheet!=null)r.SID=e.Sheet;e.Ref=e.Ptg?Md(e.Ptg,null,null,s,r):"#REF!";delete r.SID;delete e.Ptg;i.push(e);break;case 1036:break;case 357:;case 358:;case 355:;case 667:if(!s[0].length)s[0]=[o,e];else s.push([o,e]);s[s.length-1].XTI=[];break;case 362:if(s.length===0){s[0]=[];s[0].XTI=[]}s[s.length-1].XTI=s[s.length-1].XTI.concat(e);s.XTI=s.XTI.concat(e);break;case 361:break;case 2071:;case 158:;case 143:;case 664:;case 353:break;case 3072:;case 3073:;case 534:;case 677:;case 157:;case 610:;case 2050:;case 155:;case 548:;case 676:;case 128:;case 665:;case 2128:;case 2125:;case 549:;case 2053:;case 596:;case 2076:;case 2075:;case 2082:;case 397:;case 154:;case 1117:;case 553:;case 2091:break;case 35:a.push(o);n=true;break;case 36:a.pop();n=false;break;case 37:a.push(o);n=true;break;case 38:a.pop();n=false;break;case 16:break;default:if(l.T){}else if(!n||r.WTF&&a[a.length-1]!=37&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+o.toString(16));}},r);Im(t);t.Names=i;t.supbooks=s;return t}function jm(e,r){Da(e,143);for(var t=0;t!=r.SheetNames.length;++t){var a=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0;var n={Hidden:a,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};Da(e,156,Wm(n))}Da(e,144)}function Km(r,t){if(!t)t=Ra(127);for(var a=0;a!=4;++a)t._W(4,0);hn("SheetJS",t);hn(e.version,t);hn(e.version,t);hn("7262",t);return t.length>t.l?t.slice(0,t.l):t}function Ym(e,r){if(!r)r=Ra(29);r._W(-4,0);r._W(-4,460);r._W(4,28800);r._W(4,17600);r._W(4,500);r._W(4,e);r._W(4,e);var t=120;r._W(1,t);return r.length>r.l?r.slice(0,r.l):r}function Zm(e,r){if(!r.Workbook||!r.Workbook.Sheets)return;var t=r.Workbook.Sheets;var a=0,n=-1,i=-1;for(;an)return;Da(e,135);Da(e,158,Ym(n));Da(e,136)}function Jm(e,r){if(!r.Workbook||!r.Workbook.Names)return;r.Workbook.Names.forEach(function(t){try{if(t.Flags&14)return;Da(e,39,Xm(t,r))}catch(a){console.error("Could not serialize defined name "+JSON.stringify(t))}})}function qm(e){var r=e.SheetNames.length;var t=Ra(12*r+28);t._W(4,r+2);t._W(4,0);t._W(4,-2);t._W(4,-2);t._W(4,0);t._W(4,-1);t._W(4,-1);for(var a=0;a-1?pt(r||e).replace(/<[^<>]*>/g,""):a.r;break;case"DateTime":if(e.slice(-1)!="Z")e+="Z";a.v=dr(wr(e,c),c);if(a.v!==a.v)a.v=pt(e);if(!h||h=="General")h="yyyy-mm-dd";case"Number":if(a.v===undefined)a.v=+e;if(!a.t)a.t="n";break;case"Error":a.t="e";a.v=hi[e];if(o.cellText!==false)a.w=e;break;default:if(e==""&&r==""){a.t="z"}else{a.t="s";a.v=yt(r||e)}break;}wg(a,h,o,c);if(o.cellFormula!==false){if(a.Formula){var g=pt(a.Formula);if(g.charCodeAt(0)==61)g=g.slice(1);a.f=ru(g,n);delete a.Formula;if(a.ArrayRange=="RC")a.F=ru("RC:RC",n);else if(a.ArrayRange){a.F=ru(a.ArrayRange,n);l.push([en(a.F),a.F])}}else{for(p=0;p=l[p][0].s.r&&n.r<=l[p][0].e.r)if(n.c>=l[p][0].s.c&&n.c<=l[p][0].e.c)a.F=l[p][1]}}if(o.cellStyles){v.forEach(function(e){if(!d.patternType&&e.patternType)d.patternType=e.patternType});a.s=d}if(a.StyleID!==undefined)a.ixfe=a.StyleID}function Tg(e){return ui.indexOf("_xlnm."+e)>-1?"_xlnm."+e:e}function yg(e){e.t=e.v||"";e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");e.v=e.w=e.ixfe=undefined}function Eg(e,r){var t=r||{};$e();var n=v(Ht(e));if(t.type=="binary"||t.type=="array"||t.type=="base64"){if(typeof a!=="undefined")n=a.utils.decode(65001,c(n));else n=It(n)}var i=n.slice(0,1024).toLowerCase(),s=false;i=i.replace(/".*?"/g,"");if((i.indexOf(">")&1023)>Math.min(i.indexOf(",")&1023,i.indexOf(";")&1023)){var f=Ar(t);f.type="string";return to.to_workbook(n,f)}if(i.indexOf("=0)s=true});if(s)return Cb(n,t);mg={"General Number":"General","General Date":q[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":q[15],"Short Date":q[14],"Long Time":q[19],"Medium Time":q[18],"Short Time":q[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:q[2],Standard:q[4],Percent:q[10],Scientific:q[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l;var o=[],h;if(b!=null&&t.dense==null)t.dense=b;var u={},d=[],p={},m="";if(t.dense)p["!data"]=[];var g={},w={};var k=vg(''),A=0;var T=0,y=0;var E={s:{r:2e6,c:2e6},e:{r:0,c:0}};var C={},_={};var S="",x=0;var O=[];var I={},R={},N=0,F=[];var D=[],P={};var L=[],M,U=false;var B=[];var W=[],z={},H=0,V=0;var $={Sheets:[],WBProps:{date1904:false}},X={};Vt.lastIndex=0;n=Mr(n,"");var G="";while(l=Vt.exec(n))switch(l[3]=(G=l[3]).toLowerCase()){case"data":if(G=="data"){if(l[1]==="/"){if((h=o.pop())[0]!==l[3])throw new Error("Bad state: "+h.join("|"))}else if(l[0].charAt(l[0].length-2)!=="/")o.push([l[3],true]);break}if(o[o.length-1][1])break;if(l[1]==="/")Ag(n.slice(A,l.index),S,k,o[o.length-1][0]=="comment"?P:g,{c:T,r:y},C,L[T],w,B,t,$.WBProps.date1904);else{S="";k=vg(l[0]);A=l.index+l[0].length}break;case"cell":if(l[1]==="/"){if(D.length>0)g.c=D;if((!t.sheetRows||t.sheetRows>y)&&g.v!==void 0){if(t.dense){if(!p["!data"][y])p["!data"][y]=[];p["!data"][y][T]=g}else p[$a(T)+Wa(y)]=g}if(g.HRef){g.l={Target:pt(g.HRef)};if(g.HRefScreenTip)g.l.Tooltip=g.HRefScreenTip;delete g.HRef;delete g.HRefScreenTip}if(g.MergeAcross||g.MergeDown){H=T+(parseInt(g.MergeAcross,10)|0);V=y+(parseInt(g.MergeDown,10)|0);if(H>T||V>y)O.push({s:{c:T,r:y},e:{c:H,r:V}})}if(!t.sheetStubs){if(g.MergeAcross)T=H+1;else++T}else if(g.MergeAcross||g.MergeDown){for(var j=T;j<=H;++j){for(var K=y;K<=V;++K){if(j>T||K>y){if(t.dense){if(!p["!data"][K])p["!data"][K]=[];p["!data"][K][j]={t:"z"}}else p[$a(j)+Wa(K)]={t:"z"}}}}T=H+1}else++T}else{g=pg(l[0]);if(g.Index)T=+g.Index-1;if(TE.e.c)E.e.c=T;if(l[0].slice(-2)==="/>")++T;D=[]}break;case"row":if(l[1]==="/"||l[0].slice(-2)==="/>"){if(yE.e.r)E.e.r=y;if(l[0].slice(-2)==="/>"){w=vg(l[0]);if(w.Index)y=+w.Index-1}T=0;++y}else{w=vg(l[0]);if(w.Index)y=+w.Index-1;z={};if(w.AutoFitHeight=="0"||w.Height){z.hpx=parseInt(w.Height,10);z.hpt=uc(z.hpx);W[y]=z}if(w.Hidden=="1"){z.hidden=true;W[y]=z}}break;case"worksheet":if(l[1]==="/"){if((h=o.pop())[0]!==l[3])throw new Error("Bad state: "+h.join("|"));d.push(m);if(E.s.r<=E.e.r&&E.s.c<=E.e.c){p["!ref"]=Ja(E);if(t.sheetRows&&t.sheetRows<=E.e.r){p["!fullref"]=p["!ref"];E.e.r=t.sheetRows-1;p["!ref"]=Ja(E)}}if(O.length)p["!merges"]=O;if(L.length>0)p["!cols"]=L;if(W.length>0)p["!rows"]=W;u[m]=p}else{E={s:{r:2e6,c:2e6},e:{r:0,c:0}};y=T=0;o.push([l[3],false]);h=vg(l[0]);m=pt(h.Name);p={};if(t.dense)p["!data"]=[];O=[];B=[];W=[];X={name:m,Hidden:0};$.Sheets.push(X)}break;case"table":if(l[1]==="/"){if((h=o.pop())[0]!==l[3])throw new Error("Bad state: "+h.join("|"))}else if(l[0].slice(-2)=="/>")break;else{o.push([l[3],false]);L=[];U=false}break;case"style":if(l[1]==="/")kg(C,_,t);else _=vg(l[0]);break;case"numberformat":_.nf=pt(vg(l[0]).Format||"General");if(mg[_.nf])_.nf=mg[_.nf];for(var Y=0;Y!=392;++Y)if(q[Y]==_.nf)break;if(Y==392)for(Y=57;Y!=392;++Y)if(q[Y]==null){Je(_.nf,Y);break}break;case"column":if(o[o.length-1][0]!=="table")break;if(l[1]==="/")break;M=vg(l[0]);if(M.Hidden){M.hidden=true;delete M.Hidden}if(M.Width)M.wpx=parseInt(M.Width,10);if(!U&&M.wpx>10){U=true;ac=ec;for(var Z=0;Z0)ee.Sheet=$.Sheets.length-1;$.Names.push(ee);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(l[0].slice(-2)==="/>")break;else if(l[1]==="/")S+=n.slice(x,l.index);else x=l.index+l[0].length;break;case"interior":if(!t.cellStyles)break;_.Interior=vg(l[0]);break;case"protection":break;case"author":;case"title":;case"description":;case"created":;case"keywords":;case"subject":;case"category":;case"company":;case"lastauthor":;case"lastsaved":;case"lastprinted":;case"version":;case"revision":;case"totaltime":;case"hyperlinkbase":;case"manager":;case"contentstatus":;case"identifier":;case"language":;case"appname":if(l[0].slice(-2)==="/>")break;else if(l[1]==="/")$i(I,G,n.slice(N,l.index));else N=l.index+l[0].length;break;case"paragraphs":break;case"styles":;case"workbook":if(l[1]==="/"){if((h=o.pop())[0]!==l[3])throw new Error("Bad state: "+h.join("|"))}else o.push([l[3],false]);break;case"comment":if(l[1]==="/"){if((h=o.pop())[0]!==l[3])throw new Error("Bad state: "+h.join("|"));yg(P);D.push(P)}else{o.push([l[3],false]);h=vg(l[0]);if(!Ct(h["ShowAlways"]||"0"))D.hidden=true;P={a:h.Author}}break;case"autofilter":if(l[1]==="/"){if((h=o.pop())[0]!==l[3])throw new Error("Bad state: "+h.join("|"))}else if(l[0].charAt(l[0].length-2)!=="/"){var re=vg(l[0]);p["!autofilter"]={ref:ru(re.Range).replace(/\$/g,"")};o.push([l[3],true])}break;case"name":break;case"datavalidation":if(l[1]==="/"){if((h=o.pop())[0]!==l[3])throw new Error("Bad state: "+h.join("|"))}else{if(l[0].charAt(l[0].length-2)!=="/")o.push([l[3],true])}break;case"pixelsperinch":break;case"componentoptions":;case"documentproperties":;case"customdocumentproperties":;case"officedocumentsettings":;case"pivottable":;case"pivotcache":;case"names":;case"mapinfo":;case"pagebreaks":;case"querytable":;case"sorting":;case"schema":;case"conditionalformatting":;case"smarttagtype":;case"smarttags":;case"excelworkbook":;case"workbookoptions":;case"worksheetoptions":if(l[1]==="/"){if((h=o.pop())[0]!==l[3])throw new Error("Bad state: "+h.join("|"))}else if(l[0].charAt(l[0].length-2)!=="/")o.push([l[3],true]);break;case"null":break;default:if(o.length==0&&l[3]=="document")return Mb(n,t);if(o.length==0&&l[3]=="uof")return Mb(n,t);var te=true;switch(o[o.length-1][0]){case"officedocumentsettings":switch(l[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:te=false;}break;case"componentoptions":switch(l[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:te=false;}break;case"excelworkbook":switch(l[3]){case"date1904":$.WBProps.date1904=true;break;case"hidehorizontalscrollbar":break;case"hideverticalscrollbar":break;case"hideworkbooktabs":break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:te=false;}break;case"workbookoptions":switch(l[3]){case"owcversion":break;case"height":break;case"width":break;default:te=false;}break;case"worksheetoptions":switch(l[3]){case"visible":if(l[0].slice(-2)==="/>"){}else if(l[1]==="/")switch(n.slice(N,l.index)){case"SheetHidden":X.Hidden=1;break;case"SheetVeryHidden":X.Hidden=2;break;}else N=l.index+l[0].length;break;case"header":if(!p["!margins"])Av(p["!margins"]={},"xlml");if(!isNaN(+ct(l[0]).Margin))p["!margins"].header=+ct(l[0]).Margin;break;case"footer":if(!p["!margins"])Av(p["!margins"]={},"xlml");if(!isNaN(+ct(l[0]).Margin))p["!margins"].footer=+ct(l[0]).Margin;break;case"pagemargins":var ae=ct(l[0]);if(!p["!margins"])Av(p["!margins"]={},"xlml");if(!isNaN(+ae.Top))p["!margins"].top=+ae.Top;if(!isNaN(+ae.Left))p["!margins"].left=+ae.Left;if(!isNaN(+ae.Right))p["!margins"].right=+ae.Right;if(!isNaN(+ae.Bottom))p["!margins"].bottom=+ae.Bottom;break;case"displayrighttoleft":if(!$.Views)$.Views=[];if(!$.Views[0])$.Views[0]={};$.Views[0].RTL=true;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":;case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":if(!p["!outline"])p["!outline"]={};p["!outline"].above=true;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":if(!p["!outline"])p["!outline"]={};p["!outline"].left=true;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:te=false;}break;case"pivottable":;case"pivotcache":switch(l[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:te=false;}break;case"pagebreaks":switch(l[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:te=false;}break;case"autofilter":switch(l[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:te=false;}break;case"querytable":switch(l[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:te=false;}break;case"datavalidation":switch(l[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:te=false;}break;case"sorting":;case"conditionalformatting":switch(l[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:te=false;}break;case"mapinfo":;case"schema":;case"data":switch(l[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":;case"element":;case"complextype":;case"datatype":;case"all":;case"attribute":;case"extends":break;case"row":break;default:te=false;}break;case"smarttags":break;default:te=false;break;}if(te)break;if(l[3].match(/!\[CDATA/))break;if(!o[o.length-1][1])throw"Unrecognized tag: "+l[3]+"|"+o.join("|");if(o[o.length-1][0]==="customdocumentproperties"){if(l[0].slice(-2)==="/>")break;else if(l[1]==="/")bg(R,G,F,n.slice(N,l.index));else{F=l;N=l.index+l[0].length}break}if(t.WTF)throw"Unrecognized tag: "+l[3]+"|"+o.join("|");}var ne={};if(!t.bookSheets&&!t.bookProps)ne.Sheets=u;ne.SheetNames=d;ne.Workbook=$;ne.SSF=Ar(q);ne.Props=I;ne.Custprops=R;ne.bookType="xlml";return ne}function Cg(e,r){Jw(r=r||{});switch(r.type||"base64"){case"base64":return Eg(E(e),r);case"binary":;case"buffer":;case"file":return Eg(e,r);case"array":return Eg(N(e),r);}}function _g(e,r){var t=[];if(e.Props)t.push(Xi(e.Props,r));if(e.Custprops)t.push(Gi(e.Props,e.Custprops,r));return t.join("")}function Sg(e){if((((e||{}).Workbook||{}).WBProps||{}).date1904)return'';return""}function xg(e,r){var t=[''];r.cellXfs.forEach(function(e,r){var a=[];a.push(Bt("NumberFormat",null,{"ss:Format":bt(q[e.numFmtId])}));var n={"ss:ID":"s"+(21+r)};t.push(Bt("Style",a.join(""),n))});return Bt("Styles",t.join(""))}function Og(e){return Bt("NamedRange",null,{"ss:Name":e.Name.slice(0,6)=="_xlnm."?e.Name.slice(6):e.Name,"ss:RefersTo":"="+nu(e.Ref,{r:0,c:0})})}function Ig(e){if(!((e||{}).Workbook||{}).Names)return"";var r=e.Workbook.Names;var t=[];for(var a=0;a");if(e["!margins"].header)n.push(Bt("Header",null,{"x:Margin":e["!margins"].header}));if(e["!margins"].footer)n.push(Bt("Footer",null,{"x:Margin":e["!margins"].footer}));n.push(Bt("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"}));n.push("")}if(a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[t]){if(a.Workbook.Sheets[t].Hidden)n.push(Bt("Visible",a.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i")}}if(((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL)n.push("");if(e["!protect"]){n.push(Mt("ProtectContents","True"));if(e["!protect"].objects)n.push(Mt("ProtectObjects","True"));if(e["!protect"].scenarios)n.push(Mt("ProtectScenarios","True"));if(e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells)n.push(Mt("EnableSelection","NoSelection"));else if(e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells)n.push(Mt("EnableSelection","UnlockedCells"));[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(r){if(e["!protect"][r[0]])n.push("<"+r[1]+"/>")})}if(n.length==0)return"";return Bt("WorksheetOptions",n.join(""),{xmlns:Gt.x})}function Fg(e){return e.map(function(r){var t=Et(r.t||"");var a=Bt("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});var n={};if(r.a)n["ss:Author"]=r.a;if(!e.hidden)n["ss:ShowAlways"]="1";return Bt("Comment",a,n)}).join("")}function Dg(e,r,t,a,n,i,s){if(!e||e.v==undefined&&e.f==undefined)return"";var f={};if(e.f)f["ss:Formula"]="="+bt(nu(e.f,s));if(e.F&&e.F.slice(0,r.length)==r){var l=Ka(e.F.slice(r.length+1));f["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target){f["ss:HRef"]=bt(e.l.Target);if(e.l.Tooltip)f["x:HRefScreenTip"]=bt(e.l.Tooltip)}if(t["!merges"]){var o=t["!merges"];for(var c=0;c!=o.length;++c){if(o[c].s.c!=s.c||o[c].s.r!=s.r)continue;if(o[c].e.c>o[c].s.c)f["ss:MergeAcross"]=o[c].e.c-o[c].s.c;if(o[c].e.r>o[c].s.r)f["ss:MergeDown"]=o[c].e.r-o[c].s.r}}var h="",u="";switch(e.t){case"z":if(!a.sheetStubs)return"";break;case"n":{if(!isFinite(e.v)){h="Error";u=ci[isNaN(e.v)?36:7]}else{h="Number";u=String(e.v)}}break;case"b":h="Boolean";u=e.v?"1":"0";break;case"e":h="Error";u=ci[e.v];break;case"d":h="DateTime";u=new Date(e.v).toISOString();if(e.z==null)e.z=e.z||q[14];break;case"s":h="String";u=Tt(e.v||"");break;}var d=Tv(a.cellXfs,e,a);f["ss:StyleID"]="s"+(21+d);f["ss:Index"]=s.c+1;var v=e.v!=null?u:"";var p=e.t=="z"?"":''+v+"";if((e.c||[]).length>0)p+=Fg(e.c);return Bt("Cell",p,f)}function Pg(e,r){var t='"}function Lg(e,r,t,a){if(!e["!ref"])return"";var n=en(e["!ref"]);var i=e["!merges"]||[],s=0;var f=[];if(e["!cols"])e["!cols"].forEach(function(e,r){oc(e);var t=!!e.width;var a=kv(r,e);var n={"ss:Index":r+1};if(t)n["ss:Width"]=nc(a.width);if(e.hidden)n["ss:Hidden"]="1";f.push(Bt("Column",null,n))});var l=e["!data"]!=null;var o={r:0,c:0};for(var c=n.s.r;c<=n.e.r;++c){var h=[Pg(c,(e["!rows"]||[])[c])];o.r=c;for(var u=n.s.c;u<=n.e.c;++u){o.c=u;var d=false;for(s=0;s!=i.length;++s){if(i[s].s.c>u)continue;if(i[s].s.r>c)continue;if(i[s].e.c");if(h.length>2)f.push(h.join(""))}return f.join("")}function Mg(e,r,t){var a=[];var n=t.SheetNames[e];var i=t.Sheets[n];var s=i?Rg(i,r,e,t):"";if(s.length>0)a.push(""+s+"");s=i?Lg(i,r,e,t):"";if(s.length>0)a.push(""+s+"
                        ");a.push(Ng(i,r,e,t));if(i&&i["!autofilter"])a.push('');return a.join("")}function Ug(e,r){if(!r)r={};if(!e.SSF)e.SSF=Ar(q);if(e.SSF){$e();Ve(e.SSF);r.revssf=lr(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF;r.cellXfs=[];Tv(r.cellXfs,{},{revssf:{General:0}})}var t=[];t.push(_g(e,r));t.push(Sg(e,r));t.push("");t.push(Ig(e,r));for(var a=0;a40)return r;t.l-=4;r.Reserved1=t._R(0,"lpstr-ansi");if(t.length-t.l<=4)return r;a=t._R(4);if(a!==1907505652)return r;r.UnicodeClipboardFormat=Vn(t);a=t._R(4);if(a==0||a>40)return r;t.l-=4;r.Reserved2=t._R(0,"lpwstr")}var Wg=[60,1084,2066,2165,2175];function zg(e,r,t,a,n){var i=a;var s=[];var f=t.slice(t.l,t.l+i);if(n&&n.enc&&n.enc.insitu&&f.length>0)switch(e){case 9:;case 521:;case 1033:;case 2057:;case 47:;case 405:;case 225:;case 406:;case 312:;case 404:;case 10:break;case 133:break;default:n.enc.insitu(f);}s.push(f);t.l+=i;var l=ba(t,t.l),o=Jg[l];var c=0;while(o!=null&&Wg.indexOf(l)>-1){i=ba(t,t.l+2);c=t.l+4;if(l==2066)c+=4;else if(l==2165||l==2175){c+=12}f=t.slice(c,t.l+4+i);s.push(f);t.l+=4+i;o=Jg[l=ba(t,t.l)]}var h=P(s);Oa(h,0);var u=0;h.lens=[];for(var d=0;d1)return;if(t.sheetRows&&e.r>=t.sheetRows)return;if(t.cellStyles&&r.XF&&r.XF.data)O(r,t);delete r.ixfe;delete r.XF;u=e;d=Ya(e);if(!s||!s.s||!s.e)s={s:{r:0,c:0},e:{r:0,c:0}};if(e.rs.e.r)s.e.r=e.r+1;if(e.c+1>s.e.c)s.e.c=e.c+1;if(t.cellFormula&&r.f){for(var a=0;ae.c||k[a][0].s.r>e.r)continue;if(k[a][0].e.c>8)!==j)throw new Error("rt mismatch: "+Z+"!="+j);if(Y.r==12){e.l+=10;K-=10}}var J={};if(j===10)J=Y.f(e,K,R);else J=zg(j,Y,e,K,R);if(W==0&&[9,521,1033,2057].indexOf(B)===-1)continue;switch(j){case 34:t.opts.Date1904=C.WBProps.date1904=J;break;case 134:t.opts.WriteProtect=true;break;case 47:if(!R.enc)e.l=0;R.enc=J;if(!r.password)throw new Error("File is password-protected");if(J.valid==null)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:R.lastuser=J;break;case 66:var Q=Number(J);switch(Q){case 21010:Q=1200;break;case 32768:Q=1e4;break;case 32769:Q=1252;break;}l(R.codepage=Q);X=true;break;case 317:R.rrtabid=J;break;case 25:R.winlocked=J;break;case 439:t.opts["RefreshAll"]=J;break;case 12:t.opts["CalcCount"]=J;break;case 16:t.opts["CalcDelta"]=J;break;case 17:t.opts["CalcIter"]=J;break;case 13:t.opts["CalcMode"]=J;break;case 14:t.opts["CalcPrecision"]=J;break;case 95:t.opts["CalcSaveRecalc"]=J;break;case 15:R.CalcRefMode=J;break;case 2211:t.opts.FullCalc=J;break;case 129:if(J.fDialog)n["!type"]="dialog";if(!J.fBelow)(n["!outline"]||(n["!outline"]={})).above=true;if(!J.fRight)(n["!outline"]||(n["!outline"]={})).left=true;break;case 67:;case 579:;case 1091:;case 224:y.push(J);break;case 430:U.push([J]);U[U.length-1].XTI=[];break;case 35:;case 547:U[U.length-1].push(J);break;case 24:;case 536:$={Name:J.Name,Ref:Md(J.rgce,s,null,U,R)};if(J.itab>0)$.Sheet=J.itab-1;U.names.push($);if(!U[0]){U[0]=[];U[0].XTI=[]}U[U.length-1].push(J);if(J.Name=="_xlnm._FilterDatabase"&&J.itab>0)if(J.rgce&&J.rgce[0]&&J.rgce[0][0]&&J.rgce[0][0][0]=="PtgArea3d")V[J.itab-1]={ref:Ja(J.rgce[0][0][1][2])};break;case 22:R.ExternCount=J;break;case 23:if(U.length==0){U[0]=[];U[0].XTI=[]}U[U.length-1].XTI=U[U.length-1].XTI.concat(J);U.XTI=U.XTI.concat(J);break;case 2196:if(R.biff<8)break;if($!=null)$.Comment=J[1];break;case 18:n["!protect"]=J;break;case 19:if(J!==0&&R.WTF)console.error("Password verifier: "+J);break;case 133:{i[R.biff==4?R.snames.length:J.pos]=J;R.snames.push(J.name)}break;case 10:{if(--W?!S:S)break;if(s.e){if(s.e.r>0&&s.e.c>0){s.e.r--;s.e.c--;n["!ref"]=Ja(s);if(r.sheetRows&&r.sheetRows<=s.e.r){var ee=s.e.r;s.e.r=r.sheetRows-1;n["!fullref"]=n["!ref"];n["!ref"]=Ja(s);s.e.r=ee}s.e.r++;s.e.c++}if(F.length>0)n["!merges"]=F;if(D.length>0)n["!objects"]=D;if(P.length>0)n["!cols"]=P;if(L.length>0)n["!rows"]=L;C.Sheets.push(_)}if(c==="")h=n;else a[c]=n;n={};if(r.dense)n["!data"]=[]}break;case 9:;case 521:;case 1033:;case 2057:{if(R.biff===8)R.biff={9:2,521:3,1033:4}[j]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8;R.biffguess=J.BIFFVer==0;if(J.BIFFVer==0&&J.dt==4096){R.biff=5;X=true;l(R.codepage=28591)}if(R.biff==4&&J.dt&256)S=true;if(R.biff==8&&J.BIFFVer==0&&J.dt==16)R.biff=2;if(W++&&!S)break;n={};if(r.dense)n["!data"]=[];if(R.biff<8&&!X){X=true;l(R.codepage=r.codepage||1252)}if(R.biff==4&&S){c=(i[R.snames.indexOf(c)+1]||{name:""}).name}else if(R.biff<5||J.BIFFVer==0&&J.dt==4096){if(c==="")c="Sheet1";s={s:{r:0,c:0},e:{r:0,c:0}};var re={pos:e.l-K,name:c};i[re.pos]=re;R.snames.push(c)}else c=(i[G]||{name:""}).name;if(J.dt==32)n["!type"]="chart";if(J.dt==64)n["!type"]="macro";F=[];D=[];R.arrayf=k=[];P=[];L=[];M=false;_={Hidden:(i[G]||{hs:0}).hs,name:c}}break;case 515:;case 3:;case 2:{if(n["!type"]=="chart")if(r.dense?(n["!data"][J.r]||[])[J.c]:n[$a(J.c)+Wa(J.r)])++J.c;A={ixfe:J.ixfe,XF:y[J.ixfe]||{},v:J.val,t:"n"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r)}break;case 5:;case 517:{A={ixfe:J.ixfe,XF:y[J.ixfe],v:J.val,t:J.t};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904); -I({c:J.c,r:J.r},A,r)}break;case 638:{A={ixfe:J.ixfe,XF:y[J.ixfe],v:J.rknum,t:"n"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r)}break;case 189:{for(var te=J.c;te<=J.C;++te){var ae=J.rkrec[te-J.c][0];A={ixfe:ae,XF:y[ae],v:J.rkrec[te-J.c][1],t:"n"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:te,r:J.r},A,r)}}break;case 6:;case 518:;case 1030:{if(J.val=="String"){f=J;break}A=Vg(J.val,J.cell.ixfe,J.tt);A.XF=y[A.ixfe];if(r.cellFormula){var ne=J.formula;if(ne&&ne[0]&&ne[0][0]&&ne[0][0][0]=="PtgExp"){var ie=ne[0][0][1][0],se=ne[0][0][1][1];var fe=Ya({r:ie,c:se});if(w[fe])A.f=""+Md(J.formula,s,J.cell,U,R);else A.F=((r.dense?(n["!data"][ie]||[])[se]:n[fe])||{}).F}else A.f=""+Md(J.formula,s,J.cell,U,R)}if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I(J.cell,A,r);f=J}break;case 7:;case 519:{if(f){f.val=J;A=Vg(J,f.cell.ixfe,"s");A.XF=y[A.ixfe];if(r.cellFormula){A.f=""+Md(f.formula,s,f.cell,U,R)}if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I(f.cell,A,r);f=null}else throw new Error("String record expects Formula")}break;case 33:;case 545:{k.push(J);var le=Ya(J[0].s);v=r.dense?(n["!data"][J[0].s.r]||[])[J[0].s.c]:n[le];if(r.cellFormula&&v){if(!f)break;if(!le||!v)break;v.f=""+Md(J[1],s,J[0],U,R);v.F=Ja(J[0])}}break;case 1212:{if(!r.cellFormula)break;if(d){if(!f)break;w[Ya(f.cell)]=J[0];v=r.dense?(n["!data"][f.cell.r]||[])[f.cell.c]:n[Ya(f.cell)];(v||{}).f=""+Md(J[0],s,u,U,R)}}break;case 253:A=Vg(o[J.isst].t,J.ixfe,"s");if(o[J.isst].h)A.h=o[J.isst].h;A.XF=y[A.ixfe];if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r);break;case 513:if(r.sheetStubs){A={ixfe:J.ixfe,XF:y[J.ixfe],t:"z"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r)}break;case 190:if(r.sheetStubs){for(var oe=J.c;oe<=J.C;++oe){var ce=J.ixfe[oe-J.c];A={ixfe:ce,XF:y[ce],t:"z"};if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:oe,r:J.r},A,r)}}break;case 214:;case 516:;case 4:A=Vg(J.val,J.ixfe,"s");A.XF=y[A.ixfe];if(z>0)A.z=A.XF&&A.XF.numFmtId&&H[A.XF.numFmtId]||H[A.ixfe>>8&63];Hg(A,r,t.opts.Date1904);I({c:J.c,r:J.r},A,r);break;case 0:;case 512:{if(W===1)s=J}break;case 252:{o=J}break;case 1054:{if(R.biff>=3&&R.biff<=4){H[z++]=J[1];for(var he=0;he=163)Je(J[1],z+163)}else Je(J[1],J[0])}break;case 30:{H[z++]=J;for(var ue=0;ue=163)Je(J,z+163)}break;case 229:F=F.concat(J);break;case 93:D[J.cmo[0]]=R.lastobj=J;break;case 438:R.lastobj.TxO=J;break;case 127:R.lastobj.ImData=J;break;case 440:{for(g=J[0].s.r;g<=J[0].e.r;++g)for(m=J[0].s.c;m<=J[0].e.c;++m){v=r.dense?(n["!data"][g]||[])[m]:n[Ya({c:m,r:g})];if(v)v.l=J[1]}}break;case 2048:{for(g=J[0].s.r;g<=J[0].e.r;++g)for(m=J[0].s.c;m<=J[0].e.c;++m){v=r.dense?(n["!data"][g]||[])[m]:n[Ya({c:m,r:g})];if(v&&v.l)v.l.Tooltip=J[1]}}break;case 28:{v=r.dense?(n["!data"][J[0].r]||[])[J[0].c]:n[Ya(J[0])];if(!v){if(r.dense){if(!n["!data"][J[0].r])n["!data"][J[0].r]=[];v=n["!data"][J[0].r][J[0].c]={t:"z"}}else{v=n[Ya(J[0])]={t:"z"}}s.e.r=Math.max(s.e.r,J[0].r);s.s.r=Math.min(s.s.r,J[0].r);s.e.c=Math.max(s.e.c,J[0].c);s.s.c=Math.min(s.s.c,J[0].c)}if(!v.c)v.c=[];if(R.biff<=5&&R.biff>=2)p={a:"SheetJ5",t:J[1]};else{var de=D[J[2]];p={a:J[1],t:de.TxO.t};if(J[3]!=null&&!(J[3]&2))v.c.hidden=true}v.c.push(p)}break;case 2173:dh(y[J.ixfe],J.ext);break;case 125:{if(!R.cellStyles)break;while(J.e>=J.s){P[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(J.flags&1)};if(!M){M=true;lc(J.w/256)}oc(P[J.e+1])}}break;case 520:{var ve={};if(J.level!=null){L[J.r]=ve;ve.level=J.level}if(J.hidden){L[J.r]=ve;ve.hidden=true}if(J.hpt){L[J.r]=ve;ve.hpt=J.hpt;ve.hpx=dc(J.hpt)}}break;case 38:;case 39:;case 40:;case 41:if(!n["!margins"])Av(n["!margins"]={});n["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[j]]=J;break;case 161:if(!n["!margins"])Av(n["!margins"]={});n["!margins"].header=J.header;n["!margins"].footer=J.footer;break;case 574:if(J.RTL)C.Views[0].RTL=true;break;case 146:E=J;break;case 2198:N=J;break;case 140:T=J;break;case 442:{if(!c)C.WBProps.CodeName=J||"ThisWorkbook";else _.CodeName=J||_.name}break;}}else{if(!Y)console.error("Missing Info for XLS Record 0x"+j.toString(16));e.l+=K}}t.SheetNames=ir(i).sort(function(e,r){return Number(e)-Number(r)}).map(function(e){return i[e].name});if(!r.bookSheets)t.Sheets=a;if(!t.SheetNames.length&&h["!ref"]){t.SheetNames.push("Sheet1");if(t.Sheets)t.Sheets["Sheet1"]=h}else t.Preamble=h;if(t.Sheets)V.forEach(function(e,r){t.Sheets[t.SheetNames[r]]["!autofilter"]=e});t.Strings=o;t.SSF=Ar(q);if(R.enc)t.Encryption=R.enc;if(N)t.Themes=N;t.Metadata={};if(T!==undefined)t.Metadata.Country=T;if(U.names.length>0)C.Names=U.names;t.Workbook=C;return t}var Xg={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Gg(e,r,t){var a=Qe.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=ds(a,ai,Xg.DSI);for(var i in n)r[i]=n[i]}catch(s){if(t.WTF)throw s}var f=Qe.find(e,"/!SummaryInformation");if(f&&f.size>0)try{var l=ds(f,ni,Xg.SI);for(var o in l)if(r[o]==null)r[o]=l[o]}catch(s){if(t.WTF)throw s}if(r.HeadingPairs&&r.TitlesOfParts){Li(r.HeadingPairs,r.TitlesOfParts,r,t);delete r.HeadingPairs;delete r.TitlesOfParts}}function jg(e,r){var t=[],a=[],n=[];var i=0,s;var f=sr(ai,"n");var l=sr(ni,"n");if(e.Props){s=ir(e.Props);for(i=0;i-1||Pi.indexOf(n[i][0])>-1)continue;if(n[i][1]==null)continue;o.push(n[i])}if(a.length)Qe.utils.cfb_add(r,"/SummaryInformation",vs(a,Xg.SI,l,ni));if(t.length||o.length)Qe.utils.cfb_add(r,"/DocumentSummaryInformation",vs(t,Xg.DSI,f,ai,o.length?o:null,Xg.UDI))}function Kg(e,r){if(!r)r={};Jw(r);o();if(r.codepage)s(r.codepage);var t,a;if(e.FullPaths){if(Qe.find(e,"/encryption"))throw new Error("File is password-protected");t=Qe.find(e,"!CompObj");a=Qe.find(e,"/Workbook")||Qe.find(e,"/Book")}else{switch(r.type){case"base64":e=I(E(e));break;case"binary":e=I(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}Oa(e,0);a={content:e}}var n;var i;if(t)Bg(t);if(r.bookProps&&!r.bookSheets)n={};else{var f=C?"buffer":"array";if(a&&a.content)n=$g(a.content,r);else if((i=Qe.find(e,"PerfectOffice_MAIN"))&&i.content)n=no.to_workbook(i.content,(r.type=f,r));else if((i=Qe.find(e,"NativeContent_MAIN"))&&i.content)n=no.to_workbook(i.content,(r.type=f,r));else if((i=Qe.find(e,"MN0"))&&i.content)throw new Error("Unsupported Works 4 for Mac file");else throw new Error("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&Qe.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))n.vbaraw=Kh(e)}var l={};if(e.FullPaths)Gg(e,l,r);n.Props=n.Custprops=l;if(r.bookFiles)n.cfb=e;return n}function Yg(e,r){var t=r||{};var a=Qe.utils.cfb_new({root:"R"});var n="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":if(!t.bookType)t.bookType="xla";case"biff8":n="/Workbook";t.biff=8;break;case"biff5":n="/Book";t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB");}Qe.utils.cfb_add(a,n,kb(e,t));if(t.biff==8&&(e.Props||e.Custprops))jg(e,a);if(t.biff==8&&e.vbaraw)Yh(a,Qe.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"}));return a}var Zg={0:{f:rp},1:{f:op},2:{f:Op},3:{f:gp},4:{f:dp},5:{f:Cp},6:{f:Dp},7:{f:Ap},8:{f:zp},9:{f:Wp},10:{f:Up},11:{f:Bp},12:{f:hp},13:{f:Rp},14:{f:wp},15:{f:pp},16:{f:Sp},17:{f:Lp},18:{f:yp},19:{f:vn},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:$m},40:{},42:{},43:{f:xc},44:{f:_c},45:{f:Nc},46:{f:Mc},47:{f:Dc},48:{},49:{f:ln},50:{},51:{f:mh},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Rl},62:{f:Fp},63:{f:_h},64:{f:nm},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ia,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:em},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:fp},148:{f:np,p:16},151:{f:jp},152:{},153:{f:zm},154:{},155:{},156:{f:Bm},157:{},158:{},159:{T:1,f:go},160:{T:-1},161:{T:1,f:Fn},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Hp},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:vh},336:{T:-1},337:{f:wh,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Sn},357:{},358:{},359:{},360:{T:1},361:{},362:{f:fl},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Kp},427:{f:Yp},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:qp},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:sp},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Xp},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Sn},551:{f:En},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Vh},633:{T:1},634:{T:-1},635:{T:1,f:zh},636:{T:-1},637:{f:mn},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Tm},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:im},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};var Jg={6:{f:$d},10:{f:ps},12:{f:ks},13:{f:ks},14:{f:bs},15:{f:bs},16:{f:Pn},17:{f:bs},18:{f:bs},19:{f:ks},20:{f:al},21:{f:al},23:{f:fl},24:{f:sl},25:{f:bs},26:{},27:{},28:{f:vl},29:{},34:{f:bs},35:{f:il},38:{f:Pn},39:{f:Pn},40:{f:Pn},41:{f:Pn},42:{f:bs},43:{f:bs},47:{f:$o},49:{f:_f},51:{f:ks},60:{},61:{f:Af},64:{f:bs},65:{f:Cf},66:{f:ks},77:{},80:{},81:{},82:{},85:{f:ks},89:{},90:{},91:{},92:{f:of},93:{f:bl},94:{},95:{f:bs},96:{},97:{},99:{f:bs},125:{f:Rl},128:{f:Jf},129:{f:hf},130:{f:ks},131:{f:bs},132:{f:bs},133:{f:uf},134:{},140:{f:_l},141:{f:ks},144:{},146:{f:Ol},151:{},152:{},153:{},154:{},155:{},156:{f:ks},157:{},158:{},160:{f:Ml},161:{f:Fl},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Wf},190:{f:zf},193:{f:ps},197:{},198:{},199:{},200:{},201:{},202:{f:bs},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:ks},220:{},221:{f:bs},222:{},224:{f:Vf},225:{f:lf},226:{f:ps},227:{},229:{f:ml},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:vf},253:{f:xf},255:{f:mf},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Ts},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:bs},353:{f:ps},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:nl},431:{f:bs},432:{},433:{},434:{},437:{},438:{f:Al},439:{f:bs},440:{f:Tl},441:{},442:{f:Os},443:{},444:{f:ks},445:{},446:{},448:{f:ps},449:{f:wf,r:2},450:{f:ps},512:{f:Mf},513:{f:Ll},515:{f:rl},516:{f:If},517:{f:Qf},519:{f:Ul},520:{f:gf},523:{},545:{f:hl},549:{f:kf},566:{},574:{f:yf},638:{f:Bf},659:{},1048:{},1054:{f:Nf},1084:{},1212:{f:cl},2048:{f:El},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:sf},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:ps},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Il,r:12},2173:{f:uh,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:bs,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:ol,r:12},2197:{},2198:{f:sh,r:12},2199:{},2200:{},2201:{},2202:{f:ul,r:12},2203:{f:ps},2204:{},2205:{},2206:{},2207:{},2211:{f:bf},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:ks},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Dl},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:xl},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Mf},1:{},2:{f:$l},3:{f:Hl},4:{f:zl},5:{f:jl},7:{f:Gl},8:{},9:{f:sf},11:{},22:{f:ks},30:{f:Df},31:{},32:{},33:{f:hl},36:{},37:{f:kf},50:{f:Kl},62:{},52:{},67:{f:Xf},68:{f:ks},69:{},86:{},126:{},127:{f:Bl},135:{},136:{},137:{},143:{f:Zl},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:Yl},223:{},234:{},354:{},421:{},518:{f:$d},521:{f:sf},536:{f:sl},547:{f:il},561:{},579:{f:Yf},1030:{f:$d},1033:{f:sf},1091:{f:Zf},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},101:{},102:{},105:{},106:{},107:{},109:{},112:{},114:{},29282:{}};function qg(e,r,t,a){var n=r;if(isNaN(n))return;var i=a||(t||[]).length||0;var s=e.next(4);s._W(2,n);s._W(2,i);if(i>0&&pa(t))e.push(t)}function Qg(e,r,t,a){var n=a||(t||[]).length||0;if(n<=8224)return qg(e,r,t,n);var i=r;if(isNaN(i))return;var s=t.parts||[],f=0;var l=0,o=0;while(o+(s[f]||8224)<=8224){o+=s[f]||8224;f++}var c=e.next(4);c._W(2,i);c._W(2,o);e.push(t.slice(l,l+o));l+=o;while(l=0&&l<65536)qg(e,2,Xl(t,a,l,f,s));else if(isNaN(l))qg(e,5,eb(t,a,36,"e"));else if(!isFinite(l))qg(e,5,eb(t,a,7,"e"));else qg(e,3,Vl(t,a,l,f,s));return;case"b":;case"e":qg(e,5,eb(t,a,r.v,r.t));return;case"s":;case"str":qg(e,4,rb(t,a,r.v==null?"":String(r.v).slice(0,255)));return;}qg(e,1,Wl(null,t,a))}function nb(e,r,t,a,n){var i=r["!data"]!=null;var s=en(r["!ref"]||"A1"),f="",l=[];if(s.e.c>255||s.e.r>16383){if(a.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255);s.e.r=Math.min(s.e.r,16383)}var o=(((n||{}).Workbook||{}).WBProps||{}).date1904;var c=[],h=[];for(var u=s.s.c;u<=s.e.c;++u)l[u]=$a(u);for(var d=s.s.r;d<=s.e.r;++d){if(i)c=r["!data"][d]||[];f=Wa(d);for(u=s.s.c;u<=s.e.c;++u){var v=i?c[u]:r[l[u]+f];if(!v)continue;ab(e,v,d,u,a,o);if(v.c)h.push([v.c,d,u])}}tb(e,h)}function ib(e,r){var t=r||{};var a=Fa();var n=0;for(var i=0;i255||d.e.r>=v){if(r.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV"+v);d.e.c=Math.min(d.e.c,255);d.e.r=Math.min(d.e.r,v-1)}qg(a,2057,ff(t,16,r));qg(a,13,As(1));qg(a,12,As(100));qg(a,15,ws(true));qg(a,17,ws(false));qg(a,16,Ln(.001));qg(a,95,ws(true));qg(a,42,ws(false));qg(a,43,ws(false));qg(a,130,As(1));qg(a,128,qf([0,0]));qg(a,131,ws(false));qg(a,132,ws(false));if(o)pb(a,i["!cols"]);qg(a,512,Uf(d,r));var p=(((t||{}).Workbook||{}).WBProps||{}).date1904;if(o)i["!links"]=[];for(var m=d.s.c;m<=d.e.c;++m)u[m]=$a(m);var g=[];var b=[];for(var w=d.s.r;w<=d.e.r;++w){if(l)b=i["!data"][w]||[];h=Wa(w);for(m=d.s.c;m<=d.e.c;++m){var k=l?b[m]:i[u[m]+h];if(!k)continue;mb(a,k,w,m,r,p);if(o&&k.l)i["!links"].push([u[m]+h,k.l]);if(k.c)g.push([k.c,w,m])}}var A=f.CodeName||f.name||n;if(o)ob(a,g);else tb(a,g);if(o)qg(a,574,Ef((s.Views||[])[0]));if(o&&(i["!merges"]||[]).length)qg(a,229,gl(i["!merges"]));if(o)vb(a,i);qg(a,442,Rs(A,r));if(o)ub(a,i);qg(a,10);return a.end()}function bb(e,r,t){var a=Fa();var n=(e||{}).Workbook||{};var i=n.Sheets||[];var s=n.WBProps||{};var f=t.biff==8,l=t.biff==5;qg(a,2057,ff(e,5,t));if(t.bookType=="xla")qg(a,135);qg(a,225,f?As(1200):null);qg(a,193,ms(2));if(l)qg(a,191);if(l)qg(a,192);qg(a,226);qg(a,92,cf("SheetJS",t));qg(a,66,As(f?1200:1252));if(f)qg(a,353,As(0));if(f)qg(a,448);qg(a,317,Pl(e.SheetNames.length));if(f&&e.vbaraw)qg(a,211);if(f&&e.vbaraw){var o=s.CodeName||"ThisWorkbook";qg(a,442,Rs(o,t))}qg(a,156,As(17));qg(a,25,ws(false));qg(a,18,ws(false));qg(a,19,As(0));if(f)qg(a,431,ws(false));if(f)qg(a,444,As(0));qg(a,61,Tf(t));qg(a,64,ws(false));qg(a,141,As(0));qg(a,34,ws(Rm(e)=="true"));qg(a,14,ws(true));if(f)qg(a,439,ws(false));qg(a,218,As(0));cb(a,e,t);hb(a,e.SSF,t);db(a,t);if(f)qg(a,352,ws(false));var c=a.end();var h=Fa();if(f)qg(h,140,Sl());if(f&&fb.length)qg(h,235,lb());if(f&&t.Strings)Qg(h,252,pf(t.Strings,t));qg(h,10);var u=h.end();var d=Fa();var v=0,p=0;for(p=0;p255){if(typeof console!="undefined"&&console.error)console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}if(n.e.r>65535){if(typeof console!="undefined"&&console.error)console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond row 65536. Data may be lost.")}}var i=r||{};switch(i.biff||2){case 8:;case 5:return wb(e,r);case 4:;case 3:;case 2:return ib(e,r);}throw new Error("invalid type "+i.bookType+" for BIFF")}function Ab(e,r){var t=r||{};var a=t.dense!=null?t.dense:b;var n={}; -if(a)n["!data"]=[];e=Mr(e,"");var i=e.match(/");var s=e.match(/<\/table/i);var f=i.index,l=s&&s.index||e.length;var o=Nr(e.slice(f,l),/(:?]*>)/i,"");var c=-1,h=0,u=0,d=0;var v={s:{r:1e7,c:1e7},e:{r:0,c:0}};var p=[];for(f=0;f/i);for(l=0;l"))>-1)A=A.slice(T+1);for(var y=0;y")));d=C.colspan?+C.colspan:1;if((u=+C.rowspan)>1||d>1)p.push({s:{r:c,c:h},e:{r:c+(u||1)-1,c:h+d-1}});var _=C.t||C["data-t"]||"";if(!A.length){h+=d;continue}A=Nt(A);if(v.s.r>c)v.s.r=c;if(v.e.rh)v.s.c=h;if(v.e.ct||n[h].s.c>l)continue;if(n[h].e.r1)s.rowspan=o;if(c>1)s.colspan=c;if(a.editable)v=''+v+"";else if(d){s["data-t"]=d&&d.t||"z";if(d.v!=null)s["data-v"]=At(d.v instanceof Date?d.v.toISOString():d.v);if(d.z!=null)s["data-z"]=d.z;if(d.l&&(d.l.Target||"#").charAt(0)!="#")v=''+v+""}s.id=(a.id||"sjs")+"-"+u;i.push(Bt("td",v,s))}var p="";return p+i.join("")+""}var yb='SheetJS Table Export';var Eb="";function Cb(e,r){var t=Vr(e,"table");if(!t||t.length==0)throw new Error("Invalid HTML: could not find
                        ");if(t.length==1){var a=an(Ab(t[0],r),r);a.bookType="html";return a}var n=$k();t.forEach(function(e,t){Xk(n,Ab(e,r),"Sheet"+(t+1))});n.bookType="html";return n}function _b(e,r,t){var a=[];return a.join("")+""}function Sb(e,r){var t=r||{};var a=t.header!=null?t.header:yb;var n=t.footer!=null?t.footer:Eb;var i=[a];var s=Za(e["!ref"]||"A1");i.push(_b(e,s,t));if(e["!ref"])for(var f=s.s.r;f<=s.e.r;++f)i.push(Tb(e,s,f,t));i.push("
                        "+n);return i.join("")}function xb(e,r,t){var a=r.rows;if(!a){throw"Unsupported origin when "+r.tagName+" is not a TABLE"}var n=t||{};var i=e["!data"]!=null;var s=0,f=0;if(n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ka(n.origin):n.origin;s=l.r;f=l.c}}var o=Math.min(n.sheetRows||1e7,a.length);var c={s:{r:0,c:0},e:{r:s,c:f}};if(e["!ref"]){var h=Za(e["!ref"]);c.s.r=Math.min(c.s.r,h.s.r);c.s.c=Math.min(c.s.c,h.s.c);c.e.r=Math.max(c.e.r,h.e.r);c.e.c=Math.max(c.e.c,h.e.c);if(s==-1)c.e.r=s=h.e.r+1}var u=[],d=0;var v=e["!rows"]||(e["!rows"]=[]);var p=0,m=0,g=0,b=0,w=0,k=0;if(!e["!cols"])e["!cols"]=[];for(;p1||k>1)u.push({s:{r:m+s,c:b+f},e:{r:m+s+(w||1)-1,c:b+f+(k||1)-1}});var S={t:"s",v:E};var x=y.getAttribute("data-t")||y.getAttribute("t")||"";if(E!=null){if(E.length==0)S.t=x||"z";else if(n.raw||E.trim().length==0||x=="s"){}else if(x=="e"&&ci[+E])S={t:"e",v:+E,w:ci[+E]};else if(E==="TRUE")S={t:"b",v:true};else if(E==="FALSE")S={t:"b",v:false};else if(!isNaN(yr(E)))S={t:"n",v:yr(E)};else if(!isNaN(Rr(E).getDate())){S={t:"d",v:wr(E)};if(n.UTC)S.v=Dr(S.v);if(!n.cellDates)S={t:"n",v:dr(S.v)};S.z=n.dateNF||q[14]}else if(E.charCodeAt(0)==35&&hi[E]!=null)S={t:"e",v:hi[E],w:E}}if(S.z===undefined&&C!=null)S.z=C;var O="",I=y.getElementsByTagName("A");if(I&&I.length)for(var R=0;R=o)e["!fullref"]=Ja((c.e.r=a.length-p+m-1+s,c));return e}function Ob(e,r){var t=r||{};var a={};if(t.dense)a["!data"]=[];return xb(a,e,r)}function Ib(e,r){var t=an(Ob(e,r),r);return t}function Rb(e){var r="";var t=Nb(e);if(t)r=t(e).getPropertyValue("display");if(!r)r=e.style&&e.style.display;return r==="none"}function Nb(e){if(e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle==="function")return e.ownerDocument.defaultView.getComputedStyle;if(typeof getComputedStyle==="function")return getComputedStyle;return null}function Fb(e){var r=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(e,r){return Array(parseInt(r,10)+1).join(" ")}).replace(/]*\/>/g,"\t").replace(//g,"\n");var t=pt(r.replace(/<[^<>]*>/g,""));return[t]}function Db(e,r,t){var a=t||{};var n=Ht(e);Vt.lastIndex=0;n=Pr(Mr(n,""));var i,s,f="",l="",o,c=0,h=-1,u=false,d="";while(i=Vt.exec(n)){switch(i[3]=i[3].replace(/_[\s\S]*$/,"")){case"number-style":;case"currency-style":;case"percentage-style":;case"date-style":;case"time-style":;case"text-style":if(i[1]==="/"){u=false;if(s["truncate-on-overflow"]=="false"){if(f.match(/h/))f=f.replace(/h+/,"[$&]");else if(f.match(/m/))f=f.replace(/m+/,"[$&]");else if(f.match(/s/))f=f.replace(/s+/,"[$&]")}a[s.name]=f;f=""}else if(i[0].charAt(i[0].length-2)!=="/"){u=true;f="";s=ct(i[0],false)}break;case"boolean-style":if(i[1]==="/"){u=false;a[s.name]="General";f=""}else if(i[0].charAt(i[0].length-2)!=="/"){u=true;f="";s=ct(i[0],false)}break;case"boolean":f+="General";break;case"text":if(i[1]==="/"){d=n.slice(h,Vt.lastIndex-i[0].length);if(d=="%"&&s[0]=="=0")f=a[o["apply-style-name"]]+";"+f;else console.error("ODS number format may be incorrect: "+o["condition"]);break;case"number":if(i[1]==="/")break;o=ct(i[0],false);l="";l+=Tr("0",+o["min-integer-digits"]||1);if(Ct(o["grouping"]))l=ue(Tr("#",Math.max(0,4-l.length))+l);if(+o["min-decimal-places"]||+o["decimal-places"])l+=".";if(+o["min-decimal-places"])l+=Tr("0",+o["min-decimal-places"]||1);if(+o["decimal-places"]-(+o["min-decimal-places"]||0))l+=Tr("0",+o["decimal-places"]-(+o["min-decimal-places"]||0));f+=l;break;case"embedded-text":if(i[1]==="/"){if(c==0)f+='"'+n.slice(h,Vt.lastIndex-i[0].length).replace(/"/g,'""')+'"';else f=f.slice(0,c)+'"'+n.slice(h,Vt.lastIndex-i[0].length).replace(/"/g,'""')+'"'+f.slice(c)}else if(i[0].charAt(i[0].length-2)!=="/"){h=Vt.lastIndex;c=-+ct(i[0],false)["position"]||0}break;}}return a}function Pb(e,r,t){var a=r||{};if(b!=null&&a.dense==null)a.dense=b;var n=Ht(e);var i=[],s;var f;var l,o="",c=0;var h;var u;var d={},v=[];var p={};if(a.dense)p["!data"]=[];var m,g;var w={value:""},k={};var A="",T=0,y,E="",C=0;var _=[],S=[];var x=-1,O=-1,I={s:{r:1e6,c:1e7},e:{r:0,c:0}};var R=0;var N=t||{},F={};var D=[],P={},L=0,M=0;var U=[],B=1,W=1;var z=[];var H={Names:[],WBProps:{}};var V={};var $=["",""];var X=[],G={};var j="",K=0;var Y=false,Z=false;var J=0;Vt.lastIndex=0;n=Pr(Mr(n,""));while(m=Vt.exec(n))switch(m[3]=m[3].replace(/_[\s\S]*$/,"")){case"table":;case"工作表":if(m[1]==="/"){if(I.e.c>=I.s.c&&I.e.r>=I.s.r)p["!ref"]=Ja(I);else p["!ref"]="A1:A1";if(a.sheetRows>0&&a.sheetRows<=I.e.r){p["!fullref"]=p["!ref"];I.e.r=a.sheetRows-1;p["!ref"]=Ja(I)}if(D.length)p["!merges"]=D;if(U.length)p["!rows"]=U;h.name=h["名称"]||h.name;if(typeof JSON!=="undefined")JSON.stringify(h);v.push(h.name);d[h.name]=p;Z=false}else if(m[0].charAt(m[0].length-2)!=="/"){h=ct(m[0],false);x=O=-1;I.s.r=I.s.c=1e7;I.e.r=I.e.c=0;p={};if(a.dense)p["!data"]=[];D=[];U=[];Z=true}break;case"table-row-group":if(m[1]==="/")--R;else++R;break;case"table-row":;case"行":if(m[1]==="/"){x+=B;B=1;break}u=ct(m[0],false);if(u["行号"])x=u["行号"]-1;else if(x==-1)x=0;B=+u["number-rows-repeated"]||1;if(B<10)for(J=0;J0)U[x+J]={level:R};O=-1;break;case"covered-table-cell":if(m[1]!=="/"){++O;w=ct(m[0],false);W=parseInt(w["number-columns-repeated"]||"1",10)||1;if(a.sheetStubs){while(W-- >0){if(a.dense){if(!p["!data"][x])p["!data"][x]=[];p["!data"][x][O]={t:"z"}}else p[Ya({r:x,c:O})]={t:"z"};++O}--O}else O+=W-1}A="";_=[];break;case"table-cell":;case"数据":if(m[0].charAt(m[0].length-2)==="/"){++O;w=ct(m[0],false);W=parseInt(w["number-columns-repeated"]||"1",10)||1;g={t:"z",v:null};if(w.formula&&a.cellFormula!=false)g.f=uv(pt(w.formula));if(w["style-name"]&&F[w["style-name"]])g.z=F[w["style-name"]];if((w["数据类型"]||w["value-type"])=="string"){g.t="s";g.v=pt(w["string-value"]||"");if(a.dense){if(!p["!data"][x])p["!data"][x]=[];p["!data"][x][O]=g}else{p[$a(O)+Wa(x)]=g}}O+=W-1}else if(m[1]!=="/"){++O;A=E="";T=C=0;_=[];S=[];W=1;var q=B?x+B-1:x;if(O>I.e.c)I.e.c=O;if(OI.e.r)I.e.r=q;w=ct(m[0],false);k=ht(m[0],true);X=[];G={};g={t:w["数据类型"]||w["value-type"],v:null};if(w["style-name"]&&F[w["style-name"]])g.z=F[w["style-name"]];if(a.cellFormula){if(w.formula)w.formula=pt(w.formula);if(w["number-matrix-columns-spanned"]&&w["number-matrix-rows-spanned"]){L=parseInt(w["number-matrix-rows-spanned"],10)||0;M=parseInt(w["number-matrix-columns-spanned"],10)||0;P={s:{r:x,c:O},e:{r:x+L-1,c:O+M-1}};g.F=Ja(P);z.push([P,g.F])}if(w.formula)g.f=uv(w.formula);else for(J=0;J=z[J][0].s.r&&x<=z[J][0].e.r)if(O>=z[J][0].s.c&&O<=z[J][0].e.c)g.F=z[J][1]}if(w["number-columns-spanned"]||w["number-rows-spanned"]){L=parseInt(w["number-rows-spanned"]||"1",10)||1;M=parseInt(w["number-columns-spanned"]||"1",10)||1;if(L*M>1){P={s:{r:x,c:O},e:{r:x+L-1,c:O+M-1}};D.push(P)}}if(w["number-columns-repeated"])W=parseInt(w["number-columns-repeated"],10);switch(g.t){case"boolean":g.t="b";g.v=Ct(w["boolean-value"])||+w["boolean-value"]>=1;break;case"float":g.t="n";g.v=parseFloat(w.value);if(a.cellDates&&g.z&&Le(g.z)){g.v=vr(g.v+(H.WBProps.date1904?1462:0));g.t=typeof g.v=="number"?"n":"d"}break;case"percentage":g.t="n";g.v=parseFloat(w.value);break;case"currency":g.t="n";g.v=parseFloat(w.value);break;case"date":g.t="d";g.v=wr(w["date-value"],H.WBProps.date1904);if(!a.cellDates){g.t="n";g.v=dr(g.v,H.WBProps.date1904)}if(!g.z)g.z="m/d/yy";break;case"time":g.t="n";g.v=pr(w["time-value"])/86400;if(a.cellDates){g.v=vr(g.v);g.t=typeof g.v=="number"?"n":"d"}if(!g.z)g.z="HH:MM:SS";break;case"number":g.t="n";g.v=parseFloat(w["数据数值"]);break;default:if(g.t==="string"||g.t==="text"||!g.t){g.t="s";if(w["string-value"]!=null){A=pt(w["string-value"]);_=[]}}else throw new Error("Unsupported value type "+g.t);}}else{Y=false;if(k["calcext:value-type"]=="error"&&hi[A]!=null){g.t="e";g.w=A;g.v=hi[A]}if(g.t==="s"){g.v=A||"";if(_.length)g.R=_;Y=T==0}if(V.Target)g.l=V;if(X.length>0){g.c=X;X=[]}if(A&&a.cellText!==false)g.w=A;if(Y){g.t="z";delete g.v}if(!Y||a.sheetStubs){if(!(a.sheetRows&&a.sheetRows<=x)){for(var Q=0;Q0)p["!data"][x+Q][O+W]=Ar(g)}else{p[Ya({r:x+Q,c:O})]=g;while(--W>0)p[Ya({r:x+Q,c:O+W})]=Ar(g)}if(I.e.c<=O)I.e.c=O}}}W=parseInt(w["number-columns-repeated"]||"1",10);O+=W-1;W=0;g={};A="";_=[]}V={};break;case"document":;case"document-content":;case"电子表格文档":;case"spreadsheet":;case"主体":;case"scripts":;case"styles":;case"font-face-decls":;case"master-styles":if(m[1]==="/"){if((s=i.pop())[0]!==m[3])throw"Bad state: "+s}else if(m[0].charAt(m[0].length-2)!=="/")i.push([m[3],true]);break;case"annotation":if(m[1]==="/"){if((s=i.pop())[0]!==m[3])throw"Bad state: "+s;G.t=A;if(_.length)G.R=_;G.a=j;X.push(G);A=E;T=C;_=S}else if(m[0].charAt(m[0].length-2)!=="/"){i.push([m[3],false]);var ee=ct(m[0],true);if(!(ee["display"]&&Ct(ee["display"])))X.hidden=true;E=A;C=T;S=_;A="";T=0;_=[]}j="";K=0;break;case"creator":if(m[1]==="/"){j=n.slice(K,m.index)}else K=m.index+m[0].length;break;case"meta":;case"元数据":;case"settings":;case"config-item-set":;case"config-item-map-indexed":;case"config-item-map-entry":;case"config-item-map-named":;case"shapes":;case"frame":;case"text-box":;case"image":;case"data-pilot-tables":;case"list-style":;case"form":;case"dde-links":;case"event-listeners":;case"chart":if(m[1]==="/"){if((s=i.pop())[0]!==m[3])throw"Bad state: "+s}else if(m[0].charAt(m[0].length-2)!=="/")i.push([m[3],false]);A="";T=0;_=[];break;case"scientific-number":;case"currency-symbol":;case"fill-character":break;case"text-style":;case"boolean-style":;case"number-style":;case"currency-style":;case"percentage-style":;case"date-style":;case"time-style":if(m[1]==="/"){var re=Vt.lastIndex;Db(n.slice(l,Vt.lastIndex),r,N);Vt.lastIndex=re}else if(m[0].charAt(m[0].length-2)!=="/"){l=Vt.lastIndex-m[0].length}break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":;case"page-layout":break;case"style":{var te=ct(m[0],false);if(te["family"]=="table-cell"&&N[te["data-style-name"]])F[te["name"]]=N[te["data-style-name"]]}break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":break;case"fraction":break;case"day":;case"month":;case"year":;case"era":;case"day-of-week":;case"week-of-year":;case"quarter":;case"hours":;case"minutes":;case"seconds":;case"am-pm":break;case"boolean":break;case"text":if(m[0].slice(-2)==="/>")break;else if(m[1]==="/")switch(i[i.length-1][0]){case"number-style":;case"date-style":;case"time-style":o+=n.slice(c,m.index);break;}else c=m.index+m[0].length;break;case"named-range":f=ct(m[0],false);$=vv(f["cell-range-address"]);var ae={Name:f.name,Ref:$[0]+"!"+$[1]};if(Z)ae.Sheet=v.length;H.Names.push(ae);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":;case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":f=ct(m[0],false);switch(f["date-value"]){case"1904-01-01":H.WBProps.date1904=true;break;}break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":;case"文本串":if(["master-styles"].indexOf(i[i.length-1][0])>-1)break;if(m[1]==="/"&&(!w||!w["string-value"])){var ne=Fb(n.slice(T,m.index),y);A=(A.length>0?A+"\n":"")+ne[0]}else if(m[0].slice(-2)=="/>"){A+="\n"}else{y=ct(m[0],false);T=m.index+m[0].length}break;case"s":break;case"database-range":if(m[1]==="/")break;try{$=vv(ct(m[0])["target-range-address"]);d[$[0]]["!autofilter"]={ref:$[1]}}catch(ie){}break;case"date":break;case"object":break;case"title":;case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"filter-set-item":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":;case"sender-lastname":;case"sender-initials":;case"sender-title":;case"sender-position":;case"sender-email":;case"sender-phone-private":;case"sender-fax":;case"sender-company":;case"sender-phone-work":;case"sender-street":;case"sender-city":;case"sender-postal-code":;case"sender-country":;case"sender-state-or-province":;case"author-name":;case"author-initials":;case"chapter":;case"file-name":;case"template-name":;case"sheet-name":break;case"event-listener":break;case"initial-creator":;case"creation-date":;case"print-date":;case"generator":;case"document-statistic":;case"user-defined":;case"editing-duration":;case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":;case"source-cell-range":;case"source-service":;case"data-pilot-field":;case"data-pilot-level":;case"data-pilot-subtotals":;case"data-pilot-subtotal":;case"data-pilot-members":;case"data-pilot-member":;case"data-pilot-display-info":;case"data-pilot-sort-info":;case"data-pilot-layout-info":;case"data-pilot-field-reference":;case"data-pilot-groups":;case"data-pilot-group":;case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":;case"dde-connection-decl":;case"dde-link":;case"dde-source":break;case"properties":break;case"property":break;case"a":if(m[1]!=="/"){V=ct(m[0],false);if(!V.href)break;V.Target=pt(V.href);delete V.href;if(V.Target.charAt(0)=="#"&&V.Target.indexOf(".")>-1){$=vv(V.Target.slice(1));V.Target="#"+$[0]+"!"+$[1]}else if(V.Target.match(/^\.\.[\\\/]/))V.Target=V.Target.slice(3)}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(m[2]){case"dc:":;case"calcext:":;case"loext:":;case"ooo:":;case"chartooo:":;case"draw:":;case"style:":;case"chart:":;case"form:":;case"uof:":;case"表:":;case"字:":break;default:if(a.WTF)throw new Error(m);};}var se={Sheets:d,SheetNames:v,Workbook:H};if(a.bookSheets)delete se.Sheets;return se}function Lb(e,r){r=r||{};if(jr(e,"META-INF/manifest.xml"))Ei(Yr(e,"META-INF/manifest.xml"),r);var t=Zr(e,"styles.xml");var a=t&&Db(It(t),r);var n=Zr(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var i=Pb(It(n),r,a);if(jr(e,"meta.xml"))i.Props=Ri(Yr(e,"meta.xml"));i.bookType="ods";return i}function Mb(e,r){var t=Pb(e,r);t.bookType="fods";return t}var Ub=function(){var e=["",'',"",'',"",'',"",""].join("");var r=""+e+"";return function t(){return at+r}}();function Bb(e,r){var t="number",a="",n={"style:name":r},i="",s=0;e=e.replace(/"[$]"/g,"$");e:{if(e.indexOf(";")>-1){console.error("Unsupported ODS Style Map exported. Using first branch of "+e);e=e.slice(0,e.indexOf(";"))}if(e=="@"){t="text";a="";break e}if(e.indexOf(/\$/)>-1){t="currency"}if(e[s]=='"'){i="";while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;if(e[s+1]=="*"){s++;a+=""+bt(i.replace(/""/g,'"'))+""}else{a+=""+bt(i.replace(/""/g,'"'))+""}e=e.slice(s+1);s=0}var f=e.match(/# (\?+)\/(\?+)/);if(f){a+=Bt("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":f[1].length,"number:max-denominator-value":Math.max(+f[1].replace(/./g,"9"),+f[2].replace(/./g,"9"))});break e}if(f=e.match(/# (\?+)\/(\d+)/)){a+=Bt("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":f[1].length,"number:denominator-value":+f[2]});break e}if(f=e.match(/\b(\d+)(|\.\d+)%/)){t="percentage";a+=Bt("number:number",null,{"number:decimal-places":f[2]&&f.length-1||0,"number:min-decimal-places":f[2]&&f.length-1||0,"number:min-integer-digits":f[1].length})+"%";break e}var l=false;if(["y","m","d"].indexOf(e[0])>-1){t="date";r:for(;s";break;case"yyy":;case"yyyy":a+='';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":;case"mm":;case"mmm":;case"mmmm":a+='';break;case"d":;case"dd":a+='';break;case"ddd":;case"dddd":a+='';break;}break;case'"':while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;a+=""+bt(i.slice(1).replace(/""/g,'"'))+"";break;case"\\":i=e[++s];a+=""+bt(i)+"";break;case"/":;case":":a+=""+bt(i)+"";break;default:console.error("unrecognized character "+i+" in ODF format "+e);}if(!l)break e;e=e.slice(s+1);s=0}if(e.match(/^\[?[hms]/)){if(t=="number")t="time";if(e.match(/\[/)){e=e.replace(/[\[\]]/g,"");n["number:truncate-on-overflow"]="false"}for(;s';break;case"m":;case"mm":a+='';break;case"s":;case"ss":if(e[s+1]==".")do{i+=e[s+1];++s}while(e[s+1]=="0");a+='";break;}break;case'"':while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;a+=""+bt(i.slice(1).replace(/""/g,'"'))+"";break;case"/":;case":":a+=""+bt(i)+"";break;case"a":if(e.slice(s,s+3).toLowerCase()=="a/p"){a+="";s+=2;break}if(e.slice(s,s+5).toLowerCase()=="am/pm"){a+="";s+=4;break};default:console.error("unrecognized character "+i+" in ODF format "+e);}break e}if(e.indexOf(/\$/)>-1){t="currency"}if(e[0]=="$"){a+='$';e=e.slice(1);s=0}s=0;if(e[s]=='"'){while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;if(e[s+1]=="*"){s++;a+=""+bt(i.replace(/""/g,'"'))+""}else{a+=""+bt(i.replace(/""/g,'"'))+""}e=e.slice(s+1);s=0}var c=e.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(!c||!c[0])console.error("Could not find numeric part of "+e);else{var h=c[1].replace(/,/g,"");a+="-1?' number:grouping="true"':"")+(c[2]&&' number:decimal-places="'+(c[2].length-1)+'"'||' number:decimal-places="0"')+(c[3]&&c[3].indexOf("+")>-1?' number:forced-exponent-sign="true"':"")+(c[3]?' number:min-exponent-digits="'+c[3].match(/0+/)[0].length+'"':"")+">"+"";s=c.index+c[0].length}if(e[s]=='"'){i="";while(e[++s]!='"'||e[++s]=='"')i+=e[s];--s;a+=""+bt(i.replace(/""/g,'"'))+""}}if(!a){console.error("Could not generate ODS number format for |"+e+"|");return""}return Bt("number:"+t+"-style",a,n)}function Wb(e,r,t){var a=[];for(var n=0;n\n"+a.map(function(e){var r=(t==-1?"$":"")+pv(e.Ref);return" "+Bt("table:named-range",null,{"table:name":e.Name,"table:cell-range-address":r,"table:base-cell-address":r.replace(/[\.][^\.]*$/,".$A$1")})}).join("\n")+"\n \n"}var zb=function(){var e=function(e,r){return bt(e).replace(/ +/g,function(e){return''}).replace(/\t/g,"").replace(/\n/g,r?"":"").replace(/^ /,"").replace(/ $/,"")};var r=" \n";var t=function(t,a,n,i,s,f){var l=[];l.push(' \n');var o=0,c=0,h=Za(t["!ref"]||"A1");var u=t["!merges"]||[],d=0;var v=t["!data"]!=null;if(t["!cols"]){for(c=0;c<=h.e.c;++c)l.push(" \n")}var p="",m=t["!rows"]||[];for(o=0;o\n")}for(;o<=h.e.r;++o){p=m[o]?' table:style-name="ro'+m[o].ods+'"':"";l.push(" \n");for(c=0;cc)continue;if(u[d].s.r>o)continue;if(u[d].e.c\n");continue}var k=Ya({r:o,c:c}),A=v?(t["!data"][o]||[])[c]:t[k];if(A&&A.f){b["table:formula"]=bt(dv(A.f));if(A.F){if(A.F.slice(0,k.length)==k){var T=Za(A.F);b["table:number-matrix-columns-spanned"]=T.e.c-T.s.c+1;b["table:number-matrix-rows-spanned"]=T.e.r-T.s.r+1}}}if(!A){l.push(r);continue}switch(A.t){case"b":w=A.v?"TRUE":"FALSE";b["office:value-type"]="boolean";b["office:boolean-value"]=A.v?"true":"false";break;case"n":if(!isFinite(A.v)){if(isNaN(A.v)){w="#NUM!";b["table:formula"]="of:=#NUM!"}else{w="#DIV/0!";b["table:formula"]="of:="+(A.v<0?"-":"")+"1/0"}b["office:string-value"]="";b["office:value-type"]="string";b["calcext:value-type"]="error"}else{w=A.w||String(A.v||0);b["office:value-type"]="float";b["office:value"]=A.v||0}break;case"s":;case"str":w=A.v==null?"":A.v;b["office:value-type"]="string";break;case"d":w=A.w||wr(A.v,f).toISOString();b["office:value-type"]="date";b["office:date-value"]=wr(A.v,f).toISOString();b["table:style-name"]="ce1";break;default:l.push(r);continue;}var y=e(w);if(A.l&&A.l.Target){var E=A.l.Target;E=E.charAt(0)=="#"?"#"+pv(E.slice(1)):E;if(E.charAt(0)!="#"&&!E.match(/^\w+:/))E="../"+E;y=Bt("text:a",y,{"xlink:href":E.replace(/&/g,"&")})}if(s[A.z])b["table:style-name"]="ce"+s[A.z].slice(1);var C=Bt("text:p",y,{});if(A.c){var _="",S="",x={};for(var O=0;O"+e(A.c[O].t)+""}if(!A.c.hidden)x["office:display"]=true;C=Bt("office:annotation",S,x)+C}l.push(" "+Bt("table:table-cell",C,b)+"\n")}l.push(" \n")}if((a.Workbook||{}).Names)l.push(Wb(a.Workbook.Names,a.SheetNames,n));l.push(" \n");return l.join("")};var a=function(e,r){e.push(" \n");var t=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!cols"]){for(var a=0;a\n');e.push(' \n');e.push(" \n");++t}}});var a=0;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;if(r["!rows"]){for(var t=0;t\n');e.push(' \n');e.push(" \n");++a}}});e.push(' \n');e.push(' \n');e.push(" \n");e.push(' \n');e.push(' \n');e.push(" /\n");e.push(' \n');e.push(" /\n");e.push(" \n");e.push(" \n");var n={};var i=69;r.SheetNames.map(function(e){return r.Sheets[e]}).forEach(function(r){if(!r)return;var t=r["!data"]!=null;if(!r["!ref"])return;var a=Za(r["!ref"]);for(var s=0;s<=a.e.r;++s)for(var f=0;f<=a.e.c;++f){var l=t?(r["!data"][s]||[])[f]:r[Ya({r:s,c:f})];if(!l||!l.z||l.z.toLowerCase()=="general")continue;if(!n[l.z]){var o=Bb(l.z,"N"+i);if(o){n[l.z]="N"+i;++i;e.push(o+"\n")}}}});e.push(' \n');ir(n).forEach(function(r){e.push('\n')});e.push(" \n");return n};return function n(e,r){var n=[at];var i=Ut({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"});var s=Ut({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});if(r.bookType=="fods"){n.push("\n");n.push(Oi().replace(/]*?>/,"").replace(/<\/office:document-meta>/,"")+"\n")}else n.push("\n");var f=a(n,e);n.push(" \n");n.push(" \n");if(((e.Workbook||{}).WBProps||{}).date1904)n.push(' \n \n \n');for(var l=0;l!=e.SheetNames.length;++l)n.push(t(e.Sheets[e.SheetNames[l]],e,l,r,f,((e.Workbook||{}).WBProps||{}).date1904));if((e.Workbook||{}).Names)n.push(Wb(e.Workbook.Names,e.SheetNames,-1));n.push(" \n");n.push(" \n");if(r.bookType=="fods")n.push("");else n.push("");return n.join("")}}();function Hb(e,r){if(r.bookType=="fods")return zb(e,r);var t=et();var a="";var n=[];var i=[];a="mimetype";Qr(t,a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";Qr(t,a,zb(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";Qr(t,a,Ub(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";Qr(t,a,at+Oi());n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";Qr(t,a,xi(i));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";Qr(t,a,Ci(n));return t}var Vb=function(){try{if(typeof Uint8Array=="undefined")return"slice";if(typeof Uint8Array.prototype.subarray=="undefined")return"slice";if(typeof Buffer!=="undefined"){if(typeof Buffer.prototype.subarray=="undefined")return"slice";if((typeof Buffer.from=="function"?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array)return"subarray";return"slice"}return"subarray"}catch(e){return"slice"}}();function $b(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Xb(e){return typeof TextDecoder!="undefined"?(new TextDecoder).decode(e):It(N(e))}function Gb(e){return typeof TextEncoder!="undefined"?(new TextEncoder).encode(e):I(Rt(e))}function jb(e){var r=0;for(var t=0;t>1&1431655765;e=(e&858993459)+(e>>2&858993459);return(e+(e>>4)&252645135)*16843009>>>24}function Yb(e,r){var t=(e[r+15]&127)<<7|e[r+14]>>1;var a=e[r+14]&1;for(var n=r+13;n>=r;--n)a=a*256+e[n];return(e[r+15]&128?-a:a)*Math.pow(10,t-6176)}function Zb(e,r,t){var a=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-16;var n=t/Math.pow(10,a-6176);e[r+15]|=a>>7;e[r+14]|=(a&127)<<1;for(var i=0;n>=1;++i,n/=256)e[r+i]=n&255;e[r+15]|=t>=0?0:128}function Jb(e,r){var t=r.l;var a=e[t]&127;e:if(e[t++]>=128){a|=(e[t]&127)<<7;if(e[t++]<128)break e;a|=(e[t]&127)<<14;if(e[t++]<128)break e;a|=(e[t]&127)<<21;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,28);++t;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,35);++t;if(e[t++]<128)break e;a+=(e[t]&127)*Math.pow(2,42);++t;if(e[t++]<128)break e}r.l=t;return a}function qb(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){r[t-1]|=128;r[t]=e>>7&127;++t;if(e<=16383)break e;r[t-1]|=128;r[t]=e>>14&127;++t;if(e<=2097151)break e;r[t-1]|=128;r[t]=e>>21&127;++t;if(e<=268435455)break e;r[t-1]|=128;r[t]=e/256>>>21&127;++t;if(e<=34359738367)break e;r[t-1]|=128;r[t]=e/65536>>>21&127;++t;if(e<=4398046511103)break e;r[t-1]|=128;r[t]=e/16777216>>>21&127;++t}return r[Vb](0,t)}function Qb(e){var r={l:0};var t=[];while(r.l=128){t|=(e[r]&127)<<7;if(e[r++]<128)break e;t|=(e[r]&127)<<14;if(e[r++]<128)break e;t|=(e[r]&127)<<21;if(e[r++]<128)break e;t|=(e[r]&127)<<28;a=e[r]>>4&7;if(e[r++]<128)break e;a|=(e[r]&127)<<3;if(e[r++]<128)break e;a|=(e[r]&127)<<10;if(e[r++]<128)break e;a|=(e[r]&127)<<17;if(e[r++]<128)break e;a|=(e[r]&127)<<24;if(e[r++]<128)break e;a|=(e[r]&127)<<31}return[t>>>0,a>>>0]}function aw(e){var r=[],t={l:0};while(t.l=128);s=e[Vb](t.l,f);t.l=f}break;case 1:{s=e[Vb](f,f+8);t.l=f+8}break;case 2:{var l=Jb(e,t);s=e[Vb](t.l,t.l+l);t.l+=l}break;case 5:{s=e[Vb](f,f+4);t.l=f+4}break;default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a));}var o={data:s,type:i};if(r[n]==null)r[n]=[];r[n].push(o)}return r}function nw(e){var r=[];e.forEach(function(e,t){if(t==0)return;e.forEach(function(e){if(!e.data)return;r.push(qb(t*8+e.type));if(e.type==2)r.push(qb(e.data.length));r.push(e.data)})});return jb(r)}function iw(e,r){return(e==null?void 0:e.map(function(e){return r(e.data)}))||[]}function sw(e){var r;var t=[],a={l:0};while(a.l>>0>0;t.push(s)}return t}function fw(e){var r=[];e.forEach(function(e){var t=[[],[{data:qb(e.id),type:0}],[]];if(e.merge!=null)t[3]=[{data:qb(+!!e.merge),type:0}];var a=[];e.messages.forEach(function(e){a.push(e.data);e.meta[3]=[{type:0,data:qb(e.data.length)}];t[2].push({data:nw(e.meta),type:2})});var n=nw(t);r.push(qb(n.length));r.push(n);a.forEach(function(e){return r.push(e)})});return jb(r)}function lw(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));var t={l:0};var a=Jb(r,t);var n=[];var i=t.l;while(i>2;if(f<60)++f;else{var l=f-59;f=r[i];if(l>1)f|=r[i+1]<<8;if(l>2)f|=r[i+2]<<16;if(l>3)f|=r[i+3]<<24;f>>>=0;f++;i+=l}n.push(r[Vb](i,i+f));i+=f;continue}else{var o=0,c=0;if(s==1){c=(r[i]>>2&7)+4;o=(r[i++]&224)<<3;o|=r[i++]}else{c=(r[i++]>>2)+1;if(s==2){o=r[i]|r[i+1]<<8;i+=2}else{o=(r[i]|r[i+1]<<8|r[i+2]<<16|r[i+3]<<24)>>>0;i+=4}}if(o==0)throw new Error("Invalid offset 0");var h=n.length-1,u=o;while(h>=0&&u>=n[h].length){u-=n[h].length;--h}if(h<0){if(u==0)u=n[h=0].length;else throw new Error("Invalid offset beyond length")}if(c0){n.push(n[h][Vb](n[h].length-u));c-=u}++h;while(c>=n[h].length){n.push(n[h]);c-=n[h].length;++h}if(c)n.push(n[h][Vb](0,c))}if(n.length>25)n=[jb(n)]}}var d=0;for(var v=0;v>8&255]))}else if(a<=16777216){s+=4;r.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))}else if(a<=4294967296){s+=5;r.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))}r.push(e[Vb](t,t+a));s+=a;n[0]=0;n[1]=s&255;n[2]=s>>8&255;n[3]=s>>16&255;t+=a}return jb(r)}var hw=function(){return{sst:[],rsst:[],ofmt:[],nfmt:[],fmla:[],ferr:[],cmnt:[]}};function uw(e,r,t,a,n){var i,s,f,l;var o=r&255,c=r>>8;var h=c>=5?n:a;e:if(t&(c>4?8:4)&&e.t=="n"&&o==7){var u=((i=h[7])==null?void 0:i[0])?rw(h[7][0].data):-1;if(u==-1)break e;var d=((s=h[15])==null?void 0:s[0])?rw(h[15][0].data):-1;var v=((f=h[16])==null?void 0:f[0])?rw(h[16][0].data):-1;var p=((l=h[40])==null?void 0:l[0])?rw(h[40][0].data):-1;var m=e.v,g=m;r:if(p){if(m==0){d=v=2;break r}if(m>=604800)d=1;else if(m>=86400)d=2;else if(m>=3600)d=4;else if(m>=60)d=8;else if(m>=1)d=16;else d=32;if(Math.floor(m)!=m)v=32;else if(m%60)v=16;else if(m%3600)v=8;else if(m%86400)v=4;else if(m%604800)v=2;if(v=2){g=m/86400;if(v>2){g|=0;m-=86400*g}w.push('d"d"');b.push(g+(u==2?" day"+(g==1?"":"s"):u==1?"d":""))}if(d<=4&&v>=4){g=m/3600;if(v>4){g|=0;m-=3600*g}w.push((d>=4?"[h]":"h")+'"h"');b.push(g+(u==2?" hour"+(g==1?"":"s"):u==1?"h":""))}if(d<=8&&v>=8){g=m/60;if(v>8){g|=0;m-=60*g}w.push((d>=8?"[m]":"m")+'"m"');if(u==0)b.push((d==8&&v==8||g>=10?"":"0")+g);else b.push(g+(u==2?" minute"+(g==1?"":"s"):u==1?"m":""))}if(d<=16&&v>=16){g=m;if(v>16){g|=0;m-=g}w.push((d>=16?"[s]":"s")+'"s"');if(u==0)b.push((v==16&&d==16||g>=10?"":"0")+g);else b.push(g+(u==2?" second"+(g==1?"":"s"):u==1?"s":""))}if(v>=32){g=Math.round(1e3*m);if(d<32)w.push('.000"ms"');if(u==0)b.push((g>=100?"":g>=10?"0":"00")+g);else b.push(g+(u==2?" millisecond"+(g==1?"":"s"):u==1?"ms":""))}e.w=b.join(u==0?":":" ");e.z=w.join(u==0?'":"':" ");if(u==0)e.w=e.w.replace(/:(\d\d\d)$/,".$1")}}function dw(e,r,t,a){var n=$b(e);var i=n.getUint32(4,true);var s=-1,f=-1,l=-1,o=NaN,c=0,h=new Date(Date.UTC(2001,0,1));var u=t>1?12:8;if(i&2){l=n.getUint32(u,true);u+=4}u+=Kb(i&(t>1?3468:396))*4;if(i&512){s=n.getUint32(u,true);u+=4}u+=Kb(i&(t>1?12288:4096))*4;if(i&16){f=n.getUint32(u,true);u+=4}if(i&32){o=n.getFloat64(u,true);u+=8}if(i&64){h.setTime(h.getTime()+(c=n.getFloat64(u,true))*1e3);u+=8}if(t>1){i=n.getUint32(8,true)>>>16;if(i&255){if(l==-1)l=n.getUint32(u,true);u+=4}}var d;var v=e[t>=4?1:2];switch(v){case 0:return void 0;case 2:d={t:"n",v:o};break;case 3:d={t:"s",v:r.sst[f]};break;case 5:{if(a==null?void 0:a.cellDates)d={t:"d",v:h};else d={t:"n",v:c/86400+35430,z:q[14]}}break;case 6:d={t:"b",v:o>0};break;case 7:d={t:"n",v:o};break;case 8:d={t:"e",v:0};break;case 9:{if(s>-1){var p=r.rsst[s];d={t:"s",v:p.v};if(p.l)d.l={Target:p.l}}else throw new Error("Unsupported cell type ".concat(e[Vb](0,4)))}break;default:throw new Error("Unsupported cell type ".concat(e[Vb](0,4)));}if(l>-1)uw(d,v|t<<8,i,r.ofmt[l],r.nfmt[l]);if(v==7)d.v/=86400;return d}function vw(e,r,t){var a=$b(e);var n=a.getUint32(4,true);var i=a.getUint32(8,true);var s=12;var f=-1,l=-1,o=-1,c=NaN,h=NaN,u=0,d=new Date(Date.UTC(2001,0,1)),v=-1,p=-1;if(i&1){c=Yb(e,s);s+=16}if(i&2){h=a.getFloat64(s,true);s+=8}if(i&4){d.setTime(d.getTime()+(u=a.getFloat64(s,true))*1e3);s+=8}if(i&8){l=a.getUint32(s,true);s+=4}if(i&16){f=a.getUint32(s,true);s+=4}s+=Kb(i&480)*4;if(i&512){p=a.getUint32(s,true);s+=4}s+=Kb(i&1024)*4;if(i&2048){v=a.getUint32(s,true);s+=4}var m;var g=e[1];switch(g){case 0:m={t:"z"};break;case 2:m={t:"n",v:c};break;case 3:m={t:"s",v:r.sst[l]};break;case 5:{if(t==null?void 0:t.cellDates)m={t:"d",v:d};else m={t:"n",v:u/86400+35430,z:q[14]}}break;case 6:m={t:"b",v:h>0};break;case 7:m={t:"n",v:h};break;case 8:m={t:"e",v:0};break;case 9:{if(f>-1){var b=r.rsst[f];m={t:"s",v:b.v};if(b.l)m.l={Target:b.l}}else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e[Vb](0,4)))}break;case 10:m={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e[Vb](0,4)));}s+=Kb(i&4096)*4;if(i&516096){if(o==-1)o=a.getUint32(s,true);s+=4}if(i&524288){var w=a.getUint32(s,true);s+=4;if(r.cmnt[w])m.c=_w(r.cmnt[w])}if(o>-1)uw(m,g|5<<8,i>>13,r.ofmt[o],r.nfmt[o]);if(g==7)m.v/=86400;return m}function pw(e,r){var t=new Uint8Array(32),a=$b(t),n=12,i=0;t[0]=5;switch(e.t){case"n":if(e.z&&Le(e.z)){t[1]=5;a.setFloat64(n,(vr(e.v+1462).getTime()-Date.UTC(2001,0,1))/1e3,true);i|=4;n+=8;break}else{t[1]=2;Zb(t,n,e.v);i|=1;n+=16}break;case"b":t[1]=6;a.setFloat64(n,e.v?1:0,true);i|=2;n+=8;break;case"s":{var s=e.v==null?"":String(e.v);if(e.l){var f=r.rsst.findIndex(function(r){var t;return r.v==s&&r.l==((t=e.l)==null?void 0:t.Target)});if(f==-1)r.rsst[f=r.rsst.length]={v:s,l:e.l.Target};t[1]=9;a.setUint32(n,f,true);i|=16;n+=4}else{var l=r.sst.indexOf(s);if(l==-1)r.sst[l=r.sst.length]=s;t[1]=3;a.setUint32(n,l,true);i|=8;n+=4}}break;case"d":t[1]=5;a.setFloat64(n,(e.v.getTime()-Date.UTC(2001,0,1))/1e3,true);i|=4;n+=8;break;case"z":t[1]=0;break;default:throw"unsupported cell type "+e.t;}if(e.c){r.cmnt.push(Sw(e.c));a.setUint32(n,r.cmnt.length-1,true);i|=524288;n+=4}a.setUint32(8,i,true);return t[Vb](0,n)}function mw(e,r){var t=new Uint8Array(32),a=$b(t),n=12,i=0,s="";t[0]=4;switch(e.t){case"n":break;case"b":break;case"s":{s=e.v==null?"":String(e.v);if(e.l){var f=r.rsst.findIndex(function(r){var t;return r.v==s&&r.l==((t=e.l)==null?void 0:t.Target)});if(f==-1)r.rsst[f=r.rsst.length]={v:s,l:e.l.Target};t[1]=9;a.setUint32(n,f,true);i|=512;n+=4}else{}}break;case"d":break;case"e":break;case"z":break;default:throw"unsupported cell type "+e.t;}if(e.c){a.setUint32(n,r.cmnt.length-1,true);i|=4096;n+=4}switch(e.t){case"n":t[1]=2;a.setFloat64(n,e.v,true);i|=32;n+=8;break;case"b":t[1]=6;a.setFloat64(n,e.v?1:0,true);i|=32;n+=8;break;case"s":{s=e.v==null?"":String(e.v);if(e.l){}else{var l=r.sst.indexOf(s);if(l==-1)r.sst[l=r.sst.length]=s;t[1]=3;a.setUint32(n,l,true);i|=16;n+=4}}break;case"d":t[1]=5;a.setFloat64(n,(e.v.getTime()-Date.UTC(2001,0,1))/1e3,true);i|=64;n+=8;break;case"z":t[1]=0;break;default:throw"unsupported cell type "+e.t;}a.setUint32(8,i,true);return t[Vb](0,n)}function gw(e,r,t){switch(e[0]){case 0:;case 1:;case 2:;case 3:;case 4:return dw(e,r,e[0],t);case 5:return vw(e,r,t);default:throw new Error("Unsupported payload version ".concat(e[0]));}}function bw(e){var r=aw(e);return rw(r[1][0].data)}function ww(e){return nw([[],[{type:0,data:qb(e)}]])}function kw(e,r){var t;var a=((t=e.messages[0].meta[5])==null?void 0:t[0])?Qb(e.messages[0].meta[5][0].data):[];var n=a.indexOf(r);if(n==-1){a.push(r);e.messages[0].meta[5]=[{type:2,data:ew(a)}]}}function Aw(e,r){var t;var a=((t=e.messages[0].meta[5])==null?void 0:t[0])?Qb(e.messages[0].meta[5][0].data):[];e.messages[0].meta[5]=[{type:2,data:ew(a.filter(function(e){return e!=r}))}]}function Tw(e,r){var t=aw(r.data);var a=rw(t[1][0].data);var n=t[3];var i=[];(n||[]).forEach(function(r){var t,n;var s=aw(r.data);if(!s[1])return;var f=rw(s[1][0].data)>>>0;switch(a){case 1:i[f]=Xb(s[3][0].data);break;case 8:{var l=e[bw(s[9][0].data)][0];var o=aw(l.data);var c=e[bw(o[1][0].data)][0];var h=rw(c.meta[1][0].data);if(h!=2001)throw new Error("2000 unexpected reference to ".concat(h));var u=aw(c.data);var d={v:u[3].map(function(e){return Xb(e.data)}).join("")};i[f]=d;e:if((t=u==null?void 0:u[11])==null?void 0:t[0]){var v=(n=aw(u[11][0].data))==null?void 0:n[1];if(!v)break e;v.forEach(function(r){var t,a,n;var i=aw(r.data);if((t=i[2])==null?void 0:t[0]){var s=e[bw((a=i[2])==null?void 0:a[0].data)][0];var f=rw(s.meta[1][0].data);switch(f){case 2032:var l=aw(s.data);if(((n=l==null?void 0:l[2])==null?void 0:n[0])&&!d.l)d.l=Xb(l[2][0].data);break;case 2039:break;default:console.log("unrecognized ObjectAttribute type ".concat(f));}}})}}break;case 2:i[f]=aw(s[6][0].data);break;case 3:i[f]=aw(s[5][0].data);break;case 10:{var p=e[bw(s[10][0].data)][0];i[f]=Cw(e,p.data)}break;default:throw a;}});return i}function yw(e,r){var t,a,n,i,s,f,l,o,c,h,u,d,v,p;var m=aw(e);var g=rw(m[1][0].data)>>>0;var b=rw(m[2][0].data)>>>0;var w=((a=(t=m[8])==null?void 0:t[0])==null?void 0:a.data)&&rw(m[8][0].data)>0||false;var k,A;if(((i=(n=m[7])==null?void 0:n[0])==null?void 0:i.data)&&r!=0){k=(f=(s=m[7])==null?void 0:s[0])==null?void 0:f.data;A=(o=(l=m[6])==null?void 0:l[0])==null?void 0:o.data}else if(((h=(c=m[4])==null?void 0:c[0])==null?void 0:h.data)&&r!=1){k=(d=(u=m[4])==null?void 0:u[0])==null?void 0:d.data;A=(p=(v=m[3])==null?void 0:v[0])==null?void 0:p.data}else throw"NUMBERS Tile missing ".concat(r," cell storage");var T=w?4:1;var y=$b(k);var E=[];for(var C=0;C=1)S[E[E.length-1][0]]=A[Vb](E[E.length-1][1]*T);return{R:g,cells:S}}function Ew(e,r){var t;var a=aw(r.data);var n=-1;if((t=a==null?void 0:a[7])==null?void 0:t[0]){if(rw(a[7][0].data)>>>0)n=1;else n=0}var i=iw(a[5],function(e){return yw(e,n)});return{nrows:rw(a[4][0].data)>>>0,data:i.reduce(function(e,r){if(!e[r.R])e[r.R]=[];r.cells.forEach(function(t,a){if(e[r.R][a])throw new Error("Duplicate cell r=".concat(r.R," c=").concat(a));e[r.R][a]=t});return e},[])}}function Cw(e,r){var t,a,n,i,s,f,l,o,c,h;var u={t:"",a:""};var d=aw(r);if((a=(t=d==null?void 0:d[1])==null?void 0:t[0])==null?void 0:a.data)u.t=Xb((i=(n=d==null?void 0:d[1])==null?void 0:n[0])==null?void 0:i.data)||"";if((f=(s=d==null?void 0:d[3])==null?void 0:s[0])==null?void 0:f.data){var v=e[bw((o=(l=d==null?void 0:d[3])==null?void 0:l[0])==null?void 0:o.data)][0];var p=aw(v.data);if((h=(c=p[1])==null?void 0:c[0])==null?void 0:h.data)u.a=Xb(p[1][0].data)}if(d==null?void 0:d[4]){u.replies=[];d[4].forEach(function(r){var t=e[bw(r.data)][0];u.replies.push(Cw(e,t.data))})}return u}function _w(e){var r=[];r.push({t:e.t||"",a:e.a,T:e.replies&&e.replies.length>0});if(e.replies)e.replies.forEach(function(e){r.push({t:e.t||"",a:e.a,T:true})});return r}function Sw(e){var r={a:"",t:"",replies:[]};for(var t=0;t>>0)-1;if(w.e.r<0)throw new Error("Invalid row varint ".concat(b[6][0].data));w.e.c=(rw(b[7][0].data)>>>0)-1;if(w.e.c<0)throw new Error("Invalid col varint ".concat(b[7][0].data));t["!ref"]=Ja(w);var k=t["!data"]!=null,A=t;var T=aw(b[4][0].data);var y=hw();if((n=T[4])==null?void 0:n[0])y.sst=Tw(e,e[bw(T[4][0].data)][0]);if((i=T[6])==null?void 0:i[0])y.fmla=Tw(e,e[bw(T[6][0].data)][0]);if((s=T[11])==null?void 0:s[0])y.ofmt=Tw(e,e[bw(T[11][0].data)][0]);if((f=T[12])==null?void 0:f[0])y.ferr=Tw(e,e[bw(T[12][0].data)][0]);if((l=T[17])==null?void 0:l[0])y.rsst=Tw(e,e[bw(T[17][0].data)][0]);if((o=T[19])==null?void 0:o[0])y.cmnt=Tw(e,e[bw(T[19][0].data)][0]);if((c=T[22])==null?void 0:c[0])y.nfmt=Tw(e,e[bw(T[22][0].data)][0]);var E=aw(T[3][0].data);var C=0;if(!((h=T[9])==null?void 0:h[0]))throw"NUMBERS file missing row tree";var _=aw(T[9][0].data)[1].map(function(e){return aw(e.data)});_.forEach(function(r){C=rw(r[1][0].data);var n=rw(r[2][0].data);var i=E[1][n];if(!i)throw"NUMBERS missing tile "+n;var s=aw(i.data);var f=e[bw(s[2][0].data)][0];var l=rw(f.meta[1][0].data);if(l!=6002)throw new Error("6001 unexpected reference to ".concat(l));var o=Ew(e,f);o.data.forEach(function(e,r){e.forEach(function(e,n){var i=gw(e,y,a);if(i){if(k){if(!A["!data"][C+r])A["!data"][C+r]=[];A["!data"][C+r][n]=i}else{t[$a(n)+Wa(C+r)]=i}}})});C+=o.nrows});if((u=T[13])==null?void 0:u[0]){var S=e[bw(T[13][0].data)][0];var x=rw(S.meta[1][0].data);if(x!=6144)throw new Error("Expected merge type 6144, found ".concat(x));t["!merges"]=(d=aw(S.data))==null?void 0:d[1].map(function(e){var r=aw(e.data);var t=$b(aw(r[1][0].data)[1][0].data),a=$b(aw(r[2][0].data)[1][0].data);return{s:{r:t.getUint16(0,true),c:t.getUint16(2,true)},e:{r:t.getUint16(0,true)+a.getUint16(0,true)-1,c:t.getUint16(2,true)+a.getUint16(2,true)-1}}})}if(!((v=t["!merges"])==null?void 0:v.length)&&((p=b[47])==null?void 0:p[0])){var O=aw(b[47][0].data);if((m=O[2])==null?void 0:m[0]){var I=aw(O[2][0].data);if((g=I[3])==null?void 0:g[0]){t["!merges"]=iw(I[3],function(e){var r,t,a,n,i;var s=aw(e);var f=aw(s[2][0].data);var l=aw(f[1][0].data);if(!((r=l[1])==null?void 0:r[0]))return;var o=aw(l[1][0].data);var c=rw(o[1][0].data);if(c!=67)return;var h=aw(o[40][0].data);if(!((t=h[3])==null?void 0:t[0])||!((a=h[4])==null?void 0:a[0]))return;var u=aw(h[3][0].data);var d=aw(h[4][0].data);var v=rw(u[1][0].data);var p=((n=u[2])==null?void 0:n[0])?rw(u[2][0].data):v;var m=rw(d[1][0].data);var g=((i=d[2])==null?void 0:i[0])?rw(d[2][0].data):m;return{s:{r:m,c:v},e:{r:g,c:p}}}).filter(function(e){return e!=null})}}}}function Ow(e,r,t){var a=aw(r.data);var n={"!ref":"A1"};if(t==null?void 0:t.dense)n["!data"]=[];var i=e[bw(a[2][0].data)];var s=rw(i[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));xw(e,i[0],n,t);return n}function Iw(e,r,t){var a;var n=aw(r.data);var i={name:((a=n[1])==null?void 0:a[0])?Xb(n[1][0].data):"",sheets:[]};var s=iw(n[2],bw);s.forEach(function(r){e[r].forEach(function(r){var a=rw(r.meta[1][0].data);if(a==6e3)i.sheets.push(Ow(e,r,t))})});return i}function Rw(e,r,t){var a;var n=$k();n.Workbook={WBProps:{date1904:true}};var i=aw(r.data);if((a=i[2])==null?void 0:a[0])throw new Error("Keynote presentations are not supported");var s=iw(i[1],bw);s.forEach(function(r){e[r].forEach(function(r){var a=rw(r.meta[1][0].data);if(a==2){var i=Iw(e,r,t);i.sheets.forEach(function(e,r){Xk(n,e,r==0?i.name:i.name+"_"+r,true)})}})});if(n.SheetNames.length==0)throw new Error("Empty NUMBERS file");n.bookType="numbers";return n}function Nw(e,r){var t,a,n,i,s,f,l;var o={},c=[];e.FullPaths.forEach(function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")});e.FileIndex.forEach(function(e){if(!e.name.match(/\.iwa$/))return;if(e.content[0]!=0)return;var r;try{r=ow(e.content)}catch(t){return console.log("?? "+e.content.length+" "+(t.message||t))}var a;try{a=sw(r)}catch(t){return console.log("## "+(t.message||t))}a.forEach(function(e){o[e.id]=e.messages;c.push(e.id)})});if(!c.length)throw new Error("File has no messages");if(((n=(a=(t=o==null?void 0:o[1])==null?void 0:t[0].meta)==null?void 0:a[1])==null?void 0:n[0].data)&&rw(o[1][0].meta[1][0].data)==1e4)throw new Error("Pages documents are not supported");var h=((l=(f=(s=(i=o==null?void 0:o[1])==null?void 0:i[0])==null?void 0:s.meta)==null?void 0:f[1])==null?void 0:l[0].data)&&rw(o[1][0].meta[1][0].data)==1&&o[1][0];if(!h)c.forEach(function(e){o[e].forEach(function(e){var r=rw(e.meta[1][0].data)>>>0;if(r==1){if(!h)h=e;else throw new Error("Document has multiple roots")}})});if(!h)throw new Error("Cannot find Document root");return Rw(o,h,r)}function Fw(e,r,t){var a,n,i;var s=[[],[{type:0,data:qb(0)}],[{type:0,data:qb(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:qb(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:qb(1)}]];if(!((a=s[6])==null?void 0:a[0])||!((n=s[7])==null?void 0:n[0]))throw"Mutation only works on post-BNC storages!";var f=0;if(s[7][0].data.length<2*e.length){var l=new Uint8Array(2*e.length);l.set(s[7][0].data);s[7][0].data=l}if(s[4][0].data.length<2*e.length){var o=new Uint8Array(2*e.length);o.set(s[4][0].data);s[4][0].data=o}var c=$b(s[7][0].data),h=0,u=[];var d=$b(s[4][0].data),v=0,p=[];var m=t?4:1;for(var g=0;g1)throw new Error("Template NUMBERS file must have exactly one sheet");e.SheetNames.forEach(function(r,s){if(s>=1){Gw(t,a,s+1);n=zw(t,a,1);i=iw(aw(n.messages[0].data)[1],bw)}jw(t,a,e.Sheets[r],r,s,i[s])});return t}function Ww(e,r,t,a){var n=Qe.find(e,r[t].location);if(!n)throw"Could not find ".concat(r[t].location," in Numbers template");var i=sw(ow(n.content));var s=i.find(function(e){return e.id==t});a(s,i);n.content=cw(fw(i));n.size=n.content.length}function zw(e,r,t){var a=Qe.find(e,r[t].location);if(!a)throw"Could not find ".concat(r[t].location," in Numbers template");var n=sw(ow(a.content));var i=n.find(function(e){return e.id==t});return i}function Hw(e,r,t){e[3].push({type:2,data:nw([[],[{type:0,data:qb(r)}],[{type:2,data:Gb(t.replace(/-[\s\S]*$/,""))}],[{type:2,data:Gb(t)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:qb(0)}],[],[{type:0,data:qb(0)}]])});e[1]=[{type:0,data:qb(Math.max(r+1,rw(e[1][0].data)))}]}function Vw(e,r,t,a,n,i){if(!i)i=Pw({deps:[],location:"",type:r},n);var s="".concat(a,"-").concat(i,".iwa");n[i].location="Root Entry"+s;Qe.utils.cfb_add(e,s,cw(fw([{id:i,messages:[Dw(r,nw(t))]}])));var f=s.replace(/^[\/]/,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Ww(e,n,2,function(e){var r=aw(e.messages[0].data);Hw(r,i||0,f);e.messages[0].data=nw(r)});return i}function $w(e,r,t,a){var n=r[t].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");var i=e[3].findIndex(function(e){var r,t;var a=aw(e.data);if((r=a[3])==null?void 0:r[0])return Xb(a[3][0].data)==n;if(((t=a[2])==null?void 0:t[0])&&Xb(a[2][0].data)==n)return true;return false});var s=aw(e[3][i].data);if(!s[6])s[6]=[];(Array.isArray(a)?a:[a]).forEach(function(e){s[6].push({type:2,data:nw([[],[{type:0,data:qb(e)}]])})});e[3][i].data=nw(s)}function Xw(e,r,t,a){var n=r[t].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");var i=e[3].findIndex(function(e){var r,t;var a=aw(e.data);if((r=a[3])==null?void 0:r[0])return Xb(a[3][0].data)==n;if(((t=a[2])==null?void 0:t[0])&&Xb(a[2][0].data)==n)return true;return false});var s=aw(e[3][i].data);if(!s[6])s[6]=[];s[6]=s[6].filter(function(e){return rw(aw(e.data)[1][0].data)!=a});e[3][i].data=nw(s)}function Gw(e,r,t){var a=-1,n=-1;var i={};Ww(e,r,1,function(t,s){var f=aw(t.messages[0].data); -a=bw(aw(t.messages[0].data)[1][0].data);n=Pw({deps:[1],location:r[a].location,type:2},r);i[a]=n;kw(t,n);f[1].push({type:2,data:ww(n)});var l=zw(e,r,a);l.id=n;if(r[1].location==r[n].location)s.push(l);else Ww(e,r,n,function(e,r){return r.push(l)});t.messages[0].data=nw(f)});var s=-1;Ww(e,r,n,function(t,a){var f=aw(t.messages[0].data);for(var l=3;l<=69;++l)delete f[l];var o=iw(f[2],bw);o.forEach(function(e){return Aw(t,e)});s=Pw({deps:[n],location:r[o[0]].location,type:r[o[0]].type},r);kw(t,s);i[o[0]]=s;f[2]=[{type:2,data:ww(s)}];var c=zw(e,r,o[0]);c.id=s;if(r[o[0]].location==r[n].location)a.push(c);else{Ww(e,r,2,function(e){var t=aw(e.messages[0].data);$w(t,r,n,s);e.messages[0].data=nw(t)});Ww(e,r,s,function(e,r){return r.push(c)})}t.messages[0].data=nw(f)});var f=-1;Ww(e,r,s,function(t,a){var n=aw(t.messages[0].data);var l=aw(n[1][0].data);for(var o=3;o<=69;++o)delete l[o];var c=bw(l[2][0].data);l[2][0].data=ww(i[c]);n[1][0].data=nw(l);var h=bw(n[2][0].data);Aw(t,h);f=Pw({deps:[s],location:r[h].location,type:r[h].type},r);kw(t,f);i[h]=f;n[2][0].data=ww(f);var u=zw(e,r,h);u.id=f;if(r[s].location==r[f].location)a.push(u);else Ww(e,r,f,function(e,r){return r.push(u)});t.messages[0].data=nw(n)});Ww(e,r,f,function(a,n){var s,l;var o=aw(a.messages[0].data);var c=Xb(o[1][0].data),h=c.replace(/-[A-Z0-9]*/,"-".concat(("0000"+t.toString(16)).slice(-4)));o[1][0].data=Gb(h);[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(e){return delete o[e]});if(o[45]){var u=aw(o[45][0].data);var d=bw(u[1][0].data);Aw(a,d);delete o[45]}if(o[70]){var v=aw(o[70][0].data);(s=v[2])==null?void 0:s.forEach(function(e){var r=aw(e.data);[2,3].map(function(e){return r[e][0]}).forEach(function(e){var r=aw(e.data);if(!r[8])return;var t=bw(r[8][0].data);Aw(a,t)})});delete o[70]}[46,30,34,35,36,38,48,49,60,61,62,63,64,71,72,73,74,75,85,86,87,88,89].forEach(function(e){if(!o[e])return;var r=bw(o[e][0].data);delete o[e];Aw(a,r)});var p=aw(o[4][0].data);{[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(t){var s;if(!((s=p[t])==null?void 0:s[0]))return;var l=bw(p[t][0].data);var o=Pw({deps:[f],location:r[l].location,type:r[l].type},r);Aw(a,l);kw(a,o);i[l]=o;var c=zw(e,r,l);c.id=o;if(r[l].location==r[f].location)n.push(c);else{r[o].location=r[l].location.replace(l.toString(),o.toString());if(r[o].location==r[l].location)r[o].location=r[o].location.replace(/\.iwa/,"-".concat(o,".iwa"));Qe.utils.cfb_add(e,r[o].location,cw(fw([c])));var h=r[o].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Ww(e,r,2,function(e){var t=aw(e.messages[0].data);Hw(t,o,h);$w(t,r,f,o);e.messages[0].data=nw(t)})}p[t][0].data=ww(o)});var m=aw(p[1][0].data);{(l=m[2])==null?void 0:l.forEach(function(t){var s=bw(t.data);var l=Pw({deps:[f],location:r[s].location,type:r[s].type},r);Aw(a,s);kw(a,l);i[s]=l;var o=zw(e,r,s);o.id=l;if(r[s].location==r[f].location){n.push(o)}else{r[l].location=r[s].location.replace(s.toString(),l.toString());if(r[l].location==r[s].location)r[l].location=r[l].location.replace(/\.iwa/,"-".concat(l,".iwa"));Qe.utils.cfb_add(e,r[l].location,cw(fw([o])));var c=r[l].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Ww(e,r,2,function(e){var t=aw(e.messages[0].data);Hw(t,l,c);$w(t,r,f,l);e.messages[0].data=nw(t)})}t.data=ww(l)})}p[1][0].data=nw(m);var g=aw(p[3][0].data);{g[1].forEach(function(t){var n=aw(t.data);var s=bw(n[2][0].data);var l=i[s];if(!i[s]){l=Pw({deps:[f],location:"",type:r[s].type},r);r[l].location="Root Entry/Index/Tables/Tile-".concat(l,".iwa");i[s]=l;var o=zw(e,r,s);o.id=l;Aw(a,s);kw(a,l);Qe.utils.cfb_add(e,"/Index/Tables/Tile-".concat(l,".iwa"),cw(fw([o])));Ww(e,r,2,function(e){var t=aw(e.messages[0].data);t[3].push({type:2,data:nw([[],[{type:0,data:qb(l)}],[{type:2,data:Gb("Tables/Tile")}],[{type:2,data:Gb("Tables/Tile-".concat(l))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:qb(0)}],[],[{type:0,data:qb(0)}]])});t[1]=[{type:0,data:qb(Math.max(l+1,rw(t[1][0].data)))}];$w(t,r,f,l);e.messages[0].data=nw(t)})}n[2][0].data=ww(l);t.data=nw(n)})}p[3][0].data=nw(g)}o[4][0].data=nw(p);a.messages[0].data=nw(o)})}function jw(e,r,t,a,n,i){var s=[];Ww(e,r,i,function(e){var r=aw(e.messages[0].data);{r[1]=[{type:2,data:Gb(a)}];s=iw(r[2],bw)}e.messages[0].data=nw(r)});var f=zw(e,r,s[0]);var l=bw(aw(f.messages[0].data)[2][0].data);Ww(e,r,l,function(a,n){return Yw(e,r,t,a,n,l)})}var Kw=true;function Yw(e,r,t,a,n,i){if(!t["!ref"])throw new Error("Cannot export empty sheet to NUMBERS");var s=Za(t["!ref"]);s.s.r=s.s.c=0;var f=false;if(s.e.c>999){f=true;s.e.c=999}if(s.e.r>999999){f=true;s.e.r=999999}if(f)console.error("Truncating to ".concat(Ja(s)));var l=[];if(t["!data"])l=t["!data"];else{var o=[];for(var c=0;c<=s.e.c;++c)o[c]=$a(c);for(var h=0;h<=s.e.r;++h){l[h]=[];var u=""+(h+1);for(c=0;c<=s.e.c;++c){var d=t[o[c]+u];if(!d)continue;l[h][c]=d}}}var v={cmnt:[{a:"~54ee77S~",t:"... the people who are crazy enough to think they can change the world, are the ones who do."}],ferr:[],fmla:[],nfmt:[],ofmt:[],rsst:[{v:"~54ee77S~",l:"https://sheetjs.com/"}],sst:["~Sh33tJ5~"]};var p=aw(a.messages[0].data);{p[6][0].data=qb(s.e.r+1);p[7][0].data=qb(s.e.c+1);delete p[46];var m=aw(p[4][0].data);{var g=bw(aw(m[1][0].data)[2][0].data);Ww(e,r,g,function(e,r){var t;var a=aw(e.messages[0].data);if((t=a==null?void 0:a[2])==null?void 0:t[0])for(var n=0;n1){var P=bw(m[19][0].data);var L={},M=0;Ww(e,r,P,function(t){var a=aw(t.messages[0].data);{a[3]=[];v.cmnt.forEach(function(n,i){if(i==0)return;var s=[];if(n.replies)n.replies.forEach(function(t){if(!L[t.a||""])L[t.a||""]=Vw(e,212,[[],[{type:2,data:Gb(t.a||"")}],[{type:2,data:Uw(++M)}],[],[{type:0,data:qb(0)}]],"/Index/Tables/DataList",r);var a=L[t.a||""];var n=Vw(e,3056,[[],[{type:2,data:Gb(t.t||"")}],[{type:2,data:nw([[],[{type:1,data:new Uint8Array([0,0,0,128,116,109,182,65])}]])}],[{type:2,data:ww(a)}]],"/Index/Tables/DataList",r);Ww(e,r,n,function(e){return kw(e,a)});s.push(n);Ww(e,r,2,function(e){var t=aw(e.messages[0].data);$w(t,r,n,a);e.messages[0].data=nw(t)})});if(!L[n.a||""])L[n.a||""]=Vw(e,212,[[],[{type:2,data:Gb(n.a||"")}],[{type:2,data:Uw(++M)}],[],[{type:0,data:qb(0)}]],"/Index/Tables/DataList",r);var f=L[n.a||""];var l=Vw(e,3056,[[],[{type:2,data:Gb(n.t||"")}],[{type:2,data:nw([[],[{type:1,data:new Uint8Array([0,0,0,128,116,109,182,65])}]])}],[{type:2,data:ww(f)}],s.map(function(e){return{type:2,data:ww(e)}}),[{type:2,data:nw([[],[{type:0,data:qb(i)}],[{type:0,data:qb(0)}]])}]],"/Index/Tables/DataList",r);Ww(e,r,l,function(e){kw(e,f);s.forEach(function(r){return kw(e,r)})});a[3].push({type:2,data:nw([[],[{type:0,data:qb(i)}],[{type:0,data:qb(1)}],[],[],[],[],[],[],[],[{type:2,data:ww(l)}]])});kw(t,l);Ww(e,r,2,function(e){var t=aw(e.messages[0].data);$w(t,r,P,l);$w(t,r,l,f);if(s.length)$w(t,r,l,s);e.messages[0].data=nw(t)})})}a[2][0].data=qb(v.cmnt.length+1);t.messages[0].data=nw(a)})}}p[4][0].data=nw(m)}a.messages[0].data=nw(p)}function Zw(e){return function r(t){for(var a=0;a!=e.length;++a){var n=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}function Jw(e){Zw([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]])(e)}function qw(e){Zw([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]])(e)}function Qw(e){if(bi.WS.indexOf(e)>-1)return"sheet";if(bi.CS&&e==bi.CS)return"chart";if(bi.DS&&e==bi.DS)return"dialog";if(bi.MS&&e==bi.MS)return"macro";return e&&e.length?e:"sheet"}function ek(e,r){if(!e)return 0;try{e=r.map(function a(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Qw(e["!id"][r.id].Type)]})}catch(t){return null}return!e||e.length===0?null:e}function rk(e,r,t,a,n,i,s,f){if(!e||!e["!legdrawel"])return;var l=tt(e["!legdrawel"].Target,a);var o=Zr(t,l,true);if(o)Rh(It(o),e,f||[])}function tk(e,r,t,a,n,i,s,f,l,o,c,h){try{i[a]=ki(Zr(e,t,true),r);var u=Yr(e,r);var d;switch(f){case"sheet":d=tg(u,r,n,l,i[a],o,c,h);break;case"chart":d=ag(u,r,n,l,i[a],o,c,h);if(!d||!d["!drawel"])break;var v=tt(d["!drawel"].Target,r);var p=wi(v);var m=Ih(Zr(e,v,true),ki(Zr(e,p,true),v));var g=tt(m,v);var b=wi(g);d=km(Zr(e,g,true),g,l,ki(Zr(e,b,true),g),o,d);break;case"macro":d=ng(u,r,n,l,i[a],o,c,h);break;case"dialog":d=ig(u,r,n,l,i[a],o,c,h);break;default:throw new Error("Unrecognized sheet type "+f);}s[a]=d;var w=[],k=[];if(i&&i[a])ir(i[a]).forEach(function(t){var n="";if(i[a][t].Type==bi.CMNT){n=tt(i[a][t].Target,r);w=lg(Yr(e,n,true),n,l);if(!w||!w.length)return;Dh(d,w,false)}if(i[a][t].Type==bi.TCMNT){n=tt(i[a][t].Target,r);k=k.concat(Mh(Yr(e,n,true),l))}});if(k&&k.length)Dh(d,k,true,l.people||[]);rk(d,f,e,r,n,l,o,w)}catch(A){if(l.WTF)throw A}}function ak(e){return e.charAt(0)=="/"?e.slice(1):e}function nk(e,r){$e();r=r||{};Jw(r);if(jr(e,"META-INF/manifest.xml"))return Lb(e,r);if(jr(e,"objectdata.xml"))return Lb(e,r);if(jr(e,"Index/Document.iwa")){if(typeof Uint8Array=="undefined")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Nw!="undefined"){if(e.FileIndex)return Nw(e,r);var t=Qe.utils.cfb_new();qr(e).forEach(function(r){Qr(t,r,Jr(e,r))});return Nw(t,r)}throw new Error("Unsupported NUMBERS file")}if(!jr(e,"[Content_Types].xml")){if(jr(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(jr(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");var a=Qe.find(e,"Index.zip");if(a){r=Ar(r);delete r.type;if(typeof a.content=="string")r.type="binary";if(typeof Bun!=="undefined"&&Buffer.isBuffer(a.content))return mk(new Uint8Array(a.content),r);return mk(a.content,r)}throw new Error("Unsupported ZIP file")}var n=qr(e);var i=mi(Zr(e,"[Content_Types].xml"));var s=false;var f,l;if(i.workbooks.length===0){l="xl/workbook.xml";if(Yr(e,l,true))i.workbooks.push(l)}if(i.workbooks.length===0){l="xl/workbook.bin";if(!Yr(e,l,true))throw new Error("Could not find workbook");i.workbooks.push(l);s=true}if(i.workbooks[0].slice(-3)=="bin")s=true;var o={};var c={};if(!r.bookSheets&&!r.bookProps){mv=[];if(i.sst)try{mv=fg(Yr(e,ak(i.sst)),i.sst,r)}catch(h){if(r.WTF)throw h}if(r.cellStyles&&i.themes.length)o=nh(Zr(e,i.themes[0].replace(/^\//,""),true)||"",r);if(i.style)c=sg(Yr(e,ak(i.style)),i.style,o,r)}i.links.map(function(t){try{var a=ki(Zr(e,wi(ak(t))),t);return cg(Yr(e,ak(t)),a,t,r)}catch(n){}});var u=rg(Yr(e,ak(i.workbooks[0])),i.workbooks[0],r);var d={},v="";if(i.coreprops.length){v=Yr(e,ak(i.coreprops[0]),true);if(v)d=Ri(v);if(i.extprops.length!==0){v=Yr(e,ak(i.extprops[0]),true);if(v)Mi(v,d,r)}}var p={};if(!r.bookSheets||r.bookProps){if(i.custprops.length!==0){v=Zr(e,ak(i.custprops[0]),true);if(v)p=Wi(v,r)}}var m={};if(r.bookSheets||r.bookProps){if(u.Sheets)f=u.Sheets.map(function N(e){return e.name});else if(d.Worksheets&&d.SheetNames.length>0)f=d.SheetNames;if(r.bookProps){m.Props=d;m.Custprops=p}if(r.bookSheets&&typeof f!=="undefined")m.SheetNames=f;if(r.bookSheets?m.SheetNames:r.bookProps)return m}f={};var g={};if(r.bookDeps&&i.calcchain)g=og(Yr(e,ak(i.calcchain)),i.calcchain,r);var b=0;var w={};var k,A;{var T=u.Sheets;d.Worksheets=T.length;d.SheetNames=[];for(var y=0;y!=T.length;++y){d.SheetNames[y]=T[y].name}}var E=s?"bin":"xml";var C=i.workbooks[0].lastIndexOf("/");var _=(i.workbooks[0].slice(0,C+1)+"_rels/"+i.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");if(!jr(e,_))_="xl/_rels/workbook."+E+".rels";var S=ki(Zr(e,_,true),_.replace(/_rels.*/,"s5s"));if((i.metadata||[]).length>=1){r.xlmeta=hg(Yr(e,ak(i.metadata[0])),i.metadata[0],r)}if((i.people||[]).length>=1){r.people=Bh(Yr(e,ak(i.people[0])),r)}if(S)S=ek(S,u.Sheets);var x=Yr(e,"xl/worksheets/sheet.xml",true)?1:0;e:for(b=0;b!=d.Worksheets;++b){var O="sheet";if(S&&S[b]){k="xl/"+S[b][1].replace(/[\/]?xl\//,"");if(!jr(e,k))k=S[b][1];if(!jr(e,k))k=_.replace(/_rels\/[\S\s]*$/,"")+S[b][1];O=S[b][2]}else{k="xl/worksheets/sheet"+(b+1-x)+"."+E;k=k.replace(/sheet0\./,"sheet.")}A=k.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");if(r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(b!=r.sheets)continue e;break;case"string":if(d.SheetNames[b].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){var I=false;for(var R=0;R!=r.sheets.length;++R){if(typeof r.sheets[R]=="number"&&r.sheets[R]==b)I=1;if(typeof r.sheets[R]=="string"&&r.sheets[R].toLowerCase()==d.SheetNames[b].toLowerCase())I=1}if(!I)continue e};}tk(e,k,A,d.SheetNames[b],b,w,f,O,r,u,o,c)}m={Directory:i,Workbook:u,Props:d,Custprops:p,Deps:g,Sheets:f,SheetNames:d.SheetNames,Strings:mv,Styles:c,Themes:o,SSF:Ar(q)};if(r&&r.bookFiles){if(e.files){m.keys=n;m.files=e.files}else{m.keys=[];m.files={};e.FullPaths.forEach(function(r,t){r=r.replace(/^Root Entry[\/]/,"");m.keys.push(r);m.files[r]=e.FileIndex[t]})}}if(r&&r.bookVBA){if(i.vba.length>0)m.vbaraw=Yr(e,ak(i.vba[0]),true);else if(i.defaults&&i.defaults.bin===jh)m.vbaraw=Yr(e,"xl/vbaProject.bin",true)}m.bookType=s?"xlsb":"xlsx";return m}function ik(e,r){var t=r||{};var a="Workbook",n=Qe.find(e,a);try{a="/!DataSpaces/Version";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Eo(n.content);a="/!DataSpaces/DataSpaceMap";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=_o(n.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=So(n.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Oo(n.content)}catch(f){}a="/EncryptionInfo";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=No(n.content);a="/EncryptedPackage";n=Qe.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(l[0]==4&&typeof decrypt_agile!=="undefined")return decrypt_agile(l[1],n.content,t.password||"",t);if(l[0]==2&&typeof decrypt_std76!=="undefined")return decrypt_std76(l[1],n.content,t.password||"",t);throw new Error("File is password-protected")}function sk(e,r){if(e&&!e.SSF){e.SSF=Ar(q)}if(e&&e.SSF){$e();Ve(e.SSF);r.revssf=lr(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(bv)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t="bin";var a=true;var n=pi();qw(r=r||{});var i=et();var s="",f=0;r.cellXfs=[];Tv(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Qr(i,s,Fi(e.Props,r));n.coreprops.push(s);Ti(r.rels,2,s,bi.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var l=[];for(var o=0;o0){s="docProps/custom.xml";Qr(i,s,zi(e.Custprops,r));n.custprops.push(s);Ti(r.rels,4,s,bi.CUST_PROPS)}var c=["SheetJ5"];r.tcid=0;for(f=1;f<=e.SheetNames.length;++f){var h={"!id":{}};var u=e.Sheets[e.SheetNames[f-1]];var d=(u||{})["!type"]||"sheet";switch(d){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;Qr(i,s,bm(f-1,r,e,h));n.sheets.push(s);Ti(r.wbrels,-1,"worksheets/sheet"+f+"."+t,bi.WS[0]);}if(u){var v=u["!comments"];var p=false;var m="";if(v&&v.length>0){var g=false;v.forEach(function(e){e[1].forEach(function(e){if(e.T==true)g=true})});if(g){m="xl/threadedComments/threadedComment"+f+".xml";Qr(i,m,Uh(v,c,r));n.threadedcomments.push(m);Ti(h,-1,"../threadedComments/threadedComment"+f+".xml",bi.TCMNT)}m="xl/comments"+f+"."+t;Qr(i,m,Gh(v,r));n.comments.push(m);Ti(h,-1,"../comments"+f+"."+t,bi.CMNT);p=true}if(u["!legacy"]){if(p)Qr(i,"xl/drawings/vmlDrawing"+f+".vml",Nh(f,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(h["!id"].rId1)Qr(i,wi(s),Ai(h))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Qr(i,s,Ao(r.Strings,r));n.strs.push(s);Ti(r.wbrels,-1,"sharedStrings."+t,bi.SST)}s="xl/workbook."+t;Qr(i,s,eg(e,r));n.workbooks.push(s);Ti(r.rels,1,s,bi.WB);s="xl/theme/theme1.xml";var b=ih(e.Themes,r);Qr(i,s,b);n.themes.push(s);Ti(r.wbrels,-1,"theme/theme1.xml",bi.THEME);s="xl/styles."+t;Qr(i,s,qc(e,r));n.styles.push(s);Ti(r.wbrels,-1,"styles."+t,bi.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Qr(i,s,e.vbaraw);n.vba.push(s);Ti(r.wbrels,-1,"vbaProject.bin",bi.VBA)}s="xl/metadata."+t;Qr(i,s,Th());n.metadata.push(s);Ti(r.wbrels,-1,"metadata."+t,bi.XLMETA);if(c.length>1){s="xl/persons/person.xml";Qr(i,s,Wh(c,r));n.people.push(s);Ti(r.wbrels,-1,"persons/person.xml",bi.PEOPLE)}Qr(i,"[Content_Types].xml",gi(n,r));Qr(i,"_rels/.rels",Ai(r.rels));Qr(i,"xl/_rels/workbook."+t+".rels",Ai(r.wbrels));delete r.revssf;delete r.ssf;return i}function fk(e,r){if(e&&!e.SSF){e.SSF=Ar(q)}if(e&&e.SSF){$e();Ve(e.SSF);r.revssf=lr(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(bv)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t="xml";var a=Zh.indexOf(r.bookType)>-1;var n=pi();qw(r=r||{});var i=et();var s="",f=0;r.cellXfs=[];Tv(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Qr(i,s,Fi(e.Props,r));n.coreprops.push(s);Ti(r.rels,2,s,bi.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var l=[];for(var o=0;o0){s="docProps/custom.xml";Qr(i,s,zi(e.Custprops,r));n.custprops.push(s);Ti(r.rels,4,s,bi.CUST_PROPS)}var c=["SheetJ5"];r.tcid=0;for(f=1;f<=e.SheetNames.length;++f){var h={"!id":{}};var u=e.Sheets[e.SheetNames[f-1]];var d=(u||{})["!type"]||"sheet";switch(d){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;Qr(i,s,ep(f-1,r,e,h));n.sheets.push(s);Ti(r.wbrels,-1,"worksheets/sheet"+f+"."+t,bi.WS[0]);}if(u){var v=u["!comments"];var p=false;var m="";if(v&&v.length>0){var g=false;v.forEach(function(e){e[1].forEach(function(e){if(e.T==true)g=true})});if(g){m="xl/threadedComments/threadedComment"+f+".xml";Qr(i,m,Uh(v,c,r));n.threadedcomments.push(m);Ti(h,-1,"../threadedComments/threadedComment"+f+".xml",bi.TCMNT)}m="xl/comments"+f+"."+t;Qr(i,m,Lh(v,r));n.comments.push(m);Ti(h,-1,"../comments"+f+"."+t,bi.CMNT);p=true}if(u["!legacy"]){if(p)Qr(i,"xl/drawings/vmlDrawing"+f+".vml",Nh(f,u["!comments"]))}delete u["!comments"];delete u["!legacy"]}if(h["!id"].rId1)Qr(i,wi(s),Ai(h))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Qr(i,s,mo(r.Strings,r));n.strs.push(s);Ti(r.wbrels,-1,"sharedStrings."+t,bi.SST)}s="xl/workbook."+t;Qr(i,s,Um(e,r));n.workbooks.push(s);Ti(r.rels,1,s,bi.WB);s="xl/theme/theme1.xml";Qr(i,s,ih(e.Themes,r));n.themes.push(s);Ti(r.wbrels,-1,"theme/theme1.xml",bi.THEME);s="xl/styles."+t;Qr(i,s,Cc(e,r));n.styles.push(s);Ti(r.wbrels,-1,"styles."+t,bi.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Qr(i,s,e.vbaraw);n.vba.push(s);Ti(r.wbrels,-1,"vbaProject.bin",bi.VBA)}s="xl/metadata."+t;Qr(i,s,Eh());n.metadata.push(s);Ti(r.wbrels,-1,"metadata."+t,bi.XLMETA);if(c.length>1){s="xl/persons/person.xml";Qr(i,s,Wh(c,r));n.people.push(s);Ti(r.wbrels,-1,"persons/person.xml",bi.PEOPLE)}Qr(i,"[Content_Types].xml",gi(n,r));Qr(i,"_rels/.rels",Ai(r.rels));Qr(i,"xl/_rels/workbook."+t+".rels",Ai(r.wbrels));delete r.revssf;delete r.ssf;return i}function lk(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=E(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function ok(e,r){if(Qe.find(e,"EncryptedPackage"))return ik(e,r);return Kg(e,r)}function ck(e,r){var t,a=e;var n=r||{};if(!n.type)n.type=C&&Buffer.isBuffer(e)?"buffer":"base64";t=rt(a,n);return nk(t,n)}function hk(e,r){var t=0;e:while(t=2&&i[3]===0)return no.to_workbook(n,t);if(i[2]===0&&(i[3]===8||i[3]===9))return no.to_workbook(n,t)}break;case 3:;case 131:;case 139:;case 140:return ql.to_workbook(n,t);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return jo(n,t);break;case 10:;case 13:;case 32:return uk(n,t);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break;case 8:if(i[1]===231)throw new Error("Unsupported Multiplan 1.x file!");break;case 12:if(i[1]===236)throw new Error("Unsupported Multiplan 2.x file!");if(i[1]===237)throw new Error("Unsupported Multiplan 3.x file!");break;}if(Jl.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31)return ql.to_workbook(n,t);return pk(e,n,t,s)}function gk(e,r){var t=r||{};t.type="file";return mk(e,t)}function bk(e,r){switch(r.type){case"base64":;case"binary":break;case"buffer":;case"array":r.type="";break;case"file":return ar(r.file,Qe.write(e,{type:C?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type);}return Qe.write(e,r)}function wk(e,r){switch(r.bookType){case"ods":return Hb(e,r);case"numbers":return Bw(e,r);case"xlsb":return sk(e,r);default:return fk(e,r);}}function kk(e,r){var t=Ar(r||{});var a=wk(e,t);return Tk(a,t)}function Ak(e,r){var t=Ar(r||{});var a=fk(e,t);return Tk(a,t)}function Tk(e,r){var t={};var a=C?"nodebuffer":typeof Uint8Array!=="undefined"?"array":"string";if(r.compression)t.compression="DEFLATE";if(r.password)t.type=a;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":;case"file":t.type=a;break;default:throw new Error("Unrecognized type "+r.type);}var n=e.FullPaths?Qe.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno!=="undefined"){if(typeof n=="string"){if(r.type=="binary"||r.type=="base64")return n;n=new Uint8Array(R(n))}}if(r.password&&typeof encrypt_agile!=="undefined")return bk(encrypt_agile(n,r.password),r);if(r.type==="file")return ar(r.file,n);return r.type=="string"?It(n):n}function yk(e,r){var t=r||{};var a=Yg(e,t);return bk(a,t)}function Ek(e,r,t){if(!t)t="";var a=t+e;switch(r.type){case"base64":return A(Rt(a));case"binary":return Rt(a);case"string":return e;case"file":return ar(r.file,a,"utf8");case"buffer":{if(C)return _(a,"utf8");else if(typeof TextEncoder!=="undefined")return(new TextEncoder).encode(a);else return Ek(a,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Ck(e,r){switch(r.type){case"base64":return T(e);case"binary":return e;case"string":return e;case"file":return ar(r.file,e,"binary");case"buffer":{if(C)return _(e,"binary");else return e.split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function _k(e,r){switch(r.type){case"string":;case"base64":;case"binary":var t="";for(var a=0;a0)n=0;var h=Wa(l.s.r);var u=[];var d=[];var v=0,p=0;var m=e["!data"]!=null;var g=l.s.r,b=0;var w={};if(m&&!e["!data"][g])e["!data"][g]=[];var k=o.skipHidden&&e["!cols"]||[];var A=o.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b){if((k[b]||{}).hidden)continue;u[b]=$a(b);t=m?e["!data"][g][b]:e[u[b]+h];switch(a){case 1:i[b]=b-l.s.c;break;case 2:i[b]=u[b];break;case 3:i[b]=o.header[b-l.s.c];break;default:if(t==null)t={w:"__EMPTY",t:"s"};f=s=tn(t,null,o);p=w[s]||0;if(!p)w[s]=1;else{do{f=s+"_"+p++}while(w[f]);w[s]=p;w[f]=1}i[b]=f;}}for(g=l.s.r+n;g<=l.e.r;++g){if((A[g]||{}).hidden)continue;var T=Fk(e,l,g,u,a,i,o);if(T.isempty===false||(a===1?o.blankrows!==false:!!o.blankrows))d[v++]=T.row}d.length=v;return d}var Pk=/"/g;function Lk(e,r,t,a,n,i,s,f,l){var o=true;var c=[],h="",u=Wa(t);var d=e["!data"]!=null;var v=d&&e["!data"][t]||[];for(var p=r.s.c;p<=r.e.c;++p){if(!a[p])continue;var m=d?v[p]:e[a[p]+u];if(m==null)h="";else if(m.v!=null){o=false;h=""+(l.rawNumbers&&m.t=="n"?m.v:tn(m,null,l));for(var g=0,b=0;g!==h.length;++g)if((b=h.charCodeAt(g))===n||b===i||b===34||l.forceQuotes){h='"'+h.replace(Pk,'""')+'"';break}if(h=="ID"&&f==0&&c.length==0)h='"ID"'}else if(m.f!=null&&!m.F){o=false;h="="+m.f;if(h.indexOf(",")>=0)h='"'+h.replace(Pk,'""')+'"'}else h="";c.push(h)}if(l.strip)while(c[c.length-1]==="")--c.length;if(l.blankrows===false&&o)return null;return c.join(s)}function Mk(e,r){var t=[];var a=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var n=en(e["!ref"]);var i=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);var f=a.RS!==undefined?a.RS:"\n",l=f.charCodeAt(0);var o="",c=[];var h=a.skipHidden&&e["!cols"]||[];var u=a.skipHidden&&e["!rows"]||[];for(var d=n.s.c;d<=n.e.c;++d)if(!(h[d]||{}).hidden)c[d]=$a(d);var v=0;for(var p=n.s.r;p<=n.e.r;++p){if((u[p]||{}).hidden)continue;o=Lk(e,n,p,c,s,l,i,v,a);if(o==null){continue}if(o||a.blankrows!==false)t.push((v++?f:"")+o)}return t.join("")}function Uk(e,r){if(!r)r={};r.FS="\t";r.RS="\n";var t=Mk(e,r);if(typeof a=="undefined"||r.type=="string")return t;var n=a.utils.encode(1200,t,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function Bk(e,r){var t="",a,n="";if(e==null||e["!ref"]==null)return[];var i=en(e["!ref"]),s="",f=[],l;var o=[];var c=e["!data"]!=null;for(l=i.s.c;l<=i.e.c;++l)f[l]=$a(l);for(var h=i.s.r;h<=i.e.r;++h){s=Wa(h);for(l=i.s.c;l<=i.e.c;++l){t=f[l]+s;a=c?(e["!data"][h]||[])[l]:e[t];n="";if(a===undefined)continue;else if(a.F!=null){t=a.F;if(!a.f)continue;n=a.f;if(t.indexOf(":")==-1)t=t+":"+t}if(a.f!=null)n=a.f;else if(r&&r.values===false)continue;else if(a.t=="z")continue;else if(a.t=="n"&&a.v!=null)n=""+a.v;else if(a.t=="b")n=a.v?"TRUE":"FALSE";else if(a.w!==undefined)n="'"+a.w;else if(a.v===undefined)continue;else if(a.t=="s")n="'"+a.v;else n=""+a.v;o[o.length]=t+"="+n}}return o}function Wk(e,r,t){var a=t||{};var n=e?e["!data"]!=null:a.dense;if(b!=null&&n==null)n=b;var i=+!a.skipHeader;var s=e||{};if(!e&&n)s["!data"]=[];var f=0,l=0;if(s&&a.origin!=null){if(typeof a.origin=="number")f=a.origin;else{var o=typeof a.origin=="string"?Ka(a.origin):a.origin;f=o.r;l=o.c}}var c={s:{c:0,r:0},e:{c:l,r:f+r.length-1+i}};if(s["!ref"]){var h=en(s["!ref"]);c.e.c=Math.max(c.e.c,h.e.c);c.e.r=Math.max(c.e.r,h.e.r);if(f==-1){f=h.e.r+1;c.e.r=f+r.length-1+i}}else{if(f==-1){f=0;c.e.r=r.length-1+i}}var u=a.header||[],d=0;var v=[];r.forEach(function(e,r){if(n&&!s["!data"][f+r+i])s["!data"][f+r+i]=[];if(n)v=s["!data"][f+r+i];ir(e).forEach(function(t){if((d=u.indexOf(t))==-1)u[d=u.length]=t;var o=e[t];var c="z";var h="";var p=n?"":$a(l+d)+Wa(f+r+i);var m=n?v[l+d]:s[p];if(o&&typeof o==="object"&&!(o instanceof Date)){if(n)v[l+d]=o;else s[p]=o}else{if(typeof o=="number")c="n";else if(typeof o=="boolean")c="b";else if(typeof o=="string")c="s";else if(o instanceof Date){c="d";if(!a.UTC)o=Dr(o);if(!a.cellDates){c="n";o=dr(o)}h=m!=null&&m.z&&Le(m.z)?m.z:a.dateNF||q[14]}else if(o===null&&a.nullError){c="e";o=0}if(!m){if(!n)s[p]=m={t:c,v:o};else v[l+d]=m={t:c,v:o}}else{m.t=c;m.v=o;delete m.w;delete m.R;if(h)m.z=h}if(h)m.z=h}})});c.e.c=Math.max(c.e.c,l+u.length-1);var p=Wa(f);if(n&&!s["!data"][f])s["!data"][f]=[];if(i)for(d=0;d=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function $k(e,r){var t={SheetNames:[],Sheets:{}};if(e)Xk(t,e,r||"Sheet1");return t}function Xk(e,r,t,a){var n=1;if(!t)for(;n<=65535;++n,t=undefined)if(e.SheetNames.indexOf(t="Sheet"+n)==-1)break;if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(t)>=0&&t.length<32){var i=t.match(/\d+$/);n=i&&+i[0]||0;var s=i&&t.slice(0,i.index)||t;for(++n;n<=65535;++n)if(e.SheetNames.indexOf(t=s+n)==-1)break}Fm(t);if(e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");e.SheetNames.push(t);e.Sheets[t]=r;return t}function Gk(e,r,t){if(!e.Workbook)e.Workbook={};if(!e.Workbook.Sheets)e.Workbook.Sheets=[];var a=Vk(e,r);if(!e.Workbook.Sheets[a])e.Workbook.Sheets[a]={};switch(t){case 0:;case 1:;case 2:break;default:throw new Error("Bad sheet visibility setting "+t);}e.Workbook.Sheets[a].Hidden=t}function jk(e,r){e.z=r;return e}function Kk(e,r,t){if(!r){delete e.l}else{e.l={Target:r};if(t)e.l.Tooltip=t}return e}function Yk(e,r,t){return Kk(e,"#"+r,t)}function Zk(e,r,t){if(!e.c)e.c=[];e.c.push({t:r,a:t||"SheetJS"})}function Jk(e,r,t,a){var n=typeof r!="string"?r:en(r);var i=typeof r=="string"?r:Ja(r);for(var s=n.s.r;s<=n.e.r;++s)for(var f=n.s.c;f<=n.e.c;++f){var l=Hk(e,s,f);l.t="n";l.F=i;delete l.v;if(s==n.s.r&&f==n.s.c){l.f=t;if(a)l.D=true}}var o=Za(e["!ref"]);if(o.s.r>n.s.r)o.s.r=n.s.r;if(o.s.c>n.s.c)o.s.c=n.s.c;if(o.e.rs.e.r){if(!l){l=true;t.push(""+i)}return t.push(null)}while(f<=s.e.r){t.push(Tb(e,s,f,a));++f;break}};return t}function aA(e,r){var t=Qk({objectMode:true});if(e==null||e["!ref"]==null){t.push(null);return t}var a={t:"n",v:0},n=0,i=1,s=[],f=0,l="";var o={s:{r:0,c:0},e:{r:0,c:0}};var c=r||{};var h=c.range!=null?c.range:e["!ref"];if(c.header===1)n=1;else if(c.header==="A")n=2;else if(Array.isArray(c.header))n=3;switch(typeof h){case"string":o=en(h);break;case"number":o=en(e["!ref"]);o.s.r=h;break;default:o=h;}if(n>0)i=0;var u=Wa(o.s.r);var d=[];var v=0;var p=e["!data"]!=null;var m=o.s.r,g=0;var b={};if(p&&!e["!data"][m])e["!data"][m]=[];var w=c.skipHidden&&e["!cols"]||[];var k=c.skipHidden&&e["!rows"]||[];for(g=o.s.c;g<=o.e.c;++g){if((w[g]||{}).hidden)continue;d[g]=$a(g);a=p?e["!data"][m][g]:e[d[g]+u];switch(n){case 1:s[g]=g-o.s.c;break;case 2:s[g]=d[g];break;case 3:s[g]=c.header[g-o.s.c];break;default:if(a==null)a={w:"__EMPTY",t:"s"};l=f=tn(a,null,c);v=b[f]||0;if(!v)b[f]=1;else{do{l=f+"_"+v++}while(b[l]);b[f]=v;b[l]=1}s[g]=l;}}m=o.s.r+i;t._read=function(){while(m<=o.e.r){if((k[m-1]||{}).hidden)continue;var r=Fk(e,o,m,d,n,s,c);++m;if(r.isempty===false||(n===1?c.blankrows!==false:!!c.blankrows)){t.push(r.row);return}}return t.push(null)};return t}function nA(e,r){var t=Qk();var a=r==null?{}:r;var n=+a.stride||10;if(!e.SSF)e.SSF=Ar(q);if(e.SSF){$e();Ve(e.SSF);a.revssf=lr(e.SSF);a.revssf[e.SSF[65535]]=0;a.ssf=e.SSF;a.cellXfs=[];Tv(a.cellXfs,{},{revssf:{General:0}})}e.SheetNames.forEach(function(r){var t=e.Sheets[r];if(!t||!t["!ref"])return;var n=Za(t["!ref"]);var i=t["!data"]!=null;var s=i?t["!data"]:[];var f={r:0,c:0};for(var l=n.s.r;l<=n.e.r;++l){f.r=l;if(i&&!s[l])continue;for(var o=n.s.c;o<=n.e.c;++o){f.c=o;var c=i?s[l][o]:t[$a(o)+Wa(l)];if(!c)continue;if(c.t=="d"&&c.z==null){c=Ar(c);c.z=q[14]}void Tv(a.cellXfs,c,a)}}});var i=xg(e,a);var s=0,f=0,l=e.Sheets[e.SheetNames[f]],o=en(l),c=-1,h=false;var u=[],d=0,v=false,p=[],m={r:0,c:0};t._read=function(){switch(s){case 0:{s=1;t.push(at);t.push("")}break;case 1:{s=2;t.push(_g(e,a));t.push(Sg(e,a))}break;case 2:{s=3;t.push(i);t.push(Ig(e,a))}break;case 3:{h=false;if(f>=e.SheetNames.length){s=-1;t.push("");break}t.push("");l=e.Sheets[e.SheetNames[f]];if(!l){t.push("");return void++f}var r=Rg(l,a,f,e);if(r.length)t.push(""+r+"");if(!l["!ref"])return s=5;o=en(l["!ref"]);c=o.s.r;s=4}break;case 4:{if(c<0||c>o.e.r){if(h)t.push("");return void(s=5)}if(c<=o.s.r){if(l["!cols"])l["!cols"].forEach(function(e,r){oc(e);var a=!!e.width;var n=kv(r,e);var i={"ss:Index":r+1};if(a)i["ss:Width"]=nc(n.width);if(e.hidden)i["ss:Hidden"]="1";if(!h){h=true;t.push("")}t.push(Bt("Column",null,i))});v=l["!data"]!=null;if(v)p=l["!data"];m.r=m.c=0}for(var g=0;c<=o.e.r&&gw)continue;if(u[d].s.r>c)continue;if(u[d].e.c");if(!h){h=true;t.push("
                        ")}t.push(b.join(""))}}break;case 5:{t.push(Ng(l,a,f,e));if(l&&l["!autofilter"])t.push('');t.push("");f++;c=-1;return void(s=3)};case-1:{s=-2;t.push("")}break;case-2:t.push(null);break;}};return t}var iA={to_json:aA,to_html:tA,to_csv:rA,to_xlml:nA,set_readable:eA};if(typeof Kg!=="undefined")e.parse_xlscfb=Kg;e.parse_zip=nk;e.read=mk;e.readFile=gk;e.readFileSync=gk;e.write=xk;e.writeFile=Ik;e.writeFileSync=Ik;e.writeFileAsync=Nk;e.utils=qk;e.writeXLSX=Sk;e.writeFileXLSX=Rk;e.set_fs=rr;e.set_cptable=g;e.SSF=Xe;if(typeof iA!=="undefined")e.stream=iA;if(typeof Qe!=="undefined")e.CFB=Qe;if(typeof require!=="undefined"){var sA=undefined;if((sA||{}).Readable)eA(sA.Readable);try{er=undefined}catch(au){}}}if(typeof exports!=="undefined")make_xlsx_lib(exports);else if(typeof module!=="undefined"&&module.exports)make_xlsx_lib(module.exports);else if(typeof define==="function"&&define.amd)define("xlsx",function(){if(!XLSX.version)make_xlsx_lib(XLSX);return XLSX});else make_xlsx_lib(XLSX);if(typeof window!=="undefined"&&!window.XLSX)try{window.XLSX=XLSX}catch(e){} diff --git a/web-v2-res/static/layui/font-ext/iconfont.js b/web-v2-res/static/layui/font-ext/iconfont.js deleted file mode 100644 index ad220b8..0000000 --- a/web-v2-res/static/layui/font-ext/iconfont.js +++ /dev/null @@ -1 +0,0 @@ -window._iconfont_svg_string_4147343='',(l=>{var c=(a=(a=document.getElementsByTagName("script"))[a.length-1]).getAttribute("data-injectcss"),a=a.getAttribute("data-disable-injectsvg");if(!a){var h,t,p,i,o,v=function(c,a){a.parentNode.insertBefore(c,a)};if(c&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}h=function(){var c,a=document.createElement("div");a.innerHTML=l._iconfont_svg_string_4147343,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(c=document.body).firstChild?v(a,c.firstChild):c.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(p=h,i=l.document,o=!1,s(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,z())})}function z(){o||(o=!0,p())}function s(){try{i.documentElement.doScroll("left")}catch(c){return void setTimeout(s,50)}z()}})(window); \ No newline at end of file diff --git a/web-v2-res/static/layui/font-ext/iconfont.woff b/web-v2-res/static/layui/font-ext/iconfont.woff deleted file mode 100644 index 206824b..0000000 Binary files a/web-v2-res/static/layui/font-ext/iconfont.woff and /dev/null differ diff --git a/web-v2-res/static/layui/font-ext/iconfont.woff2 b/web-v2-res/static/layui/font-ext/iconfont.woff2 deleted file mode 100644 index 81f3e9f..0000000 Binary files a/web-v2-res/static/layui/font-ext/iconfont.woff2 and /dev/null differ